Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: bcm: Replace FALSE with false

Replace user-defined type FALSE with C defined false keyword.

Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lisa Nguyen and committed by
Greg Kroah-Hartman
f70c8a91 3abd6f11

+287 -287
+22 -22
drivers/staging/bcm/Bcmchar.c
··· 119 119 return -ENODEV; 120 120 } 121 121 122 - if (FALSE == Adapter->fw_download_done) 122 + if (false == Adapter->fw_download_done) 123 123 return -EACCES; 124 124 125 125 down(&Adapter->RxAppControlQueuelock); ··· 180 180 if (Adapter->device_removed) 181 181 return -EFAULT; 182 182 183 - if (FALSE == Adapter->fw_download_done) { 183 + if (false == Adapter->fw_download_done) { 184 184 switch (cmd) { 185 185 case IOCTL_MAC_ADDR_REQ: 186 186 case IOCTL_LINK_REQ: ··· 425 425 uiOperation = gpio_info.uiGpioValue; 426 426 value = (1<<uiBit); 427 427 428 - if (IsReqGpioIsLedInNVM(Adapter, value) == FALSE) { 428 + if (IsReqGpioIsLedInNVM(Adapter, value) == false) { 429 429 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Sorry, Requested GPIO<0x%X> is not correspond to LED !!!", value); 430 430 Status = -EINVAL; 431 431 break; ··· 572 572 if (copy_from_user(&gpio_multi_info, IoBuffer.InputBuffer, IoBuffer.InputLength)) 573 573 return -EFAULT; 574 574 575 - if (IsReqGpioIsLedInNVM(Adapter, pgpio_multi_info[WIMAX_IDX].uiGPIOMask) == FALSE) { 575 + if (IsReqGpioIsLedInNVM(Adapter, pgpio_multi_info[WIMAX_IDX].uiGPIOMask) == false) { 576 576 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, 577 577 "Sorry, Requested GPIO<0x%X> is not correspond to NVM LED bit map<0x%X>!!!", 578 578 pgpio_multi_info[WIMAX_IDX].uiGPIOMask, Adapter->gpioBitMap); ··· 665 665 } 666 666 667 667 /* Validating the request */ 668 - if (IsReqGpioIsLedInNVM(Adapter, pgpio_multi_mode[WIMAX_IDX].uiGPIOMask) == FALSE) { 668 + if (IsReqGpioIsLedInNVM(Adapter, pgpio_multi_mode[WIMAX_IDX].uiGPIOMask) == false) { 669 669 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, 670 670 "Sorry, Requested GPIO<0x%X> is not correspond to NVM LED bit map<0x%X>!!!", 671 671 pgpio_multi_mode[WIMAX_IDX].uiGPIOMask, Adapter->gpioBitMap); ··· 768 768 if (down_trylock(&Adapter->fw_download_sema)) 769 769 return -EBUSY; 770 770 771 - Adapter->bBinDownloaded = FALSE; 771 + Adapter->bBinDownloaded = false; 772 772 Adapter->fw_download_process_pid = current->pid; 773 - Adapter->bCfgDownloaded = FALSE; 774 - Adapter->fw_download_done = FALSE; 773 + Adapter->bCfgDownloaded = false; 774 + Adapter->fw_download_done = false; 775 775 netif_carrier_off(Adapter->dev); 776 776 netif_stop_queue(Adapter->dev); 777 777 Status = reset_card_proc(Adapter); ··· 848 848 849 849 if (Adapter->LEDInfo.led_thread_running & BCM_LED_THREAD_RUNNING_ACTIVELY) { 850 850 Adapter->DriverState = DRIVER_INIT; 851 - Adapter->LEDInfo.bLedInitDone = FALSE; 851 + Adapter->LEDInfo.bLedInitDone = false; 852 852 wake_up(&Adapter->LEDInfo.notify_led_event); 853 853 } 854 854 } ··· 900 900 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Unable to send interrupt...\n"); 901 901 902 902 timeout = 5*HZ; 903 - Adapter->waiting_to_fw_download_done = FALSE; 903 + Adapter->waiting_to_fw_download_done = false; 904 904 wait_event_timeout(Adapter->ioctl_fw_dnld_wait_queue, 905 905 Adapter->waiting_to_fw_download_done, timeout); 906 906 Adapter->fw_download_process_pid = INVALID_PID; ··· 1052 1052 if (tracing_flag) 1053 1053 Adapter->pTarangs->MacTracingEnabled = TRUE; 1054 1054 else 1055 - Adapter->pTarangs->MacTracingEnabled = FALSE; 1055 + Adapter->pTarangs->MacTracingEnabled = false; 1056 1056 break; 1057 1057 } 1058 1058 ··· 1109 1109 } 1110 1110 1111 1111 case IOCTL_BCM_WAKE_UP_DEVICE_FROM_IDLE: 1112 - if ((FALSE == Adapter->bTriedToWakeUpFromlowPowerMode) && (TRUE == Adapter->IdleMode)) { 1112 + if ((false == Adapter->bTriedToWakeUpFromlowPowerMode) && (TRUE == Adapter->IdleMode)) { 1113 1113 Adapter->usIdleModePattern = ABORT_IDLE_MODE; 1114 1114 Adapter->bWakeUpDevice = TRUE; 1115 1115 wake_up(&Adapter->process_rx_cntrlpkt); ··· 1168 1168 break; 1169 1169 } 1170 1170 1171 - if (pBulkBuffer->SwapEndian == FALSE) 1171 + if (pBulkBuffer->SwapEndian == false) 1172 1172 Status = wrmWithLock(Adapter, (UINT)pBulkBuffer->Register, (PCHAR)pBulkBuffer->Values, IoBuffer.InputLength - 2*sizeof(ULONG)); 1173 1173 else 1174 1174 Status = wrmaltWithLock(Adapter, (UINT)pBulkBuffer->Register, (PUINT)pBulkBuffer->Values, IoBuffer.InputLength - 2*sizeof(ULONG)); ··· 1387 1387 if (IsFlash2x(Adapter)) 1388 1388 BcmFlash2xWriteSig(Adapter, Adapter->eActiveDSD); 1389 1389 1390 - Adapter->bHeaderChangeAllowed = FALSE; 1390 + Adapter->bHeaderChangeAllowed = false; 1391 1391 1392 1392 up(&Adapter->NVMRdmWrmLock); 1393 1393 ··· 1432 1432 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "\nsFlash2xRead.bVerify :%x\n", sFlash2xRead.bVerify); 1433 1433 1434 1434 /* This was internal to driver for raw read. now it has ben exposed to user space app. */ 1435 - if (validateFlash2xReadWrite(Adapter, &sFlash2xRead) == FALSE) 1435 + if (validateFlash2xReadWrite(Adapter, &sFlash2xRead) == false) 1436 1436 return STATUS_FAILURE; 1437 1437 1438 1438 NOB = sFlash2xRead.numOfBytes; ··· 1510 1510 } 1511 1511 1512 1512 /* First make this False so that we can enable the Sector Permission Check in BeceemFlashBulkWrite */ 1513 - Adapter->bAllDSDWriteAllow = FALSE; 1513 + Adapter->bAllDSDWriteAllow = false; 1514 1514 1515 1515 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "IOCTL_BCM_FLASH2X_SECTION_WRITE Called"); 1516 1516 ··· 1531 1531 return -EINVAL; 1532 1532 } 1533 1533 1534 - if (validateFlash2xReadWrite(Adapter, &sFlash2xWrite) == FALSE) 1534 + if (validateFlash2xReadWrite(Adapter, &sFlash2xWrite) == false) 1535 1535 return STATUS_FAILURE; 1536 1536 1537 1537 InputAddr = sFlash2xWrite.pDataBuff; ··· 1686 1686 1687 1687 case IOCTL_BCM_IDENTIFY_ACTIVE_SECTION: { 1688 1688 /* Right Now we are taking care of only DSD */ 1689 - Adapter->bAllDSDWriteAllow = FALSE; 1689 + Adapter->bAllDSDWriteAllow = false; 1690 1690 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "IOCTL_BCM_IDENTIFY_ACTIVE_SECTION called"); 1691 1691 Status = STATUS_SUCCESS; 1692 1692 } ··· 1697 1697 Status = STATUS_SUCCESS; 1698 1698 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "IOCTL_BCM_COPY_SECTION Called"); 1699 1699 1700 - Adapter->bAllDSDWriteAllow = FALSE; 1700 + Adapter->bAllDSDWriteAllow = false; 1701 1701 if (IsFlash2x(Adapter) != TRUE) { 1702 1702 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Flash Does not have 2.x map"); 1703 1703 return -EINVAL; ··· 1720 1720 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "offset :%x", sCopySectStrut.offset); 1721 1721 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "NOB :%x", sCopySectStrut.numOfBytes); 1722 1722 1723 - if (IsSectionExistInFlash(Adapter, sCopySectStrut.SrcSection) == FALSE) { 1723 + if (IsSectionExistInFlash(Adapter, sCopySectStrut.SrcSection) == false) { 1724 1724 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Source Section<%x> does not exixt in Flash ", sCopySectStrut.SrcSection); 1725 1725 return -EINVAL; 1726 1726 } 1727 1727 1728 - if (IsSectionExistInFlash(Adapter, sCopySectStrut.DstSection) == FALSE) { 1728 + if (IsSectionExistInFlash(Adapter, sCopySectStrut.DstSection) == false) { 1729 1729 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Destinatio Section<%x> does not exixt in Flash ", sCopySectStrut.DstSection); 1730 1730 return -EINVAL; 1731 1731 } ··· 1924 1924 OutPutBuff = OutPutBuff + ReadBytes; 1925 1925 } 1926 1926 } 1927 - Adapter->bFlashRawRead = FALSE; 1927 + Adapter->bFlashRawRead = false; 1928 1928 up(&Adapter->NVMRdmWrmLock); 1929 1929 kfree(pReadBuff); 1930 1930 break;
+1 -1
drivers/staging/bcm/Bcmnet.c
··· 6 6 { 7 7 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(dev); 8 8 9 - if (Adapter->fw_download_done == FALSE) { 9 + if (Adapter->fw_download_done == false) { 10 10 pr_notice(PFX "%s: link up failed (download in progress)\n", 11 11 dev->name); 12 12 return -EBUSY;
+27 -27
drivers/staging/bcm/CmHost.c
··· 256 256 pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex]; 257 257 if (pstClassifierEntry) { 258 258 /* Store if Ipv6 */ 259 - pstClassifierEntry->bIpv6Protocol = (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion == IPV6) ? TRUE : FALSE; 259 + pstClassifierEntry->bIpv6Protocol = (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion == IPV6) ? TRUE : false; 260 260 261 261 /* Destinaiton Port */ 262 262 pstClassifierEntry->ucDestPortRangeLength = psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRangeLength / 4; ··· 301 301 psfCSType->cCPacketClassificationRule.u8IPDestinationAddressLength, 302 302 psfCSType->cCPacketClassificationRule.u8IPDestinationAddress, 303 303 (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion == IPV6) ? 304 - TRUE : FALSE, eDestIpAddress); 304 + TRUE : false, eDestIpAddress); 305 305 306 306 /* Source Ip Address and Mask */ 307 307 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Ip Source Parameters : "); ··· 309 309 CopyIpAddrToClassifier(pstClassifierEntry, 310 310 psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddressLength, 311 311 psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddress, 312 - (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion == IPV6) ? TRUE : FALSE, 312 + (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion == IPV6) ? TRUE : false, 313 313 eSrcIpAddress); 314 314 315 315 /* TOS */ ··· 383 383 u16PacketClassificationRuleIndex = Adapter->astClassifierTable[nClassifierIndex].uiClassifierRuleIndex; 384 384 pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex]; 385 385 if (pstClassifierEntry) { 386 - pstClassifierEntry->bUsed = FALSE; 386 + pstClassifierEntry->bUsed = false; 387 387 pstClassifierEntry->uiClassifierRuleIndex = 0; 388 388 memset(pstClassifierEntry, 0, sizeof(struct bcm_classifier_rule)); 389 389 ··· 685 685 memcpy(sPhsRule.u8PHSF, psfCSType->cPhsRule.u8PHSF, MAX_PHS_LENGTHS); 686 686 memcpy(sPhsRule.u8PHSM, psfCSType->cPhsRule.u8PHSM, MAX_PHS_LENGTHS); 687 687 sPhsRule.u8RefCnt = 0; 688 - sPhsRule.bUnclassifiedPHSRule = FALSE; 688 + sPhsRule.bUnclassifiedPHSRule = false; 689 689 sPhsRule.PHSModifiedBytes = 0; 690 690 sPhsRule.PHSModifiedNumPackets = 0; 691 691 sPhsRule.PHSErrorNumPackets = 0; ··· 1577 1577 ULONG idx, max_try; 1578 1578 1579 1579 if ((Adapter->ulTotalTargetBuffersAvailable == 0) || (Adapter->ulFreeTargetBufferCnt == 0)) { 1580 - ClearTargetDSXBuffer(Adapter, tid, FALSE); 1580 + ClearTargetDSXBuffer(Adapter, tid, false); 1581 1581 return 0; 1582 1582 } 1583 1583 ··· 1590 1590 1591 1591 if (max_try == 0) { 1592 1592 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "\n GetNextTargetBufferLocation : Error No Free Target DSX Buffers FreeCnt : %lx ", Adapter->ulFreeTargetBufferCnt); 1593 - ClearTargetDSXBuffer(Adapter, tid, FALSE); 1593 + ClearTargetDSXBuffer(Adapter, tid, false); 1594 1594 return 0; 1595 1595 } 1596 1596 ··· 1644 1644 */ 1645 1645 pstAddIndication = RestoreCmControlResponseMessage(Adapter, pvBuffer); 1646 1646 if (pstAddIndication == NULL) { 1647 - ClearTargetDSXBuffer(Adapter, ((struct bcm_add_indication *)pvBuffer)->u16TID, FALSE); 1647 + ClearTargetDSXBuffer(Adapter, ((struct bcm_add_indication *)pvBuffer)->u16TID, false); 1648 1648 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Error in restoring Service Flow param structure from DSx message"); 1649 - return FALSE; 1649 + return false; 1650 1650 } 1651 1651 1652 1652 DumpCmControlPacket(pstAddIndication); ··· 1656 1656 pLeader->Status = CM_CONTROL_NEWDSX_MULTICLASSIFIER_REQ; 1657 1657 pLeader->Vcid = 0; 1658 1658 1659 - ClearTargetDSXBuffer(Adapter, pstAddIndication->u16TID, FALSE); 1659 + ClearTargetDSXBuffer(Adapter, pstAddIndication->u16TID, false); 1660 1660 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "### TID RECEIVED %d\n", pstAddIndication->u16TID); 1661 1661 switch (pstAddIndication->u8Type) { 1662 1662 case DSA_REQ: ··· 1708 1708 if (pstAddIndication->sfAdmittedSet.bValid == TRUE) 1709 1709 Adapter->PackInfo[uiSearchRuleIndex].bAdmittedSet = TRUE; 1710 1710 1711 - if (pstAddIndication->sfActiveSet.bValid == FALSE) { 1712 - Adapter->PackInfo[uiSearchRuleIndex].bActive = FALSE; 1713 - Adapter->PackInfo[uiSearchRuleIndex].bActivateRequestSent = FALSE; 1711 + if (pstAddIndication->sfActiveSet.bValid == false) { 1712 + Adapter->PackInfo[uiSearchRuleIndex].bActive = false; 1713 + Adapter->PackInfo[uiSearchRuleIndex].bActivateRequestSent = false; 1714 1714 if (pstAddIndication->sfAdmittedSet.bValid) 1715 1715 psfLocalSet = &pstAddIndication->sfAdmittedSet; 1716 1716 else if (pstAddIndication->sfAuthorizedSet.bValid) ··· 1722 1722 1723 1723 if (!psfLocalSet) { 1724 1724 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "No set is valid\n"); 1725 - Adapter->PackInfo[uiSearchRuleIndex].bActive = FALSE; 1726 - Adapter->PackInfo[uiSearchRuleIndex].bValid = FALSE; 1725 + Adapter->PackInfo[uiSearchRuleIndex].bActive = false; 1726 + Adapter->PackInfo[uiSearchRuleIndex].bValid = false; 1727 1727 Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value = 0; 1728 1728 kfree(pstAddIndication); 1729 1729 } else if (psfLocalSet->bValid && (pstAddIndication->u8CC == 0)) { ··· 1759 1759 } 1760 1760 } 1761 1761 } else { 1762 - Adapter->PackInfo[uiSearchRuleIndex].bActive = FALSE; 1763 - Adapter->PackInfo[uiSearchRuleIndex].bValid = FALSE; 1762 + Adapter->PackInfo[uiSearchRuleIndex].bActive = false; 1763 + Adapter->PackInfo[uiSearchRuleIndex].bValid = false; 1764 1764 Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value = 0; 1765 1765 kfree(pstAddIndication); 1766 1766 } 1767 1767 } else { 1768 1768 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "DSA ACK did not get valid SFID"); 1769 1769 kfree(pstAddIndication); 1770 - return FALSE; 1770 + return false; 1771 1771 } 1772 1772 } 1773 1773 break; ··· 1812 1812 if (pstChangeIndication->sfAdmittedSet.bValid == TRUE) 1813 1813 Adapter->PackInfo[uiSearchRuleIndex].bAdmittedSet = TRUE; 1814 1814 1815 - if (pstChangeIndication->sfActiveSet.bValid == FALSE) { 1816 - Adapter->PackInfo[uiSearchRuleIndex].bActive = FALSE; 1817 - Adapter->PackInfo[uiSearchRuleIndex].bActivateRequestSent = FALSE; 1815 + if (pstChangeIndication->sfActiveSet.bValid == false) { 1816 + Adapter->PackInfo[uiSearchRuleIndex].bActive = false; 1817 + Adapter->PackInfo[uiSearchRuleIndex].bActivateRequestSent = false; 1818 1818 1819 1819 if (pstChangeIndication->sfAdmittedSet.bValid) 1820 1820 psfLocalSet = &pstChangeIndication->sfAdmittedSet; ··· 1827 1827 1828 1828 if (!psfLocalSet) { 1829 1829 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "No set is valid\n"); 1830 - Adapter->PackInfo[uiSearchRuleIndex].bActive = FALSE; 1831 - Adapter->PackInfo[uiSearchRuleIndex].bValid = FALSE; 1830 + Adapter->PackInfo[uiSearchRuleIndex].bActive = false; 1831 + Adapter->PackInfo[uiSearchRuleIndex].bValid = false; 1832 1832 Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value = 0; 1833 1833 kfree(pstAddIndication); 1834 1834 } else if (psfLocalSet->bValid && (pstChangeIndication->u8CC == 0)) { ··· 1847 1847 } else { 1848 1848 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "DSC ACK did not get valid SFID"); 1849 1849 kfree(pstAddIndication); 1850 - return FALSE; 1850 + return false; 1851 1851 } 1852 1852 } 1853 1853 break; ··· 1883 1883 break; 1884 1884 default: 1885 1885 kfree(pstAddIndication); 1886 - return FALSE; 1886 + return false; 1887 1887 } 1888 1888 return TRUE; 1889 1889 } ··· 1934 1934 continue; 1935 1935 } 1936 1936 1937 - if (pHostInfo->RetainSF == FALSE) { 1937 + if (pHostInfo->RetainSF == false) { 1938 1938 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Going to Delete SF"); 1939 1939 deleteSFBySfid(Adapter, uiSearchRuleIndex); 1940 1940 } else { 1941 1941 Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value = ntohs(pHostInfo->VCID); 1942 1942 Adapter->PackInfo[uiSearchRuleIndex].usCID = ntohs(pHostInfo->newCID); 1943 - Adapter->PackInfo[uiSearchRuleIndex].bActive = FALSE; 1943 + Adapter->PackInfo[uiSearchRuleIndex].bActive = false; 1944 1944 1945 1945 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "pHostInfo->QoSParamSet: 0x%x\n", pHostInfo->QoSParamSet); 1946 1946
+1 -1
drivers/staging/bcm/DDRInit.c
··· 1106 1106 unsigned long ul_ddr_setting_load_addr = DDR_DUMP_INTERNAL_DEVICE_MEMORY; 1107 1107 UINT value = 0; 1108 1108 int retval = STATUS_SUCCESS; 1109 - bool bOverrideSelfRefresh = FALSE; 1109 + bool bOverrideSelfRefresh = false; 1110 1110 1111 1111 switch (Adapter->chip_id) 1112 1112 {
+5 -5
drivers/staging/bcm/HandleControlPacket.c
··· 14 14 static VOID handle_rx_control_packet(struct bcm_mini_adapter *Adapter, struct sk_buff *skb) 15 15 { 16 16 struct bcm_tarang_data *pTarang = NULL; 17 - bool HighPriorityMessage = FALSE; 17 + bool HighPriorityMessage = false; 18 18 struct sk_buff *newPacket = NULL; 19 19 CHAR cntrl_msg_mask_bit = 0; 20 20 bool drop_pkt_flag = TRUE; ··· 91 91 * cntrl_msg_mask_bit); 92 92 */ 93 93 if (pTarang->RxCntrlMsgBitMask & (1 << cntrl_msg_mask_bit)) 94 - drop_pkt_flag = FALSE; 94 + drop_pkt_flag = false; 95 95 96 96 if ((drop_pkt_flag == TRUE) || 97 97 (pTarang->AppCtrlQueueLen > MAX_APP_QUEUE_LEN) 98 98 || ((pTarang->AppCtrlQueueLen > 99 99 MAX_APP_QUEUE_LEN / 2) && 100 - (HighPriorityMessage == FALSE))) { 100 + (HighPriorityMessage == false))) { 101 101 /* 102 102 * Assumption:- 103 103 * 1. every tarang manages it own dropped pkt ··· 175 175 return 0; 176 176 } 177 177 if (TRUE == Adapter->bWakeUpDevice) { 178 - Adapter->bWakeUpDevice = FALSE; 179 - if ((FALSE == Adapter->bTriedToWakeUpFromlowPowerMode) 178 + Adapter->bWakeUpDevice = false; 179 + if ((false == Adapter->bTriedToWakeUpFromlowPowerMode) 180 180 && ((TRUE == Adapter->IdleMode) || 181 181 (TRUE == Adapter->bShutStatus))) { 182 182 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS,
+9 -9
drivers/staging/bcm/IPv6Protocol.c
··· 29 29 } 30 30 31 31 /* Get the Nextt Header Type */ 32 - *bParseDone = FALSE; 32 + *bParseDone = false; 33 33 34 34 35 35 switch (*pucNextHeader) { ··· 124 124 125 125 } 126 126 127 - if (*bParseDone == FALSE) { 127 + if (*bParseDone == false) { 128 128 if (*pusPayloadLength <= usNextHeaderOffset) { 129 129 *bParseDone = TRUE; 130 130 } else { ··· 144 144 USHORT *pusDestPort, USHORT usPayloadLength, UCHAR ucNextHeader) 145 145 { 146 146 UCHAR *pIpv6HdrScanContext = pucPayload; 147 - bool bDone = FALSE; 147 + bool bDone = false; 148 148 UCHAR ucHeaderType = 0; 149 149 UCHAR *pucNextHeader = NULL; 150 150 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); ··· 187 187 USHORT ushSrcPort = 0; 188 188 UCHAR ucNextProtocolAboveIP = 0; 189 189 struct bcm_ipv6_hdr *pstIpv6Header = NULL; 190 - bool bClassificationSucceed = FALSE; 190 + bool bClassificationSucceed = false; 191 191 192 192 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, 193 193 DBG_LVL_ALL, "IpVersion6 ==========>\n"); ··· 277 277 INT iMatchedSFQueueIndex = 0; 278 278 iMatchedSFQueueIndex = SearchSfid(Adapter, pstClassifierRule->ulSFID); 279 279 if (iMatchedSFQueueIndex >= NO_OF_QUEUES) { 280 - bClassificationSucceed = FALSE; 280 + bClassificationSucceed = false; 281 281 } else { 282 - if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == FALSE) 283 - bClassificationSucceed = FALSE; 282 + if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == false) 283 + bClassificationSucceed = false; 284 284 } 285 285 } 286 286 ··· 341 341 } 342 342 } 343 343 } 344 - return FALSE; 344 + return false; 345 345 } 346 346 347 347 static bool MatchDestIpv6Address(struct bcm_classifier_rule *pstClassifierRule, ··· 398 398 } 399 399 } 400 400 } 401 - return FALSE; 401 + return false; 402 402 403 403 } 404 404
+2 -2
drivers/staging/bcm/InterfaceDld.c
··· 166 166 } 167 167 168 168 if (Adapter->LEDInfo.led_thread_running & BCM_LED_THREAD_RUNNING_ACTIVELY) { 169 - Adapter->LEDInfo.bLedInitDone = FALSE; 169 + Adapter->LEDInfo.bLedInitDone = false; 170 170 Adapter->DriverState = DRIVER_INIT; 171 171 wake_up(&Adapter->LEDInfo.notify_led_event); 172 172 } ··· 214 214 * Firmware. Check for the Config file to be first to be sent from the 215 215 * Application 216 216 */ 217 - atomic_set(&Adapter->uiMBupdate, FALSE); 217 + atomic_set(&Adapter->uiMBupdate, false); 218 218 if (!Adapter->bCfgDownloaded && psFwInfo->u32StartingAddress != CONFIG_BEGIN_ADDR) { 219 219 /* Can't Download Firmware. */ 220 220 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "Download the config File first\n");
+2 -2
drivers/staging/bcm/InterfaceIdleMode.c
··· 89 89 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, IDLE_MODE, DBG_LVL_ALL, "Device Up from Idle Mode"); 90 90 91 91 /* Set Idle Mode Flag to False and Clear IdleMode reg. */ 92 - Adapter->IdleMode = FALSE; 93 - Adapter->bTriedToWakeUpFromlowPowerMode = FALSE; 92 + Adapter->IdleMode = false; 93 + Adapter->bTriedToWakeUpFromlowPowerMode = false; 94 94 95 95 wake_up(&Adapter->lowpower_mode_wait_queue); 96 96
+10 -10
drivers/staging/bcm/InterfaceInit.c
··· 332 332 * now register the cntrl interface. 333 333 * after downloading the f/w waiting for 5 sec to get the mailbox interrupt. 334 334 */ 335 - psIntfAdapter->psAdapter->waiting_to_fw_download_done = FALSE; 335 + psIntfAdapter->psAdapter->waiting_to_fw_download_done = false; 336 336 value = wait_event_timeout(psIntfAdapter->psAdapter->ioctl_fw_dnld_wait_queue, 337 337 psIntfAdapter->psAdapter->waiting_to_fw_download_done, 5*HZ); 338 338 ··· 430 430 unsigned long value; 431 431 int retval = 0; 432 432 int usedIntOutForBulkTransfer = 0 ; 433 - bool bBcm16 = FALSE; 433 + bool bBcm16 = false; 434 434 UINT uiData = 0; 435 435 int bytes; 436 436 ··· 472 472 retval = usb_set_interface(psIntfAdapter->udev, DEFAULT_SETTING_0, ALTERNATE_SETTING_1); 473 473 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, 474 474 "BCM16 is applicable on this dongle\n"); 475 - if (retval || (psIntfAdapter->bHighSpeedDevice == FALSE)) { 475 + if (retval || (psIntfAdapter->bHighSpeedDevice == false)) { 476 476 usedIntOutForBulkTransfer = EP2 ; 477 477 endpoint = &iface_desc->endpoint[EP2].desc; 478 478 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, ··· 481 481 * If Modem is high speed device EP2 should be INT OUT End point 482 482 * If Mode is FS then EP2 should be bulk end point 483 483 */ 484 - if (((psIntfAdapter->bHighSpeedDevice == TRUE) && (bcm_usb_endpoint_is_int_out(endpoint) == FALSE)) 485 - || ((psIntfAdapter->bHighSpeedDevice == FALSE) && (bcm_usb_endpoint_is_bulk_out(endpoint) == FALSE))) { 484 + if (((psIntfAdapter->bHighSpeedDevice == TRUE) && (bcm_usb_endpoint_is_int_out(endpoint) == false)) 485 + || ((psIntfAdapter->bHighSpeedDevice == false) && (bcm_usb_endpoint_is_bulk_out(endpoint) == false))) { 486 486 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, 487 487 "Configuring the EEPROM\n"); 488 488 /* change the EP2, EP4 to INT OUT end point */ ··· 501 501 } 502 502 503 503 } 504 - if ((psIntfAdapter->bHighSpeedDevice == FALSE) && bcm_usb_endpoint_is_bulk_out(endpoint)) { 504 + if ((psIntfAdapter->bHighSpeedDevice == false) && bcm_usb_endpoint_is_bulk_out(endpoint)) { 505 505 /* Once BULK is selected in FS mode. Revert it back to INT. Else USB_IF will fail. */ 506 506 UINT _uiData = ntohl(EP2_CFG_INT); 507 507 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, ··· 513 513 endpoint = &iface_desc->endpoint[EP4].desc; 514 514 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, 515 515 "Choosing AltSetting as a default setting.\n"); 516 - if (bcm_usb_endpoint_is_int_out(endpoint) == FALSE) { 516 + if (bcm_usb_endpoint_is_int_out(endpoint) == false) { 517 517 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_INITEXIT, DRV_ENTRY, DBG_LVL_ALL, 518 518 "Dongle does not have BCM16 Fix.\n"); 519 519 /* change the EP2, EP4 to INT OUT end point and use EP4 in altsetting */ ··· 619 619 psIntfAdapter->bSuspended = TRUE; 620 620 621 621 if (TRUE == psIntfAdapter->bPreparingForBusSuspend) { 622 - psIntfAdapter->bPreparingForBusSuspend = FALSE; 622 + psIntfAdapter->bPreparingForBusSuspend = false; 623 623 624 624 if (psIntfAdapter->psAdapter->LinkStatus == LINKUP_DONE) { 625 625 psIntfAdapter->psAdapter->IdleMode = TRUE ; ··· 631 631 "Host Entered in PMU Shutdown Mode.\n"); 632 632 } 633 633 } 634 - psIntfAdapter->psAdapter->bPreparingForLowPowerMode = FALSE; 634 + psIntfAdapter->psAdapter->bPreparingForLowPowerMode = false; 635 635 636 636 /* Signaling the control pkt path */ 637 637 wake_up(&psIntfAdapter->psAdapter->lowpower_mode_wait_queue); ··· 644 644 struct bcm_interface_adapter *psIntfAdapter = usb_get_intfdata(intf); 645 645 646 646 mdelay(100); 647 - psIntfAdapter->bSuspended = FALSE; 647 + psIntfAdapter->bSuspended = false; 648 648 649 649 StartInterruptUrb(psIntfAdapter); 650 650 InterfaceRx(psIntfAdapter);
+6 -6
drivers/staging/bcm/InterfaceIsr.c
··· 60 60 psIntfAdapter->psAdapter->downloadDDR +=1; 61 61 wake_up(&Adapter->tx_packet_wait_queue); 62 62 } 63 - if(FALSE == Adapter->waiting_to_fw_download_done) 63 + if(false == Adapter->waiting_to_fw_download_done) 64 64 { 65 65 Adapter->waiting_to_fw_download_done = TRUE; 66 66 wake_up(&Adapter->ioctl_fw_dnld_wait_queue); ··· 147 147 { 148 148 INT status = 0; 149 149 150 - if( FALSE == psIntfAdapter->psAdapter->device_removed && 151 - FALSE == psIntfAdapter->psAdapter->bEndPointHalted && 152 - FALSE == psIntfAdapter->bSuspended && 153 - FALSE == psIntfAdapter->bPreparingForBusSuspend && 154 - FALSE == psIntfAdapter->psAdapter->StopAllXaction) 150 + if( false == psIntfAdapter->psAdapter->device_removed && 151 + false == psIntfAdapter->psAdapter->bEndPointHalted && 152 + false == psIntfAdapter->bSuspended && 153 + false == psIntfAdapter->bPreparingForBusSuspend && 154 + false == psIntfAdapter->psAdapter->StopAllXaction) 155 155 { 156 156 status = usb_submit_urb(psIntfAdapter->psInterruptUrb, GFP_ATOMIC); 157 157 if (status)
+4 -4
drivers/staging/bcm/InterfaceMisc.c
··· 44 44 else 45 45 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, RDM, DBG_LVL_ALL, "RDM sent %d", bytes); 46 46 47 - psIntfAdapter->psAdapter->DeviceAccess = FALSE; 47 + psIntfAdapter->psAdapter->DeviceAccess = false; 48 48 return bytes; 49 49 } 50 50 ··· 90 90 91 91 if (retval < 0) { 92 92 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL, "WRM failed status :%d", retval); 93 - psIntfAdapter->psAdapter->DeviceAccess = FALSE; 93 + psIntfAdapter->psAdapter->DeviceAccess = false; 94 94 return retval; 95 95 } else { 96 - psIntfAdapter->psAdapter->DeviceAccess = FALSE; 96 + psIntfAdapter->psAdapter->DeviceAccess = false; 97 97 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_OTHERS, WRM, DBG_LVL_ALL, "WRM sent %d", retval); 98 98 return STATUS_SUCCESS; 99 99 } ··· 211 211 psIntfAdapter = container_of(work, struct bcm_interface_adapter, usbSuspendWork); 212 212 intf = psIntfAdapter->interface; 213 213 214 - if (psIntfAdapter->bSuspended == FALSE) 214 + if (psIntfAdapter->bSuspended == false) 215 215 usb_autopm_put_interface(intf); 216 216 } 217 217
+10 -10
drivers/staging/bcm/InterfaceRx.c
··· 19 19 UINT index = 0; 20 20 21 21 if((atomic_read(&psIntfAdapter->uNumRcbUsed) < MAXIMUM_USB_RCB) && 22 - (psIntfAdapter->psAdapter->StopAllXaction == FALSE)) 22 + (psIntfAdapter->psAdapter->StopAllXaction == false)) 23 23 { 24 24 index = atomic_read(&psIntfAdapter->uCurrRcb); 25 25 pRcb = &psIntfAdapter->asUsbRcb[index]; ··· 38 38 static void read_bulk_callback(struct urb *urb) 39 39 { 40 40 struct sk_buff *skb = NULL; 41 - bool bHeaderSupressionEnabled = FALSE; 41 + bool bHeaderSupressionEnabled = false; 42 42 int QueueIndex = NO_OF_QUEUES + 1; 43 43 UINT uiIndex=0; 44 44 int process_done = 1; ··· 57 57 (0 == urb->actual_length) 58 58 ) 59 59 { 60 - pRcb->bUsed = FALSE; 60 + pRcb->bUsed = false; 61 61 atomic_dec(&psIntfAdapter->uNumRcbUsed); 62 62 return; 63 63 } ··· 73 73 { 74 74 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL,"Rx URB has got cancelled. status :%d", urb->status); 75 75 } 76 - pRcb->bUsed = FALSE; 76 + pRcb->bUsed = false; 77 77 atomic_dec(&psIntfAdapter->uNumRcbUsed); 78 78 urb->status = STATUS_SUCCESS ; 79 79 return ; ··· 192 192 } 193 193 } 194 194 Adapter->PrevNumRecvDescs++; 195 - pRcb->bUsed = FALSE; 195 + pRcb->bUsed = false; 196 196 atomic_dec(&psIntfAdapter->uNumRcbUsed); 197 197 } 198 198 ··· 205 205 psIntfAdapter->udev, psIntfAdapter->sBulkIn.bulk_in_endpointAddr), 206 206 urb->transfer_buffer, BCM_USB_MAX_READ_LENGTH, read_bulk_callback, 207 207 pRcb); 208 - if(FALSE == psIntfAdapter->psAdapter->device_removed && 209 - FALSE == psIntfAdapter->psAdapter->bEndPointHalted && 210 - FALSE == psIntfAdapter->bSuspended && 211 - FALSE == psIntfAdapter->bPreparingForBusSuspend) 208 + if(false == psIntfAdapter->psAdapter->device_removed && 209 + false == psIntfAdapter->psAdapter->bEndPointHalted && 210 + false == psIntfAdapter->bSuspended && 211 + false == psIntfAdapter->bPreparingForBusSuspend) 212 212 { 213 213 retval = usb_submit_urb(urb, GFP_ATOMIC); 214 214 if (retval) ··· 253 253 if(pRcb == NULL) 254 254 { 255 255 BCM_DEBUG_PRINT(psIntfAdapter->psAdapter,DBG_TYPE_PRINTK, 0, 0, "Unable to get Rcb pointer"); 256 - return FALSE; 256 + return false; 257 257 } 258 258 //atomic_inc(&psIntfAdapter->uNumRcbUsed); 259 259 ReceiveRcb(psIntfAdapter, pRcb);
+13 -13
drivers/staging/bcm/InterfaceTx.c
··· 7 7 struct bcm_interface_adapter *psIntfAdapter = pTcb->psIntfAdapter; 8 8 struct bcm_link_request *pControlMsg = (struct bcm_link_request *)urb->transfer_buffer; 9 9 struct bcm_mini_adapter *psAdapter = psIntfAdapter->psAdapter ; 10 - bool bpowerDownMsg = FALSE ; 10 + bool bpowerDownMsg = false ; 11 11 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 12 12 13 13 if (unlikely(netif_msg_tx_done(Adapter))) ··· 26 26 } 27 27 } 28 28 29 - pTcb->bUsed = FALSE; 29 + pTcb->bUsed = false; 30 30 atomic_dec(&psIntfAdapter->uNumTcbUsed); 31 31 32 32 ··· 42 42 //This covers the bus err while Idle Request msg sent down. 43 43 if(urb->status != STATUS_SUCCESS) 44 44 { 45 - psAdapter->bPreparingForLowPowerMode = FALSE ; 45 + psAdapter->bPreparingForLowPowerMode = false ; 46 46 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL,"Idle Mode Request msg failed to reach to Modem"); 47 47 //Signalling the cntrl pkt path in Ioctl 48 48 wake_up(&psAdapter->lowpower_mode_wait_queue); ··· 50 50 goto err_exit; 51 51 } 52 52 53 - if(psAdapter->bDoSuspend == FALSE) 53 + if(psAdapter->bDoSuspend == false) 54 54 { 55 55 psAdapter->IdleMode = TRUE; 56 56 //since going in Idle mode completed hence making this var false; 57 - psAdapter->bPreparingForLowPowerMode = FALSE ; 57 + psAdapter->bPreparingForLowPowerMode = false ; 58 58 59 59 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "Host Entered in Idle Mode State..."); 60 60 //Signalling the cntrl pkt path in Ioctl ··· 70 70 //This covers the bus err while shutdown Request msg sent down. 71 71 if(urb->status != STATUS_SUCCESS) 72 72 { 73 - psAdapter->bPreparingForLowPowerMode = FALSE ; 73 + psAdapter->bPreparingForLowPowerMode = false ; 74 74 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL,"Shutdown Request Msg failed to reach to Modem"); 75 75 //Signalling the cntrl pkt path in Ioctl 76 76 wake_up(&psAdapter->lowpower_mode_wait_queue); ··· 79 79 } 80 80 81 81 bpowerDownMsg = TRUE ; 82 - if(psAdapter->bDoSuspend == FALSE) 82 + if(psAdapter->bDoSuspend == false) 83 83 { 84 84 psAdapter->bShutStatus = TRUE; 85 85 //since going in shutdown mode completed hence making this var false; 86 - psAdapter->bPreparingForLowPowerMode = FALSE ; 86 + psAdapter->bPreparingForLowPowerMode = false ; 87 87 BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL,"Host Entered in shutdown Mode State..."); 88 88 //Signalling the cntrl pkt path in Ioctl 89 89 wake_up(&psAdapter->lowpower_mode_wait_queue); ··· 113 113 UINT index = 0; 114 114 115 115 if((atomic_read(&psIntfAdapter->uNumTcbUsed) < MAXIMUM_USB_TCB) && 116 - (psIntfAdapter->psAdapter->StopAllXaction ==FALSE)) 116 + (psIntfAdapter->psAdapter->StopAllXaction ==false)) 117 117 { 118 118 index = atomic_read(&psIntfAdapter->uCurrTcb); 119 119 pTcb = &psIntfAdapter->asUsbTcb[index]; ··· 161 161 } 162 162 urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP; /* For DMA transfer */ 163 163 164 - if(FALSE == psIntfAdapter->psAdapter->device_removed && 165 - FALSE == psIntfAdapter->psAdapter->bEndPointHalted && 166 - FALSE == psIntfAdapter->bSuspended && 167 - FALSE == psIntfAdapter->bPreparingForBusSuspend) 164 + if(false == psIntfAdapter->psAdapter->device_removed && 165 + false == psIntfAdapter->psAdapter->bEndPointHalted && 166 + false == psIntfAdapter->bSuspended && 167 + false == psIntfAdapter->bPreparingForBusSuspend) 168 168 { 169 169 retval = usb_submit_urb(urb, GFP_ATOMIC); 170 170 if (retval)
+3 -3
drivers/staging/bcm/LeakyBucket.c
··· 82 82 return 0; 83 83 } 84 84 85 - if (FALSE != psSF->bValid && psSF->ucDirection) { 85 + if (false != psSF->bValid && psSF->ucDirection) { 86 86 if (0 != psSF->uiCurrentTokenCount) { 87 87 return psSF->uiCurrentTokenCount; 88 88 } else { ··· 188 188 spin_unlock_bh(&psSF->SFQueueLock); 189 189 190 190 Status = SendPacketFromQueue(Adapter, psSF, QueuePacket); 191 - psSF->uiPendedLast = FALSE; 191 + psSF->uiPendedLast = false; 192 192 } else { 193 193 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_PACKETS, DBG_LVL_ALL, "For Queue: %zd\n", psSF-Adapter->PackInfo); 194 194 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_PACKETS, DBG_LVL_ALL, "\nAvailable Tokens = %d required = %d\n", ··· 299 299 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_PACKETS, DBG_LVL_ALL, "Calling CheckAndSendPacketFromIndex.."); 300 300 CheckAndSendPacketFromIndex(Adapter, &Adapter->PackInfo[iIndex]); 301 301 uiPrevTotalCount--; 302 - exit_flag = FALSE; 302 + exit_flag = false; 303 303 } 304 304 } 305 305
+34 -34
drivers/staging/bcm/Misc.c
··· 53 53 init_waitqueue_head(&psAdapter->ioctl_fw_dnld_wait_queue); 54 54 init_waitqueue_head(&psAdapter->lowpower_mode_wait_queue); 55 55 psAdapter->waiting_to_fw_download_done = TRUE; 56 - psAdapter->fw_download_done = FALSE; 56 + psAdapter->fw_download_done = false; 57 57 58 58 default_wimax_protocol_initialize(psAdapter); 59 59 for (i = 0; i < MAX_CNTRL_PKTS; i++) { ··· 255 255 256 256 if (Adapter->bShutStatus == TRUE) { 257 257 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, "SYNC UP IN SHUTDOWN..Device WakeUp\n"); 258 - if (Adapter->bTriedToWakeUpFromlowPowerMode == FALSE) { 258 + if (Adapter->bTriedToWakeUpFromlowPowerMode == false) { 259 259 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, "Waking up for the First Time..\n"); 260 260 Adapter->usIdleModePattern = ABORT_SHUTDOWN_MODE; /* change it to 1 for current support. */ 261 261 Adapter->bWakeUpDevice = TRUE; ··· 346 346 pktlen = pLeader->PLength; 347 347 Status = StoreCmControlResponseMessage(Adapter, pucAddIndication, &pktlen); 348 348 if (Status != 1) { 349 - ClearTargetDSXBuffer(Adapter, ((struct bcm_add_indication_alt *)pucAddIndication)->u16TID, FALSE); 349 + ClearTargetDSXBuffer(Adapter, ((struct bcm_add_indication_alt *)pucAddIndication)->u16TID, false); 350 350 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, " Error Restoring The DSX Control Packet. Dsx Buffers on Target may not be Setup Properly "); 351 351 return STATUS_FAILURE; 352 352 } ··· 499 499 Adapter->bETHCSEnabled = *(pucBuffer+4) & ETH_CS_MASK; 500 500 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "PHS Support Status Received In LinkUp Ack : %x\n", Adapter->bPHSEnabled); 501 501 502 - if ((FALSE == Adapter->bShutStatus) && (FALSE == Adapter->IdleMode)) { 502 + if ((false == Adapter->bShutStatus) && (false == Adapter->IdleMode)) { 503 503 if (Adapter->LEDInfo.led_thread_running & BCM_LED_THREAD_RUNNING_ACTIVELY) { 504 504 Adapter->DriverState = NORMAL_OPERATION; 505 505 wake_up(&Adapter->LEDInfo.notify_led_event); ··· 517 517 Adapter->LinkUpStatus = 0; 518 518 Adapter->LinkStatus = 0; 519 519 Adapter->usBestEffortQueueIndex = INVALID_QUEUE_INDEX; 520 - Adapter->bTriedToWakeUpFromlowPowerMode = FALSE; 521 - Adapter->IdleMode = FALSE; 520 + Adapter->bTriedToWakeUpFromlowPowerMode = false; 521 + Adapter->IdleMode = false; 522 522 beceem_protocol_reset(Adapter); 523 523 524 524 break; ··· 578 578 579 579 stIdleResponse.szData[1] = TARGET_CAN_NOT_GO_TO_IDLE_MODE; /* NACK- device access is going on. */ 580 580 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_RX, RX_DPC, DBG_LVL_ALL, "HOST IS NACKING Idle mode To F/W!!!!!!!!"); 581 - Adapter->bPreparingForLowPowerMode = FALSE; 581 + Adapter->bPreparingForLowPowerMode = false; 582 582 } else { 583 583 stIdleResponse.szData[1] = TARGET_CAN_GO_TO_IDLE_MODE; /* 2; Idle ACK */ 584 584 Adapter->StatisticsPointer = 0; ··· 613 613 if (Adapter->bDoSuspend == TRUE) 614 614 Bcm_kill_all_URBs((struct bcm_interface_adapter *)(Adapter->pvInterfaceAdapter)); 615 615 } else { 616 - Adapter->bPreparingForLowPowerMode = FALSE; 616 + Adapter->bPreparingForLowPowerMode = false; 617 617 } 618 618 619 619 if (!NVMAccess) ··· 626 626 status = CopyBufferToControlPacket(Adapter, &stIdleResponse); 627 627 if ((status != STATUS_SUCCESS)) { 628 628 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "fail to send the Idle mode Request\n"); 629 - Adapter->bPreparingForLowPowerMode = FALSE; 629 + Adapter->bPreparingForLowPowerMode = false; 630 630 StartInterruptUrb((struct bcm_interface_adapter *)(Adapter->pvInterfaceAdapter)); 631 631 } 632 632 do_gettimeofday(&tv); ··· 651 651 652 652 for (uiLoopIndex = 0; uiLoopIndex < NO_OF_QUEUES; uiLoopIndex++) { 653 653 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "*********** Showing Details Of Queue %d***** ******", uiLoopIndex); 654 - if (FALSE == Adapter->PackInfo[uiLoopIndex].bValid) { 655 - BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "bValid is FALSE for %X index\n", uiLoopIndex); 654 + if (false == Adapter->PackInfo[uiLoopIndex].bValid) { 655 + BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_INFO, DBG_LVL_ALL, "bValid is false for %X index\n", uiLoopIndex); 656 656 continue; 657 657 } 658 658 ··· 783 783 int bytes; 784 784 785 785 psIntfAdapter = ((struct bcm_interface_adapter *)(ps_adapter->pvInterfaceAdapter)); 786 - ps_adapter->bDDRInitDone = FALSE; 786 + ps_adapter->bDDRInitDone = false; 787 787 788 788 if (ps_adapter->chip_id >= T3LPB) { 789 789 /* SYS_CFG register is write protected hence for modifying this reg value, it should be read twice before */ ··· 803 803 if (ps_adapter->chip_id >= T3LPB) { 804 804 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Resetting UMA-B\n"); 805 805 retval = usb_reset_device(psIntfAdapter->udev); 806 - psIntfAdapter->psAdapter->StopAllXaction = FALSE; 806 + psIntfAdapter->psAdapter->StopAllXaction = false; 807 807 808 808 if (retval != STATUS_SUCCESS) { 809 809 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Reset failed with ret value :%d", retval); ··· 888 888 wrmalt(ps_adapter, 0x0f01186c, &uiResetValue, sizeof(uiResetValue)); 889 889 890 890 err_exit: 891 - psIntfAdapter->psAdapter->StopAllXaction = FALSE; 891 + psIntfAdapter->psAdapter->StopAllXaction = false; 892 892 return retval; 893 893 } 894 894 ··· 968 968 return -EIO; 969 969 } 970 970 971 - if (FALSE == ps_adapter->AutoFirmDld) { 971 + if (false == ps_adapter->AutoFirmDld) { 972 972 BCM_DEBUG_PRINT(ps_adapter, DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "AutoFirmDld Disabled in CFG File..\n"); 973 973 /* If Auto f/w download is disable, register the control interface, */ 974 974 /* register the control interface after the mailbox. */ ··· 1094 1094 1095 1095 if (ntohl(Adapter->pstargetparams->m_u32PhyParameter2) & AUTO_SYNC_DISABLE) { 1096 1096 pr_info(DRV_NAME ": AutoSyncup is Disabled\n"); 1097 - Adapter->AutoSyncup = FALSE; 1097 + Adapter->AutoSyncup = false; 1098 1098 } else { 1099 1099 pr_info(DRV_NAME ": AutoSyncup is Enabled\n"); 1100 1100 Adapter->AutoSyncup = TRUE; ··· 1105 1105 Adapter->AutoLinkUp = TRUE; 1106 1106 } else { 1107 1107 pr_info(DRV_NAME ": Disabling autolink up"); 1108 - Adapter->AutoLinkUp = FALSE; 1108 + Adapter->AutoLinkUp = false; 1109 1109 } 1110 1110 /* Setting the DDR Setting.. */ 1111 1111 Adapter->DDRSetting = (ntohl(Adapter->pstargetparams->HostDrvrConfig6) >> 8)&0x0F; ··· 1117 1117 Adapter->AutoFirmDld = TRUE; 1118 1118 } else { 1119 1119 pr_info(DRV_NAME ": Disabling Auto Firmware Download\n"); 1120 - Adapter->AutoFirmDld = FALSE; 1120 + Adapter->AutoFirmDld = false; 1121 1121 } 1122 1122 uiHostDrvrCfg6 = ntohl(Adapter->pstargetparams->HostDrvrConfig6); 1123 1123 Adapter->bMipsConfig = (uiHostDrvrCfg6>>20)&0x01; ··· 1155 1155 1156 1156 if (reporting_mode == TRUE) { 1157 1157 BCM_DEBUG_PRINT(psAdapter, DBG_TYPE_INITEXIT, MP_INIT, DBG_LVL_ALL, "can't do suspen/resume as reporting mode is enable"); 1158 - psAdapter->bDoSuspend = FALSE; 1158 + psAdapter->bDoSuspend = false; 1159 1159 } 1160 1160 1161 1161 if (psAdapter->bIsAutoCorrectEnabled && (psAdapter->chip_id >= T3LPB)) { 1162 1162 /* If reporting mode is enable, switch PMU to PMC */ 1163 1163 { 1164 1164 psAdapter->ulPowerSaveMode = DEVICE_POWERSAVE_MODE_AS_PMU_CLOCK_GATING; 1165 - psAdapter->bDoSuspend = FALSE; 1165 + psAdapter->bDoSuspend = false; 1166 1166 } 1167 1167 1168 1168 /* clearing space bit[15..12] */ 1169 1169 psAdapter->pstargetparams->HostDrvrConfig6 &= ~(htonl((0xF << 12))); 1170 1170 /* placing the power save mode option */ 1171 1171 psAdapter->pstargetparams->HostDrvrConfig6 |= htonl((psAdapter->ulPowerSaveMode << 12)); 1172 - } else if (psAdapter->bIsAutoCorrectEnabled == FALSE) { 1172 + } else if (psAdapter->bIsAutoCorrectEnabled == false) { 1173 1173 /* remove the autocorrect disable bit set before dumping. */ 1174 1174 psAdapter->ulPowerSaveMode &= ~(1 << 3); 1175 1175 psAdapter->pstargetparams->HostDrvrConfig6 &= ~(htonl(1 << 15)); ··· 1302 1302 wake_up(&Adapter->LEDInfo.notify_led_event); 1303 1303 } 1304 1304 1305 - Adapter->bTriedToWakeUpFromlowPowerMode = FALSE; 1306 - Adapter->bShutStatus = FALSE; 1305 + Adapter->bTriedToWakeUpFromlowPowerMode = false; 1306 + Adapter->bShutStatus = false; 1307 1307 wake_up(&Adapter->lowpower_mode_wait_queue); 1308 1308 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, MP_SHUTDOWN, DBG_LVL_ALL, "<====\n"); 1309 1309 } ··· 1341 1341 1342 1342 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, MP_SHUTDOWN, DBG_LVL_ALL, "Device Access is going on NACK the Shut Down MODE\n"); 1343 1343 stShutdownResponse.szData[2] = SHUTDOWN_NACK_FROM_DRIVER; /* NACK- device access is going on. */ 1344 - Adapter->bPreparingForLowPowerMode = FALSE; 1344 + Adapter->bPreparingForLowPowerMode = false; 1345 1345 } else { 1346 1346 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, MP_SHUTDOWN, DBG_LVL_ALL, "Sending SHUTDOWN MODE ACK\n"); 1347 1347 stShutdownResponse.szData[2] = SHUTDOWN_ACK_FROM_DRIVER; /* ShutDown ACK */ ··· 1374 1374 if (Adapter->bDoSuspend == TRUE) 1375 1375 Bcm_kill_all_URBs((struct bcm_interface_adapter *)(Adapter->pvInterfaceAdapter)); 1376 1376 } else { 1377 - Adapter->bPreparingForLowPowerMode = FALSE; 1377 + Adapter->bPreparingForLowPowerMode = false; 1378 1378 } 1379 1379 1380 1380 if (!NVMAccess) ··· 1387 1387 Status = CopyBufferToControlPacket(Adapter, &stShutdownResponse); 1388 1388 if ((Status != STATUS_SUCCESS)) { 1389 1389 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, MP_SHUTDOWN, DBG_LVL_ALL, "fail to send the Idle mode Request\n"); 1390 - Adapter->bPreparingForLowPowerMode = FALSE; 1390 + Adapter->bPreparingForLowPowerMode = false; 1391 1391 StartInterruptUrb((struct bcm_interface_adapter *)(Adapter->pvInterfaceAdapter)); 1392 1392 } 1393 1393 } ··· 1430 1430 Adapter->LinkStatus = 0; 1431 1431 atomic_set(&Adapter->cntrlpktCnt, 0); 1432 1432 atomic_set(&Adapter->TotalPacketCount, 0); 1433 - Adapter->fw_download_done = FALSE; 1433 + Adapter->fw_download_done = false; 1434 1434 Adapter->LinkStatus = 0; 1435 - Adapter->AutoLinkUp = FALSE; 1436 - Adapter->IdleMode = FALSE; 1437 - Adapter->bShutStatus = FALSE; 1435 + Adapter->AutoLinkUp = false; 1436 + Adapter->IdleMode = false; 1437 + Adapter->bShutStatus = false; 1438 1438 } 1439 1439 1440 1440 struct bcm_classifier_rule *GetFragIPClsEntry(struct bcm_mini_adapter *Adapter, USHORT usIpIdentification, ULONG SrcIP) ··· 1521 1521 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Invalid VCID : %x\n", Adapter->PackInfo[iIndex].usVCID_Value); 1522 1522 } 1523 1523 } 1524 - atomic_set(&Adapter->uiMBupdate, FALSE); 1524 + atomic_set(&Adapter->uiMBupdate, false); 1525 1525 } 1526 1526 1527 1527 void flush_queue(struct bcm_mini_adapter *Adapter, unsigned int iQIndex) ··· 1557 1557 netif_carrier_off(Adapter->dev); 1558 1558 netif_stop_queue(Adapter->dev); 1559 1559 1560 - Adapter->IdleMode = FALSE; 1561 - Adapter->LinkUpStatus = FALSE; 1560 + Adapter->IdleMode = false; 1561 + Adapter->LinkUpStatus = false; 1562 1562 ClearTargetDSXBuffer(Adapter, 0, TRUE); 1563 1563 /* Delete All Classifier Rules */ 1564 1564 ··· 1568 1568 flush_all_queues(Adapter); 1569 1569 1570 1570 if (Adapter->TimerActive == TRUE) 1571 - Adapter->TimerActive = FALSE; 1571 + Adapter->TimerActive = false; 1572 1572 1573 1573 memset(Adapter->astFragmentedPktClassifierTable, 0, sizeof(struct bcm_fragmented_packet_info) * MAX_FRAGMENTEDIP_CLASSIFICATION_ENTRIES); 1574 1574
+11 -11
drivers/staging/bcm/PHSModule.c
··· 569 569 memset(&pstClassifierRulesTable->stOldPhsRulesList[nClsidIndex], 0, sizeof(struct bcm_phs_classifier_entry)); 570 570 } 571 571 } 572 - pstServiceFlowEntry->bUsed = FALSE; 572 + pstServiceFlowEntry->bUsed = false; 573 573 pstServiceFlowEntry->uiVcid = 0; 574 574 } 575 575 ··· 793 793 if (psPhsRule) { 794 794 if (!psPhsRule->u8PHSI) { 795 795 /* PHSI is not valid */ 796 - return FALSE; 796 + return false; 797 797 } 798 798 799 799 if (!psPhsRule->u8PHSS) { 800 800 /* PHSS Is Undefined */ 801 - return FALSE; 801 + return false; 802 802 } 803 803 804 804 /* Check if PHSF is defines for the PHS Rule */ 805 805 if (!psPhsRule->u8PHSFLength) /* If any part of PHSF is valid then Rule contains valid PHSF */ 806 - return FALSE; 806 + return false; 807 807 808 808 return TRUE; 809 809 } else 810 - return FALSE; 810 + return false; 811 811 } 812 812 813 813 UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable, ··· 888 888 struct bcm_phs_classifier_table *psaClassifiertable = NULL; 889 889 UINT uiStatus = 0; 890 890 int iSfIndex; 891 - bool bFreeEntryFound = FALSE; 891 + bool bFreeEntryFound = false; 892 892 893 893 /* Check for a free entry in SFID table */ 894 894 for (iSfIndex = 0; iSfIndex < MAX_SERVICEFLOWS; iSfIndex++) { ··· 1009 1009 B_UINT8 u8AssociatedPHSI) 1010 1010 { 1011 1011 UINT iClassifierIndex = 0; 1012 - bool bFreeEntryFound = FALSE; 1012 + bool bFreeEntryFound = false; 1013 1013 struct bcm_phs_classifier_entry *psClassifierRules = NULL; 1014 1014 UINT nStatus = PHS_SUCCESS; 1015 1015 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); ··· 1102 1102 { 1103 1103 struct bcm_phs_rule *pstAddPhsRule = NULL; 1104 1104 UINT nPhsRuleIndex = 0; 1105 - bool bPHSRuleOrphaned = FALSE; 1105 + bool bPHSRuleOrphaned = false; 1106 1106 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 1107 1107 1108 1108 psPhsRule->u8RefCnt = 0; ··· 1124 1124 } 1125 1125 1126 1126 /* Step 2.a PHS Rule Does Not Exist .Create New PHS Rule for uiClsId */ 1127 - if (FALSE == bPHSRuleOrphaned) { 1127 + if (false == bPHSRuleOrphaned) { 1128 1128 1129 1129 pstClassifierEntry->pstPhsRule = kmalloc(sizeof(struct bcm_phs_rule), GFP_KERNEL); 1130 1130 if (NULL == pstClassifierEntry->pstPhsRule) ··· 1153 1153 static bool DerefPhsRule(IN B_UINT16 uiClsId, struct bcm_phs_classifier_table *psaClassifiertable, struct bcm_phs_rule *pstPhsRule) 1154 1154 { 1155 1155 if (pstPhsRule == NULL) 1156 - return FALSE; 1156 + return false; 1157 1157 1158 1158 if (pstPhsRule->u8RefCnt) 1159 1159 pstPhsRule->u8RefCnt--; ··· 1166 1166 */ 1167 1167 return TRUE; 1168 1168 } else 1169 - return FALSE; 1169 + return false; 1170 1170 } 1171 1171 1172 1172 void DumpPhsRules(struct bcm_phs_extension *pDeviceExtension)
+42 -42
drivers/staging/bcm/Qos.c
··· 43 43 } 44 44 } 45 45 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Src Ip Address Not Matched"); 46 - return FALSE; 46 + return false; 47 47 } 48 48 49 49 ··· 77 77 } 78 78 } 79 79 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Destination Ip Address Not Matched"); 80 - return FALSE; 80 + return false; 81 81 } 82 82 83 83 ··· 103 103 return TRUE; 104 104 } 105 105 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Type Of Service Not Matched"); 106 - return FALSE; 106 + return false; 107 107 } 108 108 109 109 ··· 132 132 } 133 133 } 134 134 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol Not Matched"); 135 - return FALSE; 135 + return false; 136 136 } 137 137 138 138 ··· 164 164 } 165 165 } 166 166 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Src Port: %x Not Matched ", ushSrcPort); 167 - return FALSE; 167 + return false; 168 168 } 169 169 170 170 ··· 197 197 } 198 198 } 199 199 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Dest Port: %x Not Matched", ushDestPort); 200 - return FALSE; 200 + return false; 201 201 } 202 202 /** 203 203 @ingroup tx_functions ··· 209 209 struct bcm_classifier_rule *pstClassifierRule) 210 210 { 211 211 struct bcm_transport_header *xprt_hdr = NULL; 212 - bool bClassificationSucceed = FALSE; 212 + bool bClassificationSucceed = false; 213 213 214 214 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "========>"); 215 215 ··· 223 223 //Checking classifier validity 224 224 if (!pstClassifierRule->bUsed || pstClassifierRule->ucDirection == DOWNLINK_DIR) 225 225 { 226 - bClassificationSucceed = FALSE; 226 + bClassificationSucceed = false; 227 227 break; 228 228 } 229 229 ··· 233 233 234 234 //**************Checking IP header parameter**************************// 235 235 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Trying to match Source IP Address"); 236 - if (FALSE == (bClassificationSucceed = 236 + if (false == (bClassificationSucceed = 237 237 MatchSrcIpAddress(pstClassifierRule, iphd->saddr))) 238 238 break; 239 239 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Source IP Address Matched"); 240 240 241 - if (FALSE == (bClassificationSucceed = 241 + if (false == (bClassificationSucceed = 242 242 MatchDestIpAddress(pstClassifierRule, iphd->daddr))) 243 243 break; 244 244 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Destination IP Address Matched"); 245 245 246 - if (FALSE == (bClassificationSucceed = 246 + if (false == (bClassificationSucceed = 247 247 MatchTos(pstClassifierRule, iphd->tos))) 248 248 { 249 249 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "TOS Match failed\n"); ··· 251 251 } 252 252 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "TOS Matched"); 253 253 254 - if (FALSE == (bClassificationSucceed = 254 + if (false == (bClassificationSucceed = 255 255 MatchProtocol(pstClassifierRule, iphd->protocol))) 256 256 break; 257 257 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol Matched"); ··· 263 263 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Source Port %04x", 264 264 (iphd->protocol == UDP) ? xprt_hdr->uhdr.source : xprt_hdr->thdr.source); 265 265 266 - if (FALSE == (bClassificationSucceed = 266 + if (false == (bClassificationSucceed = 267 267 MatchSrcPort(pstClassifierRule, 268 268 ntohs((iphd->protocol == UDP) ? 269 269 xprt_hdr->uhdr.source : xprt_hdr->thdr.source)))) ··· 273 273 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Destination Port %04x", 274 274 (iphd->protocol == UDP) ? xprt_hdr->uhdr.dest : 275 275 xprt_hdr->thdr.dest); 276 - if (FALSE == (bClassificationSucceed = 276 + if (false == (bClassificationSucceed = 277 277 MatchDestPort(pstClassifierRule, 278 278 ntohs((iphd->protocol == UDP) ? 279 279 xprt_hdr->uhdr.dest : xprt_hdr->thdr.dest)))) ··· 286 286 iMatchedSFQueueIndex = SearchSfid(Adapter, pstClassifierRule->ulSFID); 287 287 if (iMatchedSFQueueIndex >= NO_OF_QUEUES) 288 288 { 289 - bClassificationSucceed = FALSE; 289 + bClassificationSucceed = false; 290 290 } 291 291 else 292 292 { 293 - if (FALSE == Adapter->PackInfo[iMatchedSFQueueIndex].bActive) 293 + if (false == Adapter->PackInfo[iMatchedSFQueueIndex].bActive) 294 294 { 295 - bClassificationSucceed = FALSE; 295 + bClassificationSucceed = false; 296 296 } 297 297 } 298 298 } ··· 451 451 struct iphdr *pIpHeader = NULL; 452 452 INT uiSfIndex = 0; 453 453 USHORT usIndex = Adapter->usBestEffortQueueIndex; 454 - bool bFragmentedPkt = FALSE, bClassificationSucceed = FALSE; 454 + bool bFragmentedPkt = false, bClassificationSucceed = false; 455 455 USHORT usCurrFragment = 0; 456 456 457 457 struct bcm_tcp_header *pTcpHeader; ··· 529 529 //to classify the packet until match found 530 530 do 531 531 { 532 - if (FALSE == Adapter->astClassifierTable[uiLoopIndex].bUsed) 532 + if (false == Adapter->astClassifierTable[uiLoopIndex].bUsed) 533 533 { 534 - bClassificationSucceed = FALSE; 534 + bClassificationSucceed = false; 535 535 break; 536 536 } 537 537 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Adapter->PackInfo[%d].bvalid=True\n", uiLoopIndex); 538 538 539 539 if (0 == Adapter->astClassifierTable[uiLoopIndex].ucDirection) 540 540 { 541 - bClassificationSucceed = FALSE;//cannot be processed for classification. 541 + bClassificationSucceed = false;//cannot be processed for classification. 542 542 break; // it is a down link connection 543 543 } 544 544 ··· 556 556 if (eEthUnsupportedFrame == stEthCsPktInfo.eNwpktEthFrameType) 557 557 { 558 558 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, " ClassifyPacket : Packet Not a Valid Supported Ethernet Frame\n"); 559 - bClassificationSucceed = FALSE; 559 + bClassificationSucceed = false; 560 560 break; 561 561 } 562 562 ··· 577 577 if (eEthOtherFrame != stEthCsPktInfo.eNwpktEthFrameType) 578 578 { 579 579 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, " ClassifyPacket : Packet Not a 802.3 Ethernet Frame... hence not allowed over non-ETH CS SF\n"); 580 - bClassificationSucceed = FALSE; 580 + bClassificationSucceed = false; 581 581 break; 582 582 } 583 583 } ··· 590 590 if (stEthCsPktInfo.eNwpktIPFrameType == eNonIPPacket) 591 591 { 592 592 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, " ClassifyPacket : Packet is Not an IP Packet\n"); 593 - bClassificationSucceed = FALSE; 593 + bClassificationSucceed = false; 594 594 break; 595 595 } 596 596 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Dump IP Header :\n"); ··· 636 636 stFragPktInfo.ulSrcIpAddress = pIpHeader->saddr; 637 637 stFragPktInfo.usIpIdentification = pIpHeader->id; 638 638 stFragPktInfo.pstMatchedClassifierEntry = pstClassifierRule; 639 - stFragPktInfo.bOutOfOrderFragment = FALSE; 639 + stFragPktInfo.bOutOfOrderFragment = false; 640 640 AddFragIPClsEntry(Adapter, &stFragPktInfo); 641 641 } 642 642 ··· 661 661 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "SRC MAC[%x] = %x ClassifierRuleSrcMAC = %x Mask : %x\n", i, Mac[i], pstClassifierRule->au8EThCSSrcMAC[i], pstClassifierRule->au8EThCSSrcMACMask[i]); 662 662 if ((pstClassifierRule->au8EThCSSrcMAC[i] & pstClassifierRule->au8EThCSSrcMACMask[i]) != 663 663 (Mac[i] & pstClassifierRule->au8EThCSSrcMACMask[i])) 664 - return FALSE; 664 + return false; 665 665 } 666 666 return TRUE; 667 667 } ··· 678 678 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "SRC MAC[%x] = %x ClassifierRuleSrcMAC = %x Mask : %x\n", i, Mac[i], pstClassifierRule->au8EThCSDestMAC[i], pstClassifierRule->au8EThCSDestMACMask[i]); 679 679 if ((pstClassifierRule->au8EThCSDestMAC[i] & pstClassifierRule->au8EThCSDestMACMask[i]) != 680 680 (Mac[i] & pstClassifierRule->au8EThCSDestMACMask[i])) 681 - return FALSE; 681 + return false; 682 682 } 683 683 return TRUE; 684 684 } ··· 698 698 if (memcmp(&pstEthCsPktInfo->usEtherType, &pstClassifierRule->au8EthCSEtherType[1], 2) == 0) 699 699 return TRUE; 700 700 else 701 - return FALSE; 701 + return false; 702 702 } 703 703 704 704 if (pstClassifierRule->au8EthCSEtherType[0] == 2) 705 705 { 706 706 if (eEth802LLCFrame != pstEthCsPktInfo->eNwpktEthFrameType) 707 - return FALSE; 707 + return false; 708 708 709 709 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s EthCS DSAP:%x EtherType[2]:%x\n", __FUNCTION__, pstEthCsPktInfo->ucDSAP, pstClassifierRule->au8EthCSEtherType[2]); 710 710 if (pstEthCsPktInfo->ucDSAP == pstClassifierRule->au8EthCSEtherType[2]) 711 711 return TRUE; 712 712 else 713 - return FALSE; 713 + return false; 714 714 715 715 } 716 716 717 - return FALSE; 717 + return false; 718 718 719 719 } 720 720 721 721 static bool EthCSMatchVLANRules(struct bcm_classifier_rule *pstClassifierRule, struct sk_buff* skb, struct bcm_eth_packet_info *pstEthCsPktInfo) 722 722 { 723 - bool bClassificationSucceed = FALSE; 723 + bool bClassificationSucceed = false; 724 724 USHORT usVLANID; 725 725 B_UINT8 uPriority = 0; 726 726 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); ··· 731 731 if (pstClassifierRule->usValidityBitMap & (1<<PKT_CLASSIFICATION_USER_PRIORITY_VALID)) 732 732 { 733 733 if (pstEthCsPktInfo->eNwpktEthFrameType != eEth802QVLANFrame) 734 - return FALSE; 734 + return false; 735 735 736 736 uPriority = (ntohs(*(USHORT *)(skb->data + sizeof(struct bcm_eth_header))) & 0xF000) >> 13; 737 737 ··· 739 739 bClassificationSucceed = TRUE; 740 740 741 741 if (!bClassificationSucceed) 742 - return FALSE; 742 + return false; 743 743 } 744 744 745 745 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "ETH CS 802.1 D User Priority Rule Matched\n"); 746 746 747 - bClassificationSucceed = FALSE; 747 + bClassificationSucceed = false; 748 748 749 749 if (pstClassifierRule->usValidityBitMap & (1<<PKT_CLASSIFICATION_VLANID_VALID)) 750 750 { 751 751 if (pstEthCsPktInfo->eNwpktEthFrameType != eEth802QVLANFrame) 752 - return FALSE; 752 + return false; 753 753 754 754 usVLANID = ntohs(*(USHORT *)(skb->data + sizeof(struct bcm_eth_header))) & 0xFFF; 755 755 ··· 759 759 bClassificationSucceed = TRUE; 760 760 761 761 if (!bClassificationSucceed) 762 - return FALSE; 762 + return false; 763 763 } 764 764 765 765 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "ETH CS 802.1 Q VLAN ID Rule Matched\n"); ··· 773 773 struct bcm_classifier_rule *pstClassifierRule, 774 774 B_UINT8 EthCSCupport) 775 775 { 776 - bool bClassificationSucceed = FALSE; 776 + bool bClassificationSucceed = false; 777 777 bClassificationSucceed = EthCSMatchSrcMACAddress(pstClassifierRule, ((struct bcm_eth_header *)(skb->data))->au8SourceAddress); 778 778 if (!bClassificationSucceed) 779 - return FALSE; 779 + return false; 780 780 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "ETH CS SrcMAC Matched\n"); 781 781 782 782 bClassificationSucceed = EthCSMatchDestMACAddress(pstClassifierRule, ((struct bcm_eth_header *)(skb->data))->au8DestinationAddress); 783 783 if (!bClassificationSucceed) 784 - return FALSE; 784 + return false; 785 785 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "ETH CS DestMAC Matched\n"); 786 786 787 787 //classify on ETHType/802.2SAP TLV 788 788 bClassificationSucceed = EthCSMatchEThTypeSAP(pstClassifierRule, skb, pstEthCsPktInfo); 789 789 if (!bClassificationSucceed) 790 - return FALSE; 790 + return false; 791 791 792 792 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "ETH CS EthType/802.2SAP Matched\n"); 793 793 ··· 795 795 796 796 bClassificationSucceed = EthCSMatchVLANRules(pstClassifierRule, skb, pstEthCsPktInfo); 797 797 if (!bClassificationSucceed) 798 - return FALSE; 798 + return false; 799 799 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "ETH CS 802.1 VLAN Rules Matched\n"); 800 800 801 801 return bClassificationSucceed;
+2 -2
drivers/staging/bcm/Transmit.c
··· 84 84 int SetupNextSend(struct bcm_mini_adapter *Adapter, struct sk_buff *Packet, USHORT Vcid) 85 85 { 86 86 int status = 0; 87 - bool bHeaderSupressionEnabled = FALSE; 87 + bool bHeaderSupressionEnabled = false; 88 88 B_UINT16 uiClassifierRuleID; 89 89 u16 QueueIndex = skb_get_queue_mapping(Packet); 90 90 struct bcm_leader Leader = {0}; ··· 204 204 /* Check end point for halt/stall. */ 205 205 if (Adapter->bEndPointHalted == TRUE) { 206 206 Bcm_clear_halt_of_endpoints(Adapter); 207 - Adapter->bEndPointHalted = FALSE; 207 + Adapter->bEndPointHalted = false; 208 208 StartInterruptUrb((struct bcm_interface_adapter *)(Adapter->pvInterfaceAdapter)); 209 209 } 210 210
+1 -1
drivers/staging/bcm/Typedefs.h
··· 6 6 #define STATUS_SUCCESS 0 7 7 #define STATUS_FAILURE -1 8 8 9 - #define FALSE 0 9 + 10 10 #define TRUE 1 11 11 12 12
+15 -15
drivers/staging/bcm/led_control.c
··· 18 18 INT Status; 19 19 Status = (Adapter->gpioBitMap & gpios) ^ gpios; 20 20 if (Status) 21 - return FALSE; 21 + return false; 22 22 else 23 23 return TRUE; 24 24 } ··· 27 27 ULONG timeout, INT num_of_time, enum bcm_led_events currdriverstate) 28 28 { 29 29 int Status = STATUS_SUCCESS; 30 - bool bInfinite = FALSE; 30 + bool bInfinite = false; 31 31 32 32 /* Check if num_of_time is -ve. If yes, blink led in infinite loop */ 33 33 if (num_of_time < 0) { ··· 67 67 currdriverstate != Adapter->DriverState || 68 68 kthread_should_stop(), 69 69 msecs_to_jiffies(timeout)); 70 - if (bInfinite == FALSE) 70 + if (bInfinite == false) 71 71 num_of_time--; 72 72 } 73 73 return Status; ··· 120 120 num_of_time_tx = ScaleRateofTransfer((ULONG)rate_of_transfer_tx); 121 121 num_of_time_rx = ScaleRateofTransfer((ULONG)rate_of_transfer_rx); 122 122 123 - while ((Adapter->device_removed == FALSE)) { 123 + while ((Adapter->device_removed == false)) { 124 124 timeout = 50; 125 125 /* 126 126 * Blink Tx and Rx LED when both Tx and Rx is ··· 499 499 /* Read the GPIO numbers from EEPROM */ 500 500 Status = ReadLEDInformationFromEEPROM(Adapter, GPIO_Array); 501 501 if (Status == STATUS_IMAGE_CHECKSUM_MISMATCH) { 502 - *bEnableThread = FALSE; 502 + *bEnableThread = false; 503 503 return STATUS_SUCCESS; 504 504 } else if (Status) { 505 - *bEnableThread = FALSE; 505 + *bEnableThread = false; 506 506 return Status; 507 507 } 508 508 ··· 561 561 uiNum_of_LED_Type++; 562 562 } 563 563 if (uiNum_of_LED_Type >= NUM_OF_LEDS) 564 - *bEnableThread = FALSE; 564 + *bEnableThread = false; 565 565 566 566 return Status; 567 567 } ··· 602 602 BCM_DEBUG_PRINT (Adapter, DBG_TYPE_OTHERS, LED_DUMP_INFO, 603 603 DBG_LVL_ALL, "LED Thread: WRM Failed\n"); 604 604 605 - Adapter->LEDInfo.bIdle_led_off = FALSE; 605 + Adapter->LEDInfo.bIdle_led_off = false; 606 606 } 607 607 608 608 static INT BcmGetGPIOPinInfo(struct bcm_mini_adapter *Adapter, UCHAR *GPIO_num_tx, ··· 660 660 UCHAR dummyIndex = 0; 661 661 662 662 /* currdriverstate = Adapter->DriverState; */ 663 - Adapter->LEDInfo.bIdleMode_tx_from_host = FALSE; 663 + Adapter->LEDInfo.bIdleMode_tx_from_host = false; 664 664 665 665 /* 666 666 * Wait till event is triggered ··· 698 698 if (GPIO_num != DISABLE_GPIO_NUM) 699 699 TURN_OFF_LED(1 << GPIO_num, uiLedIndex); 700 700 701 - if (Adapter->LEDInfo.bLedInitDone == FALSE) { 701 + if (Adapter->LEDInfo.bLedInitDone == false) { 702 702 LedGpioInit(Adapter); 703 703 Adapter->LEDInfo.bLedInitDone = TRUE; 704 704 } ··· 757 757 UCHAR uiLEDTx = 0; 758 758 UCHAR uiLEDRx = 0; 759 759 currdriverstate = NORMAL_OPERATION; 760 - Adapter->LEDInfo.bIdle_led_off = FALSE; 760 + Adapter->LEDInfo.bIdle_led_off = false; 761 761 762 762 BcmGetGPIOPinInfo(Adapter, &GPIO_num_tx, 763 763 &GPIO_num_rx, &uiLEDTx, &uiLEDRx, ··· 803 803 804 804 } 805 805 /* Turn off LED And WAKE-UP for Sendinf IDLE mode ACK */ 806 - Adapter->LEDInfo.bLedInitDone = FALSE; 806 + Adapter->LEDInfo.bLedInitDone = false; 807 807 Adapter->LEDInfo.bIdle_led_off = TRUE; 808 808 wake_up(&Adapter->LEDInfo.idleModeSyncEvent); 809 809 GPIO_num = DISABLE_GPIO_NUM; ··· 830 830 currdriverstate = LED_THREAD_INACTIVE; 831 831 Adapter->LEDInfo.led_thread_running = 832 832 BCM_LED_THREAD_RUNNING_INACTIVELY; 833 - Adapter->LEDInfo.bLedInitDone = FALSE; 833 + Adapter->LEDInfo.bLedInitDone = false; 834 834 /* disable ALL LED */ 835 835 for (uiIndex = 0; uiIndex < NUM_OF_LEDS; uiIndex++) { 836 836 if (Adapter->LEDInfo.LEDState[uiIndex].GPIO_Num ··· 841 841 case LED_THREAD_ACTIVE: 842 842 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, LED_DUMP_INFO, 843 843 DBG_LVL_ALL, "Activating LED thread again..."); 844 - if (Adapter->LinkUpStatus == FALSE) 844 + if (Adapter->LinkUpStatus == false) 845 845 Adapter->DriverState = NO_NETWORK_ENTRY; 846 846 else 847 847 Adapter->DriverState = NORMAL_OPERATION; ··· 899 899 init_waitqueue_head(&Adapter->LEDInfo.idleModeSyncEvent); 900 900 Adapter->LEDInfo.led_thread_running = 901 901 BCM_LED_THREAD_RUNNING_ACTIVELY; 902 - Adapter->LEDInfo.bIdle_led_off = FALSE; 902 + Adapter->LEDInfo.bIdle_led_off = false; 903 903 Adapter->LEDInfo.led_cntrl_threadid = 904 904 kthread_run((int (*)(void *)) LEDControlThread, 905 905 Adapter, "led_control_thread");
+67 -67
drivers/staging/bcm/nvm.c
··· 1084 1084 * for DSD calibration, allow it without checking of sector permission 1085 1085 */ 1086 1086 1087 - if (IsFlash2x(Adapter) && (Adapter->bAllDSDWriteAllow == FALSE)) { 1087 + if (IsFlash2x(Adapter) && (Adapter->bAllDSDWriteAllow == false)) { 1088 1088 index = 0; 1089 1089 uiTemp = uiNumSectTobeRead; 1090 1090 while (uiTemp) { 1091 - if (IsOffsetWritable(Adapter, uiOffsetFromSectStart + index * Adapter->uiSectorSize) == FALSE) { 1091 + if (IsOffsetWritable(Adapter, uiOffsetFromSectStart + index * Adapter->uiSectorSize) == false) { 1092 1092 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Sector Starting at offset <0X%X> is not writable", 1093 1093 (uiOffsetFromSectStart + index * Adapter->uiSectorSize)); 1094 1094 Status = SECTOR_IS_NOT_WRITABLE; ··· 1265 1265 uiNumSectTobeRead++; 1266 1266 } 1267 1267 1268 - if (IsFlash2x(Adapter) && (Adapter->bAllDSDWriteAllow == FALSE)) { 1268 + if (IsFlash2x(Adapter) && (Adapter->bAllDSDWriteAllow == false)) { 1269 1269 index = 0; 1270 1270 uiTemp = uiNumSectTobeRead; 1271 1271 while (uiTemp) { 1272 - if (IsOffsetWritable(Adapter, uiOffsetFromSectStart + index * Adapter->uiSectorSize) == FALSE) { 1272 + if (IsOffsetWritable(Adapter, uiOffsetFromSectStart + index * Adapter->uiSectorSize) == false) { 1273 1273 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Sector Starting at offset <0X%x> is not writable", 1274 1274 (uiOffsetFromSectStart + index * Adapter->uiSectorSize)); 1275 1275 Status = SECTOR_IS_NOT_WRITABLE; ··· 1525 1525 1526 1526 if (memcmp(&pBuffer[uiIndex], &auiData[0], MAX_RW_SIZE)) { 1527 1527 /* re-write */ 1528 - BeceemEEPROMBulkWrite(Adapter, (PUCHAR)(pBuffer + uiIndex), uiOffset, MAX_RW_SIZE, FALSE); 1528 + BeceemEEPROMBulkWrite(Adapter, (PUCHAR)(pBuffer + uiIndex), uiOffset, MAX_RW_SIZE, false); 1529 1529 mdelay(3); 1530 1530 BeceemEEPROMBulkRead(Adapter, &auiData[0], uiOffset, MAX_RW_SIZE); 1531 1531 ··· 1539 1539 BeceemEEPROMBulkRead(Adapter, &uiData, uiOffset, 4); 1540 1540 if (uiData != pBuffer[uiIndex]) { 1541 1541 /* re-write */ 1542 - BeceemEEPROMBulkWrite(Adapter, (PUCHAR)(pBuffer + uiIndex), uiOffset, 4, FALSE); 1542 + BeceemEEPROMBulkWrite(Adapter, (PUCHAR)(pBuffer + uiIndex), uiOffset, 4, false); 1543 1543 mdelay(3); 1544 1544 BeceemEEPROMBulkRead(Adapter, &uiData, uiOffset, 4); 1545 1545 if (uiData != pBuffer[uiIndex]) ··· 1819 1819 #endif 1820 1820 1821 1821 if (Adapter->eNVMType == NVM_FLASH) { 1822 - if (Adapter->bFlashRawRead == FALSE) { 1822 + if (Adapter->bFlashRawRead == false) { 1823 1823 if (IsSectionExistInVendorInfo(Adapter, Adapter->eActiveDSD)) 1824 1824 return vendorextnReadSection(Adapter, (PUCHAR)pBuffer, Adapter->eActiveDSD, uiOffset, uiNumBytes); 1825 1825 ··· 2425 2425 B_UINT32 i = 0; 2426 2426 unsigned int uiSizeSection = 0; 2427 2427 2428 - Adapter->uiVendorExtnFlag = FALSE; 2428 + Adapter->uiVendorExtnFlag = false; 2429 2429 2430 2430 for (i = 0; i < TOTAL_SECTIONS; i++) 2431 2431 Adapter->psFlash2xVendorInfo->VendorSection[i].OffsetFromZeroForSectionStart = UNINIT_PTR_IN_CS; ··· 2685 2685 switch (eFlashSectionVal) { 2686 2686 case ISO_IMAGE1: 2687 2687 if ((Adapter->psFlash2xCSInfo->OffsetISOImage1Part1Start != UNINIT_PTR_IN_CS) && 2688 - (IsNonCDLessDevice(Adapter) == FALSE)) 2688 + (IsNonCDLessDevice(Adapter) == false)) 2689 2689 SectStartOffset = (Adapter->psFlash2xCSInfo->OffsetISOImage1Part1Start); 2690 2690 break; 2691 2691 case ISO_IMAGE2: 2692 2692 if ((Adapter->psFlash2xCSInfo->OffsetISOImage2Part1Start != UNINIT_PTR_IN_CS) && 2693 - (IsNonCDLessDevice(Adapter) == FALSE)) 2693 + (IsNonCDLessDevice(Adapter) == false)) 2694 2694 SectStartOffset = (Adapter->psFlash2xCSInfo->OffsetISOImage2Part1Start); 2695 2695 break; 2696 2696 case DSD0: ··· 2770 2770 switch (eFlash2xSectionVal) { 2771 2771 case ISO_IMAGE1: 2772 2772 if ((Adapter->psFlash2xCSInfo->OffsetISOImage1Part1End != UNINIT_PTR_IN_CS) && 2773 - (IsNonCDLessDevice(Adapter) == FALSE)) 2773 + (IsNonCDLessDevice(Adapter) == false)) 2774 2774 SectEndOffset = (Adapter->psFlash2xCSInfo->OffsetISOImage1Part1End); 2775 2775 break; 2776 2776 case ISO_IMAGE2: 2777 2777 if ((Adapter->psFlash2xCSInfo->OffsetISOImage2Part1End != UNINIT_PTR_IN_CS) && 2778 - (IsNonCDLessDevice(Adapter) == FALSE)) 2778 + (IsNonCDLessDevice(Adapter) == false)) 2779 2779 SectEndOffset = (Adapter->psFlash2xCSInfo->OffsetISOImage2Part1End); 2780 2780 break; 2781 2781 case DSD0: ··· 3037 3037 * 3038 3038 * Return Value:- 3039 3039 * Success:-TRUE , offset is writable 3040 - * Failure:-FALSE, offset is RO 3040 + * Failure:-false, offset is RO 3041 3041 * 3042 3042 */ 3043 3043 ··· 3062 3062 if (permissionBits == SECTOR_READWRITE_PERMISSION) 3063 3063 return TRUE; 3064 3064 else 3065 - return FALSE; 3065 + return false; 3066 3066 } 3067 3067 3068 3068 static int BcmDumpFlash2xSectionBitMap(struct bcm_flash2x_bitmap *psFlash2xBitMap) ··· 3105 3105 struct bcm_flash2x_cs_info *psFlash2xCSInfo = Adapter->psFlash2xCSInfo; 3106 3106 enum bcm_flash2x_section_val uiHighestPriDSD = 0; 3107 3107 enum bcm_flash2x_section_val uiHighestPriISO = 0; 3108 - bool SetActiveDSDDone = FALSE; 3109 - bool SetActiveISODone = FALSE; 3108 + bool SetActiveDSDDone = false; 3109 + bool SetActiveISODone = false; 3110 3110 3111 3111 /* For 1.x map all the section except DSD0 will be shown as not present 3112 3112 * This part will be used by calibration tool to detect the number of DSD present in Flash. 3113 3113 */ 3114 - if (IsFlash2x(Adapter) == FALSE) { 3114 + if (IsFlash2x(Adapter) == false) { 3115 3115 psFlash2xBitMap->ISO_IMAGE2 = 0; 3116 3116 psFlash2xBitMap->ISO_IMAGE1 = 0; 3117 3117 psFlash2xBitMap->DSD0 = FLASH2X_SECTION_VALID | FLASH2X_SECTION_ACT | FLASH2X_SECTION_PRESENT; /* 0xF; 0000(Reseved)1(Active)0(RW)1(valid)1(present) */ ··· 3143 3143 psFlash2xBitMap->ISO_IMAGE2 |= FLASH2X_SECTION_VALID; 3144 3144 3145 3145 /* Calculation for extrating the Access permission */ 3146 - if (IsSectionWritable(Adapter, ISO_IMAGE2) == FALSE) 3146 + if (IsSectionWritable(Adapter, ISO_IMAGE2) == false) 3147 3147 psFlash2xBitMap->ISO_IMAGE2 |= FLASH2X_SECTION_RO; 3148 3148 3149 - if (SetActiveISODone == FALSE && uiHighestPriISO == ISO_IMAGE2) { 3149 + if (SetActiveISODone == false && uiHighestPriISO == ISO_IMAGE2) { 3150 3150 psFlash2xBitMap->ISO_IMAGE2 |= FLASH2X_SECTION_ACT; 3151 3151 SetActiveISODone = TRUE; 3152 3152 } ··· 3163 3163 psFlash2xBitMap->ISO_IMAGE1 |= FLASH2X_SECTION_VALID; 3164 3164 3165 3165 /* Calculation for extrating the Access permission */ 3166 - if (IsSectionWritable(Adapter, ISO_IMAGE1) == FALSE) 3166 + if (IsSectionWritable(Adapter, ISO_IMAGE1) == false) 3167 3167 psFlash2xBitMap->ISO_IMAGE1 |= FLASH2X_SECTION_RO; 3168 3168 3169 - if (SetActiveISODone == FALSE && uiHighestPriISO == ISO_IMAGE1) { 3169 + if (SetActiveISODone == false && uiHighestPriISO == ISO_IMAGE1) { 3170 3170 psFlash2xBitMap->ISO_IMAGE1 |= FLASH2X_SECTION_ACT; 3171 3171 SetActiveISODone = TRUE; 3172 3172 } ··· 3183 3183 psFlash2xBitMap->DSD2 |= FLASH2X_SECTION_VALID; 3184 3184 3185 3185 /* Calculation for extrating the Access permission */ 3186 - if (IsSectionWritable(Adapter, DSD2) == FALSE) { 3186 + if (IsSectionWritable(Adapter, DSD2) == false) { 3187 3187 psFlash2xBitMap->DSD2 |= FLASH2X_SECTION_RO; 3188 3188 } else { 3189 3189 /* Means section is writable */ 3190 - if ((SetActiveDSDDone == FALSE) && (uiHighestPriDSD == DSD2)) { 3190 + if ((SetActiveDSDDone == false) && (uiHighestPriDSD == DSD2)) { 3191 3191 psFlash2xBitMap->DSD2 |= FLASH2X_SECTION_ACT; 3192 3192 SetActiveDSDDone = TRUE; 3193 3193 } ··· 3205 3205 psFlash2xBitMap->DSD1 |= FLASH2X_SECTION_VALID; 3206 3206 3207 3207 /* Calculation for extrating the Access permission */ 3208 - if (IsSectionWritable(Adapter, DSD1) == FALSE) { 3208 + if (IsSectionWritable(Adapter, DSD1) == false) { 3209 3209 psFlash2xBitMap->DSD1 |= FLASH2X_SECTION_RO; 3210 3210 } else { 3211 3211 /* Means section is writable */ 3212 - if ((SetActiveDSDDone == FALSE) && (uiHighestPriDSD == DSD1)) { 3212 + if ((SetActiveDSDDone == false) && (uiHighestPriDSD == DSD1)) { 3213 3213 psFlash2xBitMap->DSD1 |= FLASH2X_SECTION_ACT; 3214 3214 SetActiveDSDDone = TRUE; 3215 3215 } ··· 3227 3227 psFlash2xBitMap->DSD0 |= FLASH2X_SECTION_VALID; 3228 3228 3229 3229 /* Setting Access permission */ 3230 - if (IsSectionWritable(Adapter, DSD0) == FALSE) { 3230 + if (IsSectionWritable(Adapter, DSD0) == false) { 3231 3231 psFlash2xBitMap->DSD0 |= FLASH2X_SECTION_RO; 3232 3232 } else { 3233 3233 /* Means section is writable */ 3234 - if ((SetActiveDSDDone == FALSE) && (uiHighestPriDSD == DSD0)) { 3234 + if ((SetActiveDSDDone == false) && (uiHighestPriDSD == DSD0)) { 3235 3235 psFlash2xBitMap->DSD0 |= FLASH2X_SECTION_ACT; 3236 3236 SetActiveDSDDone = TRUE; 3237 3237 } ··· 3249 3249 psFlash2xBitMap->VSA0 |= FLASH2X_SECTION_VALID; 3250 3250 3251 3251 /* Calculation for extrating the Access permission */ 3252 - if (IsSectionWritable(Adapter, VSA0) == FALSE) 3252 + if (IsSectionWritable(Adapter, VSA0) == false) 3253 3253 psFlash2xBitMap->VSA0 |= FLASH2X_SECTION_RO; 3254 3254 3255 3255 /* By Default section is Active */ ··· 3267 3267 psFlash2xBitMap->VSA1 |= FLASH2X_SECTION_VALID; 3268 3268 3269 3269 /* Checking For Access permission */ 3270 - if (IsSectionWritable(Adapter, VSA1) == FALSE) 3270 + if (IsSectionWritable(Adapter, VSA1) == false) 3271 3271 psFlash2xBitMap->VSA1 |= FLASH2X_SECTION_RO; 3272 3272 3273 3273 /* By Default section is Active */ ··· 3285 3285 psFlash2xBitMap->VSA2 |= FLASH2X_SECTION_VALID; 3286 3286 3287 3287 /* Checking For Access permission */ 3288 - if (IsSectionWritable(Adapter, VSA2) == FALSE) 3288 + if (IsSectionWritable(Adapter, VSA2) == false) 3289 3289 psFlash2xBitMap->VSA2 |= FLASH2X_SECTION_RO; 3290 3290 3291 3291 /* By Default section is Active */ ··· 3303 3303 psFlash2xBitMap->SCSI |= FLASH2X_SECTION_VALID; 3304 3304 3305 3305 /* Checking For Access permission */ 3306 - if (IsSectionWritable(Adapter, SCSI) == FALSE) 3306 + if (IsSectionWritable(Adapter, SCSI) == false) 3307 3307 psFlash2xBitMap->SCSI |= FLASH2X_SECTION_RO; 3308 3308 3309 3309 /* By Default section is Active */ ··· 3321 3321 psFlash2xBitMap->CONTROL_SECTION |= FLASH2X_SECTION_VALID; 3322 3322 3323 3323 /* Checking For Access permission */ 3324 - if (IsSectionWritable(Adapter, CONTROL_SECTION) == FALSE) 3324 + if (IsSectionWritable(Adapter, CONTROL_SECTION) == false) 3325 3325 psFlash2xBitMap->CONTROL_SECTION |= FLASH2X_SECTION_RO; 3326 3326 3327 3327 /* By Default section is Active */ ··· 3517 3517 break; 3518 3518 } 3519 3519 3520 - Adapter->bHeaderChangeAllowed = FALSE; 3520 + Adapter->bHeaderChangeAllowed = false; 3521 3521 return Status; 3522 3522 } 3523 3523 ··· 3536 3536 enum bcm_flash2x_section_val eISOReadPart = 0, eISOWritePart = 0; 3537 3537 unsigned int uiReadOffsetWithinPart = 0, uiWriteOffsetWithinPart = 0; 3538 3538 unsigned int uiTotalDataToCopy = 0; 3539 - bool IsThisHeaderSector = FALSE; 3539 + bool IsThisHeaderSector = false; 3540 3540 unsigned int sigOffset = 0; 3541 3541 unsigned int ISOLength = 0; 3542 3542 unsigned int Status = STATUS_SUCCESS; ··· 3669 3669 break; 3670 3670 } 3671 3671 3672 - Adapter->bHeaderChangeAllowed = FALSE; 3672 + Adapter->bHeaderChangeAllowed = false; 3673 3673 if (IsThisHeaderSector == TRUE) { 3674 3674 WriteToFlashWithoutSectorErase(Adapter, 3675 3675 SigBuff, 3676 3676 eISOWritePart, 3677 3677 sigOffset, 3678 3678 MAX_RW_SIZE); 3679 - IsThisHeaderSector = FALSE; 3679 + IsThisHeaderSector = false; 3680 3680 } 3681 3681 /* subtracting the written Data */ 3682 3682 uiTotalDataToCopy = uiTotalDataToCopy - Adapter->uiSectorSize; ··· 3782 3782 break; 3783 3783 } 3784 3784 3785 - Adapter->bHeaderChangeAllowed = FALSE; 3785 + Adapter->bHeaderChangeAllowed = false; 3786 3786 if (IsThisHeaderSector == TRUE) { 3787 3787 WriteToFlashWithoutSectorErase(Adapter, 3788 3788 SigBuff, ··· 3790 3790 sigOffset, 3791 3791 MAX_RW_SIZE); 3792 3792 3793 - IsThisHeaderSector = FALSE; 3793 + IsThisHeaderSector = false; 3794 3794 } 3795 3795 3796 3796 /* subtracting the written Data */ ··· 3848 3848 unsigned int uiOffset = 0; 3849 3849 3850 3850 /* struct bcm_dsd_header dsdHeader = {0}; */ 3851 - if (Adapter->bSigCorrupted == FALSE) { 3851 + if (Adapter->bSigCorrupted == false) { 3852 3852 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "Signature is not corrupted by driver, hence not restoring\n"); 3853 3853 return STATUS_SUCCESS; 3854 3854 } 3855 3855 3856 - if (Adapter->bAllDSDWriteAllow == FALSE) { 3857 - if (IsSectionWritable(Adapter, eFlashSectionVal) == FALSE) { 3856 + if (Adapter->bAllDSDWriteAllow == false) { 3857 + if (IsSectionWritable(Adapter, eFlashSectionVal) == false) { 3858 3858 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section is not Writable...Hence can't Write signature"); 3859 3859 return SECTOR_IS_NOT_WRITABLE; 3860 3860 } ··· 3886 3886 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "Restoring the signature"); 3887 3887 3888 3888 Adapter->bHeaderChangeAllowed = TRUE; 3889 - Adapter->bSigCorrupted = FALSE; 3889 + Adapter->bSigCorrupted = false; 3890 3890 BcmFlash2xBulkWrite(Adapter, &uiSignature, eFlashSectionVal, uiOffset, SIGNATURE_SIZE, TRUE); 3891 - Adapter->bHeaderChangeAllowed = FALSE; 3891 + Adapter->bHeaderChangeAllowed = false; 3892 3892 3893 3893 return STATUS_SUCCESS; 3894 3894 } ··· 3899 3899 * @Adapater :- Bcm Driver Private Data Structure 3900 3900 * @psFlash2xReadWrite :-Flash2x Read/write structure pointer 3901 3901 * 3902 - * Return values:-Return TRUE is request is valid else FALSE. 3902 + * Return values:-Return TRUE is request is valid else false. 3903 3903 */ 3904 3904 3905 3905 int validateFlash2xReadWrite(struct bcm_mini_adapter *Adapter, struct bcm_flash2x_readwrite *psFlash2xReadWrite) ··· 3912 3912 3913 3913 if (IsSectionExistInFlash(Adapter, psFlash2xReadWrite->Section) != TRUE) { 3914 3914 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section<%x> does not exixt in Flash", psFlash2xReadWrite->Section); 3915 - return FALSE; 3915 + return false; 3916 3916 } 3917 3917 uiSectStartOffset = BcmGetSectionValStartOffset(Adapter, psFlash2xReadWrite->Section); 3918 3918 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "Start offset :%x ,section :%d\n", uiSectStartOffset, psFlash2xReadWrite->Section); ··· 3949 3949 return TRUE; 3950 3950 else { 3951 3951 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Invalid Request...."); 3952 - return FALSE; 3952 + return false; 3953 3953 } 3954 3954 } 3955 3955 ··· 3966 3966 if (Adapter->uiFlashLayoutMajorVersion >= FLASH_2X_MAJOR_NUMBER) 3967 3967 return TRUE; 3968 3968 else 3969 - return FALSE; 3969 + return false; 3970 3970 } 3971 3971 3972 3972 /* ··· 3986 3986 * For All Valid Flash Versions... except 1.1, take the value from FlashBaseAddr 3987 3987 * In case of Raw Read... use the default value 3988 3988 */ 3989 - if (Adapter->uiFlashLayoutMajorVersion && (Adapter->bFlashRawRead == FALSE) && 3989 + if (Adapter->uiFlashLayoutMajorVersion && (Adapter->bFlashRawRead == false) && 3990 3990 !((Adapter->uiFlashLayoutMajorVersion == 1) && (Adapter->uiFlashLayoutMinorVersion == 1))) 3991 3991 uiBaseAddr = Adapter->uiFlashBaseAdd; 3992 3992 else ··· 3996 3996 * For All Valid Flash Versions... except 1.1, take the value from FlashBaseAddr 3997 3997 * In case of Raw Read... use the default value 3998 3998 */ 3999 - if (Adapter->uiFlashLayoutMajorVersion && (Adapter->bFlashRawRead == FALSE) && 3999 + if (Adapter->uiFlashLayoutMajorVersion && (Adapter->bFlashRawRead == false) && 4000 4000 !((Adapter->uiFlashLayoutMajorVersion == 1) && (Adapter->uiFlashLayoutMinorVersion == 1))) 4001 4001 uiBaseAddr = Adapter->uiFlashBaseAdd | FLASH_CONTIGIOUS_START_ADDR_BEFORE_INIT; 4002 4002 else ··· 4094 4094 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Read failed at offset :%d for NOB :%d", SrcSection, BytesToBeCopied); 4095 4095 break; 4096 4096 } 4097 - Status = BcmFlash2xBulkWrite(Adapter, (PUINT)pBuff, DstSection, offset, BytesToBeCopied, FALSE); 4097 + Status = BcmFlash2xBulkWrite(Adapter, (PUINT)pBuff, DstSection, offset, BytesToBeCopied, false); 4098 4098 if (Status) { 4099 4099 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Write failed at offset :%d for NOB :%d", DstSection, BytesToBeCopied); 4100 4100 break; ··· 4110 4110 } while (numOfBytes > 0); 4111 4111 4112 4112 kfree(pBuff); 4113 - Adapter->bHeaderChangeAllowed = FALSE; 4113 + Adapter->bHeaderChangeAllowed = false; 4114 4114 4115 4115 return Status; 4116 4116 } ··· 4129 4129 int SaveHeaderIfPresent(struct bcm_mini_adapter *Adapter, PUCHAR pBuff, unsigned int uiOffset) 4130 4130 { 4131 4131 unsigned int offsetToProtect = 0, HeaderSizeToProtect = 0; 4132 - bool bHasHeader = FALSE; 4132 + bool bHasHeader = false; 4133 4133 PUCHAR pTempBuff = NULL; 4134 4134 unsigned int uiSectAlignAddr = 0; 4135 4135 unsigned int sig = 0; ··· 4153 4153 bHasHeader = TRUE; 4154 4154 } 4155 4155 /* If Header is present overwrite passed buffer with this */ 4156 - if (bHasHeader && (Adapter->bHeaderChangeAllowed == FALSE)) { 4156 + if (bHasHeader && (Adapter->bHeaderChangeAllowed == false)) { 4157 4157 pTempBuff = kzalloc(HeaderSizeToProtect, GFP_KERNEL); 4158 4158 if (!pTempBuff) { 4159 4159 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Memory allocation failed"); ··· 4172 4172 sig = ntohl(sig); 4173 4173 if ((sig & 0xFF000000) != CORRUPTED_PATTERN) { 4174 4174 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "Desired pattern is not at sig offset. Hence won't restore"); 4175 - Adapter->bSigCorrupted = FALSE; 4175 + Adapter->bSigCorrupted = false; 4176 4176 return STATUS_SUCCESS; 4177 4177 } 4178 4178 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, " Corrupted sig is :%X", sig); 4179 4179 *((PUINT)(pBuff + offsetToProtect + FIELD_OFFSET_IN_HEADER(struct bcm_dsd_header *, DSDImageMagicNumber))) = htonl(DSD_IMAGE_MAGIC_NUMBER); 4180 4180 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, NVM_RW, DBG_LVL_ALL, "Restoring the signature in Header Write only"); 4181 - Adapter->bSigCorrupted = FALSE; 4181 + Adapter->bSigCorrupted = false; 4182 4182 } 4183 4183 4184 4184 return STATUS_SUCCESS; ··· 4471 4471 4472 4472 bool IsSectionExistInFlash(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val section) 4473 4473 { 4474 - bool SectionPresent = FALSE; 4474 + bool SectionPresent = false; 4475 4475 4476 4476 switch (section) { 4477 4477 case ISO_IMAGE1: 4478 4478 if ((Adapter->psFlash2xCSInfo->OffsetISOImage1Part1Start != UNINIT_PTR_IN_CS) && 4479 - (IsNonCDLessDevice(Adapter) == FALSE)) 4479 + (IsNonCDLessDevice(Adapter) == false)) 4480 4480 SectionPresent = TRUE; 4481 4481 break; 4482 4482 case ISO_IMAGE2: 4483 4483 if ((Adapter->psFlash2xCSInfo->OffsetISOImage2Part1Start != UNINIT_PTR_IN_CS) && 4484 - (IsNonCDLessDevice(Adapter) == FALSE)) 4484 + (IsNonCDLessDevice(Adapter) == false)) 4485 4485 SectionPresent = TRUE; 4486 4486 break; 4487 4487 case DSD0: ··· 4518 4518 break; 4519 4519 default: 4520 4520 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section Does not exist in Flash 2.x"); 4521 - SectionPresent = FALSE; 4521 + SectionPresent = false; 4522 4522 } 4523 4523 4524 4524 return SectionPresent; ··· 4527 4527 int IsSectionWritable(struct bcm_mini_adapter *Adapter, enum bcm_flash2x_section_val Section) 4528 4528 { 4529 4529 int offset = STATUS_FAILURE; 4530 - int Status = FALSE; 4530 + int Status = false; 4531 4531 4532 - if (IsSectionExistInFlash(Adapter, Section) == FALSE) { 4532 + if (IsSectionExistInFlash(Adapter, Section) == false) { 4533 4533 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section <%d> does not exixt", Section); 4534 - return FALSE; 4534 + return false; 4535 4535 } 4536 4536 4537 4537 offset = BcmGetSectionValStartOffset(Adapter, Section); 4538 4538 if (offset == INVALID_OFFSET) { 4539 4539 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section<%d> does not exixt", Section); 4540 - return FALSE; 4540 + return false; 4541 4541 } 4542 4542 4543 4543 if (IsSectionExistInVendorInfo(Adapter, Section)) ··· 4555 4555 unsigned int BlockStatus = 0; 4556 4556 unsigned int uiSectAlignAddr = 0; 4557 4557 4558 - Adapter->bSigCorrupted = FALSE; 4559 - if (Adapter->bAllDSDWriteAllow == FALSE) { 4558 + Adapter->bSigCorrupted = false; 4559 + if (Adapter->bAllDSDWriteAllow == false) { 4560 4560 if (IsSectionWritable(Adapter, eFlash2xSectionVal) != TRUE) { 4561 4561 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section is not Writable...Hence can't Corrupt signature"); 4562 4562 return SECTOR_IS_NOT_WRITABLE; ··· 4615 4615 unsigned int sig = 0; 4616 4616 unsigned int uiOffset = 0; 4617 4617 4618 - Adapter->bSigCorrupted = FALSE; 4618 + Adapter->bSigCorrupted = false; 4619 4619 4620 4620 if (IsSectionWritable(Adapter, eFlash2xSectionVal) != TRUE) { 4621 4621 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "Section is not Writable...Hence can't Corrupt signature"); ··· 4661 4661 if (Adapter->psFlash2xCSInfo->IsCDLessDeviceBootSig == NON_CDLESS_DEVICE_BOOT_SIG) 4662 4662 return TRUE; 4663 4663 else 4664 - return FALSE; 4664 + return false; 4665 4665 }