Lines Matching full:rf

42 void zd_rf_init(struct zd_rf *rf)  in zd_rf_init()  argument
44 memset(rf, 0, sizeof(*rf)); in zd_rf_init()
46 /* default to update channel integration, as almost all RF's do want in zd_rf_init()
48 rf->update_channel_int = 1; in zd_rf_init()
51 void zd_rf_clear(struct zd_rf *rf) in zd_rf_clear() argument
53 if (rf->clear) in zd_rf_clear()
54 rf->clear(rf); in zd_rf_clear()
55 ZD_MEMCLEAR(rf, sizeof(*rf)); in zd_rf_clear()
58 int zd_rf_init_hw(struct zd_rf *rf, u8 type) in zd_rf_init_hw() argument
62 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_rf_init_hw()
67 r = zd_rf_init_rf2959(rf); in zd_rf_init_hw()
71 r = zd_rf_init_al2230(rf); in zd_rf_init_hw()
74 r = zd_rf_init_al7230b(rf); in zd_rf_init_hw()
78 r = zd_rf_init_uw2453(rf); in zd_rf_init_hw()
82 "RF %s %#x is not supported\n", zd_rf_name(type), type); in zd_rf_init_hw()
83 rf->type = 0; in zd_rf_init_hw()
90 rf->type = type; in zd_rf_init_hw()
95 t = rf->init_hw(rf); in zd_rf_init_hw()
102 int zd_rf_scnprint_id(struct zd_rf *rf, char *buffer, size_t size) in zd_rf_scnprint_id() argument
104 return scnprintf(buffer, size, "%s", zd_rf_name(rf->type)); in zd_rf_scnprint_id()
107 int zd_rf_set_channel(struct zd_rf *rf, u8 channel) in zd_rf_set_channel() argument
111 ZD_ASSERT(mutex_is_locked(&zd_rf_to_chip(rf)->mutex)); in zd_rf_set_channel()
116 dev_dbg_f(zd_chip_dev(zd_rf_to_chip(rf)), "channel: %d\n", channel); in zd_rf_set_channel()
118 r = rf->set_channel(rf, channel); in zd_rf_set_channel()
120 rf->channel = channel; in zd_rf_set_channel()
124 int zd_switch_radio_on(struct zd_rf *rf) in zd_switch_radio_on() argument
127 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_switch_radio_on()
133 t = rf->switch_radio_on(rf); in zd_switch_radio_on()
140 int zd_switch_radio_off(struct zd_rf *rf) in zd_switch_radio_off() argument
143 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_switch_radio_off()
150 t = rf->switch_radio_off(rf); in zd_switch_radio_off()
157 int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel) in zd_rf_patch_6m_band_edge() argument
159 if (!rf->patch_6m_band_edge) in zd_rf_patch_6m_band_edge()
162 return rf->patch_6m_band_edge(rf, channel); in zd_rf_patch_6m_band_edge()
165 int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel) in zd_rf_generic_patch_6m() argument
167 return zd_chip_generic_patch_6m_band(zd_rf_to_chip(rf), channel); in zd_rf_generic_patch_6m()