Lines Matching refs:rf
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()
84 r = zd_rf_init_al2230(rf); in zd_rf_init_hw()
87 r = zd_rf_init_al7230b(rf); in zd_rf_init_hw()
91 r = zd_rf_init_uw2453(rf); in zd_rf_init_hw()
96 rf->type = 0; in zd_rf_init_hw()
103 rf->type = type; in zd_rf_init_hw()
108 t = rf->init_hw(rf); in zd_rf_init_hw()
115 int zd_rf_scnprint_id(struct zd_rf *rf, char *buffer, size_t size) in zd_rf_scnprint_id() argument
117 return scnprintf(buffer, size, "%s", zd_rf_name(rf->type)); in zd_rf_scnprint_id()
120 int zd_rf_set_channel(struct zd_rf *rf, u8 channel) in zd_rf_set_channel() argument
124 ZD_ASSERT(mutex_is_locked(&zd_rf_to_chip(rf)->mutex)); in zd_rf_set_channel()
129 dev_dbg_f(zd_chip_dev(zd_rf_to_chip(rf)), "channel: %d\n", channel); in zd_rf_set_channel()
131 r = rf->set_channel(rf, channel); in zd_rf_set_channel()
133 rf->channel = channel; in zd_rf_set_channel()
137 int zd_switch_radio_on(struct zd_rf *rf) in zd_switch_radio_on() argument
140 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_switch_radio_on()
146 t = rf->switch_radio_on(rf); in zd_switch_radio_on()
153 int zd_switch_radio_off(struct zd_rf *rf) in zd_switch_radio_off() argument
156 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_switch_radio_off()
163 t = rf->switch_radio_off(rf); in zd_switch_radio_off()
170 int zd_rf_patch_6m_band_edge(struct zd_rf *rf, u8 channel) in zd_rf_patch_6m_band_edge() argument
172 if (!rf->patch_6m_band_edge) in zd_rf_patch_6m_band_edge()
175 return rf->patch_6m_band_edge(rf, channel); in zd_rf_patch_6m_band_edge()
178 int zd_rf_generic_patch_6m(struct zd_rf *rf, u8 channel) in zd_rf_generic_patch_6m() argument
180 return zd_chip_generic_patch_6m_band(zd_rf_to_chip(rf), channel); in zd_rf_generic_patch_6m()