/Linux-v4.19/drivers/media/dvb-frontends/ |
D | ts2020.c | 73 u8 u8tmp; in ts2020_sleep() local 76 u8tmp = 0x0a; /* XXX: probably wrong */ in ts2020_sleep() 78 u8tmp = 0x00; in ts2020_sleep() 80 ret = regmap_write(priv->regmap, u8tmp, 0x00); in ts2020_sleep() 95 u8 u8tmp; in ts2020_init() local 126 u8tmp = 0x60; in ts2020_init() 129 u8tmp = 0x70; in ts2020_init() 133 u8tmp = 0x6c; in ts2020_init() 136 u8tmp = 0x60; in ts2020_init() 140 regmap_write(priv->regmap, 0x42, u8tmp); in ts2020_init() [all …]
|
D | rtl2830.c | 175 u8 buf[3], u8tmp; in rtl2830_set_frontend() local 248 ret = rtl2830_bulk_read(client, 0x119, &u8tmp, 1); in rtl2830_set_frontend() 252 buf[0] |= u8tmp & 0xc0; /* [7:6] */ in rtl2830_set_frontend() 398 u8 u8tmp, buf[2]; in rtl2830_read_status() local 405 ret = rtl2830_bulk_read(client, 0x351, &u8tmp, 1); in rtl2830_read_status() 409 u8tmp = (u8tmp >> 3) & 0x0f; /* [6:3] */ in rtl2830_read_status() 410 if (u8tmp == 11) { in rtl2830_read_status() 413 } else if (u8tmp == 10) { in rtl2830_read_status() 450 ret = rtl2830_bulk_read(client, 0x33c, &u8tmp, 1); in rtl2830_read_status() 454 constellation = (u8tmp >> 2) & 0x03; /* [3:2] */ in rtl2830_read_status() [all …]
|
D | zd1301_demod.c | 240 u8 u8tmp; in zd1301_demod_read_status() local 242 ret = zd1301_demod_rreg(dev, 0x6a24, &u8tmp); in zd1301_demod_read_status() 245 if (u8tmp > 0x00 && u8tmp < 0x20) in zd1301_demod_read_status() 251 dev_dbg(&pdev->dev, "lock byte=%02x\n", u8tmp); in zd1301_demod_read_status() 325 u8 u8tmp; in zd1301_demod_i2c_master_xfer() local 369 for (u8tmp = 1; !time_after(jiffies, timeout) && u8tmp;) { in zd1301_demod_i2c_master_xfer() 372 ret = zd1301_demod_rreg(dev, 0x6804, &u8tmp); in zd1301_demod_i2c_master_xfer() 423 for (u8tmp = 1; !time_after(jiffies, timeout) && u8tmp;) { in zd1301_demod_i2c_master_xfer() 426 ret = zd1301_demod_rreg(dev, 0x6804, &u8tmp); in zd1301_demod_i2c_master_xfer()
|
D | si2165.c | 678 u8 u8tmp; in si2165_read_status() local 689 ret = si2165_readreg8(state, REG_CHECK_SIGNAL, &u8tmp); in si2165_read_status() 692 switch (u8tmp & 0x3) { in si2165_read_status() 703 ret = si2165_readreg8(state, REG_PS_LOCK, &u8tmp); in si2165_read_status() 706 if (u8tmp & 0x01) { in si2165_read_status() 716 ret = si2165_readreg8(state, REG_FEC_LOCK, &u8tmp); in si2165_read_status() 719 if (u8tmp & 0x01) { in si2165_read_status() 770 ret = si2165_readreg8(state, REG_BER_AVAIL, &u8tmp); in si2165_read_status() 774 if (u8tmp & 1) { in si2165_read_status() 979 u8 u8tmp; in si2165_set_frontend_dvbc() local [all …]
|
D | rtl2832.c | 657 u8 u8tmp, buf[2]; in rtl2832_read_status() local 683 ret = regmap_bulk_read(dev->regmap, 0x305, &u8tmp, 1); in rtl2832_read_status() 687 dev_dbg(&client->dev, "digital agc=%02x", u8tmp); in rtl2832_read_status() 689 u8tmp = ~u8tmp; in rtl2832_read_status() 690 u16tmp = u8tmp << 8 | u8tmp << 0; in rtl2832_read_status() 709 ret = regmap_bulk_read(dev->regmap, 0x33c, &u8tmp, 1); in rtl2832_read_status() 713 constellation = (u8tmp >> 2) & 0x03; /* [3:2] */ in rtl2832_read_status() 717 hierarchy = (u8tmp >> 4) & 0x07; /* [6:4] */ in rtl2832_read_status() 963 u8 u8tmp; in rtl2832_pid_filter_ctrl() local 969 u8tmp = 0x80; in rtl2832_pid_filter_ctrl() [all …]
|
D | m88ds3103.c | 307 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() 540 u8tmp = (u8tmp1 >> 2) & 0x0f; in m88ds3103_set_frontend() 541 ret = regmap_update_bits(dev->regmap, 0xfe, 0x0f, u8tmp); in m88ds3103_set_frontend() 544 u8tmp = ((u8tmp1 & 0x03) << 6) | u8tmp2 >> 0; in m88ds3103_set_frontend() [all …]
|
/Linux-v4.19/drivers/media/tuners/ |
D | e4000.c | 392 u8 u8tmp; in e4000_set_lna_gain() local 399 u8tmp = 0x17; in e4000_set_lna_gain() 401 u8tmp = 0x19; in e4000_set_lna_gain() 403 u8tmp = 0x16; in e4000_set_lna_gain() 405 u8tmp = 0x10; in e4000_set_lna_gain() 407 ret = regmap_write(dev->regmap, 0x1a, u8tmp); in e4000_set_lna_gain() 428 u8 u8tmp; in e4000_set_mixer_gain() local 435 u8tmp = 0x15; in e4000_set_mixer_gain() 437 u8tmp = 0x14; in e4000_set_mixer_gain() 439 ret = regmap_write(dev->regmap, 0x20, u8tmp); in e4000_set_mixer_gain() [all …]
|
D | it913x.c | 225 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-v4.19/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
D | halbtc8723b1ant.c | 803 u8 h2c_parameter[2] = {0}, u8tmp = 0; in halbtc8723b1ant_set_ant_path() local 882 u8tmp = btcoexist->btc_read_1byte(btcoexist, in halbtc8723b1ant_set_ant_path() 885 if (u8tmp & BIT(0)) { in halbtc8723b1ant_set_ant_path() 2391 u8 u8tmp = 0x0; in ex_btc8723b1ant_power_on_setting() local 2425 u8tmp |= 0x1; /* antenna inverse */ in ex_btc8723b1ant_power_on_setting() 2426 btcoexist->btc_write_local_reg_1byte(btcoexist, 0xfe08, u8tmp); in ex_btc8723b1ant_power_on_setting() 2439 u8tmp |= 0x1; /* antenna inverse */ in ex_btc8723b1ant_power_on_setting() 2449 u8tmp); in ex_btc8723b1ant_power_on_setting() 2452 u8tmp); in ex_btc8723b1ant_power_on_setting() 2484 u8 u8tmp[4], i, bt_info_ext, pstdmacase = 0; in ex_btc8723b1ant_display_coex_info() local [all …]
|
D | halbtc8192e2ant.c | 2618 u8 u8tmp = 0; in btc8192e2ant_init_hwconfig() local 2659 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in btc8192e2ant_init_hwconfig() 2660 u8tmp &= 0xc0; in btc8192e2ant_init_hwconfig() 2661 u8tmp |= 0x5; in btc8192e2ant_init_hwconfig() 2662 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in btc8192e2ant_init_hwconfig() 2675 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x101); in btc8192e2ant_init_hwconfig() 2676 u8tmp |= BIT4; in btc8192e2ant_init_hwconfig() 2677 btcoexist->btc_write_1byte(btcoexist, 0x101, u8tmp); in btc8192e2ant_init_hwconfig() 2680 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x93); in btc8192e2ant_init_hwconfig() 2681 u8tmp |= BIT0; in btc8192e2ant_init_hwconfig() [all …]
|
D | halbtc8723b2ant.c | 3553 u8 u8tmp = 0; in ex_btc8723b2ant_init_hwconfig() local 3561 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in ex_btc8723b2ant_init_hwconfig() 3562 u8tmp &= 0xc0; in ex_btc8723b2ant_init_hwconfig() 3563 u8tmp |= 0x5; in ex_btc8723b2ant_init_hwconfig() 3564 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in ex_btc8723b2ant_init_hwconfig() 3616 u8 u8tmp = 0x4; /* Set BIT2 by default since it's 2ant case */ in ex_btc8723b2ant_pre_load_firmware() local 3632 u8tmp |= 0x1; /* antenna inverse */ in ex_btc8723b2ant_pre_load_firmware() 3633 btcoexist->btc_write_local_reg_1byte(btcoexist, 0xfe08, u8tmp); in ex_btc8723b2ant_pre_load_firmware() 3639 u8tmp |= 0x1; /* antenna inverse */ in ex_btc8723b2ant_pre_load_firmware() 3644 u8tmp); in ex_btc8723b2ant_pre_load_firmware() [all …]
|
D | halbtc8821a2ant.c | 3616 u8 u8tmp = 0x4; /* Set BIT2 by default since it's 2ant case */ in ex_btc8821a2ant_pre_load_firmware() local 3631 u8tmp |= 0x1; /* antenna inverse */ in ex_btc8821a2ant_pre_load_firmware() 3632 btcoexist->btc_write_local_reg_1byte(btcoexist, 0xfe08, u8tmp); in ex_btc8821a2ant_pre_load_firmware() 3638 u8tmp |= 0x1; /* antenna inverse */ in ex_btc8821a2ant_pre_load_firmware() 3643 u8tmp); in ex_btc8821a2ant_pre_load_firmware() 3646 u8tmp); in ex_btc8821a2ant_pre_load_firmware()
|
/Linux-v4.19/drivers/media/usb/airspy/ |
D | airspy.c | 881 u8 u8tmp; in airspy_set_lna_gain() local 888 &u8tmp, 1); in airspy_set_lna_gain() 894 &u8tmp, 1); in airspy_set_lna_gain() 908 u8 u8tmp; in airspy_set_mixer_gain() local 915 &u8tmp, 1); in airspy_set_mixer_gain() 921 s->mixer_gain->val, &u8tmp, 1); in airspy_set_mixer_gain() 935 u8 u8tmp; in airspy_set_if_gain() local 940 &u8tmp, 1); in airspy_set_if_gain() 982 u8 u8tmp, buf[BUF_SIZE]; in airspy_probe() local 1002 ret = airspy_ctrl_msg(s, CMD_BOARD_ID_READ, 0, 0, &u8tmp, 1); in airspy_probe() [all …]
|
/Linux-v4.19/drivers/staging/rtlwifi/btcoexist/ |
D | halbtc8822b2ant.c | 1926 u8 u8tmp = 0; in halbtc8822b2ant_set_ant_path() local 1961 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x73); in halbtc8822b2ant_set_ant_path() 1968 u32tmp3, u8tmp, u32tmp1, u32tmp2); in halbtc8822b2ant_set_ant_path() 2183 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x73); in halbtc8822b2ant_set_ant_path() 2188 phase, u32tmp3, u8tmp, u32tmp1, u32tmp2); in halbtc8822b2ant_set_ant_path() 3918 u8 u8tmp = 0x0; in ex_btc8822b2ant_power_on_setting() local 3959 btcoexist->btc_write_local_reg_1byte(btcoexist, 0x3e0, u8tmp); in ex_btc8822b2ant_power_on_setting() 3961 btcoexist->btc_write_local_reg_1byte(btcoexist, 0xfe08, u8tmp); in ex_btc8822b2ant_power_on_setting() 3963 btcoexist->btc_write_local_reg_1byte(btcoexist, 0x60, u8tmp); in ex_btc8822b2ant_power_on_setting() 3983 u8 u8tmp = 0x4; /* Set BIT2 by default since it's 2ant case */ in ex_btc8822b2ant_pre_load_firmware() local [all …]
|
D | halbtc8822b1ant.c | 2212 u8 u8tmp = 0; in halbtc8822b1ant_set_ant_path() local 2248 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x73); in halbtc8822b1ant_set_ant_path() 2253 u32tmp3, u8tmp, u32tmp1, u32tmp2); in halbtc8822b1ant_set_ant_path() 2500 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x73); in halbtc8822b1ant_set_ant_path() 2505 u32tmp3, u8tmp, u32tmp1, u32tmp2); in halbtc8822b1ant_set_ant_path() 3741 u8 u8tmp = 0, i = 0; in halbtc8822b1ant_init_hw_config() local 3785 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in halbtc8822b1ant_init_hw_config() 3786 u8tmp &= 0xc0; in halbtc8822b1ant_init_hw_config() 3787 u8tmp |= 0x5; in halbtc8822b1ant_init_hw_config() 3788 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in halbtc8822b1ant_init_hw_config() [all …]
|
/Linux-v4.19/drivers/net/wireless/ath/ath5k/ |
D | pci.c | 59 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-v4.19/drivers/media/usb/hackrf/ |
D | hackrf.c | 248 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() 1368 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe() local 1396 ret = hackrf_ctrl_msg(dev, CMD_BOARD_ID_READ, 0, 0, &u8tmp, 1); in hackrf_probe() [all …]
|
/Linux-v4.19/drivers/net/wireless/ath/ath9k/ |
D | pci.c | 785 u8 u8tmp; in ath_pci_read_cachesize() local 787 pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp); in ath_pci_read_cachesize() 788 *csz = (int)u8tmp; in ath_pci_read_cachesize()
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | hw.c | 700 u8 u8tmp, testcnt = 0; in _rtl92ee_llt_table_init() local 721 u8tmp = rtl_read_byte(rtlpriv, REG_AUTO_LLT + 2); in _rtl92ee_llt_table_init() 722 rtl_write_byte(rtlpriv, REG_AUTO_LLT + 2, u8tmp | BIT(0)); in _rtl92ee_llt_table_init() 724 while (u8tmp & BIT(0)) { in _rtl92ee_llt_table_init() 725 u8tmp = rtl_read_byte(rtlpriv, REG_AUTO_LLT + 2); in _rtl92ee_llt_table_init()
|