Home
last modified time | relevance | path

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

/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/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 …]
/drivers/staging/media/deprecated/stkwebcam/
Dstk-sensor.c221 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 …]
/drivers/staging/r8188eu/hal/
Drtl8188e_rf6052.c89 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 …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Drf.c56 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 …]
Dtrx.c222 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()
/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 …]
/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()
/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()
/drivers/net/can/sja1000/
Dplx_pci.c546 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()
/drivers/platform/x86/
Dapple-gmux.c98 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()
/drivers/net/ethernet/ti/
Ddavinci_emac.c589 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()
/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()
/drivers/staging/rtl8192e/rtl8192e/
Drtl_dm.c748 u8 tmpOFDMindex, tmpCCKindex, tmpCCK20Mindex, tmpCCK40Mindex, tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal() local
790 tmpval = (u8)tmpRegA - priv->ThermalMeter[0]; in _rtl92e_dm_tx_power_tracking_cb_thermal()
791 if (tmpval >= 6) { in _rtl92e_dm_tx_power_tracking_cb_thermal()
795 tmpOFDMindex = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal()
796 tmpCCK20Mindex = 6 - tmpval; in _rtl92e_dm_tx_power_tracking_cb_thermal()
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dphy.c626 u32 tmpval = 0; in _rtl92s_phy_config_rfpa_bias_current() local
630 tmpval = rtl92s_phy_query_rf_reg(hw, rfpath, RF_IPA, 0xf); in _rtl92s_phy_config_rfpa_bias_current()
631 rtl92s_phy_set_rf_reg(hw, rfpath, RF_IPA, 0xf, tmpval + 1); in _rtl92s_phy_config_rfpa_bias_current()
/drivers/staging/rtl8192u/
Dr8192U_dm.c653 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()
/drivers/gpu/drm/bridge/
Dtc358768.c186 int tmpval = val; in tc358768_write() local
196 priv->error = regmap_bulk_write(priv->regmap, reg, &tmpval, count); in tc358768_write()
/drivers/media/dvb-frontends/
Dstv0367.c3045 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()
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_n.c28315 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()