Lines Matching refs:lhw

53 	struct lkpi_hw *lhw;  in lkpi_80211_mo_start()  local
58 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_start()
59 if (lhw->ops->start == NULL) { in lkpi_80211_mo_start()
64 if ((lhw->sc_flags & LKPI_MAC80211_DRV_STARTED)) { in lkpi_80211_mo_start()
70 error = lhw->ops->start(hw); in lkpi_80211_mo_start()
72 lhw->sc_flags |= LKPI_MAC80211_DRV_STARTED; in lkpi_80211_mo_start()
81 struct lkpi_hw *lhw; in lkpi_80211_mo_stop() local
83 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_stop()
84 if (lhw->ops->stop == NULL) in lkpi_80211_mo_stop()
88 lhw->ops->stop(hw, suspend); in lkpi_80211_mo_stop()
89 lhw->sc_flags &= ~LKPI_MAC80211_DRV_STARTED; in lkpi_80211_mo_stop()
95 struct lkpi_hw *lhw; in lkpi_80211_mo_get_antenna() local
98 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_get_antenna()
99 if (lhw->ops->get_antenna == NULL) { in lkpi_80211_mo_get_antenna()
106 error = lhw->ops->get_antenna(hw, 0, txs, rxs); in lkpi_80211_mo_get_antenna()
115 struct lkpi_hw *lhw; in lkpi_80211_mo_set_frag_threshold() local
118 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_set_frag_threshold()
119 if (lhw->ops->set_frag_threshold == NULL) { in lkpi_80211_mo_set_frag_threshold()
126 error = lhw->ops->set_frag_threshold(hw, 0, frag_th); in lkpi_80211_mo_set_frag_threshold()
135 struct lkpi_hw *lhw; in lkpi_80211_mo_set_rts_threshold() local
138 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_set_rts_threshold()
139 if (lhw->ops->set_rts_threshold == NULL) { in lkpi_80211_mo_set_rts_threshold()
146 error = lhw->ops->set_rts_threshold(hw, 0, rts_th); in lkpi_80211_mo_set_rts_threshold()
156 struct lkpi_hw *lhw; in lkpi_80211_mo_add_interface() local
160 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_add_interface()
161 if (lhw->ops->add_interface == NULL) { in lkpi_80211_mo_add_interface()
177 error = lhw->ops->add_interface(hw, vif); in lkpi_80211_mo_add_interface()
191 struct lkpi_hw *lhw; in lkpi_80211_mo_remove_interface() local
194 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_remove_interface()
195 if (lhw->ops->remove_interface == NULL) in lkpi_80211_mo_remove_interface()
207 lhw->ops->remove_interface(hw, vif); in lkpi_80211_mo_remove_interface()
218 struct lkpi_hw *lhw; in lkpi_80211_mo_hw_scan() local
227 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_hw_scan()
228 if (lhw->ops->hw_scan == NULL) { in lkpi_80211_mo_hw_scan()
235 error = lhw->ops->hw_scan(hw, vif, sr); in lkpi_80211_mo_hw_scan()
245 struct lkpi_hw *lhw; in lkpi_80211_mo_cancel_hw_scan() local
247 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_cancel_hw_scan()
248 if (lhw->ops->cancel_hw_scan == NULL) in lkpi_80211_mo_cancel_hw_scan()
252 lhw->ops->cancel_hw_scan(hw, vif); in lkpi_80211_mo_cancel_hw_scan()
258 struct lkpi_hw *lhw; in lkpi_80211_mo_sw_scan_complete() local
260 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sw_scan_complete()
261 if (lhw->ops->sw_scan_complete == NULL) in lkpi_80211_mo_sw_scan_complete()
265 lhw->ops->sw_scan_complete(hw, vif); in lkpi_80211_mo_sw_scan_complete()
266 lhw->scan_flags &= ~LKPI_LHW_SCAN_RUNNING; in lkpi_80211_mo_sw_scan_complete()
273 struct lkpi_hw *lhw; in lkpi_80211_mo_sw_scan_start() local
275 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sw_scan_start()
276 if (lhw->ops->sw_scan_start == NULL) in lkpi_80211_mo_sw_scan_start()
280 lhw->ops->sw_scan_start(hw, vif, addr); in lkpi_80211_mo_sw_scan_start()
291 struct lkpi_hw *lhw; in lkpi_80211_mo_prepare_multicast() local
294 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_prepare_multicast()
295 if (lhw->ops->prepare_multicast == NULL) in lkpi_80211_mo_prepare_multicast()
299 ptr = lhw->ops->prepare_multicast(hw, mc_list); in lkpi_80211_mo_prepare_multicast()
307 struct lkpi_hw *lhw; in lkpi_80211_mo_configure_filter() local
309 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_configure_filter()
310 if (lhw->ops->configure_filter == NULL) in lkpi_80211_mo_configure_filter()
314 lhw->ops->configure_filter(hw, changed_flags, total_flags, mc_ptr); in lkpi_80211_mo_configure_filter()
327 struct lkpi_hw *lhw; in lkpi_80211_mo_sta_add() local
331 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sta_add()
332 if (lhw->ops->sta_add == NULL) { in lkpi_80211_mo_sta_add()
344 error = lhw->ops->sta_add(hw, vif, sta); in lkpi_80211_mo_sta_add()
356 struct lkpi_hw *lhw; in lkpi_80211_mo_sta_remove() local
360 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sta_remove()
361 if (lhw->ops->sta_remove == NULL) { in lkpi_80211_mo_sta_remove()
374 error = lhw->ops->sta_remove(hw, vif, sta); in lkpi_80211_mo_sta_remove()
386 struct lkpi_hw *lhw; in lkpi_80211_mo_sta_state() local
390 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sta_state()
392 if (lhw->ops->sta_state != NULL) { in lkpi_80211_mo_sta_state()
394 error = lhw->ops->sta_state(hw, vif, sta, lsta->state, nstate); in lkpi_80211_mo_sta_state()
429 struct lkpi_hw *lhw; in lkpi_80211_mo_config() local
432 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_config()
433 if (lhw->ops->config == NULL) { in lkpi_80211_mo_config()
440 error = lhw->ops->config(hw, 0, changed); in lkpi_80211_mo_config()
451 struct lkpi_hw *lhw; in lkpi_80211_mo_assign_vif_chanctx() local
454 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_assign_vif_chanctx()
455 if (lhw->ops->assign_vif_chanctx == NULL) { in lkpi_80211_mo_assign_vif_chanctx()
462 error = lhw->ops->assign_vif_chanctx(hw, vif, conf, chanctx_conf); in lkpi_80211_mo_assign_vif_chanctx()
474 struct lkpi_hw *lhw; in lkpi_80211_mo_unassign_vif_chanctx() local
479 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_unassign_vif_chanctx()
480 if (lhw->ops->unassign_vif_chanctx == NULL) in lkpi_80211_mo_unassign_vif_chanctx()
488 lhw->ops->unassign_vif_chanctx(hw, vif, conf, chanctx_conf); in lkpi_80211_mo_unassign_vif_chanctx()
496 struct lkpi_hw *lhw; in lkpi_80211_mo_add_chanctx() local
500 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_add_chanctx()
501 if (lhw->ops->add_chanctx == NULL) { in lkpi_80211_mo_add_chanctx()
507 error = lhw->ops->add_chanctx(hw, chanctx_conf); in lkpi_80211_mo_add_chanctx()
521 struct lkpi_hw *lhw; in lkpi_80211_mo_change_chanctx() local
523 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_change_chanctx()
524 if (lhw->ops->change_chanctx == NULL) in lkpi_80211_mo_change_chanctx()
528 lhw->ops->change_chanctx(hw, chanctx_conf, changed); in lkpi_80211_mo_change_chanctx()
535 struct lkpi_hw *lhw; in lkpi_80211_mo_remove_chanctx() local
538 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_remove_chanctx()
539 if (lhw->ops->remove_chanctx == NULL) in lkpi_80211_mo_remove_chanctx()
543 lhw->ops->remove_chanctx(hw, chanctx_conf); in lkpi_80211_mo_remove_chanctx()
552 struct lkpi_hw *lhw; in lkpi_80211_mo_vif_cfg_changed() local
557 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_vif_cfg_changed()
558 if (lhw->ops->vif_cfg_changed == NULL && in lkpi_80211_mo_vif_cfg_changed()
559 lhw->ops->bss_info_changed == NULL) in lkpi_80211_mo_vif_cfg_changed()
566 if (lhw->ops->link_info_changed != NULL) in lkpi_80211_mo_vif_cfg_changed()
567 lhw->ops->vif_cfg_changed(hw, vif, vif_cfg_bits); in lkpi_80211_mo_vif_cfg_changed()
569 lhw->ops->bss_info_changed(hw, vif, &vif->bss_conf, vif_cfg_bits); in lkpi_80211_mo_vif_cfg_changed()
577 struct lkpi_hw *lhw; in lkpi_80211_mo_link_info_changed() local
582 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_link_info_changed()
583 if (lhw->ops->link_info_changed == NULL && in lkpi_80211_mo_link_info_changed()
584 lhw->ops->bss_info_changed == NULL) in lkpi_80211_mo_link_info_changed()
594 if (lhw->ops->link_info_changed != NULL) in lkpi_80211_mo_link_info_changed()
595 lhw->ops->link_info_changed(hw, vif, conf, link_info_bits); in lkpi_80211_mo_link_info_changed()
597 lhw->ops->bss_info_changed(hw, vif, conf, link_info_bits); in lkpi_80211_mo_link_info_changed()
610 struct lkpi_hw *lhw; in lkpi_80211_mo_bss_info_changed() local
614 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_bss_info_changed()
615 if (lhw->ops->bss_info_changed == NULL) in lkpi_80211_mo_bss_info_changed()
622 lhw->ops->bss_info_changed(hw, vif, conf, bss_changed); in lkpi_80211_mo_bss_info_changed()
629 struct lkpi_hw *lhw; in lkpi_80211_mo_conf_tx() local
632 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_conf_tx()
633 if (lhw->ops->conf_tx == NULL) { in lkpi_80211_mo_conf_tx()
640 error = lhw->ops->conf_tx(hw, vif, link_id, ac, txqp); in lkpi_80211_mo_conf_tx()
650 struct lkpi_hw *lhw; in lkpi_80211_mo_flush() local
652 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_flush()
653 if (lhw->ops->flush == NULL) in lkpi_80211_mo_flush()
657 lhw->ops->flush(hw, vif, nqueues, drop); in lkpi_80211_mo_flush()
664 struct lkpi_hw *lhw; in lkpi_80211_mo_mgd_prepare_tx() local
666 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_mgd_prepare_tx()
667 if (lhw->ops->mgd_prepare_tx == NULL) in lkpi_80211_mo_mgd_prepare_tx()
671 lhw->ops->mgd_prepare_tx(hw, vif, txinfo); in lkpi_80211_mo_mgd_prepare_tx()
678 struct lkpi_hw *lhw; in lkpi_80211_mo_mgd_complete_tx() local
680 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_mgd_complete_tx()
681 if (lhw->ops->mgd_complete_tx == NULL) in lkpi_80211_mo_mgd_complete_tx()
685 lhw->ops->mgd_complete_tx(hw, vif, txinfo); in lkpi_80211_mo_mgd_complete_tx()
692 struct lkpi_hw *lhw; in lkpi_80211_mo_tx() local
694 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_tx()
695 if (lhw->ops->tx == NULL) in lkpi_80211_mo_tx()
699 lhw->ops->tx(hw, txctrl, skb); in lkpi_80211_mo_tx()
706 struct lkpi_hw *lhw; in lkpi_80211_mo_wake_tx_queue() local
708 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_wake_tx_queue()
714 if (lhw->ops->wake_tx_queue == NULL) in lkpi_80211_mo_wake_tx_queue()
718 lhw->ops->wake_tx_queue(hw, txq); in lkpi_80211_mo_wake_tx_queue()
724 struct lkpi_hw *lhw; in lkpi_80211_mo_sync_rx_queues() local
726 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sync_rx_queues()
727 if (lhw->ops->sync_rx_queues == NULL) in lkpi_80211_mo_sync_rx_queues()
731 lhw->ops->sync_rx_queues(hw); in lkpi_80211_mo_sync_rx_queues()
738 struct lkpi_hw *lhw; in lkpi_80211_mo_sta_pre_rcu_remove() local
740 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sta_pre_rcu_remove()
741 if (lhw->ops->sta_pre_rcu_remove == NULL) in lkpi_80211_mo_sta_pre_rcu_remove()
745 lhw->ops->sta_pre_rcu_remove(hw, vif, sta); in lkpi_80211_mo_sta_pre_rcu_remove()
753 struct lkpi_hw *lhw; in lkpi_80211_mo_set_key() local
758 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_set_key()
759 if (lhw->ops->set_key == NULL) { in lkpi_80211_mo_set_key()
765 error = lhw->ops->set_key(hw, cmd, vif, sta, kc); in lkpi_80211_mo_set_key()
775 struct lkpi_hw *lhw; in lkpi_80211_mo_ampdu_action() local
778 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_ampdu_action()
779 if (lhw->ops->ampdu_action == NULL) { in lkpi_80211_mo_ampdu_action()
787 error = lhw->ops->ampdu_action(hw, vif, params); in lkpi_80211_mo_ampdu_action()
797 struct lkpi_hw *lhw; in lkpi_80211_mo_sta_statistics() local
801 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_sta_statistics()
802 if (lhw->ops->sta_statistics == NULL) { in lkpi_80211_mo_sta_statistics()
816 lhw->ops->sta_statistics(hw, vif, sta, sinfo); in lkpi_80211_mo_sta_statistics()
826 struct lkpi_hw *lhw; in lkpi_80211_mo_suspend() local
832 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_suspend()
833 if (lhw->ops->suspend == NULL) { in lkpi_80211_mo_suspend()
839 error = lhw->ops->suspend(hw, wowlan); in lkpi_80211_mo_suspend()
848 struct lkpi_hw *lhw; in lkpi_80211_mo_resume() local
854 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_resume()
855 if (lhw->ops->resume == NULL) { in lkpi_80211_mo_resume()
861 error = lhw->ops->resume(hw); in lkpi_80211_mo_resume()
870 struct lkpi_hw *lhw; in lkpi_80211_mo_set_wakeup() local
876 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_set_wakeup()
877 if (lhw->ops->set_wakeup == NULL) { in lkpi_80211_mo_set_wakeup()
883 lhw->ops->set_wakeup(hw, enable); in lkpi_80211_mo_set_wakeup()
894 struct lkpi_hw *lhw; in lkpi_80211_mo_set_rekey_data() local
900 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_set_rekey_data()
901 if (lhw->ops->set_rekey_data == NULL) { in lkpi_80211_mo_set_rekey_data()
907 lhw->ops->set_rekey_data(hw, vif, grd); in lkpi_80211_mo_set_rekey_data()
918 struct lkpi_hw *lhw; in lkpi_80211_mo_set_default_unicast_key() local
924 lhw = HW_TO_LHW(hw); in lkpi_80211_mo_set_default_unicast_key()
925 if (lhw->ops->set_default_unicast_key == NULL) { in lkpi_80211_mo_set_default_unicast_key()
931 lhw->ops->set_default_unicast_key(hw, vif, idx); in lkpi_80211_mo_set_default_unicast_key()