/linux/drivers/media/tuners/ |
A D | qt1010.c | 50 u8 i, tmpval, reg05; in qt1010_set_params() local 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() 177 if (mod1 < 8000000) tmpval = 0x00; in qt1010_set_params() 285 u8 i, tmpval, *valptr = NULL; in qt1010_init() local 337 valptr = &tmpval; in qt1010_init() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
A D | rf.c | 44 u32 tx_agc[2] = {0, 0}, tmpval; in rtl92ce_phy_rf6052_set_cck_txpower() local 75 tx_agc[RF90_PATH_A] += tmpval; 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() 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() 107 tmpval, RTXAGC_B_CCK11_A_CCK2_11); in rtl92ce_phy_rf6052_set_cck_txpower() 109 tmpval = tx_agc[RF90_PATH_B] >> 24; in rtl92ce_phy_rf6052_set_cck_txpower() 114 tmpval, RTXAGC_B_CCK11_A_CCK2_11); in rtl92ce_phy_rf6052_set_cck_txpower() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
A D | rf.c | 44 u32 tx_agc[2] = { 0, 0 }, tmpval = 0; in rtl92cu_phy_rf6052_set_cck_txpower() local 78 tx_agc[RF90_PATH_A] += tmpval; 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() 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() 106 tmpval, RTXAGC_B_CCK11_A_CCK2_11); in rtl92cu_phy_rf6052_set_cck_txpower() 107 tmpval = tx_agc[RF90_PATH_B] >> 24; in rtl92cu_phy_rf6052_set_cck_txpower() 111 tmpval, RTXAGC_B_CCK11_A_CCK2_11); in rtl92cu_phy_rf6052_set_cck_txpower() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
A 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() 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() 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() 113 tmpval = tx_agc[RF90_PATH_B] >> 24; in rtl8723e_phy_rf6052_set_cck_txpower() 117 "CCK PWR 11M (rf-B) = 0x%x (reg 0x%x)\n", tmpval, in rtl8723e_phy_rf6052_set_cck_txpower() [all …]
|
/linux/drivers/media/usb/stkwebcam/ |
A D | stk-sensor.c | 221 u8 tmpval = 0; in stk_sensor_outb() local 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 256 } while (tmpval == 0 && i < MAX_RETRIES); in stk_sensor_inb() 257 if (tmpval != STK_IIC_STAT_RX_OK) { in stk_sensor_inb() 258 if (tmpval) in stk_sensor_inb() 260 tmpval); in stk_sensor_inb() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
A 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() 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() 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() 118 "CCK PWR 2~11M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl88e_phy_rf6052_set_cck_txpower() 121 tmpval = tx_agc[RF90_PATH_B] >> 24; in rtl88e_phy_rf6052_set_cck_txpower() 125 "CCK PWR 11M (rf-B) = 0x%x (reg 0x%x)\n", tmpval, in rtl88e_phy_rf6052_set_cck_txpower() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
A 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() 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() 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() 117 "CCK PWR 2~11M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl8723be_phy_rf6052_set_cck_txpower() 120 tmpval = tx_agc[RF90_PATH_B] >> 24; in rtl8723be_phy_rf6052_set_cck_txpower() 124 "CCK PWR 11M (rf-B) = 0x%x (reg 0x%x)\n", tmpval, in rtl8723be_phy_rf6052_set_cck_txpower() [all …]
|
/linux/drivers/staging/r8188eu/hal/ |
A D | rtl8188e_rf6052.c | 89 u32 TxAGC[2] = {0, 0}, tmpval = 0, pwrtrac_value; in rtl8188e_PHY_RF6052SetCckTxPower() local 120 tmpval = (pHalData->MCSTxPowerLevelOriginalOffset[0][6]) + in rtl8188e_PHY_RF6052SetCckTxPower() 122 TxAGC[RF_PATH_A] += tmpval; in rtl8188e_PHY_RF6052SetCckTxPower() 124 tmpval = (pHalData->MCSTxPowerLevelOriginalOffset[0][14]) + in rtl8188e_PHY_RF6052SetCckTxPower() 126 TxAGC[RF_PATH_B] += tmpval; in rtl8188e_PHY_RF6052SetCckTxPower() 150 tmpval = TxAGC[RF_PATH_A] & 0xff; in rtl8188e_PHY_RF6052SetCckTxPower() 151 PHY_SetBBReg(Adapter, rTxAGC_A_CCK1_Mcs32, bMaskByte1, tmpval); in rtl8188e_PHY_RF6052SetCckTxPower() 152 tmpval = TxAGC[RF_PATH_A] >> 8; in rtl8188e_PHY_RF6052SetCckTxPower() 156 tmpval = TxAGC[RF_PATH_B] >> 24; in rtl8188e_PHY_RF6052SetCckTxPower() 158 tmpval = TxAGC[RF_PATH_B] & 0x00ffffff; in rtl8188e_PHY_RF6052SetCckTxPower() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
A 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() 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() 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() 109 tmpval, RTXAGC_B_CCK11_A_CCK2_11); in rtl92d_phy_rf6052_set_cck_txpower() 110 tmpval = tx_agc[RF90_PATH_B] >> 24; in rtl92d_phy_rf6052_set_cck_txpower() 114 tmpval, RTXAGC_B_CCK11_A_CCK2_11); in rtl92d_phy_rf6052_set_cck_txpower() [all …]
|
A 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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
A 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/drivers/net/wireless/realtek/rtlwifi/ |
A 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/drivers/xen/xen-pciback/ |
A 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/drivers/net/can/sja1000/ |
A 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/drivers/platform/x86/ |
A 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/crypto/ |
A D | jitterentropy.c | 483 unsigned char *tmpval = ec->mem + ec->memlocation; in jent_memaccess() local 489 *tmpval = (*tmpval + 1) & 0xff; in jent_memaccess()
|
/linux/drivers/net/ethernet/ti/ |
A D | davinci_emac.c | 590 u8 tmpval; in hash_get() local 595 tmpval = *addr++; in hash_get() 596 hash ^= (tmpval >> 2) ^ (tmpval << 4); in hash_get() 597 tmpval = *addr++; in hash_get() 598 hash ^= (tmpval >> 4) ^ (tmpval << 2); in hash_get() 599 tmpval = *addr++; in hash_get() 600 hash ^= (tmpval >> 6) ^ (tmpval); in hash_get()
|
/linux/drivers/net/wireless/ath/ath9k/ |
A 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/drivers/staging/rtl8192e/rtl8192e/ |
A 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/sound/pci/ |
A 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/drivers/gpu/drm/bridge/ |
A 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/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
A 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/drivers/staging/rtl8192u/ |
A 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/drivers/media/dvb-frontends/ |
A 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/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
A 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()
|