Home
last modified time | relevance | path

Searched refs:u8tmp (Results 1 – 15 of 15) sorted by relevance

/linux-4.1.27/drivers/media/dvb-frontends/
Dm88ds3103.c117 u8 u8tmp; in m88ds3103_wr_reg_mask() local
121 ret = m88ds3103_rd_regs(priv, reg, &u8tmp, 1); in m88ds3103_wr_reg_mask()
126 u8tmp &= ~mask; in m88ds3103_wr_reg_mask()
127 val |= u8tmp; in m88ds3103_wr_reg_mask()
138 u8 u8tmp; in m88ds3103_rd_reg_mask() local
140 ret = m88ds3103_rd_regs(priv, reg, &u8tmp, 1); in m88ds3103_rd_reg_mask()
144 u8tmp &= mask; in m88ds3103_rd_reg_mask()
151 *val = u8tmp >> i; in m88ds3103_rd_reg_mask()
194 u8 u8tmp; in m88ds3103_read_status() local
205 ret = m88ds3103_rd_reg_mask(priv, 0xd1, &u8tmp, 0x07); in m88ds3103_read_status()
[all …]
Dts2020.c126 u8 u8tmp; in ts2020_sleep() local
129 u8tmp = 0x0a; /* XXX: probably wrong */ in ts2020_sleep()
131 u8tmp = 0x00; in ts2020_sleep()
133 return ts2020_writereg(fe, u8tmp, 0x00); in ts2020_sleep()
140 u8 u8tmp; in ts2020_init() local
171 u8tmp = 0x60; in ts2020_init()
174 u8tmp = 0x70; in ts2020_init()
178 u8tmp = 0x6c; in ts2020_init()
181 u8tmp = 0x60; in ts2020_init()
185 ts2020_writereg(fe, 0x42, u8tmp); in ts2020_init()
[all …]
Drtl2830.c179 u8 buf[3], u8tmp; in rtl2830_set_frontend() local
252 ret = rtl2830_bulk_read(client, 0x119, &u8tmp, 1); in rtl2830_set_frontend()
256 buf[0] |= u8tmp & 0xc0; /* [7:6] */ in rtl2830_set_frontend()
400 u8 u8tmp; in rtl2830_read_status() local
407 ret = rtl2830_bulk_read(client, 0x351, &u8tmp, 1); in rtl2830_read_status()
411 u8tmp = (u8tmp >> 3) & 0x0f; /* [6:3] */ in rtl2830_read_status()
412 if (u8tmp == 11) { in rtl2830_read_status()
415 } else if (u8tmp == 10) { in rtl2830_read_status()
512 u8 u8tmp, buf[2]; in rtl2830_stat_work() local
550 ret = rtl2830_bulk_read(client, 0x33c, &u8tmp, 1); in rtl2830_stat_work()
[all …]
Daf9033.c874 u8 u8tmp; in af9033_read_snr() local
887 ret = af9033_rd_reg(dev, 0x80f903, &u8tmp); in af9033_read_snr()
892 switch ((u8tmp >> 0) & 3) { in af9033_read_snr()
923 u8 u8tmp, gain_offset, buf[7]; in af9033_read_signal_strength() local
927 ret = af9033_rd_reg(dev, 0x800048, &u8tmp); in af9033_read_signal_strength()
932 *strength = u8tmp * 0xffff / 100; in af9033_read_signal_strength()
934 ret = af9033_rd_reg(dev, 0x8000f7, &u8tmp); in af9033_read_signal_strength()
947 power_real = (u8tmp - 100 - gain_offset) - in af9033_read_signal_strength()
1067 u8 u8tmp, buf[7]; in af9033_stat_work() local
1074 ret = af9033_rd_reg(dev, 0x80004a, &u8tmp); in af9033_stat_work()
[all …]
Drtl2832.c744 u8 u8tmp, buf[2]; in rtl2832_stat_work() local
752 ret = rtl2832_bulk_read(client, 0x305, &u8tmp, 1); in rtl2832_stat_work()
756 dev_dbg(&client->dev, "digital agc=%02x", u8tmp); in rtl2832_stat_work()
758 u8tmp = ~u8tmp; in rtl2832_stat_work()
759 u16tmp = u8tmp << 8 | u8tmp << 0; in rtl2832_stat_work()
778 ret = rtl2832_bulk_read(client, 0x33c, &u8tmp, 1); in rtl2832_stat_work()
782 constellation = (u8tmp >> 2) & 0x03; /* [3:2] */ in rtl2832_stat_work()
786 hierarchy = (u8tmp >> 4) & 0x07; /* [6:4] */ in rtl2832_stat_work()
1128 u8 u8tmp; in rtl2832_pid_filter_ctrl() local
1134 u8tmp = 0x80; in rtl2832_pid_filter_ctrl()
[all …]
/linux-4.1.27/drivers/media/tuners/
De4000.c275 u8 u8tmp; in e4000_set_lna_gain() local
282 u8tmp = 0x17; in e4000_set_lna_gain()
284 u8tmp = 0x19; in e4000_set_lna_gain()
286 u8tmp = 0x16; in e4000_set_lna_gain()
288 u8tmp = 0x10; in e4000_set_lna_gain()
290 ret = regmap_write(s->regmap, 0x1a, u8tmp); in e4000_set_lna_gain()
310 u8 u8tmp; in e4000_set_mixer_gain() local
317 u8tmp = 0x15; in e4000_set_mixer_gain()
319 u8tmp = 0x14; in e4000_set_mixer_gain()
321 ret = regmap_write(s->regmap, 0x20, u8tmp); in e4000_set_mixer_gain()
[all …]
Dit913x.c225 u8 u8tmp, n, l_band, lna_band; in it913x_set_params() local
337 u8tmp = 0; in it913x_set_params()
339 u8tmp = 2; in it913x_set_params()
341 u8tmp = 4; in it913x_set_params()
343 u8tmp = 6; /* 8000000 */ in it913x_set_params()
345 ret = regmap_write(dev->regmap, 0x80ec56, u8tmp); in it913x_set_params()
/linux-4.1.27/drivers/net/wireless/rtlwifi/btcoexist/
Dhalbtc8723b1ant.c2305 u8 u8tmp = 0; in halbtc8723b1ant_init_hw_config() local
2349 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in halbtc8723b1ant_init_hw_config()
2350 u8tmp &= 0xc0; in halbtc8723b1ant_init_hw_config()
2351 u8tmp |= 0x5; in halbtc8723b1ant_init_hw_config()
2352 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in halbtc8723b1ant_init_hw_config()
2402 u8 u8tmp[4], i, bt_info_ext, pstdmacase = 0; in ex_halbtc8723b1ant_display_coex_info() local
2598 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_halbtc8723b1ant_display_coex_info()
2601 u32tmp[0], u32tmp[1], u16tmp[0], u8tmp[0]); in ex_halbtc8723b1ant_display_coex_info()
2603 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_halbtc8723b1ant_display_coex_info()
2607 "0x778/0x6cc/0x880[29:25]", u8tmp[0], u32tmp[0], in ex_halbtc8723b1ant_display_coex_info()
[all …]
Dhalbtc8192e2ant.c3213 u8 u8tmp = 0; in halbtc8192e2ant_init_hwconfig() local
3254 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in halbtc8192e2ant_init_hwconfig()
3255 u8tmp &= 0xc0; in halbtc8192e2ant_init_hwconfig()
3256 u8tmp |= 0x5; in halbtc8192e2ant_init_hwconfig()
3257 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in halbtc8192e2ant_init_hwconfig()
3270 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x101); in halbtc8192e2ant_init_hwconfig()
3271 u8tmp |= BIT4; in halbtc8192e2ant_init_hwconfig()
3272 btcoexist->btc_write_1byte(btcoexist, 0x101, u8tmp); in halbtc8192e2ant_init_hwconfig()
3275 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x93); in halbtc8192e2ant_init_hwconfig()
3276 u8tmp |= BIT0; in halbtc8192e2ant_init_hwconfig()
[all …]
Dhalbtc8723b2ant.c3129 u8 u8tmp = 0; in ex_btc8723b2ant_init_hwconfig() local
3137 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in ex_btc8723b2ant_init_hwconfig()
3138 u8tmp &= 0xc0; in ex_btc8723b2ant_init_hwconfig()
3139 u8tmp |= 0x5; in ex_btc8723b2ant_init_hwconfig()
3140 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in ex_btc8723b2ant_init_hwconfig()
3168 u8 u8tmp[4], i, bt_info_ext, ps_tdma_case = 0; in ex_btc8723b2ant_display_coex_info() local
3318 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_btc8723b2ant_display_coex_info()
3321 "0x778/0x880[29:25]", u8tmp[0], in ex_btc8723b2ant_display_coex_info()
3325 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x67); in ex_btc8723b2ant_display_coex_info()
3326 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x765); in ex_btc8723b2ant_display_coex_info()
[all …]
/linux-4.1.27/drivers/media/usb/airspy/
Dairspy.c879 u8 u8tmp; in airspy_set_lna_gain() local
886 &u8tmp, 1); in airspy_set_lna_gain()
892 &u8tmp, 1); in airspy_set_lna_gain()
906 u8 u8tmp; in airspy_set_mixer_gain() local
913 &u8tmp, 1); in airspy_set_mixer_gain()
919 s->mixer_gain->val, &u8tmp, 1); in airspy_set_mixer_gain()
933 u8 u8tmp; in airspy_set_if_gain() local
938 &u8tmp, 1); in airspy_set_if_gain()
983 u8 u8tmp, buf[BUF_SIZE]; in airspy_probe() local
1003 ret = airspy_ctrl_msg(s, CMD_BOARD_ID_READ, 0, 0, &u8tmp, 1); in airspy_probe()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Dpci.c59 u8 u8tmp; in ath5k_pci_read_cachesize() local
61 pci_read_config_byte(ah->pdev, PCI_CACHE_LINE_SIZE, &u8tmp); in ath5k_pci_read_cachesize()
62 *csz = (int)u8tmp; in ath5k_pci_read_cachesize()
/linux-4.1.27/drivers/media/usb/hackrf/
Dhackrf.c955 u8 u8tmp; in hackrf_set_lna_gain() local
961 &u8tmp, 1); in hackrf_set_lna_gain()
971 u8 u8tmp; in hackrf_set_if_gain() local
977 &u8tmp, 1); in hackrf_set_if_gain()
1019 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe() local
1037 ret = hackrf_ctrl_msg(dev, CMD_BOARD_ID_READ, 0, 0, &u8tmp, 1); in hackrf_probe()
1048 dev_info(dev->dev, "Board ID: %02x\n", u8tmp); in hackrf_probe()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dpci.c772 u8 u8tmp; in ath_pci_read_cachesize() local
774 pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp); in ath_pci_read_cachesize()
775 *csz = (int)u8tmp; in ath_pci_read_cachesize()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
Dhw.c697 u8 u8tmp, testcnt = 0; in _rtl92ee_llt_table_init() local
718 u8tmp = rtl_read_byte(rtlpriv, REG_AUTO_LLT + 2); in _rtl92ee_llt_table_init()
719 rtl_write_byte(rtlpriv, REG_AUTO_LLT + 2, u8tmp | BIT(0)); in _rtl92ee_llt_table_init()
721 while (u8tmp & BIT(0)) { in _rtl92ee_llt_table_init()
722 u8tmp = rtl_read_byte(rtlpriv, REG_AUTO_LLT + 2); in _rtl92ee_llt_table_init()