Home
last modified time | relevance | path

Searched refs:tmpval (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/drivers/media/tuners/
Dqt1010.c50 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
Drf_common.c57 u32 tx_agc[2] = {0, 0}, tmpval; in rtl92d_phy_rf6052_set_cck_txpower() local
83 tmpval = (rtlphy->mcs_offset[0][6]) + in rtl92d_phy_rf6052_set_cck_txpower()
85 tx_agc[RF90_PATH_A] += tmpval; in rtl92d_phy_rf6052_set_cck_txpower()
86 tmpval = (rtlphy->mcs_offset[0][14]) + in rtl92d_phy_rf6052_set_cck_txpower()
88 tx_agc[RF90_PATH_B] += tmpval; in rtl92d_phy_rf6052_set_cck_txpower()
101 tmpval = tx_agc[RF90_PATH_A] & 0xff; in rtl92d_phy_rf6052_set_cck_txpower()
102 rtl_set_bbreg(hw, RTXAGC_A_CCK1_MCS32, MASKBYTE1, tmpval); in rtl92d_phy_rf6052_set_cck_txpower()
105 tmpval, RTXAGC_A_CCK1_MCS32); in rtl92d_phy_rf6052_set_cck_txpower()
106 tmpval = tx_agc[RF90_PATH_A] >> 8; in rtl92d_phy_rf6052_set_cck_txpower()
107 rtl_set_bbreg(hw, RTXAGC_B_CCK11_A_CCK2_11, 0xffffff00, tmpval); in rtl92d_phy_rf6052_set_cck_txpower()
[all …]
Dtrx_common.c211 u32 last_rssi, tmpval; in _rtl92d_process_ui_rssi() local
228 tmpval = ui_rssi->total_val / ui_rssi->total_num; in _rtl92d_process_ui_rssi()
229 rtlpriv->stats.signal_strength = _rtl92d_translate_todbm(hw, (u8)tmpval); in _rtl92d_process_ui_rssi()
309 u32 last_evm, tmpval; in _rtl92d_process_ui_link_quality() local
327 tmpval = ui_link_quality->total_val / ui_link_quality->total_num; in _rtl92d_process_ui_link_quality()
328 rtlpriv->stats.signal_quality = tmpval; in _rtl92d_process_ui_link_quality()
329 rtlpriv->stats.last_sigstrength_inpercent = tmpval; in _rtl92d_process_ui_link_quality()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Drf.c44 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Drf.c44 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Drf.c44 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Drf.c44 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Drf.c44 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.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Drf.c41 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.12.1/drivers/net/wireless/realtek/rtlwifi/
Dstats.c75 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.12.1/drivers/xen/xen-pciback/
Dconf_space_header.c142 u32 tmpval; in rom_write() local
143 pci_read_config_dword(dev, offset, &tmpval); in rom_write()
144 if (tmpval != bar->val && value == bar->val) { in rom_write()
184 u32 tmpval; in bar_write() local
185 pci_read_config_dword(dev, offset, &tmpval); in bar_write()
186 if (tmpval != bar->val && value == bar->val) { in bar_write()
/linux-6.12.1/drivers/net/can/sja1000/
Dplx_pci.c545 u8 tmpval; in plx_pci_reset_asem_dual_can_raw() local
556 tmpval = ioread8(bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw()
557 tmpval &= ~(ASEM_RAW_CAN_RST_MASK_CAN1 | ASEM_RAW_CAN_RST_MASK_CAN2); in plx_pci_reset_asem_dual_can_raw()
558 iowrite8(tmpval, bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw()
560 tmpval |= ASEM_RAW_CAN_RST_MASK_CAN1 | ASEM_RAW_CAN_RST_MASK_CAN2; in plx_pci_reset_asem_dual_can_raw()
561 iowrite8(tmpval, bar0_addr + ASEM_RAW_CAN_RST_REGISTER); in plx_pci_reset_asem_dual_can_raw()
/linux-6.12.1/drivers/platform/x86/
Dapple-gmux.c130 u8 tmpval; in gmux_pio_write32() local
133 tmpval = (val >> (i * 8)) & 0xff; in gmux_pio_write32()
134 outb(tmpval, gmux_data->iostart + port + i); in gmux_pio_write32()
213 u8 tmpval; in gmux_index_write32() local
218 tmpval = (val >> (i * 8)) & 0xff; in gmux_index_write32()
219 outb(tmpval, gmux_data->iostart + GMUX_PORT_VALUE + i); in gmux_index_write32()
/linux-6.12.1/crypto/
Djitterentropy.c487 unsigned char *tmpval = ec->mem + ec->memlocation; in jent_memaccess() local
493 *tmpval = (*tmpval + 1) & 0xff; in jent_memaccess()
/linux-6.12.1/drivers/net/ethernet/ti/
Ddavinci_emac.c587 u8 tmpval; in hash_get() local
592 tmpval = *addr++; in hash_get()
593 hash ^= (tmpval >> 2) ^ (tmpval << 4); in hash_get()
594 tmpval = *addr++; in hash_get()
595 hash ^= (tmpval >> 4) ^ (tmpval << 2); in hash_get()
596 tmpval = *addr++; in hash_get()
597 hash ^= (tmpval >> 6) ^ (tmpval); in hash_get()
/linux-6.12.1/drivers/mfd/
Dintel-m10-bmc-pmci.c65 unsigned int cmd, ack, tmpval; in indirect_reg_read() local
81 tmpval = readl(ctx->base + INDIRECT_RD_OFF); in indirect_reg_read()
90 *val = tmpval; in indirect_reg_read()
/linux-6.12.1/drivers/staging/rtl8192e/rtl8192e/
Drtl_dm.c641 u8 tmp_ofdm_index, tmp_cck_index, tmp_cck_20m_index, tmp_cck_40m_index, tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal() local
682 tmpval = (u8)tmp_reg - priv->thermal_meter[0]; in _rtl92e_dm_tx_power_tracking_cb_thermal()
683 if (tmpval >= 6) { in _rtl92e_dm_tx_power_tracking_cb_thermal()
687 tmp_ofdm_index = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal()
688 tmp_cck_20m_index = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal()
/linux-6.12.1/drivers/net/wireless/ath/ath9k/
Dhtc_drv_init.c262 __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.12.1/sound/pci/
Des1968.c961 u32 tmpval = (addr - 0x10) & 0xFFF8; in snd_es1968_program_wavecache() local
965 tmpval |= 4; /* 8bit */ in snd_es1968_program_wavecache()
967 tmpval |= 2; /* stereo */ in snd_es1968_program_wavecache()
971 wave_set_register(chip, es->apu[channel] << 3, tmpval); in snd_es1968_program_wavecache()
973 es->wc_map[channel] = tmpval; in snd_es1968_program_wavecache()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.c623 u32 tmpval = 0; in _rtl92s_phy_config_rfpa_bias_current() local
627 tmpval = rtl92s_phy_query_rf_reg(hw, rfpath, RF_IPA, 0xf); in _rtl92s_phy_config_rfpa_bias_current()
628 rtl92s_phy_set_rf_reg(hw, rfpath, RF_IPA, 0xf, tmpval + 1); in _rtl92s_phy_config_rfpa_bias_current()
/linux-6.12.1/drivers/gpu/drm/bridge/
Dtc358768.c190 int tmpval = val; in tc358768_write() local
200 priv->error = regmap_bulk_write(priv->regmap, reg, &tmpval, count); in tc358768_write()
/linux-6.12.1/drivers/media/dvb-frontends/
Dstv0367.c3027 u32 regval, tmpval, snrval = 0; in stv0367ddb_read_snr() local
3043 tmpval = (cab_pwr * 320) / regval; in stv0367ddb_read_snr()
3044 snrval = ((tmpval != 0) ? (intlog2(tmpval) / 5581) : 0); in stv0367ddb_read_snr()
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_n.c28312 u16 tmpval; in wlc_phy_txpwr_index_nphy() local
28410 &tmpval); in wlc_phy_txpwr_index_nphy()
28411 tmpval >>= ((core == PHY_CORE_0) ? 8 : 0); in wlc_phy_txpwr_index_nphy()
28412 tmpval &= 0xff; in wlc_phy_txpwr_index_nphy()
28413 pi->nphy_txpwrindex[core].bbmult = (u8) tmpval; in wlc_phy_txpwr_index_nphy()