/drivers/net/ethernet/freescale/ |
D | gianfar.c | 1125 u32 tempval; in gfar_mac_reset() local 1151 tempval = MACCFG2_INIT_SETTINGS; in gfar_mac_reset() 1159 tempval |= MACCFG2_HUGEFRAME | MACCFG2_LENGTHCHECK; in gfar_mac_reset() 1161 gfar_write(®s->maccfg2, tempval); in gfar_mac_reset() 1476 u32 tempval; in gfar_suspend() local 1492 tempval = gfar_read(®s->maccfg1); in gfar_suspend() 1494 tempval &= ~MACCFG1_TX_EN; in gfar_suspend() 1497 tempval &= ~MACCFG1_RX_EN; in gfar_suspend() 1499 gfar_write(®s->maccfg1, tempval); in gfar_suspend() 1511 tempval = gfar_read(®s->maccfg2); in gfar_suspend() [all …]
|
D | fec_ptp.c | 113 u32 val, tempval; in fec_ptp_enable_pps() local 159 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps() 160 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_enable_pps() 161 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps() 163 tempval = readl(fep->hwp + FEC_ATIME); in fec_ptp_enable_pps() 165 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps() 172 val = NSEC_PER_SEC - (u32)ts.tv_nsec + tempval; in fec_ptp_enable_pps() 241 u32 tempval; in fec_ptp_read() local 243 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read() 244 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_read() [all …]
|
D | gianfar_ethtool.c | 579 u32 tempval; in gfar_spauseparam() local 580 tempval = gfar_read(®s->maccfg1); in gfar_spauseparam() 581 tempval &= ~(MACCFG1_TX_FLOW | MACCFG1_RX_FLOW); in gfar_spauseparam() 583 tempval |= MACCFG1_TX_FLOW; in gfar_spauseparam() 585 tempval |= MACCFG1_RX_FLOW; in gfar_spauseparam() 586 gfar_write(®s->maccfg1, tempval); in gfar_spauseparam()
|
D | ucc_geth.c | 1591 u32 tempval = in_be32(&ug_regs->maccfg2); in adjust_link() local 1598 tempval &= ~(MACCFG2_FDX); in adjust_link() 1600 tempval |= MACCFG2_FDX; in adjust_link() 1608 tempval = ((tempval & in adjust_link() 1614 tempval = ((tempval & in adjust_link() 1656 out_be32(&ug_regs->maccfg2, tempval); in adjust_link()
|
/drivers/media/pci/cx23885/ |
D | cx23885-417.c | 386 u32 tempval; in mc417_register_read() local 434 tempval = cx_read(MC417_RWD); in mc417_register_read() 435 dataval = tempval & 0x000000FF; in mc417_register_read() 446 tempval = cx_read(MC417_RWD); in mc417_register_read() 447 dataval |= ((tempval & 0x000000FF) << 8); in mc417_register_read() 456 tempval = cx_read(MC417_RWD); in mc417_register_read() 457 dataval |= ((tempval & 0x000000FF) << 16); in mc417_register_read() 466 tempval = cx_read(MC417_RWD); in mc417_register_read() 467 dataval |= ((tempval & 0x000000FF) << 24); in mc417_register_read() 544 u32 tempval; in mc417_memory_read() local [all …]
|
/drivers/staging/rtl8723au/core/ |
D | rtw_efuse.c | 55 u8 tempval; in Efuse_PowerSwitch() local 85 tempval = rtl8723au_read8(padapter, EFUSE_TEST + 3); in Efuse_PowerSwitch() 86 tempval &= 0x0F; in Efuse_PowerSwitch() 87 tempval |= (VOLTAGE_V25 << 4); in Efuse_PowerSwitch() 89 tempval | 0x80); in Efuse_PowerSwitch() 96 tempval = rtl8723au_read8(padapter, EFUSE_TEST + 3); in Efuse_PowerSwitch() 98 tempval & 0x7F); in Efuse_PowerSwitch()
|
/drivers/net/wireless/rtlwifi/rtl8192se/ |
D | hw.c | 894 u8 tempval; in _rtl92se_macconfig_after_fwdownload() local 896 tempval = rtl_read_byte(rtlpriv, REG_SYS_ISO_CTRL + 1); in _rtl92se_macconfig_after_fwdownload() 897 tempval &= 0xFE; in _rtl92se_macconfig_after_fwdownload() 898 rtl_write_byte(rtlpriv, REG_SYS_ISO_CTRL + 1, tempval); in _rtl92se_macconfig_after_fwdownload() 1678 u8 tempval; in _rtl92se_read_adapter_info() local 1870 tempval = hwinfo[EEPROM_TX_PWR_HT20_DIFF + index] & 0xff; in _rtl92se_read_adapter_info() 1871 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92se_read_adapter_info() 1873 ((tempval >> 4) & 0xF); in _rtl92se_read_adapter_info() 1886 tempval = hwinfo[EEPROM_TX_PWR_OFDM_DIFF + index] & 0xff; in _rtl92se_read_adapter_info() 1888 (tempval & 0xF); in _rtl92se_read_adapter_info() [all …]
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_efuse.c | 50 u8 tempval; in Efuse_PowerSwitch() local 78 tempval = usb_read8(pAdapter, EFUSE_TEST+3); in Efuse_PowerSwitch() 79 tempval &= 0x0F; in Efuse_PowerSwitch() 80 tempval |= (VOLTAGE_V25 << 4); in Efuse_PowerSwitch() 81 usb_write8(pAdapter, EFUSE_TEST+3, (tempval | 0x80)); in Efuse_PowerSwitch() 88 tempval = usb_read8(pAdapter, EFUSE_TEST+3); in Efuse_PowerSwitch() 89 usb_write8(pAdapter, EFUSE_TEST+3, (tempval & 0x7F)); in Efuse_PowerSwitch()
|
/drivers/net/wireless/rtlwifi/rtl8723ae/ |
D | hw.c | 1421 u8 rf_path, index, tempval; in _rtl8723e_read_txpower_info_from_hwpg() local 1442 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl8723e_read_txpower_info_from_hwpg() 1444 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl8723e_read_txpower_info_from_hwpg() 1446 (tempval & 0xf); in _rtl8723e_read_txpower_info_from_hwpg() 1448 ((tempval & 0xf0) >> 4); in _rtl8723e_read_txpower_info_from_hwpg() 1550 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl8723e_read_txpower_info_from_hwpg() 1552 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl8723e_read_txpower_info_from_hwpg() 1554 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl8723e_read_txpower_info_from_hwpg() 1556 ((tempval >> 4) & 0xF); in _rtl8723e_read_txpower_info_from_hwpg() 1567 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl8723e_read_txpower_info_from_hwpg() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192ce/ |
D | hw.c | 1443 u8 rf_path, index, tempval; in _rtl92ce_read_txpower_info_from_hwpg() local 1469 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl92ce_read_txpower_info_from_hwpg() 1471 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl92ce_read_txpower_info_from_hwpg() 1473 (tempval & 0xf); in _rtl92ce_read_txpower_info_from_hwpg() 1475 ((tempval & 0xf0) >> 4); in _rtl92ce_read_txpower_info_from_hwpg() 1584 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl92ce_read_txpower_info_from_hwpg() 1586 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl92ce_read_txpower_info_from_hwpg() 1588 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92ce_read_txpower_info_from_hwpg() 1590 ((tempval >> 4) & 0xF); in _rtl92ce_read_txpower_info_from_hwpg() 1601 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl92ce_read_txpower_info_from_hwpg() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | hw.c | 130 u8 rf_path, index, tempval; in _rtl92cu_read_txpower_info_from_hwpg() local 155 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl92cu_read_txpower_info_from_hwpg() 157 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl92cu_read_txpower_info_from_hwpg() 159 (tempval & 0xf); in _rtl92cu_read_txpower_info_from_hwpg() 161 ((tempval & 0xf0) >> 4); in _rtl92cu_read_txpower_info_from_hwpg() 257 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl92cu_read_txpower_info_from_hwpg() 259 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl92cu_read_txpower_info_from_hwpg() 260 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92cu_read_txpower_info_from_hwpg() 262 ((tempval >> 4) & 0xF); in _rtl92cu_read_txpower_info_from_hwpg() 269 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl92cu_read_txpower_info_from_hwpg() [all …]
|
/drivers/net/wireless/rtlwifi/ |
D | efuse.c | 1127 u8 tempval; in efuse_power_switch() local 1167 tempval = rtl_read_byte(rtlpriv, in efuse_power_switch() 1172 tempval &= ~(BIT(3) | BIT(4) | BIT(5) | BIT(6)); in efuse_power_switch() 1173 tempval |= (VOLTAGE_V25 << 3); in efuse_power_switch() 1175 tempval &= 0x0F; in efuse_power_switch() 1176 tempval |= (VOLTAGE_V25 << 4); in efuse_power_switch() 1181 (tempval | 0x80)); in efuse_power_switch() 1195 tempval = rtl_read_byte(rtlpriv, in efuse_power_switch() 1200 (tempval & 0x7F)); in efuse_power_switch()
|
/drivers/net/wireless/rtlwifi/rtl8192de/ |
D | hw.c | 1578 u8 tempval[2], i, pwr, diff; in _rtl92de_read_txpower_info() local 1588 tempval[0] = hwinfo[EEPROM_IQK_DELTA] & 0x03; in _rtl92de_read_txpower_info() 1589 tempval[1] = (hwinfo[EEPROM_LCK_DELTA] & 0x0C) >> 2; in _rtl92de_read_txpower_info() 1608 tempval[0] = tempval[1] = 3; in _rtl92de_read_txpower_info() 1627 switch (tempval[i]) { in _rtl92de_read_txpower_info() 1629 tempval[i] = 5; in _rtl92de_read_txpower_info() 1632 tempval[i] = 4; in _rtl92de_read_txpower_info() 1635 tempval[i] = 3; in _rtl92de_read_txpower_info() 1639 tempval[i] = 0; in _rtl92de_read_txpower_info() 1644 rtlefuse->delta_iqk = tempval[0]; in _rtl92de_read_txpower_info() [all …]
|
/drivers/staging/iio/accel/ |
D | lis3l02dq_core.c | 140 s16 tempval; in lis3l02dq_read_reg_s16() local 166 tempval = (s16)(st->rx[1]) | ((s16)(st->rx[3]) << 8); in lis3l02dq_read_reg_s16() 168 *val = tempval; in lis3l02dq_read_reg_s16()
|
/drivers/staging/rtl8723au/hal/ |
D | rtl8723a_hal_init.c | 1830 u8 tempval; in Hal_EfuseParseBTCoexistInfo_8723A() local 1843 tempval = hwinfo[RF_OPTION4_8723A]; in Hal_EfuseParseBTCoexistInfo_8723A() 1844 pHalData->EEPROMBluetoothAntNum = (tempval & 0x1); in Hal_EfuseParseBTCoexistInfo_8723A() 1845 pHalData->EEPROMBluetoothAntIsolation = ((tempval & 0x10) >> 4); in Hal_EfuseParseBTCoexistInfo_8723A() 1846 pHalData->EEPROMBluetoothRadioShared = ((tempval & 0x20) >> 5); in Hal_EfuseParseBTCoexistInfo_8723A()
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_dev.c | 319 u8 tempval; in rtl8192_read_eeprom_info() local 400 tempval = (eprom_read(dev, (EEPROM_RFInd_PowerDiff >> in rtl8192_read_eeprom_info() 402 priv->EEPROMLegacyHTTxPowerDiff = tempval & 0xf; in rtl8192_read_eeprom_info() 404 if (tempval&0x80) in rtl8192_read_eeprom_info()
|
/drivers/staging/bcm/ |
D | nvm.c | 1554 unsigned int tempval = (unsigned int)*ptr1; in BcmSwapWord() local 1555 char *ptr2 = (char *)&tempval; in BcmSwapWord()
|
/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
D | phy_n.c | 19131 u32 tempval = 0; in wlc_phy_spurwar_nphy() local 19238 tempval = 0; in wlc_phy_spurwar_nphy()
|