Home
last modified time | relevance | path

Searched refs:tempval (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/drivers/net/ethernet/freescale/
H A Dgianfar.c333 u32 tempval; in gfar_set_hash_for_addr() local
341 tempval = gfar_read(priv->hash_regs[whichreg]); in gfar_set_hash_for_addr()
342 tempval |= value; in gfar_set_hash_for_addr()
343 gfar_write(priv->hash_regs[whichreg], tempval); in gfar_set_hash_for_addr()
354 u32 tempval; in gfar_set_mac_for_addr() local
363 tempval = (addr[5] << 24) | (addr[4] << 16) | in gfar_set_mac_for_addr()
366 gfar_write(macptr, tempval); in gfar_set_mac_for_addr()
368 tempval = (addr[1] << 24) | (addr[0] << 16); in gfar_set_mac_for_addr()
370 gfar_write(macptr+1, tempval); in gfar_set_mac_for_addr()
1013 u32 tempval; in gfar_halt_nodisable() local
[all …]
H A Dfec_ptp.c104 u32 tempval; in fec_ptp_read() local
106 tempval = readl(fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
107 tempval |= FEC_T_CTRL_CAPTURE; in fec_ptp_read()
108 writel(tempval, fep->hwp + FEC_ATIME_CTRL); in fec_ptp_read()
126 u32 val, tempval; in fec_ptp_enable_pps() local
162 tempval = fec_ptp_read(&fep->cc); 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()
H A Dgianfar_ethtool.c492 u32 tempval = gfar_read(&regs->maccfg1); in gfar_spauseparam() local
494 tempval &= ~(MACCFG1_TX_FLOW | MACCFG1_RX_FLOW); in gfar_spauseparam()
499 tempval |= MACCFG1_TX_FLOW; in gfar_spauseparam()
503 tempval |= MACCFG1_RX_FLOW; in gfar_spauseparam()
504 gfar_write(&regs->maccfg1, tempval); in gfar_spauseparam()
H A Ducc_geth.c1570 u32 tempval = in_be32(&ug_regs->maccfg2); in adjust_link() local
1577 tempval &= ~(MACCFG2_FDX); in adjust_link()
1579 tempval |= MACCFG2_FDX; in adjust_link()
1587 tempval = ((tempval & in adjust_link()
1593 tempval = ((tempval & in adjust_link()
1635 out_be32(&ug_regs->maccfg2, tempval); in adjust_link()
/openbmc/linux/drivers/media/pci/cx23885/
H A Dcx23885-417.c377 u32 tempval; in mc417_register_read() local
425 tempval = cx_read(MC417_RWD); in mc417_register_read()
426 dataval = tempval & 0x000000FF; in mc417_register_read()
437 tempval = cx_read(MC417_RWD); in mc417_register_read()
438 dataval |= ((tempval & 0x000000FF) << 8); in mc417_register_read()
447 tempval = cx_read(MC417_RWD); in mc417_register_read()
448 dataval |= ((tempval & 0x000000FF) << 16); in mc417_register_read()
457 tempval = cx_read(MC417_RWD); in mc417_register_read()
458 dataval |= ((tempval & 0x000000FF) << 24); in mc417_register_read()
535 u32 tempval; in mc417_memory_read() local
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dhw.c865 u8 tempval; in _rtl92se_macconfig_after_fwdownload() local
867 tempval = rtl_read_byte(rtlpriv, REG_SYS_ISO_CTRL + 1); in _rtl92se_macconfig_after_fwdownload()
868 tempval &= 0xFE; in _rtl92se_macconfig_after_fwdownload()
869 rtl_write_byte(rtlpriv, REG_SYS_ISO_CTRL + 1, tempval); in _rtl92se_macconfig_after_fwdownload()
1638 u8 tempval; in _rtl92se_read_adapter_info() local
1836 tempval = hwinfo[EEPROM_TX_PWR_HT20_DIFF + index] & 0xff; in _rtl92se_read_adapter_info()
1837 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92se_read_adapter_info()
1839 ((tempval >> 4) & 0xF); in _rtl92se_read_adapter_info()
1852 tempval = hwinfo[EEPROM_TX_PWR_OFDM_DIFF + index] & 0xff; in _rtl92se_read_adapter_info()
1854 (tempval & 0xF); in _rtl92se_read_adapter_info()
[all …]
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A Drtl8723b_hal_init.c613 u8 tempval; in Hal_BT_EfusePowerSwitch() local
617 tempval = rtw_read8(padapter, 0x6B); in Hal_BT_EfusePowerSwitch()
618 tempval |= BIT(6); in Hal_BT_EfusePowerSwitch()
619 rtw_write8(padapter, 0x6B, tempval); in Hal_BT_EfusePowerSwitch()
626 tempval = rtw_read8(padapter, 0x6B); in Hal_BT_EfusePowerSwitch()
627 tempval &= ~BIT(7); in Hal_BT_EfusePowerSwitch()
628 rtw_write8(padapter, 0x6B, tempval); in Hal_BT_EfusePowerSwitch()
632 tempval = rtw_read8(padapter, 0x6B); in Hal_BT_EfusePowerSwitch()
633 tempval |= BIT(7); in Hal_BT_EfusePowerSwitch()
634 rtw_write8(padapter, 0x6B, tempval); in Hal_BT_EfusePowerSwitch()
[all …]
/openbmc/u-boot/drivers/net/
H A Dtsec.c565 u32 tempval; in tsec_init() local
584 tempval = (dev->enetaddr[5] << 24) | (dev->enetaddr[4] << 16) | in tsec_init()
587 tempval = (pdata->enetaddr[5] << 24) | (pdata->enetaddr[4] << 16) | in tsec_init()
591 out_be32(&regs->macstnaddr1, tempval); in tsec_init()
594 tempval = (dev->enetaddr[1] << 24) | (dev->enetaddr[0] << 16); in tsec_init()
596 tempval = (pdata->enetaddr[1] << 24) | (pdata->enetaddr[0] << 16); in tsec_init()
599 out_be32(&regs->macstnaddr2, tempval); in tsec_init()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dhw.c104 u8 rf_path, index, tempval; in _rtl92cu_read_txpower_info_from_hwpg() local
129 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl92cu_read_txpower_info_from_hwpg()
131 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl92cu_read_txpower_info_from_hwpg()
133 (tempval & 0xf); in _rtl92cu_read_txpower_info_from_hwpg()
135 ((tempval & 0xf0) >> 4); in _rtl92cu_read_txpower_info_from_hwpg()
231 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl92cu_read_txpower_info_from_hwpg()
233 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl92cu_read_txpower_info_from_hwpg()
234 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92cu_read_txpower_info_from_hwpg()
236 ((tempval >> 4) & 0xF); in _rtl92cu_read_txpower_info_from_hwpg()
243 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl92cu_read_txpower_info_from_hwpg()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dhw.c1395 u8 rf_path, index, tempval; in _rtl8723e_read_txpower_info_from_hwpg() local
1416 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl8723e_read_txpower_info_from_hwpg()
1418 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl8723e_read_txpower_info_from_hwpg()
1420 (tempval & 0xf); in _rtl8723e_read_txpower_info_from_hwpg()
1422 ((tempval & 0xf0) >> 4); in _rtl8723e_read_txpower_info_from_hwpg()
1524 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl8723e_read_txpower_info_from_hwpg()
1526 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl8723e_read_txpower_info_from_hwpg()
1528 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl8723e_read_txpower_info_from_hwpg()
1530 ((tempval >> 4) & 0xF); in _rtl8723e_read_txpower_info_from_hwpg()
1541 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl8723e_read_txpower_info_from_hwpg()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dhw.c1426 u8 rf_path, index, tempval; in _rtl92ce_read_txpower_info_from_hwpg() local
1455 tempval = hwinfo[EEPROM_TXPOWERHT40_2SDIFF + i]; in _rtl92ce_read_txpower_info_from_hwpg()
1457 tempval = EEPROM_DEFAULT_HT40_2SDIFF; in _rtl92ce_read_txpower_info_from_hwpg()
1459 (tempval & 0xf); in _rtl92ce_read_txpower_info_from_hwpg()
1461 ((tempval & 0xf0) >> 4); in _rtl92ce_read_txpower_info_from_hwpg()
1573 tempval = hwinfo[EEPROM_TXPOWERHT20DIFF + index]; in _rtl92ce_read_txpower_info_from_hwpg()
1575 tempval = EEPROM_DEFAULT_HT20_DIFF; in _rtl92ce_read_txpower_info_from_hwpg()
1577 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92ce_read_txpower_info_from_hwpg()
1579 ((tempval >> 4) & 0xF); in _rtl92ce_read_txpower_info_from_hwpg()
1591 tempval = hwinfo[EEPROM_TXPOWER_OFDMDIFF + index]; in _rtl92ce_read_txpower_info_from_hwpg()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dhw.c1538 u8 tempval[2], i, pwr, diff; in _rtl92de_read_txpower_info() local
1548 tempval[0] = hwinfo[EEPROM_IQK_DELTA] & 0x03; in _rtl92de_read_txpower_info()
1549 tempval[1] = (hwinfo[EEPROM_LCK_DELTA] & 0x0C) >> 2; in _rtl92de_read_txpower_info()
1568 tempval[0] = tempval[1] = 3; in _rtl92de_read_txpower_info()
1587 switch (tempval[i]) { in _rtl92de_read_txpower_info()
1589 tempval[i] = 5; in _rtl92de_read_txpower_info()
1592 tempval[i] = 4; in _rtl92de_read_txpower_info()
1595 tempval[i] = 3; in _rtl92de_read_txpower_info()
1599 tempval[i] = 0; in _rtl92de_read_txpower_info()
1604 rtlefuse->delta_iqk = tempval[0]; in _rtl92de_read_txpower_info()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/
H A Defuse.c1103 u8 tempval; in efuse_power_switch() local
1142 tempval = rtl_read_byte(rtlpriv, in efuse_power_switch()
1147 tempval &= ~(BIT(3) | BIT(4) | BIT(5) | BIT(6)); in efuse_power_switch()
1148 tempval |= (VOLTAGE_V25 << 3); in efuse_power_switch()
1150 tempval &= 0x0F; in efuse_power_switch()
1151 tempval |= (VOLTAGE_V25 << 4); in efuse_power_switch()
1156 (tempval | 0x80)); in efuse_power_switch()
1170 tempval = rtl_read_byte(rtlpriv, in efuse_power_switch()
1175 (tempval & 0x7F)); in efuse_power_switch()
/openbmc/linux/drivers/soc/fsl/qe/
H A Dqe.c212 u32 divisor, tempval; in qe_setbrg() local
232 tempval = ((divisor - 1) << QE_BRGC_DIVISOR_SHIFT) | in qe_setbrg()
235 iowrite32be(tempval, &qe_immr->brg.brgc[brg - QE_BRG1]); in qe_setbrg()
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/
H A Dr8192E_dev.c269 u8 tempval; in _rtl92e_read_eeprom_info() local
337 tempval = (rtl92e_eeprom_read(dev, in _rtl92e_read_eeprom_info()
339 priv->eeprom_legacy_ht_tx_pwr_diff = tempval & 0xf; in _rtl92e_read_eeprom_info()