Lines Matching refs:ar
15 void (*rx)(struct ath10k *ar, struct sk_buff *skb);
19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb,
26 struct ath10k *ar, struct sk_buff *skb,
28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb,
38 int (*pull_phyerr)(struct ath10k *ar, const void *phyerr_buf,
40 int (*pull_svc_rdy)(struct ath10k *ar, struct sk_buff *skb,
42 int (*pull_rdy)(struct ath10k *ar, struct sk_buff *skb,
44 int (*pull_fw_stats)(struct ath10k *ar, struct sk_buff *skb,
46 int (*pull_roam_ev)(struct ath10k *ar, struct sk_buff *skb,
48 int (*pull_wow_event)(struct ath10k *ar, struct sk_buff *skb,
50 int (*pull_echo_ev)(struct ath10k *ar, struct sk_buff *skb,
52 int (*pull_dfs_status_ev)(struct ath10k *ar, struct sk_buff *skb,
54 int (*pull_svc_avail)(struct ath10k *ar, struct sk_buff *skb,
57 enum wmi_txbf_conf (*get_txbf_conf_scheme)(struct ath10k *ar);
59 struct sk_buff *(*gen_pdev_suspend)(struct ath10k *ar, u32 suspend_opt);
60 struct sk_buff *(*gen_pdev_resume)(struct ath10k *ar);
61 struct sk_buff *(*gen_pdev_set_base_macaddr)(struct ath10k *ar,
63 struct sk_buff *(*gen_pdev_set_rd)(struct ath10k *ar, u16 rd, u16 rd2g,
66 struct sk_buff *(*gen_pdev_set_param)(struct ath10k *ar, u32 id,
68 struct sk_buff *(*gen_init)(struct ath10k *ar);
69 struct sk_buff *(*gen_start_scan)(struct ath10k *ar,
71 struct sk_buff *(*gen_stop_scan)(struct ath10k *ar,
73 struct sk_buff *(*gen_vdev_create)(struct ath10k *ar, u32 vdev_id,
77 struct sk_buff *(*gen_vdev_delete)(struct ath10k *ar, u32 vdev_id);
78 struct sk_buff *(*gen_vdev_start)(struct ath10k *ar,
81 struct sk_buff *(*gen_vdev_stop)(struct ath10k *ar, u32 vdev_id);
82 struct sk_buff *(*gen_vdev_up)(struct ath10k *ar, u32 vdev_id, u32 aid,
84 struct sk_buff *(*gen_vdev_down)(struct ath10k *ar, u32 vdev_id);
85 struct sk_buff *(*gen_vdev_set_param)(struct ath10k *ar, u32 vdev_id,
87 struct sk_buff *(*gen_vdev_install_key)(struct ath10k *ar,
89 struct sk_buff *(*gen_vdev_spectral_conf)(struct ath10k *ar,
91 struct sk_buff *(*gen_vdev_spectral_enable)(struct ath10k *ar, u32 vdev_id,
93 struct sk_buff *(*gen_vdev_wmm_conf)(struct ath10k *ar, u32 vdev_id,
95 struct sk_buff *(*gen_peer_create)(struct ath10k *ar, u32 vdev_id,
98 struct sk_buff *(*gen_peer_delete)(struct ath10k *ar, u32 vdev_id,
100 struct sk_buff *(*gen_peer_flush)(struct ath10k *ar, u32 vdev_id,
103 struct sk_buff *(*gen_peer_set_param)(struct ath10k *ar, u32 vdev_id,
107 struct sk_buff *(*gen_peer_assoc)(struct ath10k *ar,
109 struct sk_buff *(*gen_set_psmode)(struct ath10k *ar, u32 vdev_id,
111 struct sk_buff *(*gen_set_sta_ps)(struct ath10k *ar, u32 vdev_id,
114 struct sk_buff *(*gen_set_ap_ps)(struct ath10k *ar, u32 vdev_id,
118 struct sk_buff *(*gen_scan_chan_list)(struct ath10k *ar,
120 struct sk_buff *(*gen_scan_prob_req_oui)(struct ath10k *ar,
122 struct sk_buff *(*gen_beacon_dma)(struct ath10k *ar, u32 vdev_id,
126 struct sk_buff *(*gen_pdev_set_wmm)(struct ath10k *ar,
128 struct sk_buff *(*gen_request_stats)(struct ath10k *ar, u32 stats_mask);
129 struct sk_buff *(*gen_force_fw_hang)(struct ath10k *ar,
132 struct sk_buff *(*gen_mgmt_tx)(struct ath10k *ar, struct sk_buff *skb);
133 struct sk_buff *(*gen_mgmt_tx_send)(struct ath10k *ar,
136 struct sk_buff *(*gen_dbglog_cfg)(struct ath10k *ar, u64 module_enable,
138 struct sk_buff *(*gen_pktlog_enable)(struct ath10k *ar, u32 filter);
139 struct sk_buff *(*gen_pktlog_disable)(struct ath10k *ar);
140 struct sk_buff *(*gen_pdev_set_quiet_mode)(struct ath10k *ar,
144 struct sk_buff *(*gen_pdev_get_temperature)(struct ath10k *ar);
145 struct sk_buff *(*gen_addba_clear_resp)(struct ath10k *ar, u32 vdev_id,
147 struct sk_buff *(*gen_addba_send)(struct ath10k *ar, u32 vdev_id,
149 struct sk_buff *(*gen_addba_set_resp)(struct ath10k *ar, u32 vdev_id,
152 struct sk_buff *(*gen_delba_send)(struct ath10k *ar, u32 vdev_id,
155 struct sk_buff *(*gen_bcn_tmpl)(struct ath10k *ar, u32 vdev_id,
159 struct sk_buff *(*gen_prb_tmpl)(struct ath10k *ar, u32 vdev_id,
161 struct sk_buff *(*gen_p2p_go_bcn_ie)(struct ath10k *ar, u32 vdev_id,
163 struct sk_buff *(*gen_vdev_sta_uapsd)(struct ath10k *ar, u32 vdev_id,
167 struct sk_buff *(*gen_sta_keepalive)(struct ath10k *ar,
169 struct sk_buff *(*gen_wow_enable)(struct ath10k *ar);
170 struct sk_buff *(*gen_wow_add_wakeup_event)(struct ath10k *ar, u32 vdev_id,
173 struct sk_buff *(*gen_wow_host_wakeup_ind)(struct ath10k *ar);
174 struct sk_buff *(*gen_wow_add_pattern)(struct ath10k *ar, u32 vdev_id,
180 struct sk_buff *(*gen_wow_del_pattern)(struct ath10k *ar, u32 vdev_id,
182 struct sk_buff *(*gen_update_fw_tdls_state)(struct ath10k *ar,
185 struct sk_buff *(*gen_tdls_peer_update)(struct ath10k *ar,
190 (struct ath10k *ar,
192 struct sk_buff *(*gen_adaptive_qcs)(struct ath10k *ar, bool enable);
193 struct sk_buff *(*gen_pdev_get_tpc_config)(struct ath10k *ar,
195 void (*fw_stats_fill)(struct ath10k *ar,
198 struct sk_buff *(*gen_pdev_enable_adaptive_cca)(struct ath10k *ar,
202 struct sk_buff *(*ext_resource_config)(struct ath10k *ar,
205 int (*get_vdev_subtype)(struct ath10k *ar,
207 struct sk_buff *(*gen_wow_config_pno)(struct ath10k *ar,
211 (struct ath10k *ar,
213 struct sk_buff *(*gen_echo)(struct ath10k *ar, u32 value);
214 struct sk_buff *(*gen_pdev_get_tpc_table_cmdid)(struct ath10k *ar,
217 (struct ath10k *ar,
222 int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id);
225 ath10k_wmi_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_rx() argument
227 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx()
230 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx()
235 ath10k_wmi_map_svc(struct ath10k *ar, const __le32 *in, unsigned long *out, in ath10k_wmi_map_svc() argument
238 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc()
241 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc()
246 ath10k_wmi_map_svc_ext(struct ath10k *ar, const __le32 *in, unsigned long *out, in ath10k_wmi_map_svc_ext() argument
249 if (!ar->wmi.ops->map_svc_ext) in ath10k_wmi_map_svc_ext()
252 ar->wmi.ops->map_svc_ext(in, out, len); in ath10k_wmi_map_svc_ext()
257 ath10k_wmi_pull_scan(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_scan() argument
260 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan()
263 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan()
267 ath10k_wmi_pull_mgmt_tx_compl(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_mgmt_tx_compl() argument
270 if (!ar->wmi.ops->pull_mgmt_tx_compl) in ath10k_wmi_pull_mgmt_tx_compl()
273 return ar->wmi.ops->pull_mgmt_tx_compl(ar, skb, arg); in ath10k_wmi_pull_mgmt_tx_compl()
277 ath10k_wmi_pull_mgmt_tx_bundle_compl(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_mgmt_tx_bundle_compl() argument
280 if (!ar->wmi.ops->pull_mgmt_tx_bundle_compl) in ath10k_wmi_pull_mgmt_tx_bundle_compl()
283 return ar->wmi.ops->pull_mgmt_tx_bundle_compl(ar, skb, arg); in ath10k_wmi_pull_mgmt_tx_bundle_compl()
287 ath10k_wmi_pull_mgmt_rx(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_mgmt_rx() argument
290 if (!ar->wmi.ops->pull_mgmt_rx) in ath10k_wmi_pull_mgmt_rx()
293 return ar->wmi.ops->pull_mgmt_rx(ar, skb, arg); in ath10k_wmi_pull_mgmt_rx()
297 ath10k_wmi_pull_ch_info(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_ch_info() argument
300 if (!ar->wmi.ops->pull_ch_info) in ath10k_wmi_pull_ch_info()
303 return ar->wmi.ops->pull_ch_info(ar, skb, arg); in ath10k_wmi_pull_ch_info()
307 ath10k_wmi_pull_vdev_start(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_vdev_start() argument
310 if (!ar->wmi.ops->pull_vdev_start) in ath10k_wmi_pull_vdev_start()
313 return ar->wmi.ops->pull_vdev_start(ar, skb, arg); in ath10k_wmi_pull_vdev_start()
317 ath10k_wmi_pull_peer_kick(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_peer_kick() argument
320 if (!ar->wmi.ops->pull_peer_kick) in ath10k_wmi_pull_peer_kick()
323 return ar->wmi.ops->pull_peer_kick(ar, skb, arg); in ath10k_wmi_pull_peer_kick()
327 ath10k_wmi_pull_swba(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_swba() argument
330 if (!ar->wmi.ops->pull_swba) in ath10k_wmi_pull_swba()
333 return ar->wmi.ops->pull_swba(ar, skb, arg); in ath10k_wmi_pull_swba()
337 ath10k_wmi_pull_phyerr_hdr(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_phyerr_hdr() argument
340 if (!ar->wmi.ops->pull_phyerr_hdr) in ath10k_wmi_pull_phyerr_hdr()
343 return ar->wmi.ops->pull_phyerr_hdr(ar, skb, arg); in ath10k_wmi_pull_phyerr_hdr()
347 ath10k_wmi_pull_phyerr(struct ath10k *ar, const void *phyerr_buf, in ath10k_wmi_pull_phyerr() argument
350 if (!ar->wmi.ops->pull_phyerr) in ath10k_wmi_pull_phyerr()
353 return ar->wmi.ops->pull_phyerr(ar, phyerr_buf, left_len, arg); in ath10k_wmi_pull_phyerr()
357 ath10k_wmi_pull_svc_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_svc_rdy() argument
360 if (!ar->wmi.ops->pull_svc_rdy) in ath10k_wmi_pull_svc_rdy()
363 return ar->wmi.ops->pull_svc_rdy(ar, skb, arg); in ath10k_wmi_pull_svc_rdy()
367 ath10k_wmi_pull_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_rdy() argument
370 if (!ar->wmi.ops->pull_rdy) in ath10k_wmi_pull_rdy()
373 return ar->wmi.ops->pull_rdy(ar, skb, arg); in ath10k_wmi_pull_rdy()
377 ath10k_wmi_pull_svc_avail(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_svc_avail() argument
380 if (!ar->wmi.ops->pull_svc_avail) in ath10k_wmi_pull_svc_avail()
382 return ar->wmi.ops->pull_svc_avail(ar, skb, arg); in ath10k_wmi_pull_svc_avail()
386 ath10k_wmi_pull_fw_stats(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_fw_stats() argument
389 if (!ar->wmi.ops->pull_fw_stats) in ath10k_wmi_pull_fw_stats()
392 return ar->wmi.ops->pull_fw_stats(ar, skb, stats); in ath10k_wmi_pull_fw_stats()
396 ath10k_wmi_pull_roam_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_roam_ev() argument
399 if (!ar->wmi.ops->pull_roam_ev) in ath10k_wmi_pull_roam_ev()
402 return ar->wmi.ops->pull_roam_ev(ar, skb, arg); in ath10k_wmi_pull_roam_ev()
406 ath10k_wmi_pull_wow_event(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_wow_event() argument
409 if (!ar->wmi.ops->pull_wow_event) in ath10k_wmi_pull_wow_event()
412 return ar->wmi.ops->pull_wow_event(ar, skb, arg); in ath10k_wmi_pull_wow_event()
416 ath10k_wmi_pull_echo_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_echo_ev() argument
419 if (!ar->wmi.ops->pull_echo_ev) in ath10k_wmi_pull_echo_ev()
422 return ar->wmi.ops->pull_echo_ev(ar, skb, arg); in ath10k_wmi_pull_echo_ev()
426 ath10k_wmi_pull_dfs_status(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_dfs_status() argument
429 if (!ar->wmi.ops->pull_dfs_status_ev) in ath10k_wmi_pull_dfs_status()
432 return ar->wmi.ops->pull_dfs_status_ev(ar, skb, arg); in ath10k_wmi_pull_dfs_status()
436 ath10k_wmi_get_txbf_conf_scheme(struct ath10k *ar) in ath10k_wmi_get_txbf_conf_scheme() argument
438 if (!ar->wmi.ops->get_txbf_conf_scheme) in ath10k_wmi_get_txbf_conf_scheme()
441 return ar->wmi.ops->get_txbf_conf_scheme(ar); in ath10k_wmi_get_txbf_conf_scheme()
445 ath10k_wmi_mgmt_tx_send(struct ath10k *ar, struct sk_buff *msdu, in ath10k_wmi_mgmt_tx_send() argument
451 if (!ar->wmi.ops->gen_mgmt_tx_send) in ath10k_wmi_mgmt_tx_send()
454 skb = ar->wmi.ops->gen_mgmt_tx_send(ar, msdu, paddr); in ath10k_wmi_mgmt_tx_send()
458 ret = ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_mgmt_tx_send()
459 ar->wmi.cmd->mgmt_tx_send_cmdid); in ath10k_wmi_mgmt_tx_send()
467 ath10k_wmi_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_mgmt_tx() argument
473 if (!ar->wmi.ops->gen_mgmt_tx) in ath10k_wmi_mgmt_tx()
476 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx()
480 ret = ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_mgmt_tx()
481 ar->wmi.cmd->mgmt_tx_cmdid); in ath10k_wmi_mgmt_tx()
489 ieee80211_tx_status_irqsafe(ar->hw, msdu); in ath10k_wmi_mgmt_tx()
495 ath10k_wmi_pdev_set_regdomain(struct ath10k *ar, u16 rd, u16 rd2g, u16 rd5g, in ath10k_wmi_pdev_set_regdomain() argument
501 if (!ar->wmi.ops->gen_pdev_set_rd) in ath10k_wmi_pdev_set_regdomain()
504 skb = ar->wmi.ops->gen_pdev_set_rd(ar, rd, rd2g, rd5g, ctl2g, ctl5g, in ath10k_wmi_pdev_set_regdomain()
509 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_regdomain()
510 ar->wmi.cmd->pdev_set_regdomain_cmdid); in ath10k_wmi_pdev_set_regdomain()
514 ath10k_wmi_pdev_set_base_macaddr(struct ath10k *ar, const u8 macaddr[ETH_ALEN]) in ath10k_wmi_pdev_set_base_macaddr() argument
518 if (!ar->wmi.ops->gen_pdev_set_base_macaddr) in ath10k_wmi_pdev_set_base_macaddr()
521 skb = ar->wmi.ops->gen_pdev_set_base_macaddr(ar, macaddr); in ath10k_wmi_pdev_set_base_macaddr()
525 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_base_macaddr()
526 ar->wmi.cmd->pdev_set_base_macaddr_cmdid); in ath10k_wmi_pdev_set_base_macaddr()
530 ath10k_wmi_pdev_suspend_target(struct ath10k *ar, u32 suspend_opt) in ath10k_wmi_pdev_suspend_target() argument
534 if (!ar->wmi.ops->gen_pdev_suspend) in ath10k_wmi_pdev_suspend_target()
537 skb = ar->wmi.ops->gen_pdev_suspend(ar, suspend_opt); in ath10k_wmi_pdev_suspend_target()
541 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_suspend_cmdid); in ath10k_wmi_pdev_suspend_target()
545 ath10k_wmi_pdev_resume_target(struct ath10k *ar) in ath10k_wmi_pdev_resume_target() argument
549 if (!ar->wmi.ops->gen_pdev_resume) in ath10k_wmi_pdev_resume_target()
552 skb = ar->wmi.ops->gen_pdev_resume(ar); in ath10k_wmi_pdev_resume_target()
556 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_resume_cmdid); in ath10k_wmi_pdev_resume_target()
560 ath10k_wmi_pdev_set_param(struct ath10k *ar, u32 id, u32 value) in ath10k_wmi_pdev_set_param() argument
564 if (!ar->wmi.ops->gen_pdev_set_param) in ath10k_wmi_pdev_set_param()
567 skb = ar->wmi.ops->gen_pdev_set_param(ar, id, value); in ath10k_wmi_pdev_set_param()
571 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_set_param_cmdid); in ath10k_wmi_pdev_set_param()
575 ath10k_wmi_cmd_init(struct ath10k *ar) in ath10k_wmi_cmd_init() argument
579 if (!ar->wmi.ops->gen_init) in ath10k_wmi_cmd_init()
582 skb = ar->wmi.ops->gen_init(ar); in ath10k_wmi_cmd_init()
586 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->init_cmdid); in ath10k_wmi_cmd_init()
590 ath10k_wmi_start_scan(struct ath10k *ar, in ath10k_wmi_start_scan() argument
595 if (!ar->wmi.ops->gen_start_scan) in ath10k_wmi_start_scan()
598 skb = ar->wmi.ops->gen_start_scan(ar, arg); in ath10k_wmi_start_scan()
602 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->start_scan_cmdid); in ath10k_wmi_start_scan()
606 ath10k_wmi_stop_scan(struct ath10k *ar, const struct wmi_stop_scan_arg *arg) in ath10k_wmi_stop_scan() argument
610 if (!ar->wmi.ops->gen_stop_scan) in ath10k_wmi_stop_scan()
613 skb = ar->wmi.ops->gen_stop_scan(ar, arg); in ath10k_wmi_stop_scan()
617 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->stop_scan_cmdid); in ath10k_wmi_stop_scan()
621 ath10k_wmi_vdev_create(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_create() argument
628 if (!ar->wmi.ops->gen_vdev_create) in ath10k_wmi_vdev_create()
631 skb = ar->wmi.ops->gen_vdev_create(ar, vdev_id, type, subtype, macaddr); in ath10k_wmi_vdev_create()
635 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_create_cmdid); in ath10k_wmi_vdev_create()
639 ath10k_wmi_vdev_delete(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_delete() argument
643 if (!ar->wmi.ops->gen_vdev_delete) in ath10k_wmi_vdev_delete()
646 skb = ar->wmi.ops->gen_vdev_delete(ar, vdev_id); in ath10k_wmi_vdev_delete()
650 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_delete_cmdid); in ath10k_wmi_vdev_delete()
654 ath10k_wmi_vdev_start(struct ath10k *ar, in ath10k_wmi_vdev_start() argument
659 if (!ar->wmi.ops->gen_vdev_start) in ath10k_wmi_vdev_start()
662 skb = ar->wmi.ops->gen_vdev_start(ar, arg, false); in ath10k_wmi_vdev_start()
666 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_start()
667 ar->wmi.cmd->vdev_start_request_cmdid); in ath10k_wmi_vdev_start()
671 ath10k_wmi_vdev_restart(struct ath10k *ar, in ath10k_wmi_vdev_restart() argument
676 if (!ar->wmi.ops->gen_vdev_start) in ath10k_wmi_vdev_restart()
679 skb = ar->wmi.ops->gen_vdev_start(ar, arg, true); in ath10k_wmi_vdev_restart()
683 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_restart()
684 ar->wmi.cmd->vdev_restart_request_cmdid); in ath10k_wmi_vdev_restart()
688 ath10k_wmi_vdev_stop(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_stop() argument
692 if (!ar->wmi.ops->gen_vdev_stop) in ath10k_wmi_vdev_stop()
695 skb = ar->wmi.ops->gen_vdev_stop(ar, vdev_id); in ath10k_wmi_vdev_stop()
699 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_stop_cmdid); in ath10k_wmi_vdev_stop()
703 ath10k_wmi_vdev_up(struct ath10k *ar, u32 vdev_id, u32 aid, const u8 *bssid) in ath10k_wmi_vdev_up() argument
707 if (!ar->wmi.ops->gen_vdev_up) in ath10k_wmi_vdev_up()
710 skb = ar->wmi.ops->gen_vdev_up(ar, vdev_id, aid, bssid); in ath10k_wmi_vdev_up()
714 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_up_cmdid); in ath10k_wmi_vdev_up()
718 ath10k_wmi_vdev_down(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_down() argument
722 if (!ar->wmi.ops->gen_vdev_down) in ath10k_wmi_vdev_down()
725 skb = ar->wmi.ops->gen_vdev_down(ar, vdev_id); in ath10k_wmi_vdev_down()
729 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_down_cmdid); in ath10k_wmi_vdev_down()
733 ath10k_wmi_vdev_set_param(struct ath10k *ar, u32 vdev_id, u32 param_id, in ath10k_wmi_vdev_set_param() argument
738 if (!ar->wmi.ops->gen_vdev_set_param) in ath10k_wmi_vdev_set_param()
741 skb = ar->wmi.ops->gen_vdev_set_param(ar, vdev_id, param_id, in ath10k_wmi_vdev_set_param()
746 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_set_param_cmdid); in ath10k_wmi_vdev_set_param()
750 ath10k_wmi_vdev_install_key(struct ath10k *ar, in ath10k_wmi_vdev_install_key() argument
755 if (!ar->wmi.ops->gen_vdev_install_key) in ath10k_wmi_vdev_install_key()
758 skb = ar->wmi.ops->gen_vdev_install_key(ar, arg); in ath10k_wmi_vdev_install_key()
762 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_install_key()
763 ar->wmi.cmd->vdev_install_key_cmdid); in ath10k_wmi_vdev_install_key()
767 ath10k_wmi_vdev_spectral_conf(struct ath10k *ar, in ath10k_wmi_vdev_spectral_conf() argument
773 if (!ar->wmi.ops->gen_vdev_spectral_conf) in ath10k_wmi_vdev_spectral_conf()
776 skb = ar->wmi.ops->gen_vdev_spectral_conf(ar, arg); in ath10k_wmi_vdev_spectral_conf()
780 cmd_id = ar->wmi.cmd->vdev_spectral_scan_configure_cmdid; in ath10k_wmi_vdev_spectral_conf()
781 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_conf()
785 ath10k_wmi_vdev_spectral_enable(struct ath10k *ar, u32 vdev_id, u32 trigger, in ath10k_wmi_vdev_spectral_enable() argument
791 if (!ar->wmi.ops->gen_vdev_spectral_enable) in ath10k_wmi_vdev_spectral_enable()
794 skb = ar->wmi.ops->gen_vdev_spectral_enable(ar, vdev_id, trigger, in ath10k_wmi_vdev_spectral_enable()
799 cmd_id = ar->wmi.cmd->vdev_spectral_scan_enable_cmdid; in ath10k_wmi_vdev_spectral_enable()
800 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_enable()
804 ath10k_wmi_vdev_sta_uapsd(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_sta_uapsd() argument
812 if (!ar->wmi.ops->gen_vdev_sta_uapsd) in ath10k_wmi_vdev_sta_uapsd()
815 skb = ar->wmi.ops->gen_vdev_sta_uapsd(ar, vdev_id, peer_addr, args, in ath10k_wmi_vdev_sta_uapsd()
820 cmd_id = ar->wmi.cmd->sta_uapsd_auto_trig_cmdid; in ath10k_wmi_vdev_sta_uapsd()
821 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_sta_uapsd()
825 ath10k_wmi_vdev_wmm_conf(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_wmm_conf() argument
831 skb = ar->wmi.ops->gen_vdev_wmm_conf(ar, vdev_id, arg); in ath10k_wmi_vdev_wmm_conf()
835 cmd_id = ar->wmi.cmd->vdev_set_wmm_params_cmdid; in ath10k_wmi_vdev_wmm_conf()
836 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_wmm_conf()
840 ath10k_wmi_peer_create(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_create() argument
846 if (!ar->wmi.ops->gen_peer_create) in ath10k_wmi_peer_create()
849 skb = ar->wmi.ops->gen_peer_create(ar, vdev_id, peer_addr, peer_type); in ath10k_wmi_peer_create()
853 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_create_cmdid); in ath10k_wmi_peer_create()
857 ath10k_wmi_peer_delete(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_delete() argument
862 if (!ar->wmi.ops->gen_peer_delete) in ath10k_wmi_peer_delete()
865 skb = ar->wmi.ops->gen_peer_delete(ar, vdev_id, peer_addr); in ath10k_wmi_peer_delete()
869 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_delete_cmdid); in ath10k_wmi_peer_delete()
873 ath10k_wmi_peer_flush(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_flush() argument
878 if (!ar->wmi.ops->gen_peer_flush) in ath10k_wmi_peer_flush()
881 skb = ar->wmi.ops->gen_peer_flush(ar, vdev_id, peer_addr, tid_bitmap); in ath10k_wmi_peer_flush()
885 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_flush_tids_cmdid); in ath10k_wmi_peer_flush()
889 ath10k_wmi_peer_set_param(struct ath10k *ar, u32 vdev_id, const u8 *peer_addr, in ath10k_wmi_peer_set_param() argument
894 if (!ar->wmi.ops->gen_peer_set_param) in ath10k_wmi_peer_set_param()
897 skb = ar->wmi.ops->gen_peer_set_param(ar, vdev_id, peer_addr, param_id, in ath10k_wmi_peer_set_param()
902 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_set_param_cmdid); in ath10k_wmi_peer_set_param()
906 ath10k_wmi_set_psmode(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_set_psmode() argument
911 if (!ar->wmi.ops->gen_set_psmode) in ath10k_wmi_set_psmode()
914 skb = ar->wmi.ops->gen_set_psmode(ar, vdev_id, psmode); in ath10k_wmi_set_psmode()
918 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_psmode()
919 ar->wmi.cmd->sta_powersave_mode_cmdid); in ath10k_wmi_set_psmode()
923 ath10k_wmi_set_sta_ps_param(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_set_sta_ps_param() argument
928 if (!ar->wmi.ops->gen_set_sta_ps) in ath10k_wmi_set_sta_ps_param()
931 skb = ar->wmi.ops->gen_set_sta_ps(ar, vdev_id, param_id, value); in ath10k_wmi_set_sta_ps_param()
935 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_sta_ps_param()
936 ar->wmi.cmd->sta_powersave_param_cmdid); in ath10k_wmi_set_sta_ps_param()
940 ath10k_wmi_set_ap_ps_param(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_set_ap_ps_param() argument
945 if (!ar->wmi.ops->gen_set_ap_ps) in ath10k_wmi_set_ap_ps_param()
948 skb = ar->wmi.ops->gen_set_ap_ps(ar, vdev_id, mac, param_id, value); in ath10k_wmi_set_ap_ps_param()
952 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_ap_ps_param()
953 ar->wmi.cmd->ap_ps_peer_param_cmdid); in ath10k_wmi_set_ap_ps_param()
957 ath10k_wmi_scan_chan_list(struct ath10k *ar, in ath10k_wmi_scan_chan_list() argument
962 if (!ar->wmi.ops->gen_scan_chan_list) in ath10k_wmi_scan_chan_list()
965 skb = ar->wmi.ops->gen_scan_chan_list(ar, arg); in ath10k_wmi_scan_chan_list()
969 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->scan_chan_list_cmdid); in ath10k_wmi_scan_chan_list()
973 ath10k_wmi_scan_prob_req_oui(struct ath10k *ar, const u8 mac_addr[ETH_ALEN]) in ath10k_wmi_scan_prob_req_oui() argument
981 if (!ar->wmi.ops->gen_scan_prob_req_oui) in ath10k_wmi_scan_prob_req_oui()
984 skb = ar->wmi.ops->gen_scan_prob_req_oui(ar, prob_req_oui); in ath10k_wmi_scan_prob_req_oui()
988 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_scan_prob_req_oui()
989 ar->wmi.cmd->scan_prob_req_oui_cmdid); in ath10k_wmi_scan_prob_req_oui()
993 ath10k_wmi_peer_assoc(struct ath10k *ar, in ath10k_wmi_peer_assoc() argument
998 if (!ar->wmi.ops->gen_peer_assoc) in ath10k_wmi_peer_assoc()
1001 skb = ar->wmi.ops->gen_peer_assoc(ar, arg); in ath10k_wmi_peer_assoc()
1005 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_assoc_cmdid); in ath10k_wmi_peer_assoc()
1009 ath10k_wmi_beacon_send_ref_nowait(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_beacon_send_ref_nowait() argument
1017 if (!ar->wmi.ops->gen_beacon_dma) in ath10k_wmi_beacon_send_ref_nowait()
1020 skb = ar->wmi.ops->gen_beacon_dma(ar, vdev_id, bcn, bcn_len, bcn_paddr, in ath10k_wmi_beacon_send_ref_nowait()
1025 ret = ath10k_wmi_cmd_send_nowait(ar, skb, in ath10k_wmi_beacon_send_ref_nowait()
1026 ar->wmi.cmd->pdev_send_bcn_cmdid); in ath10k_wmi_beacon_send_ref_nowait()
1036 ath10k_wmi_pdev_set_wmm_params(struct ath10k *ar, in ath10k_wmi_pdev_set_wmm_params() argument
1041 if (!ar->wmi.ops->gen_pdev_set_wmm) in ath10k_wmi_pdev_set_wmm_params()
1044 skb = ar->wmi.ops->gen_pdev_set_wmm(ar, arg); in ath10k_wmi_pdev_set_wmm_params()
1048 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_wmm_params()
1049 ar->wmi.cmd->pdev_set_wmm_params_cmdid); in ath10k_wmi_pdev_set_wmm_params()
1053 ath10k_wmi_request_stats(struct ath10k *ar, u32 stats_mask) in ath10k_wmi_request_stats() argument
1057 if (!ar->wmi.ops->gen_request_stats) in ath10k_wmi_request_stats()
1060 skb = ar->wmi.ops->gen_request_stats(ar, stats_mask); in ath10k_wmi_request_stats()
1064 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->request_stats_cmdid); in ath10k_wmi_request_stats()
1068 ath10k_wmi_force_fw_hang(struct ath10k *ar, in ath10k_wmi_force_fw_hang() argument
1073 if (!ar->wmi.ops->gen_force_fw_hang) in ath10k_wmi_force_fw_hang()
1076 skb = ar->wmi.ops->gen_force_fw_hang(ar, type, delay_ms); in ath10k_wmi_force_fw_hang()
1080 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->force_fw_hang_cmdid); in ath10k_wmi_force_fw_hang()
1084 ath10k_wmi_dbglog_cfg(struct ath10k *ar, u64 module_enable, u32 log_level) in ath10k_wmi_dbglog_cfg() argument
1088 if (!ar->wmi.ops->gen_dbglog_cfg) in ath10k_wmi_dbglog_cfg()
1091 skb = ar->wmi.ops->gen_dbglog_cfg(ar, module_enable, log_level); in ath10k_wmi_dbglog_cfg()
1095 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->dbglog_cfg_cmdid); in ath10k_wmi_dbglog_cfg()
1099 ath10k_wmi_pdev_pktlog_enable(struct ath10k *ar, u32 filter) in ath10k_wmi_pdev_pktlog_enable() argument
1103 if (!ar->wmi.ops->gen_pktlog_enable) in ath10k_wmi_pdev_pktlog_enable()
1106 skb = ar->wmi.ops->gen_pktlog_enable(ar, filter); in ath10k_wmi_pdev_pktlog_enable()
1110 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_pktlog_enable_cmdid); in ath10k_wmi_pdev_pktlog_enable()
1114 ath10k_wmi_pdev_pktlog_disable(struct ath10k *ar) in ath10k_wmi_pdev_pktlog_disable() argument
1118 if (!ar->wmi.ops->gen_pktlog_disable) in ath10k_wmi_pdev_pktlog_disable()
1121 skb = ar->wmi.ops->gen_pktlog_disable(ar); in ath10k_wmi_pdev_pktlog_disable()
1125 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_pktlog_disable()
1126 ar->wmi.cmd->pdev_pktlog_disable_cmdid); in ath10k_wmi_pdev_pktlog_disable()
1130 ath10k_wmi_pdev_set_quiet_mode(struct ath10k *ar, u32 period, u32 duration, in ath10k_wmi_pdev_set_quiet_mode() argument
1135 if (!ar->wmi.ops->gen_pdev_set_quiet_mode) in ath10k_wmi_pdev_set_quiet_mode()
1138 skb = ar->wmi.ops->gen_pdev_set_quiet_mode(ar, period, duration, in ath10k_wmi_pdev_set_quiet_mode()
1143 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_quiet_mode()
1144 ar->wmi.cmd->pdev_set_quiet_mode_cmdid); in ath10k_wmi_pdev_set_quiet_mode()
1148 ath10k_wmi_pdev_get_temperature(struct ath10k *ar) in ath10k_wmi_pdev_get_temperature() argument
1152 if (!ar->wmi.ops->gen_pdev_get_temperature) in ath10k_wmi_pdev_get_temperature()
1155 skb = ar->wmi.ops->gen_pdev_get_temperature(ar); in ath10k_wmi_pdev_get_temperature()
1159 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_temperature()
1160 ar->wmi.cmd->pdev_get_temperature_cmdid); in ath10k_wmi_pdev_get_temperature()
1164 ath10k_wmi_addba_clear_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac) in ath10k_wmi_addba_clear_resp() argument
1168 if (!ar->wmi.ops->gen_addba_clear_resp) in ath10k_wmi_addba_clear_resp()
1171 skb = ar->wmi.ops->gen_addba_clear_resp(ar, vdev_id, mac); in ath10k_wmi_addba_clear_resp()
1175 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_clear_resp()
1176 ar->wmi.cmd->addba_clear_resp_cmdid); in ath10k_wmi_addba_clear_resp()
1180 ath10k_wmi_addba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_send() argument
1185 if (!ar->wmi.ops->gen_addba_send) in ath10k_wmi_addba_send()
1188 skb = ar->wmi.ops->gen_addba_send(ar, vdev_id, mac, tid, buf_size); in ath10k_wmi_addba_send()
1192 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_send()
1193 ar->wmi.cmd->addba_send_cmdid); in ath10k_wmi_addba_send()
1197 ath10k_wmi_addba_set_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_set_resp() argument
1202 if (!ar->wmi.ops->gen_addba_set_resp) in ath10k_wmi_addba_set_resp()
1205 skb = ar->wmi.ops->gen_addba_set_resp(ar, vdev_id, mac, tid, status); in ath10k_wmi_addba_set_resp()
1209 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_set_resp()
1210 ar->wmi.cmd->addba_set_resp_cmdid); in ath10k_wmi_addba_set_resp()
1214 ath10k_wmi_delba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_delba_send() argument
1219 if (!ar->wmi.ops->gen_delba_send) in ath10k_wmi_delba_send()
1222 skb = ar->wmi.ops->gen_delba_send(ar, vdev_id, mac, tid, initiator, in ath10k_wmi_delba_send()
1227 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_delba_send()
1228 ar->wmi.cmd->delba_send_cmdid); in ath10k_wmi_delba_send()
1232 ath10k_wmi_bcn_tmpl(struct ath10k *ar, u32 vdev_id, u32 tim_ie_offset, in ath10k_wmi_bcn_tmpl() argument
1238 if (!ar->wmi.ops->gen_bcn_tmpl) in ath10k_wmi_bcn_tmpl()
1241 skb = ar->wmi.ops->gen_bcn_tmpl(ar, vdev_id, tim_ie_offset, bcn, in ath10k_wmi_bcn_tmpl()
1247 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->bcn_tmpl_cmdid); in ath10k_wmi_bcn_tmpl()
1251 ath10k_wmi_prb_tmpl(struct ath10k *ar, u32 vdev_id, struct sk_buff *prb) in ath10k_wmi_prb_tmpl() argument
1255 if (!ar->wmi.ops->gen_prb_tmpl) in ath10k_wmi_prb_tmpl()
1258 skb = ar->wmi.ops->gen_prb_tmpl(ar, vdev_id, prb); in ath10k_wmi_prb_tmpl()
1262 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->prb_tmpl_cmdid); in ath10k_wmi_prb_tmpl()
1266 ath10k_wmi_p2p_go_bcn_ie(struct ath10k *ar, u32 vdev_id, const u8 *p2p_ie) in ath10k_wmi_p2p_go_bcn_ie() argument
1270 if (!ar->wmi.ops->gen_p2p_go_bcn_ie) in ath10k_wmi_p2p_go_bcn_ie()
1273 skb = ar->wmi.ops->gen_p2p_go_bcn_ie(ar, vdev_id, p2p_ie); in ath10k_wmi_p2p_go_bcn_ie()
1277 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->p2p_go_set_beacon_ie); in ath10k_wmi_p2p_go_bcn_ie()
1281 ath10k_wmi_sta_keepalive(struct ath10k *ar, in ath10k_wmi_sta_keepalive() argument
1287 if (!ar->wmi.ops->gen_sta_keepalive) in ath10k_wmi_sta_keepalive()
1290 skb = ar->wmi.ops->gen_sta_keepalive(ar, arg); in ath10k_wmi_sta_keepalive()
1294 cmd_id = ar->wmi.cmd->sta_keepalive_cmd; in ath10k_wmi_sta_keepalive()
1295 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_sta_keepalive()
1299 ath10k_wmi_wow_enable(struct ath10k *ar) in ath10k_wmi_wow_enable() argument
1304 if (!ar->wmi.ops->gen_wow_enable) in ath10k_wmi_wow_enable()
1307 skb = ar->wmi.ops->gen_wow_enable(ar); in ath10k_wmi_wow_enable()
1311 cmd_id = ar->wmi.cmd->wow_enable_cmdid; in ath10k_wmi_wow_enable()
1312 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_enable()
1316 ath10k_wmi_wow_add_wakeup_event(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_wow_add_wakeup_event() argument
1323 if (!ar->wmi.ops->gen_wow_add_wakeup_event) in ath10k_wmi_wow_add_wakeup_event()
1326 skb = ar->wmi.ops->gen_wow_add_wakeup_event(ar, vdev_id, event, enable); in ath10k_wmi_wow_add_wakeup_event()
1330 cmd_id = ar->wmi.cmd->wow_enable_disable_wake_event_cmdid; in ath10k_wmi_wow_add_wakeup_event()
1331 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_add_wakeup_event()
1335 ath10k_wmi_wow_host_wakeup_ind(struct ath10k *ar) in ath10k_wmi_wow_host_wakeup_ind() argument
1340 if (!ar->wmi.ops->gen_wow_host_wakeup_ind) in ath10k_wmi_wow_host_wakeup_ind()
1343 skb = ar->wmi.ops->gen_wow_host_wakeup_ind(ar); in ath10k_wmi_wow_host_wakeup_ind()
1347 cmd_id = ar->wmi.cmd->wow_hostwakeup_from_sleep_cmdid; in ath10k_wmi_wow_host_wakeup_ind()
1348 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_host_wakeup_ind()
1352 ath10k_wmi_wow_add_pattern(struct ath10k *ar, u32 vdev_id, u32 pattern_id, in ath10k_wmi_wow_add_pattern() argument
1359 if (!ar->wmi.ops->gen_wow_add_pattern) in ath10k_wmi_wow_add_pattern()
1362 skb = ar->wmi.ops->gen_wow_add_pattern(ar, vdev_id, pattern_id, in ath10k_wmi_wow_add_pattern()
1368 cmd_id = ar->wmi.cmd->wow_add_wake_pattern_cmdid; in ath10k_wmi_wow_add_pattern()
1369 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_add_pattern()
1373 ath10k_wmi_wow_del_pattern(struct ath10k *ar, u32 vdev_id, u32 pattern_id) in ath10k_wmi_wow_del_pattern() argument
1378 if (!ar->wmi.ops->gen_wow_del_pattern) in ath10k_wmi_wow_del_pattern()
1381 skb = ar->wmi.ops->gen_wow_del_pattern(ar, vdev_id, pattern_id); in ath10k_wmi_wow_del_pattern()
1385 cmd_id = ar->wmi.cmd->wow_del_wake_pattern_cmdid; in ath10k_wmi_wow_del_pattern()
1386 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_del_pattern()
1390 ath10k_wmi_wow_config_pno(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_wow_config_pno() argument
1396 if (!ar->wmi.ops->gen_wow_config_pno) in ath10k_wmi_wow_config_pno()
1399 skb = ar->wmi.ops->gen_wow_config_pno(ar, vdev_id, pno_scan); in ath10k_wmi_wow_config_pno()
1403 cmd_id = ar->wmi.cmd->network_list_offload_config_cmdid; in ath10k_wmi_wow_config_pno()
1404 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_config_pno()
1408 ath10k_wmi_update_fw_tdls_state(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_update_fw_tdls_state() argument
1413 if (!ar->wmi.ops->gen_update_fw_tdls_state) in ath10k_wmi_update_fw_tdls_state()
1416 skb = ar->wmi.ops->gen_update_fw_tdls_state(ar, vdev_id, state); in ath10k_wmi_update_fw_tdls_state()
1420 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->tdls_set_state_cmdid); in ath10k_wmi_update_fw_tdls_state()
1424 ath10k_wmi_tdls_peer_update(struct ath10k *ar, in ath10k_wmi_tdls_peer_update() argument
1431 if (!ar->wmi.ops->gen_tdls_peer_update) in ath10k_wmi_tdls_peer_update()
1434 skb = ar->wmi.ops->gen_tdls_peer_update(ar, arg, cap, chan); in ath10k_wmi_tdls_peer_update()
1438 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_tdls_peer_update()
1439 ar->wmi.cmd->tdls_peer_update_cmdid); in ath10k_wmi_tdls_peer_update()
1443 ath10k_wmi_adaptive_qcs(struct ath10k *ar, bool enable) in ath10k_wmi_adaptive_qcs() argument
1447 if (!ar->wmi.ops->gen_adaptive_qcs) in ath10k_wmi_adaptive_qcs()
1450 skb = ar->wmi.ops->gen_adaptive_qcs(ar, enable); in ath10k_wmi_adaptive_qcs()
1454 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->adaptive_qcs_cmdid); in ath10k_wmi_adaptive_qcs()
1458 ath10k_wmi_pdev_get_tpc_config(struct ath10k *ar, u32 param) in ath10k_wmi_pdev_get_tpc_config() argument
1462 if (!ar->wmi.ops->gen_pdev_get_tpc_config) in ath10k_wmi_pdev_get_tpc_config()
1465 skb = ar->wmi.ops->gen_pdev_get_tpc_config(ar, param); in ath10k_wmi_pdev_get_tpc_config()
1470 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_tpc_config()
1471 ar->wmi.cmd->pdev_get_tpc_config_cmdid); in ath10k_wmi_pdev_get_tpc_config()
1475 ath10k_wmi_fw_stats_fill(struct ath10k *ar, struct ath10k_fw_stats *fw_stats, in ath10k_wmi_fw_stats_fill() argument
1478 if (!ar->wmi.ops->fw_stats_fill) in ath10k_wmi_fw_stats_fill()
1481 ar->wmi.ops->fw_stats_fill(ar, fw_stats, buf); in ath10k_wmi_fw_stats_fill()
1486 ath10k_wmi_pdev_enable_adaptive_cca(struct ath10k *ar, u8 enable, in ath10k_wmi_pdev_enable_adaptive_cca() argument
1491 if (!ar->wmi.ops->gen_pdev_enable_adaptive_cca) in ath10k_wmi_pdev_enable_adaptive_cca()
1494 skb = ar->wmi.ops->gen_pdev_enable_adaptive_cca(ar, enable, in ath10k_wmi_pdev_enable_adaptive_cca()
1501 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_enable_adaptive_cca()
1502 ar->wmi.cmd->pdev_enable_adaptive_cca_cmdid); in ath10k_wmi_pdev_enable_adaptive_cca()
1506 ath10k_wmi_ext_resource_config(struct ath10k *ar, in ath10k_wmi_ext_resource_config() argument
1512 if (!ar->wmi.ops->ext_resource_config) in ath10k_wmi_ext_resource_config()
1515 skb = ar->wmi.ops->ext_resource_config(ar, type, in ath10k_wmi_ext_resource_config()
1521 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_ext_resource_config()
1522 ar->wmi.cmd->ext_resource_cfg_cmdid); in ath10k_wmi_ext_resource_config()
1526 ath10k_wmi_get_vdev_subtype(struct ath10k *ar, enum wmi_vdev_subtype subtype) in ath10k_wmi_get_vdev_subtype() argument
1528 if (!ar->wmi.ops->get_vdev_subtype) in ath10k_wmi_get_vdev_subtype()
1531 return ar->wmi.ops->get_vdev_subtype(ar, subtype); in ath10k_wmi_get_vdev_subtype()
1535 ath10k_wmi_pdev_bss_chan_info_request(struct ath10k *ar, in ath10k_wmi_pdev_bss_chan_info_request() argument
1538 struct ath10k_wmi *wmi = &ar->wmi; in ath10k_wmi_pdev_bss_chan_info_request()
1544 skb = wmi->ops->gen_pdev_bss_chan_info_req(ar, type); in ath10k_wmi_pdev_bss_chan_info_request()
1548 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_bss_chan_info_request()
1553 ath10k_wmi_echo(struct ath10k *ar, u32 value) in ath10k_wmi_echo() argument
1555 struct ath10k_wmi *wmi = &ar->wmi; in ath10k_wmi_echo()
1561 skb = wmi->ops->gen_echo(ar, value); in ath10k_wmi_echo()
1565 return ath10k_wmi_cmd_send(ar, skb, wmi->cmd->echo_cmdid); in ath10k_wmi_echo()
1569 ath10k_wmi_pdev_get_tpc_table_cmdid(struct ath10k *ar, u32 param) in ath10k_wmi_pdev_get_tpc_table_cmdid() argument
1573 if (!ar->wmi.ops->gen_pdev_get_tpc_table_cmdid) in ath10k_wmi_pdev_get_tpc_table_cmdid()
1576 skb = ar->wmi.ops->gen_pdev_get_tpc_table_cmdid(ar, param); in ath10k_wmi_pdev_get_tpc_table_cmdid()
1581 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_tpc_table_cmdid()
1582 ar->wmi.cmd->pdev_get_tpc_table_cmdid); in ath10k_wmi_pdev_get_tpc_table_cmdid()
1586 ath10k_wmi_report_radar_found(struct ath10k *ar, in ath10k_wmi_report_radar_found() argument
1591 if (!ar->wmi.ops->gen_radar_found) in ath10k_wmi_report_radar_found()
1594 skb = ar->wmi.ops->gen_radar_found(ar, arg); in ath10k_wmi_report_radar_found()
1598 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_report_radar_found()
1599 ar->wmi.cmd->radar_found_cmdid); in ath10k_wmi_report_radar_found()
1603 ath10k_wmi_pdev_bb_timing(struct ath10k *ar, in ath10k_wmi_pdev_bb_timing() argument
1608 if (!ar->wmi.ops->gen_bb_timing) in ath10k_wmi_pdev_bb_timing()
1611 skb = ar->wmi.ops->gen_bb_timing(ar, arg); in ath10k_wmi_pdev_bb_timing()
1616 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_bb_timing()
1617 ar->wmi.cmd->set_bb_timing_cmdid); in ath10k_wmi_pdev_bb_timing()