/linux-6.1.9/drivers/media/tuners/ |
D | qt1010.c | 50 u8 i, tmpval, reg05; in qt1010_set_params() local 147 tmpval = 0x78; /* byte, overflows intentionally */ in qt1010_set_params() 148 rd[10].val = tmpval-((mod2/QT1010_STEP)*0x08); in qt1010_set_params() 168 if (mod1 < 8000000) tmpval = 0x00; in qt1010_set_params() 169 else if (mod1 < 12000000) tmpval = 0x01; in qt1010_set_params() 170 else if (mod1 < 16000000) tmpval = 0x02; in qt1010_set_params() 171 else if (mod1 < 24000000) tmpval = 0x03; in qt1010_set_params() 172 else if (mod1 < 28000000) tmpval = 0x04; in qt1010_set_params() 173 else tmpval = 0x05; in qt1010_set_params() 174 rd[40].val = (priv->reg1f_init_val + 0x0e + tmpval); in qt1010_set_params() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | rf.c | 44 u32 tx_agc[2] = {0, 0}, tmpval; in rtl8723e_phy_rf6052_set_cck_txpower() local 74 tmpval = in rtl8723e_phy_rf6052_set_cck_txpower() 78 tx_agc[RF90_PATH_A] += tmpval; in rtl8723e_phy_rf6052_set_cck_txpower() 80 tmpval = (rtlphy->mcs_txpwrlevel_origoffset[0][14]) + in rtl8723e_phy_rf6052_set_cck_txpower() 83 tx_agc[RF90_PATH_B] += tmpval; in rtl8723e_phy_rf6052_set_cck_txpower() 96 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl8723e_phy_rf6052_set_cck_txpower() 97 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl8723e_phy_rf6052_set_cck_txpower() 100 "CCK PWR 1M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl8723e_phy_rf6052_set_cck_txpower() 103 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl8723e_phy_rf6052_set_cck_txpower() 105 tmpval = tmpval & 0xff00ffff; in rtl8723e_phy_rf6052_set_cck_txpower() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | rf.c | 44 u32 tx_agc[2] = { 0, 0 }, tmpval = 0; in rtl92cu_phy_rf6052_set_cck_txpower() local 76 tmpval = (rtlphy->mcs_offset[0][6]) + in rtl92cu_phy_rf6052_set_cck_txpower() 78 tx_agc[RF90_PATH_A] += tmpval; in rtl92cu_phy_rf6052_set_cck_txpower() 79 tmpval = (rtlphy->mcs_offset[0][14]) + in rtl92cu_phy_rf6052_set_cck_txpower() 81 tx_agc[RF90_PATH_B] += tmpval; in rtl92cu_phy_rf6052_set_cck_txpower() 93 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl92cu_phy_rf6052_set_cck_txpower() 94 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl92cu_phy_rf6052_set_cck_txpower() 98 tmpval, RTXAGC_A_CCK1_MCS32); in rtl92cu_phy_rf6052_set_cck_txpower() 100 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl92cu_phy_rf6052_set_cck_txpower() 102 tmpval = tmpval & 0xff00ffff; in rtl92cu_phy_rf6052_set_cck_txpower() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | rf.c | 44 u32 tx_agc[2] = {0, 0}, tmpval; in rtl92ce_phy_rf6052_set_cck_txpower() local 73 tmpval = (rtlphy->mcs_offset[0][6]) + in rtl92ce_phy_rf6052_set_cck_txpower() 75 tx_agc[RF90_PATH_A] += tmpval; in rtl92ce_phy_rf6052_set_cck_txpower() 77 tmpval = (rtlphy->mcs_offset[0][14]) + in rtl92ce_phy_rf6052_set_cck_txpower() 79 tx_agc[RF90_PATH_B] += tmpval; in rtl92ce_phy_rf6052_set_cck_txpower() 92 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl92ce_phy_rf6052_set_cck_txpower() 93 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl92ce_phy_rf6052_set_cck_txpower() 97 tmpval, RTXAGC_A_CCK1_MCS32); in rtl92ce_phy_rf6052_set_cck_txpower() 99 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl92ce_phy_rf6052_set_cck_txpower() 101 tmpval = tmpval & 0xff00ffff; in rtl92ce_phy_rf6052_set_cck_txpower() [all …]
|
/linux-6.1.9/drivers/staging/media/deprecated/stkwebcam/ |
D | stk-sensor.c | 221 u8 tmpval = 0; in stk_sensor_outb() local 230 if (stk_camera_read_reg(dev, STK_IIC_STAT, &tmpval)) in stk_sensor_outb() 233 } while (tmpval == 0 && i < MAX_RETRIES); in stk_sensor_outb() 234 if (tmpval != STK_IIC_STAT_TX_OK) { in stk_sensor_outb() 235 if (tmpval) in stk_sensor_outb() 237 tmpval); in stk_sensor_outb() 246 u8 tmpval = 0; in stk_sensor_inb() local 253 if (stk_camera_read_reg(dev, STK_IIC_STAT, &tmpval)) in stk_sensor_inb() 256 } while (tmpval == 0 && i < MAX_RETRIES); in stk_sensor_inb() 257 if (tmpval != STK_IIC_STAT_RX_OK) { in stk_sensor_inb() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | rf.c | 44 u32 tx_agc[2] = {0, 0}, tmpval; in rtl8723be_phy_rf6052_set_cck_txpower() local 75 tmpval = in rtl8723be_phy_rf6052_set_cck_txpower() 78 tx_agc[RF90_PATH_A] += tmpval; in rtl8723be_phy_rf6052_set_cck_txpower() 80 tmpval = (rtlphy->mcs_txpwrlevel_origoffset[0][14]) + in rtl8723be_phy_rf6052_set_cck_txpower() 83 tx_agc[RF90_PATH_B] += tmpval; in rtl8723be_phy_rf6052_set_cck_txpower() 103 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl8723be_phy_rf6052_set_cck_txpower() 104 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl8723be_phy_rf6052_set_cck_txpower() 107 "CCK PWR 1M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl8723be_phy_rf6052_set_cck_txpower() 110 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl8723be_phy_rf6052_set_cck_txpower() 114 rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl8723be_phy_rf6052_set_cck_txpower() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | rf.c | 44 u32 tx_agc[2] = {0, 0}, tmpval; in rtl88e_phy_rf6052_set_cck_txpower() local 75 tmpval = in rtl88e_phy_rf6052_set_cck_txpower() 79 tx_agc[RF90_PATH_A] += tmpval; in rtl88e_phy_rf6052_set_cck_txpower() 81 tmpval = (rtlphy->mcs_txpwrlevel_origoffset[0][14]) + in rtl88e_phy_rf6052_set_cck_txpower() 84 tx_agc[RF90_PATH_B] += tmpval; in rtl88e_phy_rf6052_set_cck_txpower() 104 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl88e_phy_rf6052_set_cck_txpower() 105 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl88e_phy_rf6052_set_cck_txpower() 108 "CCK PWR 1M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl88e_phy_rf6052_set_cck_txpower() 111 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl88e_phy_rf6052_set_cck_txpower() 115 rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl88e_phy_rf6052_set_cck_txpower() [all …]
|
/linux-6.1.9/drivers/staging/r8188eu/hal/ |
D | rtl8188e_rf6052.c | 89 u32 TxAGC[2] = {0, 0}, tmpval = 0, pwrtrac_value; in rtl8188e_PHY_RF6052SetCckTxPower() local 110 tmpval = (pHalData->MCSTxPowerLevelOriginalOffset[0][6]) + in rtl8188e_PHY_RF6052SetCckTxPower() 112 TxAGC[RF_PATH_A] += tmpval; in rtl8188e_PHY_RF6052SetCckTxPower() 114 tmpval = (pHalData->MCSTxPowerLevelOriginalOffset[0][14]) + in rtl8188e_PHY_RF6052SetCckTxPower() 116 TxAGC[RF_PATH_B] += tmpval; in rtl8188e_PHY_RF6052SetCckTxPower() 140 tmpval = TxAGC[RF_PATH_A] & 0xff; in rtl8188e_PHY_RF6052SetCckTxPower() 141 rtl8188e_PHY_SetBBReg(Adapter, rTxAGC_A_CCK1_Mcs32, bMaskByte1, tmpval); in rtl8188e_PHY_RF6052SetCckTxPower() 142 tmpval = TxAGC[RF_PATH_A] >> 8; in rtl8188e_PHY_RF6052SetCckTxPower() 143 rtl8188e_PHY_SetBBReg(Adapter, rTxAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl8188e_PHY_RF6052SetCckTxPower() 146 tmpval = TxAGC[RF_PATH_B] >> 24; in rtl8188e_PHY_RF6052SetCckTxPower() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | rf.c | 56 u32 tx_agc[2] = {0, 0}, tmpval; in rtl92d_phy_rf6052_set_cck_txpower() local 82 tmpval = (rtlphy->mcs_offset[0][6]) + in rtl92d_phy_rf6052_set_cck_txpower() 84 tx_agc[RF90_PATH_A] += tmpval; in rtl92d_phy_rf6052_set_cck_txpower() 85 tmpval = (rtlphy->mcs_offset[0][14]) + in rtl92d_phy_rf6052_set_cck_txpower() 87 tx_agc[RF90_PATH_B] += tmpval; in rtl92d_phy_rf6052_set_cck_txpower() 100 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl92d_phy_rf6052_set_cck_txpower() 101 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl92d_phy_rf6052_set_cck_txpower() 104 tmpval, RTXAGC_A_CCK1_MCS32); in rtl92d_phy_rf6052_set_cck_txpower() 105 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl92d_phy_rf6052_set_cck_txpower() 106 rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl92d_phy_rf6052_set_cck_txpower() [all …]
|
D | trx.c | 222 u32 last_rssi, tmpval; in _rtl92de_process_ui_rssi() local 240 tmpval = rtlpriv->stats.ui_rssi.total_val / in _rtl92de_process_ui_rssi() 243 (u8) tmpval); in _rtl92de_process_ui_rssi() 322 u32 last_evm, tmpval; in _rtl92de_process_ui_link_quality() local 343 tmpval = rtlpriv->stats.ui_link_quality.total_val / in _rtl92de_process_ui_link_quality() 345 rtlpriv->stats.signal_quality = tmpval; in _rtl92de_process_ui_link_quality() 346 rtlpriv->stats.last_sigstrength_inpercent = tmpval; in _rtl92de_process_ui_link_quality()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | rf.c | 41 u32 tx_agc[2] = {0, 0}, tmpval; in rtl8821ae_phy_rf6052_set_cck_txpower() local 74 tmpval = in rtl8821ae_phy_rf6052_set_cck_txpower() 78 tx_agc[RF90_PATH_A] += tmpval; in rtl8821ae_phy_rf6052_set_cck_txpower() 80 tmpval = (rtlphy->mcs_txpwrlevel_origoffset[0][14]) + in rtl8821ae_phy_rf6052_set_cck_txpower() 83 tx_agc[RF90_PATH_B] += tmpval; in rtl8821ae_phy_rf6052_set_cck_txpower() 103 tmpval = tx_agc[RF90_PATH_A]; in rtl8821ae_phy_rf6052_set_cck_txpower() 104 rtl_set_bbreg(hw, RTXAGC_A_CCK11_CCK1, MASKDWORD, tmpval); in rtl8821ae_phy_rf6052_set_cck_txpower() 107 "CCK PWR 1~11M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl8821ae_phy_rf6052_set_cck_txpower() 110 tmpval = tx_agc[RF90_PATH_B]; in rtl8821ae_phy_rf6052_set_cck_txpower() 111 rtl_set_bbreg(hw, RTXAGC_B_CCK11_CCK1, MASKDWORD, tmpval); in rtl8821ae_phy_rf6052_set_cck_txpower() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/ |
D | stats.c | 75 u32 last_rssi, tmpval; in rtl_process_ui_rssi() local 94 tmpval = rtlpriv->stats.ui_rssi.total_val / in rtl_process_ui_rssi() 97 (u8) tmpval); in rtl_process_ui_rssi() 197 u32 last_evm, n_stream, tmpval; in rtl_process_ui_link_quality() local 217 tmpval = rtlpriv->stats.ui_link_quality.total_val / in rtl_process_ui_link_quality() 219 rtlpriv->stats.signal_quality = tmpval; in rtl_process_ui_link_quality() 220 rtlpriv->stats.last_sigstrength_inpercent = tmpval; in rtl_process_ui_link_quality()
|
/linux-6.1.9/drivers/xen/xen-pciback/ |
D | conf_space_header.c | 157 u32 tmpval; in rom_write() local 158 pci_read_config_dword(dev, offset, &tmpval); in rom_write() 159 if (tmpval != bar->val && value == bar->val) { in rom_write() 199 u32 tmpval; in bar_write() local 200 pci_read_config_dword(dev, offset, &tmpval); in bar_write() 201 if (tmpval != bar->val && value == bar->val) { in bar_write()
|
/linux-6.1.9/drivers/net/can/sja1000/ |
D | plx_pci.c | 546 u8 tmpval; in plx_pci_reset_asem_dual_can_raw() local 557 tmpval = ioread8(bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw() 558 tmpval &= ~(ASEM_RAW_CAN_RST_MASK_CAN1 | ASEM_RAW_CAN_RST_MASK_CAN2); in plx_pci_reset_asem_dual_can_raw() 559 iowrite8(tmpval, bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw() 561 tmpval |= ASEM_RAW_CAN_RST_MASK_CAN1 | ASEM_RAW_CAN_RST_MASK_CAN2; in plx_pci_reset_asem_dual_can_raw() 562 iowrite8(tmpval, bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw()
|
/linux-6.1.9/drivers/platform/x86/ |
D | apple-gmux.c | 98 u8 tmpval; in gmux_pio_write32() local 101 tmpval = (val >> (i * 8)) & 0xff; in gmux_pio_write32() 102 outb(tmpval, gmux_data->iostart + port + i); in gmux_pio_write32() 181 u8 tmpval; in gmux_index_write32() local 186 tmpval = (val >> (i * 8)) & 0xff; in gmux_index_write32() 187 outb(tmpval, gmux_data->iostart + GMUX_PORT_VALUE + i); in gmux_index_write32()
|
/linux-6.1.9/crypto/ |
D | jitterentropy.c | 494 unsigned char *tmpval = ec->mem + ec->memlocation; in jent_memaccess() local 500 *tmpval = (*tmpval + 1) & 0xff; in jent_memaccess()
|
/linux-6.1.9/drivers/net/ethernet/ti/ |
D | davinci_emac.c | 589 u8 tmpval; in hash_get() local 594 tmpval = *addr++; in hash_get() 595 hash ^= (tmpval >> 2) ^ (tmpval << 4); in hash_get() 596 tmpval = *addr++; in hash_get() 597 hash ^= (tmpval >> 4) ^ (tmpval << 2); in hash_get() 598 tmpval = *addr++; in hash_get() 599 hash ^= (tmpval >> 6) ^ (tmpval); in hash_get()
|
/linux-6.1.9/drivers/net/wireless/ath/ath9k/ |
D | htc_drv_init.c | 262 __be32 tmpval[8]; in ath9k_multi_regread() local 271 (u8 *)tmpval, sizeof(u32) * count, in ath9k_multi_regread() 279 val[i] = be32_to_cpu(tmpval[i]); in ath9k_multi_regread()
|
/linux-6.1.9/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_dm.c | 773 u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal() local 815 tmpval = (u8)tmpRegA - priv->ThermalMeter[0]; in _rtl92e_dm_tx_power_tracking_cb_thermal() 816 if (tmpval >= 6) { in _rtl92e_dm_tx_power_tracking_cb_thermal() 820 tmpOFDMindex = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal() 821 tmpCCK20Mindex = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal()
|
/linux-6.1.9/sound/pci/ |
D | es1968.c | 967 u32 tmpval = (addr - 0x10) & 0xFFF8; in snd_es1968_program_wavecache() local 971 tmpval |= 4; /* 8bit */ in snd_es1968_program_wavecache() 973 tmpval |= 2; /* stereo */ in snd_es1968_program_wavecache() 977 wave_set_register(chip, es->apu[channel] << 3, tmpval); in snd_es1968_program_wavecache() 980 es->wc_map[channel] = tmpval; in snd_es1968_program_wavecache()
|
/linux-6.1.9/drivers/gpu/drm/bridge/ |
D | tc358768.c | 182 int tmpval = val; in tc358768_write() local 192 priv->error = regmap_bulk_write(priv->regmap, reg, &tmpval, count); in tc358768_write()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | phy.c | 633 u32 tmpval = 0; in _rtl92s_phy_config_rfpa_bias_current() local 637 tmpval = rtl92s_phy_query_rf_reg(hw, rfpath, RF_IPA, 0xf); in _rtl92s_phy_config_rfpa_bias_current() 638 rtl92s_phy_set_rf_reg(hw, rfpath, RF_IPA, 0xf, tmpval + 1); in _rtl92s_phy_config_rfpa_bias_current()
|
/linux-6.1.9/drivers/staging/rtl8192u/ |
D | r8192U_dm.c | 653 u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; in dm_TXPowerTrackingCallback_ThermalMeter() local 709 tmpval = (u8)tmpRegA - priv->ThermalMeter[0]; in dm_TXPowerTrackingCallback_ThermalMeter() 711 if (tmpval >= 6) { in dm_TXPowerTrackingCallback_ThermalMeter() 717 tmpOFDMindex = 6 - tmpval; in dm_TXPowerTrackingCallback_ThermalMeter() 718 tmpCCK20Mindex = 6 - tmpval; in dm_TXPowerTrackingCallback_ThermalMeter()
|
/linux-6.1.9/drivers/media/dvb-frontends/ |
D | stv0367.c | 3045 u32 regval, tmpval, snrval = 0; in stv0367ddb_read_snr() local 3061 tmpval = (cab_pwr * 320) / regval; in stv0367ddb_read_snr() 3062 snrval = ((tmpval != 0) ? (intlog2(tmpval) / 5581) : 0); in stv0367ddb_read_snr()
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_n.c | 28315 u16 tmpval; in wlc_phy_txpwr_index_nphy() local 28413 &tmpval); in wlc_phy_txpwr_index_nphy() 28414 tmpval >>= ((core == PHY_CORE_0) ? 8 : 0); in wlc_phy_txpwr_index_nphy() 28415 tmpval &= 0xff; in wlc_phy_txpwr_index_nphy() 28416 pi->nphy_txpwrindex[core].bbmult = (u8) tmpval; in wlc_phy_txpwr_index_nphy()
|