Home
last modified time | relevance | path

Searched refs:rf (Results 1 – 25 of 66) sorted by relevance

123

/drivers/net/wireless/zd1211rw/
Dzd_rf.c55 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 …]
Dzd_rf.h68 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 …]
Dzd_rf_al2230.c27 #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 …]
Dzd_rf_al7230b.c100 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 …]
Dzd_rf_uw2453.c253 #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 …]
Dzd_rf_rf2959.c149 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/
Drf.c202 u32 writeVal, customer_limit, rf; in _rtl92c_get_txpower_writeval_by_regulatory() local
204 for (rf = 0; rf < 2; rf++) { in _rtl92c_get_txpower_writeval_by_regulatory()
210 (rf ? 8 : 0)] in _rtl92c_get_txpower_writeval_by_regulatory()
211 + ((index < 2) ? powerBase0[rf] : powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory()
215 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory()
219 writeVal = ((index < 2) ? powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory()
220 powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory()
224 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory()
240 [index + (rf ? 8 : 0)] + ((index < 2) ? in _rtl92c_get_txpower_writeval_by_regulatory()
241 powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory()
[all …]
/drivers/net/wireless/rtlwifi/rtl8723ae/
Drf.c200 u32 writeVal, customer_limit, rf; in rtl8723ae_get_txpwr_val_by_reg() local
202 for (rf = 0; rf < 2; rf++) { in rtl8723ae_get_txpwr_val_by_reg()
208 [index + (rf ? 8 : 0)] + in rtl8723ae_get_txpwr_val_by_reg()
209 ((index < 2) ? powerBase0[rf] : in rtl8723ae_get_txpwr_val_by_reg()
210 powerBase1[rf]); in rtl8723ae_get_txpwr_val_by_reg()
215 ((rf == 0) ? 'A' : 'B'), writeVal); in rtl8723ae_get_txpwr_val_by_reg()
219 writeVal = ((index < 2) ? powerBase0[rf] : in rtl8723ae_get_txpwr_val_by_reg()
220 powerBase1[rf]); in rtl8723ae_get_txpwr_val_by_reg()
225 ((rf == 0) ? 'A' : 'B'), writeVal); in rtl8723ae_get_txpwr_val_by_reg()
244 [index + (rf ? 8 : 0)] + ((index < 2) ? in rtl8723ae_get_txpwr_val_by_reg()
[all …]
/drivers/net/wireless/rtlwifi/rtl8192cu/
Drf.c208 u32 writeVal, customer_limit, rf; in _rtl92c_get_txpower_writeval_by_regulatory() local
210 for (rf = 0; rf < 2; rf++) { in _rtl92c_get_txpower_writeval_by_regulatory()
215 [chnlgroup][index + (rf ? 8 : 0)] in _rtl92c_get_txpower_writeval_by_regulatory()
216 + ((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()
238 (rf ? 8 : 0)] + in _rtl92c_get_txpower_writeval_by_regulatory()
239 ((index < 2) ? powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory()
240 powerBase1[rf]); in _rtl92c_get_txpower_writeval_by_regulatory()
243 rf == 0 ? 'A' : 'B', writeVal); in _rtl92c_get_txpower_writeval_by_regulatory()
246 writeVal = ((index < 2) ? powerBase0[rf] : in _rtl92c_get_txpower_writeval_by_regulatory()
[all …]
/drivers/net/wireless/rtlwifi/rtl8192de/
Drf.c224 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 …]
Ddm.c772 u8 rf, struct rtl_efuse *rtlefuse, in rtl92d_bandtype_5G() argument
781 for (i = 0; i < rf; i++) { in rtl92d_bandtype_5G()
788 if (rtlhal->interfaceindex == 1 || i == rf) in rtl92d_bandtype_5G()
796 if (rtlhal->interfaceindex == 1 || i == rf) in rtl92d_bandtype_5G()
850 u8 ofdm_min_index = 6, ofdm_min_index_internal_pa = 3, rf; in rtl92d_dm_txpower_tracking_callback_thermalmeter() local
894 rf = 2; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
896 rf = 1; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
941 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
946 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1015 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
[all …]
/drivers/net/wireless/rtlwifi/rtl8188ee/
Drf.c200 u32 writeval, cust_lim, rf, tmp; in get_txpwr_by_reg() local
204 for (rf = 0; rf < 2; rf++) { in get_txpwr_by_reg()
205 j = index + (rf ? 8 : 0); in get_txpwr_by_reg()
206 tmp = ((index < 2) ? base0[rf] : base1[rf]); in get_txpwr_by_reg()
216 ((rf == 0) ? 'A' : 'B'), writeval); in get_txpwr_by_reg()
230 ((rf == 0) ? 'A' : 'B'), writeval); in get_txpwr_by_reg()
233 writeval = ((index < 2) ? base0[rf] : base1[rf]); in get_txpwr_by_reg()
237 ((rf == 0) ? 'A' : 'B'), writeval); in get_txpwr_by_reg()
245 ((rf == 0) ? 'A' : 'B'), in get_txpwr_by_reg()
246 rtlefuse->pwrgroup_ht40[rf][ch]); in get_txpwr_by_reg()
[all …]
/drivers/net/wireless/rt2x00/
Drt2800lib.c906 .rf = {
1661 if (libconf->rf.channel <= 14) { in rt2800_config_lna_gain()
1664 } else if (libconf->rf.channel <= 64) { in rt2800_config_lna_gain()
1667 } else if (libconf->rf.channel <= 128) { in rt2800_config_lna_gain()
1680 struct rf_channel *rf, in rt2800_config_channel_rf2xxx() argument
1683 rt2x00_set_field32(&rf->rf4, RF4_FREQ_OFFSET, rt2x00dev->freq_offset); in rt2800_config_channel_rf2xxx()
1686 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_TX1, 1); in rt2800_config_channel_rf2xxx()
1689 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX1, 1); in rt2800_config_channel_rf2xxx()
1690 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX2, 1); in rt2800_config_channel_rf2xxx()
1692 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX2, 1); in rt2800_config_channel_rf2xxx()
[all …]
Drt2x00.h187 u16 rf; member
438 struct rf_channel rf; member
889 u32 *rf; member
1046 *data = rt2x00dev->rf[word - 1]; in rt2x00_rf_read()
1053 rt2x00dev->rf[word - 1] = data; in rt2x00_rf_write()
1087 const u16 rt, const u16 rf, const u16 rev) in rt2x00_set_chip() argument
1090 rt2x00dev->chip.rf = rf; in rt2x00_set_chip()
1094 rt2x00dev->chip.rt, rt2x00dev->chip.rf, in rt2x00_set_chip()
1108 static inline void rt2x00_set_rf(struct rt2x00_dev *rt2x00dev, const u16 rf) in rt2x00_set_rf() argument
1110 rt2x00dev->chip.rf = rf; in rt2x00_set_rf()
[all …]
Drt2x00soc.c38 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()
Drt2x00pci.c40 kfree(rt2x00dev->rf); in rt2x00pci_free_reg()
41 rt2x00dev->rf = NULL; in rt2x00pci_free_reg()
64 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00pci_alloc_reg()
65 if (!rt2x00dev->rf) in rt2x00pci_alloc_reg()
Drt2500pci.c194 .rf = {
479 struct rf_channel *rf, const int txpower) in rt2500pci_config_channel() argument
486 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500pci_config_channel()
493 rt2x00_set_field32(&rf->rf1, RF1_TUNER, 1); in rt2500pci_config_channel()
494 rt2x00_set_field32(&rf->rf3, RF3_TUNER, 1); in rt2500pci_config_channel()
507 rt2500pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2500pci_config_channel()
508 rt2500pci_rf_write(rt2x00dev, 2, vals[rf->channel - 1]); in rt2500pci_config_channel()
509 rt2500pci_rf_write(rt2x00dev, 3, rf->rf3); in rt2500pci_config_channel()
510 if (rf->rf4) in rt2500pci_config_channel()
511 rt2500pci_rf_write(rt2x00dev, 4, rf->rf4); in rt2500pci_config_channel()
[all …]
Drt73usb.c177 .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 …]
Drt2400pci.c194 .rf = {
454 struct rf_channel *rf) in rt2400pci_config_channel() argument
459 rt2x00_set_field32(&rf->rf1, RF1_TUNER, 1); in rt2400pci_config_channel()
460 rt2x00_set_field32(&rf->rf3, RF3_TUNER, 1); in rt2400pci_config_channel()
462 rt2400pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2400pci_config_channel()
463 rt2400pci_rf_write(rt2x00dev, 2, rf->rf2); in rt2400pci_config_channel()
464 rt2400pci_rf_write(rt2x00dev, 3, rf->rf3); in rt2400pci_config_channel()
477 rt2400pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2400pci_config_channel()
479 rt2400pci_rf_write(rt2x00dev, 3, rf->rf3); in rt2400pci_config_channel()
483 rt2400pci_rf_write(rt2x00dev, 1, rf->rf1); in rt2400pci_config_channel()
[all …]
/drivers/net/wireless/b43/
Dlo.c891 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 …]
Dphy_g.c222 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/i2c/
Dtda7432.c276 u8 lf, lr, rf, rr; in tda7432_s_ctrl() local
282 rr = rf = -t->balance->val; in tda7432_s_ctrl()
286 rr = rf = TDA7432_ATTEN_0DB; in tda7432_s_ctrl()
290 rr = rf = TDA7432_ATTEN_0DB; in tda7432_s_ctrl()
302 tda7432_write(sd, TDA7432_RF, rf); in tda7432_s_ctrl()
/drivers/media/tuners/
Dtda18271-fe.c576 int bcal, rf, i; in tda18271_rf_tracking_filters_init() local
595 for (rf = RF1; rf <= RF3; rf++) { in tda18271_rf_tracking_filters_init()
596 if (0 == rf_default[rf]) in tda18271_rf_tracking_filters_init()
598 tda_cal("freq = %d, rf = %d\n", freq, rf); in tda18271_rf_tracking_filters_init()
601 bcal = tda18271_powerscan(fe, &rf_default[rf], &rf_freq[rf]); in tda18271_rf_tracking_filters_init()
605 tda18271_calc_rf_cal(fe, &rf_freq[rf]); in tda18271_rf_tracking_filters_init()
606 prog_tab[rf] = (s32)regs[R_EB14]; in tda18271_rf_tracking_filters_init()
609 prog_cal[rf] = in tda18271_rf_tracking_filters_init()
610 (s32)tda18271_calibrate_rf(fe, rf_freq[rf]); in tda18271_rf_tracking_filters_init()
612 prog_cal[rf] = prog_tab[rf]; in tda18271_rf_tracking_filters_init()
[all …]
/drivers/platform/x86/
Dintel_oaktrail.c157 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/
Dphy.c1576 struct carl9170_rf_init rf; in carl9170_set_channel() local
1671 rf.ht_settings = new_ht; in carl9170_set_channel()
1673 SET_VAL(CARL9170FW_PHY_HT_EXT_CHAN_OFF, rf.ht_settings, offs); in carl9170_set_channel()
1675 rf.freq = cpu_to_le32(channel->center_freq * 1000); in carl9170_set_channel()
1676 rf.delta_slope_coeff_exp = cpu_to_le32(freqpar->coeff_exp); in carl9170_set_channel()
1677 rf.delta_slope_coeff_man = cpu_to_le32(freqpar->coeff_man); in carl9170_set_channel()
1678 rf.delta_slope_coeff_exp_shgi = cpu_to_le32(freqpar->coeff_exp_shgi); in carl9170_set_channel()
1679 rf.delta_slope_coeff_man_shgi = cpu_to_le32(freqpar->coeff_man_shgi); in carl9170_set_channel()
1680 rf.finiteLoopCount = cpu_to_le32(2000); in carl9170_set_channel()
1681 err = carl9170_exec_cmd(ar, CARL9170_CMD_RF_INIT, sizeof(rf), &rf, in carl9170_set_channel()

123