/drivers/net/wireless/zd1211rw/ |
D | zd_rf.c | 55 void zd_rf_init(struct zd_rf *rf) in zd_rf_init() argument 57 memset(rf, 0, sizeof(*rf)); in zd_rf_init() 61 rf->update_channel_int = 1; in zd_rf_init() 64 void zd_rf_clear(struct zd_rf *rf) in zd_rf_clear() argument 66 if (rf->clear) in zd_rf_clear() 67 rf->clear(rf); in zd_rf_clear() 68 ZD_MEMCLEAR(rf, sizeof(*rf)); in zd_rf_clear() 71 int zd_rf_init_hw(struct zd_rf *rf, u8 type) in zd_rf_init_hw() argument 75 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_rf_init_hw() 80 r = zd_rf_init_rf2959(rf); in zd_rf_init_hw() [all …]
|
D | zd_rf.h | 68 int (*init_hw)(struct zd_rf *rf); 69 int (*set_channel)(struct zd_rf *rf, u8 channel); 70 int (*switch_radio_on)(struct zd_rf *rf); 71 int (*switch_radio_off)(struct zd_rf *rf); 72 int (*patch_6m_band_edge)(struct zd_rf *rf, u8 channel); 73 void (*clear)(struct zd_rf *rf); 77 void zd_rf_init(struct zd_rf *rf); 78 void zd_rf_clear(struct zd_rf *rf); 79 int zd_rf_init_hw(struct zd_rf *rf, u8 type); 81 int zd_rf_scnprint_id(struct zd_rf *rf, char *buffer, size_t size); [all …]
|
D | zd_rf_al7230b.c | 100 static int zd1211_al7230b_init_hw(struct zd_rf *rf) in zd1211_al7230b_init_hw() argument 103 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_init_hw() 205 static int zd1211b_al7230b_init_hw(struct zd_rf *rf) in zd1211b_al7230b_init_hw() argument 208 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_init_hw() 326 static int zd1211_al7230b_set_channel(struct zd_rf *rf, u8 channel) in zd1211_al7230b_set_channel() argument 330 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_set_channel() 373 static int zd1211b_al7230b_set_channel(struct zd_rf *rf, u8 channel) in zd1211b_al7230b_set_channel() argument 377 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_set_channel() 420 static int zd1211_al7230b_switch_radio_on(struct zd_rf *rf) in zd1211_al7230b_switch_radio_on() argument 422 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_switch_radio_on() [all …]
|
D | zd_rf_al2230.c | 27 #define IS_AL2230S(chip) ((chip)->al2230s_bit || (chip)->rf.type == AL2230S_RF) 105 static int zd1211_al2230_init_hw(struct zd_rf *rf) in zd1211_al2230_init_hw() argument 108 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al2230_init_hw() 218 static int zd1211b_al2230_init_hw(struct zd_rf *rf) in zd1211b_al2230_init_hw() argument 221 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al2230_init_hw() 360 static int zd1211_al2230_set_channel(struct zd_rf *rf, u8 channel) in zd1211_al2230_set_channel() argument 364 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al2230_set_channel() 376 static int zd1211b_al2230_set_channel(struct zd_rf *rf, u8 channel) in zd1211b_al2230_set_channel() argument 380 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al2230_set_channel() 394 static int zd1211_al2230_switch_radio_on(struct zd_rf *rf) in zd1211_al2230_switch_radio_on() argument [all …]
|
D | zd_rf_uw2453.c | 253 #define UW2453_PRIV(rf) ((struct uw2453_priv *) (rf)->priv) argument 309 static int uw2453_init_hw(struct zd_rf *rf) in uw2453_init_hw() argument 314 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_init_hw() 436 UW2453_PRIV(rf)->config = found_config + 1; in uw2453_init_hw() 441 static int uw2453_set_channel(struct zd_rf *rf, u8 channel) in uw2453_set_channel() argument 445 int config = UW2453_PRIV(rf)->config; in uw2453_set_channel() 447 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_set_channel() 482 static int uw2453_switch_radio_on(struct zd_rf *rf) in uw2453_switch_radio_on() argument 485 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_switch_radio_on() 501 static int uw2453_switch_radio_off(struct zd_rf *rf) in uw2453_switch_radio_off() argument [all …]
|
D | zd_rf_rf2959.c | 149 static int rf2959_init_hw(struct zd_rf *rf) in rf2959_init_hw() argument 152 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_init_hw() 231 static int rf2959_set_channel(struct zd_rf *rf, u8 channel) in rf2959_set_channel() argument 235 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_set_channel() 245 static int rf2959_switch_radio_on(struct zd_rf *rf) in rf2959_switch_radio_on() argument 251 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_switch_radio_on() 256 static int rf2959_switch_radio_off(struct zd_rf *rf) in rf2959_switch_radio_off() argument 262 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_switch_radio_off() 267 int zd_rf_init_rf2959(struct zd_rf *rf) in zd_rf_init_rf2959() argument 269 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_rf_init_rf2959() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192ce/ |
D | rf.c | 205 u32 writeVal, customer_limit, rf; in _rtl92c_get_txpower_writeval_by_regulatory() local 207 for (rf = 0; rf < 2; rf++) { in _rtl92c_get_txpower_writeval_by_regulatory() 214 (rf ? 8 : 0)] in _rtl92c_get_txpower_writeval_by_regulatory() 215 + ((index < 2) ? powerBase0[rf] : powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory() 219 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory() 223 writeVal = ((index < 2) ? powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory() 224 powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory() 228 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory() 245 [index + (rf ? 8 : 0)] + ((index < 2) ? in _rtl92c_get_txpower_writeval_by_regulatory() 246 powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192cu/ |
D | rf.c | 212 u32 writeVal, customer_limit, rf; in _rtl92c_get_txpower_writeval_by_regulatory() local 214 for (rf = 0; rf < 2; rf++) { in _rtl92c_get_txpower_writeval_by_regulatory() 219 [chnlgroup][index + (rf ? 8 : 0)] in _rtl92c_get_txpower_writeval_by_regulatory() 220 + ((index < 2) ? powerBase0[rf] : powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory() 223 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory() 243 (rf ? 8 : 0)] + in _rtl92c_get_txpower_writeval_by_regulatory() 244 ((index < 2) ? powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory() 245 powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory() 248 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory() 251 writeVal = ((index < 2) ? powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192de/ |
D | rf.c | 224 u32 writeval = 0, customer_limit, rf; in _rtl92d_get_txpower_writeval_by_regulatory() local 226 for (rf = 0; rf < 2; rf++) { in _rtl92d_get_txpower_writeval_by_regulatory() 232 (rf ? 8 : 0)] + ((index < 2) ? in _rtl92d_get_txpower_writeval_by_regulatory() 233 powerbase0[rf] : in _rtl92d_get_txpower_writeval_by_regulatory() 234 powerbase1[rf]); in _rtl92d_get_txpower_writeval_by_regulatory() 237 rf == 0 ? 'A' : 'B', writeval); in _rtl92d_get_txpower_writeval_by_regulatory() 252 (rf ? 8 : 0)] + ((index < 2) ? in _rtl92d_get_txpower_writeval_by_regulatory() 253 powerbase0[rf] : in _rtl92d_get_txpower_writeval_by_regulatory() 254 powerbase1[rf]); in _rtl92d_get_txpower_writeval_by_regulatory() 257 rf == 0 ? 'A' : 'B', writeval); in _rtl92d_get_txpower_writeval_by_regulatory() [all …]
|
D | dm.c | 766 u8 rf, struct rtl_efuse *rtlefuse, in rtl92d_bandtype_5G() argument 775 for (i = 0; i < rf; i++) { in rtl92d_bandtype_5G() 782 if (rtlhal->interfaceindex == 1 || i == rf) in rtl92d_bandtype_5G() 790 if (rtlhal->interfaceindex == 1 || i == rf) in rtl92d_bandtype_5G() 844 u8 ofdm_min_index = 6, ofdm_min_index_internal_pa = 3, rf; in rtl92d_dm_txpower_tracking_callback_thermalmeter() local 888 rf = 2; in rtl92d_dm_txpower_tracking_callback_thermalmeter() 890 rf = 1; in rtl92d_dm_txpower_tracking_callback_thermalmeter() 935 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter() 940 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1009 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter() [all …]
|
/drivers/media/video/ |
D | tda7432.c | 68 int lf, lr, rf, rr; member 236 t->rf, t->rr, t->loud); in tda7432_set() 244 buf[7] = t->rf; in tda7432_set() 272 t->rf = TDA7432_ATTEN_0DB; /* 0dB attenuation */ in do_tda7432_init() 296 if ( (t->lf) < (t->rf) ) in tda7432_g_ctrl() 298 ctrl->value = (32768 - 1057*(t->rf)); in tda7432_g_ctrl() 348 t->rf = t->rr; in tda7432_s_ctrl() 356 t->rf = TDA7432_ATTEN_0DB; in tda7432_s_ctrl() 360 t->rf = TDA7432_ATTEN_0DB; in tda7432_s_ctrl() 389 tda7432_write(sd, TDA7432_RF, t->rf | TDA7432_MUTE); in tda7432_s_ctrl() [all …]
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00.h | 197 u16 rf; member 448 struct rf_channel rf; member 884 u32 *rf; member 1021 *data = rt2x00dev->rf[word - 1]; in rt2x00_rf_read() 1028 rt2x00dev->rf[word - 1] = data; in rt2x00_rf_write() 1057 const u16 rt, const u16 rf, const u16 rev) in rt2x00_set_chip() argument 1060 rt2x00dev->chip.rf = rf; in rt2x00_set_chip() 1065 rt2x00dev->chip.rt, rt2x00dev->chip.rf, rt2x00dev->chip.rev); in rt2x00_set_chip() 1073 static inline bool rt2x00_rf(struct rt2x00_dev *rt2x00dev, const u16 rf) in rt2x00_rf() argument 1075 return (rt2x00dev->chip.rf == rf); in rt2x00_rf()
|
D | rt2800lib.c | 819 .rf = { 1562 if (libconf->rf.channel <= 14) { in rt2800_config_lna_gain() 1565 } else if (libconf->rf.channel <= 64) { in rt2800_config_lna_gain() 1568 } else if (libconf->rf.channel <= 128) { in rt2800_config_lna_gain() 1581 struct rf_channel *rf, in rt2800_config_channel_rf2xxx() argument 1584 rt2x00_set_field32(&rf->rf4, RF4_FREQ_OFFSET, rt2x00dev->freq_offset); in rt2800_config_channel_rf2xxx() 1587 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_TX1, 1); in rt2800_config_channel_rf2xxx() 1590 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX1, 1); in rt2800_config_channel_rf2xxx() 1591 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX2, 1); in rt2800_config_channel_rf2xxx() 1593 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX2, 1); in rt2800_config_channel_rf2xxx() [all …]
|
D | rt2x00soc.c | 38 kfree(rt2x00dev->rf); in rt2x00soc_free_reg() 39 rt2x00dev->rf = NULL; in rt2x00soc_free_reg() 64 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00soc_alloc_reg() 65 if (!rt2x00dev->rf) in rt2x00soc_alloc_reg()
|
D | rt2500pci.c | 193 .rf = { 478 struct rf_channel *rf, const int txpower) in rt2500pci_config_channel() argument 485 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500pci_config_channel() 492 rt2x00_set_field32(&rf->rf1, RF1_TUNER, 1); in rt2500pci_config_channel() 493 rt2x00_set_field32(&rf->rf3, RF3_TUNER, 1); in rt2500pci_config_channel() 506 rt2500pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2500pci_config_channel() 507 rt2500pci_rf_write(rt2x00dev, 2, vals[rf->channel - 1]); in rt2500pci_config_channel() 508 rt2500pci_rf_write(rt2x00dev, 3, rf->rf3); in rt2500pci_config_channel() 509 if (rf->rf4) in rt2500pci_config_channel() 510 rt2500pci_rf_write(rt2x00dev, 4, rf->rf4); in rt2500pci_config_channel() [all …]
|
D | rt73usb.c | 177 .rf = { 757 struct rf_channel *rf, const int txpower) in rt73usb_config_channel() argument 763 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt73usb_config_channel() 764 rt2x00_set_field32(&rf->rf4, RF4_FREQ_OFFSET, rt2x00dev->freq_offset); in rt73usb_config_channel() 779 rt73usb_rf_write(rt2x00dev, 1, rf->rf1); in rt73usb_config_channel() 780 rt73usb_rf_write(rt2x00dev, 2, rf->rf2); in rt73usb_config_channel() 781 rt73usb_rf_write(rt2x00dev, 3, rf->rf3 & ~0x00000004); in rt73usb_config_channel() 782 rt73usb_rf_write(rt2x00dev, 4, rf->rf4); in rt73usb_config_channel() 784 rt73usb_rf_write(rt2x00dev, 1, rf->rf1); in rt73usb_config_channel() 785 rt73usb_rf_write(rt2x00dev, 2, rf->rf2); in rt73usb_config_channel() [all …]
|
D | rt2400pci.c | 193 .rf = { 452 struct rf_channel *rf) in rt2400pci_config_channel() argument 457 rt2x00_set_field32(&rf->rf1, RF1_TUNER, 1); in rt2400pci_config_channel() 458 rt2x00_set_field32(&rf->rf3, RF3_TUNER, 1); in rt2400pci_config_channel() 460 rt2400pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2400pci_config_channel() 461 rt2400pci_rf_write(rt2x00dev, 2, rf->rf2); in rt2400pci_config_channel() 462 rt2400pci_rf_write(rt2x00dev, 3, rf->rf3); in rt2400pci_config_channel() 475 rt2400pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2400pci_config_channel() 477 rt2400pci_rf_write(rt2x00dev, 3, rf->rf3); in rt2400pci_config_channel() 481 rt2400pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2400pci_config_channel() [all …]
|
D | rt2x00pci.c | 216 kfree(rt2x00dev->rf); in rt2x00pci_free_reg() 217 rt2x00dev->rf = NULL; in rt2x00pci_free_reg() 240 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00pci_alloc_reg() 241 if (!rt2x00dev->rf) in rt2x00pci_alloc_reg()
|
D | rt61pci.c | 231 .rf = { 868 struct rf_channel *rf, const int txpower) in rt61pci_config_channel() argument 874 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt61pci_config_channel() 875 rt2x00_set_field32(&rf->rf4, RF4_FREQ_OFFSET, rt2x00dev->freq_offset); in rt61pci_config_channel() 890 rt61pci_rf_write(rt2x00dev, 1, rf->rf1); in rt61pci_config_channel() 891 rt61pci_rf_write(rt2x00dev, 2, rf->rf2); in rt61pci_config_channel() 892 rt61pci_rf_write(rt2x00dev, 3, rf->rf3 & ~0x00000004); in rt61pci_config_channel() 893 rt61pci_rf_write(rt2x00dev, 4, rf->rf4); in rt61pci_config_channel() 897 rt61pci_rf_write(rt2x00dev, 1, rf->rf1); in rt61pci_config_channel() 898 rt61pci_rf_write(rt2x00dev, 2, rf->rf2); in rt61pci_config_channel() [all …]
|
/drivers/net/wireless/b43/ |
D | lo.c | 891 static inline void b43_lo_fixup_rfatt(struct b43_rfatt *rf) in b43_lo_fixup_rfatt() argument 893 if (!rf->with_padmix) in b43_lo_fixup_rfatt() 895 if ((rf->att != 1) && (rf->att != 2) && (rf->att != 3)) in b43_lo_fixup_rfatt() 896 rf->att = 4; in b43_lo_fixup_rfatt() 903 struct b43_rfatt rf; in b43_lo_g_adjust() local 905 memcpy(&rf, &gphy->rfatt, sizeof(rf)); in b43_lo_g_adjust() 906 b43_lo_fixup_rfatt(&rf); in b43_lo_g_adjust() 908 cal = b43_get_calib_lo_settings(dev, &gphy->bbatt, &rf); in b43_lo_g_adjust() 917 struct b43_rfatt rf; in b43_lo_g_adjust_to() local 921 memset(&rf, 0, sizeof(rf)); in b43_lo_g_adjust_to() [all …]
|
D | phy_g.c | 222 u16 bb, rf; in b43_set_txpower_g() local 226 rf = rfatt->att; in b43_set_txpower_g() 243 bb, rf, tx_control, tx_bias, tx_magn); in b43_set_txpower_g() 247 b43_shm_write16(dev, B43_SHM_SHARED, B43_SHM_SH_RFATT, rf); in b43_set_txpower_g() 250 (rf & 0x000F) | (tx_control & 0x0070)); in b43_set_txpower_g() 252 b43_radio_maskset(dev, 0x43, 0xFFF0, (rf & 0x000F)); in b43_set_txpower_g() 289 u8 rf, bb; in b43_gphy_gain_lt_init() local 291 for (rf = 0; rf < lo->rfatt_list.len; rf++) { in b43_gphy_gain_lt_init() 301 tmp |= lo->rfatt_list.list[rf].att; in b43_gphy_gain_lt_init() 2135 struct b43_rfatt *rf) in default_radio_attenuation() argument [all …]
|
/drivers/media/common/tuners/ |
D | tda18271-fe.c | 575 int bcal, rf, i; in tda18271_rf_tracking_filters_init() local 594 for (rf = RF1; rf <= RF3; rf++) { in tda18271_rf_tracking_filters_init() 595 if (0 == rf_default[rf]) in tda18271_rf_tracking_filters_init() 597 tda_cal("freq = %d, rf = %d\n", freq, rf); in tda18271_rf_tracking_filters_init() 600 bcal = tda18271_powerscan(fe, &rf_default[rf], &rf_freq[rf]); in tda18271_rf_tracking_filters_init() 604 tda18271_calc_rf_cal(fe, &rf_freq[rf]); in tda18271_rf_tracking_filters_init() 605 prog_tab[rf] = (s32)regs[R_EB14]; in tda18271_rf_tracking_filters_init() 608 prog_cal[rf] = in tda18271_rf_tracking_filters_init() 609 (s32)tda18271_calibrate_rf(fe, rf_freq[rf]); in tda18271_rf_tracking_filters_init() 611 prog_cal[rf] = prog_tab[rf]; in tda18271_rf_tracking_filters_init() [all …]
|
/drivers/platform/x86/ |
D | classmate-laptop.c | 553 struct rfkill *rf; member 577 ipml->rf = rfkill_alloc("cmpc_rfkill", &acpi->dev, RFKILL_TYPE_WLAN, in cmpc_ipml_add() 584 if (ipml->rf) { in cmpc_ipml_add() 585 retval = rfkill_register(ipml->rf); in cmpc_ipml_add() 587 rfkill_destroy(ipml->rf); in cmpc_ipml_add() 588 ipml->rf = NULL; in cmpc_ipml_add() 608 if (ipml->rf) { in cmpc_ipml_remove() 609 rfkill_unregister(ipml->rf); in cmpc_ipml_remove() 610 rfkill_destroy(ipml->rf); in cmpc_ipml_remove()
|
D | intel_oaktrail.c | 157 static inline void __oaktrail_rfkill_cleanup(struct rfkill *rf) in __oaktrail_rfkill_cleanup() argument 159 if (rf) { in __oaktrail_rfkill_cleanup() 160 rfkill_unregister(rf); in __oaktrail_rfkill_cleanup() 161 rfkill_destroy(rf); in __oaktrail_rfkill_cleanup()
|
/drivers/net/wireless/ath/carl9170/ |
D | phy.c | 1577 struct carl9170_rf_init rf; in carl9170_set_channel() local 1697 rf.ht_settings = new_ht; in carl9170_set_channel() 1699 SET_VAL(CARL9170FW_PHY_HT_EXT_CHAN_OFF, rf.ht_settings, offs); in carl9170_set_channel() 1701 rf.freq = cpu_to_le32(channel->center_freq * 1000); in carl9170_set_channel() 1702 rf.delta_slope_coeff_exp = cpu_to_le32(freqpar->coeff_exp); in carl9170_set_channel() 1703 rf.delta_slope_coeff_man = cpu_to_le32(freqpar->coeff_man); in carl9170_set_channel() 1704 rf.delta_slope_coeff_exp_shgi = cpu_to_le32(freqpar->coeff_exp_shgi); in carl9170_set_channel() 1705 rf.delta_slope_coeff_man_shgi = cpu_to_le32(freqpar->coeff_man_shgi); in carl9170_set_channel() 1708 rf.finiteLoopCount = cpu_to_le32(2000); in carl9170_set_channel() 1710 rf.finiteLoopCount = cpu_to_le32(1000); in carl9170_set_channel() [all …]
|