Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/dvb-frontends/
Dts2020.c74 u8 u8tmp; in ts2020_sleep() local
77 u8tmp = 0x0a; /* XXX: probably wrong */ in ts2020_sleep()
79 u8tmp = 0x00; in ts2020_sleep()
81 ret = regmap_write(priv->regmap, u8tmp, 0x00); in ts2020_sleep()
96 u8 u8tmp; in ts2020_init() local
127 u8tmp = 0x60; in ts2020_init()
130 u8tmp = 0x70; in ts2020_init()
134 u8tmp = 0x6c; in ts2020_init()
137 u8tmp = 0x60; in ts2020_init()
141 regmap_write(priv->regmap, 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 …]
Dm88ds3103.c307 u8 u8tmp, u8tmp1 = 0, u8tmp2 = 0; /* silence compiler warning */ in m88ds3103_set_frontend() local
493 u8tmp = 0x06; in m88ds3103_set_frontend()
497 u8tmp = 0x06; in m88ds3103_set_frontend()
500 u8tmp = 0x02; in m88ds3103_set_frontend()
503 u8tmp = 0x03; in m88ds3103_set_frontend()
512 u8tmp |= 0x40; in m88ds3103_set_frontend()
515 ret = regmap_write(dev->regmap, 0xfd, u8tmp); in m88ds3103_set_frontend()
547 ret = regmap_bulk_read(dev->regmap, 0xfe, &u8tmp, 1); in m88ds3103_set_frontend()
551 u8tmp = ((u8tmp & 0xf0) << 0) | u8tmp1 >> 2; in m88ds3103_set_frontend()
552 ret = regmap_write(dev->regmap, 0xfe, u8tmp); in m88ds3103_set_frontend()
[all …]
Drtl2832.c752 u8 u8tmp, buf[2]; in rtl2832_stat_work() local
760 ret = rtl2832_bulk_read(client, 0x305, &u8tmp, 1); in rtl2832_stat_work()
764 dev_dbg(&client->dev, "digital agc=%02x", u8tmp); in rtl2832_stat_work()
766 u8tmp = ~u8tmp; in rtl2832_stat_work()
767 u16tmp = u8tmp << 8 | u8tmp << 0; in rtl2832_stat_work()
786 ret = rtl2832_bulk_read(client, 0x33c, &u8tmp, 1); in rtl2832_stat_work()
790 constellation = (u8tmp >> 2) & 0x03; /* [3:2] */ in rtl2832_stat_work()
794 hierarchy = (u8tmp >> 4) & 0x07; /* [6:4] */ in rtl2832_stat_work()
1136 u8 u8tmp; in rtl2832_pid_filter_ctrl() local
1142 u8tmp = 0x80; in rtl2832_pid_filter_ctrl()
[all …]
/linux-4.4.14/drivers/media/tuners/
De4000.c402 u8 u8tmp; in e4000_set_lna_gain() local
409 u8tmp = 0x17; in e4000_set_lna_gain()
411 u8tmp = 0x19; in e4000_set_lna_gain()
413 u8tmp = 0x16; in e4000_set_lna_gain()
415 u8tmp = 0x10; in e4000_set_lna_gain()
417 ret = regmap_write(dev->regmap, 0x1a, u8tmp); in e4000_set_lna_gain()
438 u8 u8tmp; in e4000_set_mixer_gain() local
445 u8tmp = 0x15; in e4000_set_mixer_gain()
447 u8tmp = 0x14; in e4000_set_mixer_gain()
449 ret = regmap_write(dev->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.4.14/drivers/net/wireless/realtek/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.c3132 u8 u8tmp = 0; in ex_btc8723b2ant_init_hwconfig() local
3140 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in ex_btc8723b2ant_init_hwconfig()
3141 u8tmp &= 0xc0; in ex_btc8723b2ant_init_hwconfig()
3142 u8tmp |= 0x5; in ex_btc8723b2ant_init_hwconfig()
3143 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in ex_btc8723b2ant_init_hwconfig()
3171 u8 u8tmp[4], i, bt_info_ext, ps_tdma_case = 0; in ex_btc8723b2ant_display_coex_info() local
3321 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_btc8723b2ant_display_coex_info()
3324 "0x778/0x880[29:25]", u8tmp[0], in ex_btc8723b2ant_display_coex_info()
3328 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x67); in ex_btc8723b2ant_display_coex_info()
3329 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x765); in ex_btc8723b2ant_display_coex_info()
[all …]
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c883 u8 u8tmp; in airspy_set_lna_gain() local
890 &u8tmp, 1); in airspy_set_lna_gain()
896 &u8tmp, 1); in airspy_set_lna_gain()
910 u8 u8tmp; in airspy_set_mixer_gain() local
917 &u8tmp, 1); in airspy_set_mixer_gain()
923 s->mixer_gain->val, &u8tmp, 1); in airspy_set_mixer_gain()
937 u8 u8tmp; in airspy_set_if_gain() local
942 &u8tmp, 1); in airspy_set_if_gain()
984 u8 u8tmp, buf[BUF_SIZE]; in airspy_probe() local
1004 ret = airspy_ctrl_msg(s, CMD_BOARD_ID_READ, 0, 0, &u8tmp, 1); in airspy_probe()
[all …]
/linux-4.4.14/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.4.14/drivers/media/usb/hackrf/
Dhackrf.c248 u8 buf[8], u8tmp; in hackrf_set_params() local
387 u8tmp = (dev->rx_rf_gain->val) ? 1 : 0; in hackrf_set_params()
388 ret = hackrf_ctrl_msg(dev, CMD_AMP_ENABLE, u8tmp, 0, NULL, 0); in hackrf_set_params()
399 u8tmp = (dev->tx_rf_gain->val) ? 1 : 0; in hackrf_set_params()
400 ret = hackrf_ctrl_msg(dev, CMD_AMP_ENABLE, u8tmp, 0, NULL, 0); in hackrf_set_params()
412 dev->rx_lna_gain->val, &u8tmp, 1); in hackrf_set_params()
423 dev->rx_if_gain->val, &u8tmp, 1); in hackrf_set_params()
434 dev->tx_lna_gain->val, &u8tmp, 1); in hackrf_set_params()
1372 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe() local
1400 ret = hackrf_ctrl_msg(dev, CMD_BOARD_ID_READ, 0, 0, &u8tmp, 1); in hackrf_probe()
[all …]
/linux-4.4.14/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.4.14/drivers/net/wireless/realtek/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()