Lines Matching full: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 int drv_tx_sync(struct ieee80211_local *local, in drv_tx_sync() argument
182 trace_drv_tx_sync(local, sdata, bssid, type); in drv_tx_sync()
183 if (local->ops->tx_sync) in drv_tx_sync()
184 ret = local->ops->tx_sync(&local->hw, &sdata->vif, in drv_tx_sync()
186 trace_drv_return_int(local, ret); in drv_tx_sync()
190 static inline void drv_finish_tx_sync(struct ieee80211_local *local, in drv_finish_tx_sync() argument
199 trace_drv_finish_tx_sync(local, sdata, bssid, type); in drv_finish_tx_sync()
200 if (local->ops->finish_tx_sync) in drv_finish_tx_sync()
201 local->ops->finish_tx_sync(&local->hw, &sdata->vif, in drv_finish_tx_sync()
203 trace_drv_return_void(local); in drv_finish_tx_sync()
206 static inline u64 drv_prepare_multicast(struct ieee80211_local *local, in drv_prepare_multicast() argument
211 trace_drv_prepare_multicast(local, mc_list->count); in drv_prepare_multicast()
213 if (local->ops->prepare_multicast) in drv_prepare_multicast()
214 ret = local->ops->prepare_multicast(&local->hw, mc_list); in drv_prepare_multicast()
216 trace_drv_return_u64(local, ret); in drv_prepare_multicast()
221 static inline void drv_configure_filter(struct ieee80211_local *local, in drv_configure_filter() argument
228 trace_drv_configure_filter(local, changed_flags, total_flags, in drv_configure_filter()
230 local->ops->configure_filter(&local->hw, changed_flags, total_flags, in drv_configure_filter()
232 trace_drv_return_void(local); in drv_configure_filter()
235 static inline int drv_set_tim(struct ieee80211_local *local, in drv_set_tim() argument
239 trace_drv_set_tim(local, sta, set); in drv_set_tim()
240 if (local->ops->set_tim) in drv_set_tim()
241 ret = local->ops->set_tim(&local->hw, sta, set); in drv_set_tim()
242 trace_drv_return_int(local, ret); in drv_set_tim()
246 static inline int drv_set_key(struct ieee80211_local *local, in drv_set_key() argument
258 trace_drv_set_key(local, cmd, sdata, sta, key); in drv_set_key()
259 ret = local->ops->set_key(&local->hw, cmd, &sdata->vif, sta, key); in drv_set_key()
260 trace_drv_return_int(local, ret); in drv_set_key()
264 static inline void drv_update_tkip_key(struct ieee80211_local *local, in drv_update_tkip_key() argument
277 trace_drv_update_tkip_key(local, sdata, conf, ista, iv32); in drv_update_tkip_key()
278 if (local->ops->update_tkip_key) in drv_update_tkip_key()
279 local->ops->update_tkip_key(&local->hw, &sdata->vif, conf, in drv_update_tkip_key()
281 trace_drv_return_void(local); in drv_update_tkip_key()
284 static inline int drv_hw_scan(struct ieee80211_local *local, in drv_hw_scan() argument
294 trace_drv_hw_scan(local, sdata); in drv_hw_scan()
295 ret = local->ops->hw_scan(&local->hw, &sdata->vif, req); in drv_hw_scan()
296 trace_drv_return_int(local, ret); in drv_hw_scan()
300 static inline void drv_cancel_hw_scan(struct ieee80211_local *local, in drv_cancel_hw_scan() argument
307 trace_drv_cancel_hw_scan(local, sdata); in drv_cancel_hw_scan()
308 local->ops->cancel_hw_scan(&local->hw, &sdata->vif); in drv_cancel_hw_scan()
309 trace_drv_return_void(local); in drv_cancel_hw_scan()
313 drv_sched_scan_start(struct ieee80211_local *local, in drv_sched_scan_start() argument
324 trace_drv_sched_scan_start(local, sdata); in drv_sched_scan_start()
325 ret = local->ops->sched_scan_start(&local->hw, &sdata->vif, in drv_sched_scan_start()
327 trace_drv_return_int(local, ret); in drv_sched_scan_start()
331 static inline void drv_sched_scan_stop(struct ieee80211_local *local, in drv_sched_scan_stop() argument
338 trace_drv_sched_scan_stop(local, sdata); in drv_sched_scan_stop()
339 local->ops->sched_scan_stop(&local->hw, &sdata->vif); in drv_sched_scan_stop()
340 trace_drv_return_void(local); in drv_sched_scan_stop()
343 static inline void drv_sw_scan_start(struct ieee80211_local *local) in drv_sw_scan_start() argument
347 trace_drv_sw_scan_start(local); in drv_sw_scan_start()
348 if (local->ops->sw_scan_start) in drv_sw_scan_start()
349 local->ops->sw_scan_start(&local->hw); in drv_sw_scan_start()
350 trace_drv_return_void(local); in drv_sw_scan_start()
353 static inline void drv_sw_scan_complete(struct ieee80211_local *local) in drv_sw_scan_complete() argument
357 trace_drv_sw_scan_complete(local); in drv_sw_scan_complete()
358 if (local->ops->sw_scan_complete) in drv_sw_scan_complete()
359 local->ops->sw_scan_complete(&local->hw); in drv_sw_scan_complete()
360 trace_drv_return_void(local); in drv_sw_scan_complete()
363 static inline int drv_get_stats(struct ieee80211_local *local, in drv_get_stats() argument
370 if (local->ops->get_stats) in drv_get_stats()
371 ret = local->ops->get_stats(&local->hw, stats); in drv_get_stats()
372 trace_drv_get_stats(local, stats, ret); in drv_get_stats()
377 static inline void drv_get_tkip_seq(struct ieee80211_local *local, in drv_get_tkip_seq() argument
380 if (local->ops->get_tkip_seq) in drv_get_tkip_seq()
381 local->ops->get_tkip_seq(&local->hw, hw_key_idx, iv32, iv16); in drv_get_tkip_seq()
382 trace_drv_get_tkip_seq(local, hw_key_idx, iv32, iv16); in drv_get_tkip_seq()
385 static inline int drv_set_frag_threshold(struct ieee80211_local *local, in drv_set_frag_threshold() argument
392 trace_drv_set_frag_threshold(local, value); in drv_set_frag_threshold()
393 if (local->ops->set_frag_threshold) in drv_set_frag_threshold()
394 ret = local->ops->set_frag_threshold(&local->hw, value); in drv_set_frag_threshold()
395 trace_drv_return_int(local, ret); in drv_set_frag_threshold()
399 static inline int drv_set_rts_threshold(struct ieee80211_local *local, in drv_set_rts_threshold() argument
406 trace_drv_set_rts_threshold(local, value); in drv_set_rts_threshold()
407 if (local->ops->set_rts_threshold) in drv_set_rts_threshold()
408 ret = local->ops->set_rts_threshold(&local->hw, value); in drv_set_rts_threshold()
409 trace_drv_return_int(local, ret); in drv_set_rts_threshold()
413 static inline int drv_set_coverage_class(struct ieee80211_local *local, in drv_set_coverage_class() argument
419 trace_drv_set_coverage_class(local, value); in drv_set_coverage_class()
420 if (local->ops->set_coverage_class) in drv_set_coverage_class()
421 local->ops->set_coverage_class(&local->hw, value); in drv_set_coverage_class()
425 trace_drv_return_int(local, ret); in drv_set_coverage_class()
429 static inline void drv_sta_notify(struct ieee80211_local *local, in drv_sta_notify() argument
437 trace_drv_sta_notify(local, sdata, cmd, sta); in drv_sta_notify()
438 if (local->ops->sta_notify) in drv_sta_notify()
439 local->ops->sta_notify(&local->hw, &sdata->vif, cmd, sta); in drv_sta_notify()
440 trace_drv_return_void(local); in drv_sta_notify()
443 static inline int drv_sta_add(struct ieee80211_local *local, in drv_sta_add() argument
454 trace_drv_sta_add(local, sdata, sta); in drv_sta_add()
455 if (local->ops->sta_add) in drv_sta_add()
456 ret = local->ops->sta_add(&local->hw, &sdata->vif, sta); in drv_sta_add()
458 trace_drv_return_int(local, ret); in drv_sta_add()
463 static inline void drv_sta_remove(struct ieee80211_local *local, in drv_sta_remove() argument
472 trace_drv_sta_remove(local, sdata, sta); in drv_sta_remove()
473 if (local->ops->sta_remove) in drv_sta_remove()
474 local->ops->sta_remove(&local->hw, &sdata->vif, sta); in drv_sta_remove()
476 trace_drv_return_void(local); in drv_sta_remove()
479 static inline int drv_conf_tx(struct ieee80211_local *local, in drv_conf_tx() argument
489 trace_drv_conf_tx(local, sdata, queue, params); in drv_conf_tx()
490 if (local->ops->conf_tx) in drv_conf_tx()
491 ret = local->ops->conf_tx(&local->hw, &sdata->vif, in drv_conf_tx()
493 trace_drv_return_int(local, ret); in drv_conf_tx()
497 static inline u64 drv_get_tsf(struct ieee80211_local *local, in drv_get_tsf() argument
506 trace_drv_get_tsf(local, sdata); in drv_get_tsf()
507 if (local->ops->get_tsf) in drv_get_tsf()
508 ret = local->ops->get_tsf(&local->hw, &sdata->vif); in drv_get_tsf()
509 trace_drv_return_u64(local, ret); in drv_get_tsf()
513 static inline void drv_set_tsf(struct ieee80211_local *local, in drv_set_tsf() argument
521 trace_drv_set_tsf(local, sdata, tsf); in drv_set_tsf()
522 if (local->ops->set_tsf) in drv_set_tsf()
523 local->ops->set_tsf(&local->hw, &sdata->vif, tsf); in drv_set_tsf()
524 trace_drv_return_void(local); in drv_set_tsf()
527 static inline void drv_reset_tsf(struct ieee80211_local *local, in drv_reset_tsf() argument
534 trace_drv_reset_tsf(local, sdata); in drv_reset_tsf()
535 if (local->ops->reset_tsf) in drv_reset_tsf()
536 local->ops->reset_tsf(&local->hw, &sdata->vif); in drv_reset_tsf()
537 trace_drv_return_void(local); in drv_reset_tsf()
540 static inline int drv_tx_last_beacon(struct ieee80211_local *local) in drv_tx_last_beacon() argument
546 trace_drv_tx_last_beacon(local); in drv_tx_last_beacon()
547 if (local->ops->tx_last_beacon) in drv_tx_last_beacon()
548 ret = local->ops->tx_last_beacon(&local->hw); in drv_tx_last_beacon()
549 trace_drv_return_int(local, ret); in drv_tx_last_beacon()
553 static inline int drv_ampdu_action(struct ieee80211_local *local, in drv_ampdu_action() argument
566 trace_drv_ampdu_action(local, sdata, action, sta, tid, ssn, buf_size); in drv_ampdu_action()
568 if (local->ops->ampdu_action) in drv_ampdu_action()
569 ret = local->ops->ampdu_action(&local->hw, &sdata->vif, action, in drv_ampdu_action()
572 trace_drv_return_int(local, ret); in drv_ampdu_action()
577 static inline int drv_get_survey(struct ieee80211_local *local, int idx, in drv_get_survey() argument
582 trace_drv_get_survey(local, idx, survey); in drv_get_survey()
584 if (local->ops->get_survey) in drv_get_survey()
585 ret = local->ops->get_survey(&local->hw, idx, survey); in drv_get_survey()
587 trace_drv_return_int(local, ret); in drv_get_survey()
592 static inline void drv_rfkill_poll(struct ieee80211_local *local) in drv_rfkill_poll() argument
596 if (local->ops->rfkill_poll) in drv_rfkill_poll()
597 local->ops->rfkill_poll(&local->hw); in drv_rfkill_poll()
600 static inline void drv_flush(struct ieee80211_local *local, bool drop) in drv_flush() argument
604 trace_drv_flush(local, drop); in drv_flush()
605 if (local->ops->flush) in drv_flush()
606 local->ops->flush(&local->hw, drop); in drv_flush()
607 trace_drv_return_void(local); in drv_flush()
610 static inline void drv_channel_switch(struct ieee80211_local *local, in drv_channel_switch() argument
615 trace_drv_channel_switch(local, ch_switch); in drv_channel_switch()
616 local->ops->channel_switch(&local->hw, ch_switch); in drv_channel_switch()
617 trace_drv_return_void(local); in drv_channel_switch()
621 static inline int drv_set_antenna(struct ieee80211_local *local, in drv_set_antenna() argument
626 if (local->ops->set_antenna) in drv_set_antenna()
627 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
628 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
632 static inline int drv_get_antenna(struct ieee80211_local *local, in drv_get_antenna() argument
637 if (local->ops->get_antenna) in drv_get_antenna()
638 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
639 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
643 static inline int drv_remain_on_channel(struct ieee80211_local *local, in drv_remain_on_channel() argument
652 trace_drv_remain_on_channel(local, chan, chantype, duration); in drv_remain_on_channel()
653 ret = local->ops->remain_on_channel(&local->hw, chan, chantype, in drv_remain_on_channel()
655 trace_drv_return_int(local, ret); in drv_remain_on_channel()
660 static inline int drv_cancel_remain_on_channel(struct ieee80211_local *local) in drv_cancel_remain_on_channel() argument
666 trace_drv_cancel_remain_on_channel(local); in drv_cancel_remain_on_channel()
667 ret = local->ops->cancel_remain_on_channel(&local->hw); in drv_cancel_remain_on_channel()
668 trace_drv_return_int(local, ret); in drv_cancel_remain_on_channel()
673 static inline int drv_set_ringparam(struct ieee80211_local *local, in drv_set_ringparam() argument
680 trace_drv_set_ringparam(local, tx, rx); in drv_set_ringparam()
681 if (local->ops->set_ringparam) in drv_set_ringparam()
682 ret = local->ops->set_ringparam(&local->hw, tx, rx); in drv_set_ringparam()
683 trace_drv_return_int(local, ret); in drv_set_ringparam()
688 static inline void drv_get_ringparam(struct ieee80211_local *local, in drv_get_ringparam() argument
693 trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); in drv_get_ringparam()
694 if (local->ops->get_ringparam) in drv_get_ringparam()
695 local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); in drv_get_ringparam()
696 trace_drv_return_void(local); in drv_get_ringparam()
699 static inline bool drv_tx_frames_pending(struct ieee80211_local *local) in drv_tx_frames_pending() argument
705 trace_drv_tx_frames_pending(local); in drv_tx_frames_pending()
706 if (local->ops->tx_frames_pending) in drv_tx_frames_pending()
707 ret = local->ops->tx_frames_pending(&local->hw); in drv_tx_frames_pending()
708 trace_drv_return_bool(local, ret); in drv_tx_frames_pending()
713 static inline int drv_set_bitrate_mask(struct ieee80211_local *local, in drv_set_bitrate_mask() argument
723 trace_drv_set_bitrate_mask(local, sdata, mask); in drv_set_bitrate_mask()
724 if (local->ops->set_bitrate_mask) in drv_set_bitrate_mask()
725 ret = local->ops->set_bitrate_mask(&local->hw, in drv_set_bitrate_mask()
727 trace_drv_return_int(local, ret); in drv_set_bitrate_mask()
732 static inline void drv_set_rekey_data(struct ieee80211_local *local, in drv_set_rekey_data() argument
738 trace_drv_set_rekey_data(local, sdata, data); in drv_set_rekey_data()
739 if (local->ops->set_rekey_data) in drv_set_rekey_data()
740 local->ops->set_rekey_data(&local->hw, &sdata->vif, data); in drv_set_rekey_data()
741 trace_drv_return_void(local); in drv_set_rekey_data()
744 static inline void drv_rssi_callback(struct ieee80211_local *local, in drv_rssi_callback() argument
747 trace_drv_rssi_callback(local, event); in drv_rssi_callback()
748 if (local->ops->rssi_callback) in drv_rssi_callback()
749 local->ops->rssi_callback(&local->hw, event); in drv_rssi_callback()
750 trace_drv_return_void(local); in drv_rssi_callback()
754 drv_release_buffered_frames(struct ieee80211_local *local, in drv_release_buffered_frames() argument
759 trace_drv_release_buffered_frames(local, &sta->sta, tids, num_frames, in drv_release_buffered_frames()
761 if (local->ops->release_buffered_frames) in drv_release_buffered_frames()
762 local->ops->release_buffered_frames(&local->hw, &sta->sta, tids, in drv_release_buffered_frames()
765 trace_drv_return_void(local); in drv_release_buffered_frames()
769 drv_allow_buffered_frames(struct ieee80211_local *local, in drv_allow_buffered_frames() argument
774 trace_drv_allow_buffered_frames(local, &sta->sta, tids, num_frames, in drv_allow_buffered_frames()
776 if (local->ops->allow_buffered_frames) in drv_allow_buffered_frames()
777 local->ops->allow_buffered_frames(&local->hw, &sta->sta, in drv_allow_buffered_frames()
780 trace_drv_return_void(local); in drv_allow_buffered_frames()