/drivers/net/ethernet/freescale/ |
D | gianfar.c | 1144 u32 tempval; in gfar_mac_reset() local 1169 tempval = MACCFG2_INIT_SETTINGS; in gfar_mac_reset() 1176 tempval |= MACCFG2_HUGEFRAME | MACCFG2_LENGTHCHECK; in gfar_mac_reset() 1178 gfar_write(®s->maccfg2, tempval); in gfar_mac_reset() 1581 u32 tempval; in gfar_start_wol_filer() local 1588 tempval = gfar_read(®s->dmactrl); in gfar_start_wol_filer() 1589 tempval |= DMACTRL_INIT_SETTINGS; in gfar_start_wol_filer() 1590 gfar_write(®s->dmactrl, tempval); in gfar_start_wol_filer() 1593 tempval = gfar_read(®s->dmactrl); in gfar_start_wol_filer() 1594 tempval &= ~DMACTRL_GRS; in gfar_start_wol_filer() [all …]
|
D | fec_ptp.c | 113 u32 val, tempval; in fec_ptp_enable_pps() local 158 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps() 159 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_enable_pps() 160 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_enable_pps() 162 tempval = readl(fep->hwp + FEC_ATIME); in fec_ptp_enable_pps() 164 ns = timecounter_cyc2time(&fep->tc, tempval); in fec_ptp_enable_pps() 170 val = NSEC_PER_SEC - (u32)ts.tv_nsec + tempval; in fec_ptp_enable_pps() 239 u32 tempval; in fec_ptp_read() local 241 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read() 242 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_read() [all …]
|
D | gianfar_ethtool.c | 549 u32 tempval; in gfar_spauseparam() local 550 tempval = gfar_read(®s->maccfg1); in gfar_spauseparam() 551 tempval &= ~(MACCFG1_TX_FLOW | MACCFG1_RX_FLOW); in gfar_spauseparam() 556 tempval |= MACCFG1_TX_FLOW; in gfar_spauseparam() 560 tempval |= MACCFG1_RX_FLOW; in gfar_spauseparam() 561 gfar_write(®s->maccfg1, tempval); in gfar_spauseparam()
|
D | ucc_geth.c | 1593 u32 tempval = in_be32(&ug_regs->maccfg2); in adjust_link() local 1600 tempval &= ~(MACCFG2_FDX); in adjust_link() 1602 tempval |= MACCFG2_FDX; in adjust_link() 1610 tempval = ((tempval & in adjust_link() 1616 tempval = ((tempval & in adjust_link() 1658 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/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | hw.c | 897 u8 tempval; in _rtl92se_macconfig_after_fwdownload() local 899 tempval = rtl_read_byte(rtlpriv, REG_SYS_ISO_CTRL + 1); in _rtl92se_macconfig_after_fwdownload() 900 tempval &= 0xFE; in _rtl92se_macconfig_after_fwdownload() 901 rtl_write_byte(rtlpriv, REG_SYS_ISO_CTRL + 1, tempval); in _rtl92se_macconfig_after_fwdownload() 1682 u8 tempval; in _rtl92se_read_adapter_info() local 1881 tempval = hwinfo[EEPROM_TX_PWR_HT20_DIFF + index] & 0xff; in _rtl92se_read_adapter_info() 1882 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92se_read_adapter_info() 1884 ((tempval >> 4) & 0xF); in _rtl92se_read_adapter_info() 1897 tempval = hwinfo[EEPROM_TX_PWR_OFDM_DIFF + index] & 0xff; in _rtl92se_read_adapter_info() 1899 (tempval & 0xF); in _rtl92se_read_adapter_info() [all …]
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_efuse.c | 45 u8 tempval; in Efuse_PowerSwitch() local 73 tempval = usb_read8(pAdapter, EFUSE_TEST+3); in Efuse_PowerSwitch() 74 tempval &= 0x0F; in Efuse_PowerSwitch() 75 tempval |= (VOLTAGE_V25 << 4); in Efuse_PowerSwitch() 76 usb_write8(pAdapter, EFUSE_TEST+3, (tempval | 0x80)); in Efuse_PowerSwitch() 83 tempval = usb_read8(pAdapter, EFUSE_TEST+3); in Efuse_PowerSwitch() 84 usb_write8(pAdapter, EFUSE_TEST+3, (tempval & 0x7F)); in Efuse_PowerSwitch()
|
/drivers/net/wireless/realtek/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/realtek/rtlwifi/rtl8723ae/ |
D | hw.c | 1424 u8 rf_path, index, tempval; in _rtl8723e_read_txpower_info_from_hwpg() local 1445 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl8723e_read_txpower_info_from_hwpg() 1447 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl8723e_read_txpower_info_from_hwpg() 1449 (tempval & 0xf); in _rtl8723e_read_txpower_info_from_hwpg() 1451 ((tempval & 0xf0) >> 4); in _rtl8723e_read_txpower_info_from_hwpg() 1553 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl8723e_read_txpower_info_from_hwpg() 1555 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl8723e_read_txpower_info_from_hwpg() 1557 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl8723e_read_txpower_info_from_hwpg() 1559 ((tempval >> 4) & 0xF); in _rtl8723e_read_txpower_info_from_hwpg() 1570 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl8723e_read_txpower_info_from_hwpg() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.c | 1462 u8 rf_path, index, tempval; in _rtl92ce_read_txpower_info_from_hwpg() local 1488 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl92ce_read_txpower_info_from_hwpg() 1490 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl92ce_read_txpower_info_from_hwpg() 1492 (tempval & 0xf); in _rtl92ce_read_txpower_info_from_hwpg() 1494 ((tempval & 0xf0) >> 4); in _rtl92ce_read_txpower_info_from_hwpg() 1603 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl92ce_read_txpower_info_from_hwpg() 1605 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl92ce_read_txpower_info_from_hwpg() 1607 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92ce_read_txpower_info_from_hwpg() 1609 ((tempval >> 4) & 0xF); in _rtl92ce_read_txpower_info_from_hwpg() 1620 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl92ce_read_txpower_info_from_hwpg() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | efuse.c | 1128 u8 tempval; in efuse_power_switch() local 1168 tempval = rtl_read_byte(rtlpriv, in efuse_power_switch() 1173 tempval &= ~(BIT(3) | BIT(4) | BIT(5) | BIT(6)); in efuse_power_switch() 1174 tempval |= (VOLTAGE_V25 << 3); in efuse_power_switch() 1176 tempval &= 0x0F; in efuse_power_switch() 1177 tempval |= (VOLTAGE_V25 << 4); in efuse_power_switch() 1182 (tempval | 0x80)); in efuse_power_switch() 1196 tempval = rtl_read_byte(rtlpriv, in efuse_power_switch() 1201 (tempval & 0x7F)); in efuse_power_switch()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | hw.c | 1581 u8 tempval[2], i, pwr, diff; in _rtl92de_read_txpower_info() local 1591 tempval[0] = hwinfo[EEPROM_IQK_DELTA] & 0x03; in _rtl92de_read_txpower_info() 1592 tempval[1] = (hwinfo[EEPROM_LCK_DELTA] & 0x0C) >> 2; in _rtl92de_read_txpower_info() 1611 tempval[0] = tempval[1] = 3; in _rtl92de_read_txpower_info() 1630 switch (tempval[i]) { in _rtl92de_read_txpower_info() 1632 tempval[i] = 5; in _rtl92de_read_txpower_info() 1635 tempval[i] = 4; in _rtl92de_read_txpower_info() 1638 tempval[i] = 3; in _rtl92de_read_txpower_info() 1642 tempval[i] = 0; in _rtl92de_read_txpower_info() 1647 rtlefuse->delta_iqk = tempval[0]; in _rtl92de_read_txpower_info() [all …]
|
/drivers/soc/fsl/qe/ |
D | qe.c | 215 u32 divisor, tempval; in qe_setbrg() local 234 tempval = ((divisor - 1) << QE_BRGC_DIVISOR_SHIFT) | in qe_setbrg() 237 out_be32(&qe_immr->brg.brgc[brg - QE_BRG1], tempval); in qe_setbrg()
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_dev.c | 313 u8 tempval; in _rtl92e_read_eeprom_info() local 395 tempval = (rtl92e_eeprom_read(dev, in _rtl92e_read_eeprom_info() 397 priv->EEPROMLegacyHTTxPowerDiff = tempval & 0xf; in _rtl92e_read_eeprom_info() 399 if (tempval&0x80) in _rtl92e_read_eeprom_info()
|
/drivers/net/wireless/broadcom/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()
|