/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/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-v5.4/drivers/staging/rtl8188eu/hal/ |
D | rf.c | 42 u32 tx_agc[2] = {0, 0}, tmpval = 0, pwrtrac_value; in rtl88eu_phy_rf6052_set_cck_txpower() local 71 tmpval = hal_data->MCSTxPowerLevelOriginalOffset[0][6] + in rtl88eu_phy_rf6052_set_cck_txpower() 73 tx_agc[RF_PATH_A] += tmpval; in rtl88eu_phy_rf6052_set_cck_txpower() 75 tmpval = hal_data->MCSTxPowerLevelOriginalOffset[0][14] + in rtl88eu_phy_rf6052_set_cck_txpower() 77 tx_agc[RF_PATH_B] += tmpval; in rtl88eu_phy_rf6052_set_cck_txpower() 103 tmpval = tx_agc[RF_PATH_A]&0xff; in rtl88eu_phy_rf6052_set_cck_txpower() 104 phy_set_bb_reg(adapt, rTxAGC_A_CCK1_Mcs32, bMaskByte1, tmpval); in rtl88eu_phy_rf6052_set_cck_txpower() 105 tmpval = tx_agc[RF_PATH_A]>>8; in rtl88eu_phy_rf6052_set_cck_txpower() 106 phy_set_bb_reg(adapt, rTxAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl88eu_phy_rf6052_set_cck_txpower() 109 tmpval = tx_agc[RF_PATH_B]>>24; in rtl88eu_phy_rf6052_set_cck_txpower() [all …]
|
/Linux-v5.4/drivers/media/usb/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-v5.4/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-v5.4/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-v5.4/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 | 259 u32 last_rssi, tmpval; in _rtl92de_process_ui_rssi() local 277 tmpval = rtlpriv->stats.ui_rssi.total_val / in _rtl92de_process_ui_rssi() 280 (u8) tmpval); in _rtl92de_process_ui_rssi() 359 u32 last_evm, tmpval; in _rtl92de_process_ui_link_quality() local 380 tmpval = rtlpriv->stats.ui_link_quality.total_val / in _rtl92de_process_ui_link_quality() 382 rtlpriv->stats.signal_quality = tmpval; in _rtl92de_process_ui_link_quality() 383 rtlpriv->stats.last_sigstrength_inpercent = tmpval; in _rtl92de_process_ui_link_quality()
|
/Linux-v5.4/arch/ia64/kernel/ |
D | perfmon_montecito.h | 160 unsigned long tmpval; in pfm_mont_pmc_check() local 167 tmpval = *val; in pfm_mont_pmc_check() 186 …DPRINT(("cnum=%u val=0x%lx, using_dbreg=%d loaded=%d\n", cnum, tmpval, ctx->ctx_fl_using_dbreg, is… in pfm_mont_pmc_check() 189 …&& (tmpval & 0x1e00000000000UL) && (tmpval & 0x18181818UL) != 0x18181818UL && ctx->ctx_fl_using_db… in pfm_mont_pmc_check() 191 DPRINT(("pmc[%d]=0x%lx has active pmc41 settings, clearing dbr\n", cnum, tmpval)); in pfm_mont_pmc_check() 209 if (cnum == 38 && is_loaded && ((tmpval & 0x492UL) != 0x492UL) && ctx->ctx_fl_using_dbreg == 0) { in pfm_mont_pmc_check() 211 DPRINT(("pmc38=0x%lx has active pmc38 settings, clearing ibr\n", tmpval)); in pfm_mont_pmc_check() 253 *val = tmpval; in pfm_mont_pmc_check()
|
/Linux-v5.4/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-v5.4/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-v5.4/drivers/xen/xen-pciback/ |
D | conf_space_header.c | 152 u32 tmpval; in rom_write() local 153 pci_read_config_dword(dev, offset, &tmpval); in rom_write() 154 if (tmpval != bar->val && value == bar->val) { in rom_write() 195 u32 tmpval; in bar_write() local 196 pci_read_config_dword(dev, offset, &tmpval); in bar_write() 197 if (tmpval != bar->val && value == bar->val) { in bar_write()
|
/Linux-v5.4/drivers/net/can/sja1000/ |
D | plx_pci.c | 558 u8 tmpval; in plx_pci_reset_asem_dual_can_raw() local 569 tmpval = ioread8(bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw() 570 tmpval &= ~(ASEM_RAW_CAN_RST_MASK_CAN1 | ASEM_RAW_CAN_RST_MASK_CAN2); in plx_pci_reset_asem_dual_can_raw() 571 iowrite8(tmpval, bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw() 573 tmpval |= ASEM_RAW_CAN_RST_MASK_CAN1 | ASEM_RAW_CAN_RST_MASK_CAN2; in plx_pci_reset_asem_dual_can_raw() 574 iowrite8(tmpval, bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw()
|
/Linux-v5.4/drivers/platform/x86/ |
D | apple-gmux.c | 122 u8 tmpval; in gmux_pio_write32() local 125 tmpval = (val >> (i * 8)) & 0xff; in gmux_pio_write32() 126 outb(tmpval, gmux_data->iostart + port + i); in gmux_pio_write32() 205 u8 tmpval; in gmux_index_write32() local 210 tmpval = (val >> (i * 8)) & 0xff; in gmux_index_write32() 211 outb(tmpval, gmux_data->iostart + GMUX_PORT_VALUE + i); in gmux_index_write32()
|
/Linux-v5.4/crypto/ |
D | jitterentropy.c | 281 unsigned char *tmpval = ec->mem + ec->memlocation; in jent_memaccess() local 287 *tmpval = (*tmpval + 1) & 0xff; in jent_memaccess()
|
/Linux-v5.4/drivers/net/ethernet/ti/ |
D | davinci_emac.c | 569 u8 tmpval; in hash_get() local 574 tmpval = *addr++; in hash_get() 575 hash ^= (tmpval >> 2) ^ (tmpval << 4); in hash_get() 576 tmpval = *addr++; in hash_get() 577 hash ^= (tmpval >> 4) ^ (tmpval << 2); in hash_get() 578 tmpval = *addr++; in hash_get() 579 hash ^= (tmpval >> 6) ^ (tmpval); in hash_get()
|
/Linux-v5.4/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-v5.4/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_dm.c | 828 u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal() local 880 tmpval = (u8)tmpRegA - priv->ThermalMeter[0]; in _rtl92e_dm_tx_power_tracking_cb_thermal() 881 if (tmpval >= 6) { in _rtl92e_dm_tx_power_tracking_cb_thermal() 885 tmpOFDMindex = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal() 886 tmpCCK20Mindex = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal()
|
/Linux-v5.4/sound/pci/ |
D | es1968.c | 971 u32 tmpval = (addr - 0x10) & 0xFFF8; in snd_es1968_program_wavecache() local 975 tmpval |= 4; /* 8bit */ in snd_es1968_program_wavecache() 977 tmpval |= 2; /* stereo */ in snd_es1968_program_wavecache() 981 wave_set_register(chip, es->apu[channel] << 3, tmpval); in snd_es1968_program_wavecache() 984 es->wc_map[channel] = tmpval; in snd_es1968_program_wavecache()
|
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | phy.c | 639 u32 tmpval = 0; in _rtl92s_phy_config_rfpa_bias_current() local 643 tmpval = rtl92s_phy_query_rf_reg(hw, rfpath, RF_IPA, 0xf); in _rtl92s_phy_config_rfpa_bias_current() 644 rtl92s_phy_set_rf_reg(hw, rfpath, RF_IPA, 0xf, tmpval + 1); in _rtl92s_phy_config_rfpa_bias_current()
|
/Linux-v5.4/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-v5.4/drivers/media/dvb-frontends/ |
D | stv0367.c | 3049 u32 regval, tmpval, snrval = 0; in stv0367ddb_read_snr() local 3065 tmpval = (cab_pwr * 320) / regval; in stv0367ddb_read_snr() 3066 snrval = ((tmpval != 0) ? (intlog2(tmpval) / 5581) : 0); in stv0367ddb_read_snr()
|
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_n.c | 28346 u16 tmpval; in wlc_phy_txpwr_index_nphy() local 28444 &tmpval); in wlc_phy_txpwr_index_nphy() 28445 tmpval >>= ((core == PHY_CORE_0) ? 8 : 0); in wlc_phy_txpwr_index_nphy() 28446 tmpval &= 0xff; in wlc_phy_txpwr_index_nphy() 28447 pi->nphy_txpwrindex[core].bbmult = (u8) tmpval; in wlc_phy_txpwr_index_nphy()
|