Lines Matching refs:local

23 static inline void drv_tx(struct ieee80211_local *local, struct sk_buff *skb)  in drv_tx()  argument
25 local->ops->tx(&local->hw, skb); in drv_tx()
28 static inline void drv_tx_frags(struct ieee80211_local *local, in drv_tx_frags() argument
33 local->ops->tx_frags(&local->hw, vif, sta, skbs); in drv_tx_frags()
36 static inline int drv_start(struct ieee80211_local *local) in drv_start() argument
42 trace_drv_start(local); in drv_start()
43 local->started = true; in drv_start()
45 ret = local->ops->start(&local->hw); in drv_start()
46 trace_drv_return_int(local, ret); in drv_start()
50 static inline void drv_stop(struct ieee80211_local *local) in drv_stop() argument
54 trace_drv_stop(local); in drv_stop()
55 local->ops->stop(&local->hw); in drv_stop()
56 trace_drv_return_void(local); in drv_stop()
59 tasklet_disable(&local->tasklet); in drv_stop()
60 tasklet_enable(&local->tasklet); in drv_stop()
64 local->started = false; in drv_stop()
68 static inline int drv_suspend(struct ieee80211_local *local, in drv_suspend() argument
75 trace_drv_suspend(local); in drv_suspend()
76 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
77 trace_drv_return_int(local, ret); in drv_suspend()
81 static inline int drv_resume(struct ieee80211_local *local) in drv_resume() argument
87 trace_drv_resume(local); in drv_resume()
88 ret = local->ops->resume(&local->hw); in drv_resume()
89 trace_drv_return_int(local, ret); in drv_resume()
94 static inline int drv_add_interface(struct ieee80211_local *local, in drv_add_interface() argument
105 trace_drv_add_interface(local, sdata); in drv_add_interface()
106 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface()
107 trace_drv_return_int(local, ret); in drv_add_interface()
115 static inline int drv_change_interface(struct ieee80211_local *local, in drv_change_interface() argument
125 trace_drv_change_interface(local, sdata, type, p2p); in drv_change_interface()
126 ret = local->ops->change_interface(&local->hw, &sdata->vif, type, p2p); in drv_change_interface()
127 trace_drv_return_int(local, ret); in drv_change_interface()
131 static inline void drv_remove_interface(struct ieee80211_local *local, in drv_remove_interface() argument
138 trace_drv_remove_interface(local, sdata); in drv_remove_interface()
139 local->ops->remove_interface(&local->hw, &sdata->vif); in drv_remove_interface()
141 trace_drv_return_void(local); in drv_remove_interface()
144 static inline int drv_config(struct ieee80211_local *local, u32 changed) in drv_config() argument
150 trace_drv_config(local, changed); in drv_config()
151 ret = local->ops->config(&local->hw, changed); in drv_config()
152 trace_drv_return_int(local, ret); in drv_config()
156 static inline void drv_bss_info_changed(struct ieee80211_local *local, in drv_bss_info_changed() argument
165 trace_drv_bss_info_changed(local, sdata, info, changed); in drv_bss_info_changed()
166 if (local->ops->bss_info_changed) in drv_bss_info_changed()
167 local->ops->bss_info_changed(&local->hw, &sdata->vif, info, changed); in drv_bss_info_changed()
168 trace_drv_return_void(local); in drv_bss_info_changed()
171 static inline u64 drv_prepare_multicast(struct ieee80211_local *local, in drv_prepare_multicast() argument
176 trace_drv_prepare_multicast(local, mc_list->count); in drv_prepare_multicast()
178 if (local->ops->prepare_multicast) in drv_prepare_multicast()
179 ret = local->ops->prepare_multicast(&local->hw, mc_list); in drv_prepare_multicast()
181 trace_drv_return_u64(local, ret); in drv_prepare_multicast()
186 static inline void drv_configure_filter(struct ieee80211_local *local, in drv_configure_filter() argument
193 trace_drv_configure_filter(local, changed_flags, total_flags, in drv_configure_filter()
195 local->ops->configure_filter(&local->hw, changed_flags, total_flags, in drv_configure_filter()
197 trace_drv_return_void(local); in drv_configure_filter()
200 static inline int drv_set_tim(struct ieee80211_local *local, in drv_set_tim() argument
204 trace_drv_set_tim(local, sta, set); in drv_set_tim()
205 if (local->ops->set_tim) in drv_set_tim()
206 ret = local->ops->set_tim(&local->hw, sta, set); in drv_set_tim()
207 trace_drv_return_int(local, ret); in drv_set_tim()
211 static inline int drv_set_key(struct ieee80211_local *local, in drv_set_key() argument
224 trace_drv_set_key(local, cmd, sdata, sta, key); in drv_set_key()
225 ret = local->ops->set_key(&local->hw, cmd, &sdata->vif, sta, key); in drv_set_key()
226 trace_drv_return_int(local, ret); in drv_set_key()
230 static inline void drv_update_tkip_key(struct ieee80211_local *local, in drv_update_tkip_key() argument
244 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
245 if (local->ops->update_tkip_key) in drv_update_tkip_key()
246 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf, in drv_update_tkip_key()
248 trace_drv_return_void(local); in drv_update_tkip_key()
251 static inline int drv_hw_scan(struct ieee80211_local *local, in drv_hw_scan() argument
261 trace_drv_hw_scan(local, sdata); in drv_hw_scan()
262 ret = local->ops->hw_scan(&local->hw, &sdata->vif, req); in drv_hw_scan()
263 trace_drv_return_int(local, ret); in drv_hw_scan()
267 static inline void drv_cancel_hw_scan(struct ieee80211_local *local, in drv_cancel_hw_scan() argument
274 trace_drv_cancel_hw_scan(local, sdata); in drv_cancel_hw_scan()
275 local->ops->cancel_hw_scan(&local->hw, &sdata->vif); in drv_cancel_hw_scan()
276 trace_drv_return_void(local); in drv_cancel_hw_scan()
280 drv_sched_scan_start(struct ieee80211_local *local, in drv_sched_scan_start() argument
291 trace_drv_sched_scan_start(local, sdata); in drv_sched_scan_start()
292 ret = local->ops->sched_scan_start(&local->hw, &sdata->vif, in drv_sched_scan_start()
294 trace_drv_return_int(local, ret); in drv_sched_scan_start()
298 static inline void drv_sched_scan_stop(struct ieee80211_local *local, in drv_sched_scan_stop() argument
305 trace_drv_sched_scan_stop(local, sdata); in drv_sched_scan_stop()
306 local->ops->sched_scan_stop(&local->hw, &sdata->vif); in drv_sched_scan_stop()
307 trace_drv_return_void(local); in drv_sched_scan_stop()
310 static inline void drv_sw_scan_start(struct ieee80211_local *local) in drv_sw_scan_start() argument
314 trace_drv_sw_scan_start(local); in drv_sw_scan_start()
315 if (local->ops->sw_scan_start) in drv_sw_scan_start()
316 local->ops->sw_scan_start(&local->hw); in drv_sw_scan_start()
317 trace_drv_return_void(local); in drv_sw_scan_start()
320 static inline void drv_sw_scan_complete(struct ieee80211_local *local) in drv_sw_scan_complete() argument
324 trace_drv_sw_scan_complete(local); in drv_sw_scan_complete()
325 if (local->ops->sw_scan_complete) in drv_sw_scan_complete()
326 local->ops->sw_scan_complete(&local->hw); in drv_sw_scan_complete()
327 trace_drv_return_void(local); in drv_sw_scan_complete()
330 static inline int drv_get_stats(struct ieee80211_local *local, in drv_get_stats() argument
337 if (local->ops->get_stats) in drv_get_stats()
338 ret = local->ops->get_stats(&local->hw, stats); in drv_get_stats()
339 trace_drv_get_stats(local, stats, ret); in drv_get_stats()
344 static inline void drv_get_tkip_seq(struct ieee80211_local *local, in drv_get_tkip_seq() argument
347 if (local->ops->get_tkip_seq) in drv_get_tkip_seq()
348 local->ops->get_tkip_seq(&local->hw, hw_key_idx, iv32, iv16); in drv_get_tkip_seq()
349 trace_drv_get_tkip_seq(local, hw_key_idx, iv32, iv16); in drv_get_tkip_seq()
352 static inline int drv_set_frag_threshold(struct ieee80211_local *local, in drv_set_frag_threshold() argument
359 trace_drv_set_frag_threshold(local, value); in drv_set_frag_threshold()
360 if (local->ops->set_frag_threshold) in drv_set_frag_threshold()
361 ret = local->ops->set_frag_threshold(&local->hw, value); in drv_set_frag_threshold()
362 trace_drv_return_int(local, ret); in drv_set_frag_threshold()
366 static inline int drv_set_rts_threshold(struct ieee80211_local *local, in drv_set_rts_threshold() argument
373 trace_drv_set_rts_threshold(local, value); in drv_set_rts_threshold()
374 if (local->ops->set_rts_threshold) in drv_set_rts_threshold()
375 ret = local->ops->set_rts_threshold(&local->hw, value); in drv_set_rts_threshold()
376 trace_drv_return_int(local, ret); in drv_set_rts_threshold()
380 static inline int drv_set_coverage_class(struct ieee80211_local *local, in drv_set_coverage_class() argument
386 trace_drv_set_coverage_class(local, value); in drv_set_coverage_class()
387 if (local->ops->set_coverage_class) in drv_set_coverage_class()
388 local->ops->set_coverage_class(&local->hw, value); in drv_set_coverage_class()
392 trace_drv_return_int(local, ret); in drv_set_coverage_class()
396 static inline void drv_sta_notify(struct ieee80211_local *local, in drv_sta_notify() argument
404 trace_drv_sta_notify(local, sdata, cmd, sta); in drv_sta_notify()
405 if (local->ops->sta_notify) in drv_sta_notify()
406 local->ops->sta_notify(&local->hw, &sdata->vif, cmd, sta); in drv_sta_notify()
407 trace_drv_return_void(local); in drv_sta_notify()
410 static inline int drv_sta_add(struct ieee80211_local *local, in drv_sta_add() argument
421 trace_drv_sta_add(local, sdata, sta); in drv_sta_add()
422 if (local->ops->sta_add) in drv_sta_add()
423 ret = local->ops->sta_add(&local->hw, &sdata->vif, sta); in drv_sta_add()
425 trace_drv_return_int(local, ret); in drv_sta_add()
430 static inline void drv_sta_remove(struct ieee80211_local *local, in drv_sta_remove() argument
439 trace_drv_sta_remove(local, sdata, sta); in drv_sta_remove()
440 if (local->ops->sta_remove) in drv_sta_remove()
441 local->ops->sta_remove(&local->hw, &sdata->vif, sta); in drv_sta_remove()
443 trace_drv_return_void(local); in drv_sta_remove()
447 int drv_sta_state(struct ieee80211_local *local, in drv_sta_state() argument
460 trace_drv_sta_state(local, sdata, &sta->sta, old_state, new_state); in drv_sta_state()
461 if (local->ops->sta_state) { in drv_sta_state()
462 ret = local->ops->sta_state(&local->hw, &sdata->vif, &sta->sta, in drv_sta_state()
466 ret = drv_sta_add(local, sdata, &sta->sta); in drv_sta_state()
471 drv_sta_remove(local, sdata, &sta->sta); in drv_sta_state()
473 trace_drv_return_int(local, ret); in drv_sta_state()
477 static inline int drv_conf_tx(struct ieee80211_local *local, in drv_conf_tx() argument
487 trace_drv_conf_tx(local, sdata, queue, params); in drv_conf_tx()
488 if (local->ops->conf_tx) in drv_conf_tx()
489 ret = local->ops->conf_tx(&local->hw, &sdata->vif, in drv_conf_tx()
491 trace_drv_return_int(local, ret); in drv_conf_tx()
495 static inline u64 drv_get_tsf(struct ieee80211_local *local, in drv_get_tsf() argument
504 trace_drv_get_tsf(local, sdata); in drv_get_tsf()
505 if (local->ops->get_tsf) in drv_get_tsf()
506 ret = local->ops->get_tsf(&local->hw, &sdata->vif); in drv_get_tsf()
507 trace_drv_return_u64(local, ret); in drv_get_tsf()
511 static inline void drv_set_tsf(struct ieee80211_local *local, in drv_set_tsf() argument
519 trace_drv_set_tsf(local, sdata, tsf); in drv_set_tsf()
520 if (local->ops->set_tsf) in drv_set_tsf()
521 local->ops->set_tsf(&local->hw, &sdata->vif, tsf); in drv_set_tsf()
522 trace_drv_return_void(local); in drv_set_tsf()
525 static inline void drv_reset_tsf(struct ieee80211_local *local, in drv_reset_tsf() argument
532 trace_drv_reset_tsf(local, sdata); in drv_reset_tsf()
533 if (local->ops->reset_tsf) in drv_reset_tsf()
534 local->ops->reset_tsf(&local->hw, &sdata->vif); in drv_reset_tsf()
535 trace_drv_return_void(local); in drv_reset_tsf()
538 static inline int drv_tx_last_beacon(struct ieee80211_local *local) in drv_tx_last_beacon() argument
544 trace_drv_tx_last_beacon(local); in drv_tx_last_beacon()
545 if (local->ops->tx_last_beacon) in drv_tx_last_beacon()
546 ret = local->ops->tx_last_beacon(&local->hw); in drv_tx_last_beacon()
547 trace_drv_return_int(local, ret); in drv_tx_last_beacon()
551 static inline int drv_ampdu_action(struct ieee80211_local *local, in drv_ampdu_action() argument
564 trace_drv_ampdu_action(local, sdata, action, sta, tid, ssn, buf_size); in drv_ampdu_action()
566 if (local->ops->ampdu_action) in drv_ampdu_action()
567 ret = local->ops->ampdu_action(&local->hw, &sdata->vif, action, in drv_ampdu_action()
570 trace_drv_return_int(local, ret); in drv_ampdu_action()
575 static inline int drv_get_survey(struct ieee80211_local *local, int idx, in drv_get_survey() argument
580 trace_drv_get_survey(local, idx, survey); in drv_get_survey()
582 if (local->ops->get_survey) in drv_get_survey()
583 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
585 trace_drv_return_int(local, ret); in drv_get_survey()
590 static inline void drv_rfkill_poll(struct ieee80211_local *local) in drv_rfkill_poll() argument
594 if (local->ops->rfkill_poll) in drv_rfkill_poll()
595 local->ops->rfkill_poll(&local->hw); in drv_rfkill_poll()
598 static inline void drv_flush(struct ieee80211_local *local, bool drop) in drv_flush() argument
602 trace_drv_flush(local, drop); in drv_flush()
603 if (local->ops->flush) in drv_flush()
604 local->ops->flush(&local->hw, drop); in drv_flush()
605 trace_drv_return_void(local); in drv_flush()
608 static inline void drv_channel_switch(struct ieee80211_local *local, in drv_channel_switch() argument
613 trace_drv_channel_switch(local, ch_switch); in drv_channel_switch()
614 local->ops->channel_switch(&local->hw, ch_switch); in drv_channel_switch()
615 trace_drv_return_void(local); in drv_channel_switch()
619 static inline int drv_set_antenna(struct ieee80211_local *local, in drv_set_antenna() argument
624 if (local->ops->set_antenna) in drv_set_antenna()
625 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
626 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
630 static inline int drv_get_antenna(struct ieee80211_local *local, in drv_get_antenna() argument
635 if (local->ops->get_antenna) in drv_get_antenna()
636 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
637 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
641 static inline int drv_remain_on_channel(struct ieee80211_local *local, in drv_remain_on_channel() argument
650 trace_drv_remain_on_channel(local, chan, chantype, duration); in drv_remain_on_channel()
651 ret = local->ops->remain_on_channel(&local->hw, chan, chantype, in drv_remain_on_channel()
653 trace_drv_return_int(local, ret); in drv_remain_on_channel()
658 static inline int drv_cancel_remain_on_channel(struct ieee80211_local *local) in drv_cancel_remain_on_channel() argument
664 trace_drv_cancel_remain_on_channel(local); in drv_cancel_remain_on_channel()
665 ret = local->ops->cancel_remain_on_channel(&local->hw); in drv_cancel_remain_on_channel()
666 trace_drv_return_int(local, ret); in drv_cancel_remain_on_channel()
671 static inline int drv_set_ringparam(struct ieee80211_local *local, in drv_set_ringparam() argument
678 trace_drv_set_ringparam(local, tx, rx); in drv_set_ringparam()
679 if (local->ops->set_ringparam) in drv_set_ringparam()
680 ret = local->ops->set_ringparam(&local->hw, tx, rx); in drv_set_ringparam()
681 trace_drv_return_int(local, ret); in drv_set_ringparam()
686 static inline void drv_get_ringparam(struct ieee80211_local *local, in drv_get_ringparam() argument
691 trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); in drv_get_ringparam()
692 if (local->ops->get_ringparam) in drv_get_ringparam()
693 local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); in drv_get_ringparam()
694 trace_drv_return_void(local); in drv_get_ringparam()
697 static inline bool drv_tx_frames_pending(struct ieee80211_local *local) in drv_tx_frames_pending() argument
703 trace_drv_tx_frames_pending(local); in drv_tx_frames_pending()
704 if (local->ops->tx_frames_pending) in drv_tx_frames_pending()
705 ret = local->ops->tx_frames_pending(&local->hw); in drv_tx_frames_pending()
706 trace_drv_return_bool(local, ret); in drv_tx_frames_pending()
711 static inline int drv_set_bitrate_mask(struct ieee80211_local *local, in drv_set_bitrate_mask() argument
721 trace_drv_set_bitrate_mask(local, sdata, mask); in drv_set_bitrate_mask()
722 if (local->ops->set_bitrate_mask) in drv_set_bitrate_mask()
723 ret = local->ops->set_bitrate_mask(&local->hw, in drv_set_bitrate_mask()
725 trace_drv_return_int(local, ret); in drv_set_bitrate_mask()
730 static inline void drv_set_rekey_data(struct ieee80211_local *local, in drv_set_rekey_data() argument
736 trace_drv_set_rekey_data(local, sdata, data); in drv_set_rekey_data()
737 if (local->ops->set_rekey_data) in drv_set_rekey_data()
738 local->ops->set_rekey_data(&local->hw, &sdata->vif, data); in drv_set_rekey_data()
739 trace_drv_return_void(local); in drv_set_rekey_data()
742 static inline void drv_rssi_callback(struct ieee80211_local *local, in drv_rssi_callback() argument
745 trace_drv_rssi_callback(local, event); in drv_rssi_callback()
746 if (local->ops->rssi_callback) in drv_rssi_callback()
747 local->ops->rssi_callback(&local->hw, event); in drv_rssi_callback()
748 trace_drv_return_void(local); in drv_rssi_callback()
752 drv_release_buffered_frames(struct ieee80211_local *local, in drv_release_buffered_frames() argument
757 trace_drv_release_buffered_frames(local, &sta->sta, tids, num_frames, in drv_release_buffered_frames()
759 if (local->ops->release_buffered_frames) in drv_release_buffered_frames()
760 local->ops->release_buffered_frames(&local->hw, &sta->sta, tids, in drv_release_buffered_frames()
763 trace_drv_return_void(local); in drv_release_buffered_frames()
767 drv_allow_buffered_frames(struct ieee80211_local *local, in drv_allow_buffered_frames() argument
772 trace_drv_allow_buffered_frames(local, &sta->sta, tids, num_frames, in drv_allow_buffered_frames()
774 if (local->ops->allow_buffered_frames) in drv_allow_buffered_frames()
775 local->ops->allow_buffered_frames(&local->hw, &sta->sta, in drv_allow_buffered_frames()
778 trace_drv_return_void(local); in drv_allow_buffered_frames()