Lines Matching refs:ar

25 	void (*rx)(struct ath10k *ar, struct sk_buff *skb);
28 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
38 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
40 int (*pull_phyerr)(struct ath10k *ar, struct sk_buff *skb,
42 int (*pull_svc_rdy)(struct ath10k *ar, struct sk_buff *skb,
44 int (*pull_rdy)(struct ath10k *ar, struct sk_buff *skb,
46 int (*pull_fw_stats)(struct ath10k *ar, struct sk_buff *skb,
49 struct sk_buff *(*gen_pdev_suspend)(struct ath10k *ar, u32 suspend_opt);
50 struct sk_buff *(*gen_pdev_resume)(struct ath10k *ar);
51 struct sk_buff *(*gen_pdev_set_rd)(struct ath10k *ar, u16 rd, u16 rd2g,
54 struct sk_buff *(*gen_pdev_set_param)(struct ath10k *ar, u32 id,
56 struct sk_buff *(*gen_init)(struct ath10k *ar);
57 struct sk_buff *(*gen_start_scan)(struct ath10k *ar,
59 struct sk_buff *(*gen_stop_scan)(struct ath10k *ar,
61 struct sk_buff *(*gen_vdev_create)(struct ath10k *ar, u32 vdev_id,
65 struct sk_buff *(*gen_vdev_delete)(struct ath10k *ar, u32 vdev_id);
66 struct sk_buff *(*gen_vdev_start)(struct ath10k *ar,
69 struct sk_buff *(*gen_vdev_stop)(struct ath10k *ar, u32 vdev_id);
70 struct sk_buff *(*gen_vdev_up)(struct ath10k *ar, u32 vdev_id, u32 aid,
72 struct sk_buff *(*gen_vdev_down)(struct ath10k *ar, u32 vdev_id);
73 struct sk_buff *(*gen_vdev_set_param)(struct ath10k *ar, u32 vdev_id,
75 struct sk_buff *(*gen_vdev_install_key)(struct ath10k *ar,
77 struct sk_buff *(*gen_vdev_spectral_conf)(struct ath10k *ar,
79 struct sk_buff *(*gen_vdev_spectral_enable)(struct ath10k *ar, u32 vdev_id,
81 struct sk_buff *(*gen_vdev_wmm_conf)(struct ath10k *ar, u32 vdev_id,
83 struct sk_buff *(*gen_peer_create)(struct ath10k *ar, u32 vdev_id,
85 struct sk_buff *(*gen_peer_delete)(struct ath10k *ar, u32 vdev_id,
87 struct sk_buff *(*gen_peer_flush)(struct ath10k *ar, u32 vdev_id,
90 struct sk_buff *(*gen_peer_set_param)(struct ath10k *ar, u32 vdev_id,
94 struct sk_buff *(*gen_peer_assoc)(struct ath10k *ar,
96 struct sk_buff *(*gen_set_psmode)(struct ath10k *ar, u32 vdev_id,
98 struct sk_buff *(*gen_set_sta_ps)(struct ath10k *ar, u32 vdev_id,
101 struct sk_buff *(*gen_set_ap_ps)(struct ath10k *ar, u32 vdev_id,
105 struct sk_buff *(*gen_scan_chan_list)(struct ath10k *ar,
107 struct sk_buff *(*gen_beacon_dma)(struct ath10k *ar, u32 vdev_id,
111 struct sk_buff *(*gen_pdev_set_wmm)(struct ath10k *ar,
113 struct sk_buff *(*gen_request_stats)(struct ath10k *ar, u32 stats_mask);
114 struct sk_buff *(*gen_force_fw_hang)(struct ath10k *ar,
117 struct sk_buff *(*gen_mgmt_tx)(struct ath10k *ar, struct sk_buff *skb);
118 struct sk_buff *(*gen_dbglog_cfg)(struct ath10k *ar, u32 module_enable,
120 struct sk_buff *(*gen_pktlog_enable)(struct ath10k *ar, u32 filter);
121 struct sk_buff *(*gen_pktlog_disable)(struct ath10k *ar);
122 struct sk_buff *(*gen_pdev_set_quiet_mode)(struct ath10k *ar,
126 struct sk_buff *(*gen_pdev_get_temperature)(struct ath10k *ar);
127 struct sk_buff *(*gen_addba_clear_resp)(struct ath10k *ar, u32 vdev_id,
129 struct sk_buff *(*gen_addba_send)(struct ath10k *ar, u32 vdev_id,
131 struct sk_buff *(*gen_addba_set_resp)(struct ath10k *ar, u32 vdev_id,
134 struct sk_buff *(*gen_delba_send)(struct ath10k *ar, u32 vdev_id,
137 struct sk_buff *(*gen_bcn_tmpl)(struct ath10k *ar, u32 vdev_id,
141 struct sk_buff *(*gen_prb_tmpl)(struct ath10k *ar, u32 vdev_id,
143 struct sk_buff *(*gen_p2p_go_bcn_ie)(struct ath10k *ar, u32 vdev_id,
145 struct sk_buff *(*gen_vdev_sta_uapsd)(struct ath10k *ar, u32 vdev_id,
149 struct sk_buff *(*gen_sta_keepalive)(struct ath10k *ar,
153 int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id);
156 ath10k_wmi_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_rx() argument
158 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx()
161 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx()
166 ath10k_wmi_map_svc(struct ath10k *ar, const __le32 *in, unsigned long *out, in ath10k_wmi_map_svc() argument
169 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc()
172 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc()
177 ath10k_wmi_pull_scan(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_scan() argument
180 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan()
183 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan()
187 ath10k_wmi_pull_mgmt_rx(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_mgmt_rx() argument
190 if (!ar->wmi.ops->pull_mgmt_rx) in ath10k_wmi_pull_mgmt_rx()
193 return ar->wmi.ops->pull_mgmt_rx(ar, skb, arg); in ath10k_wmi_pull_mgmt_rx()
197 ath10k_wmi_pull_ch_info(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_ch_info() argument
200 if (!ar->wmi.ops->pull_ch_info) in ath10k_wmi_pull_ch_info()
203 return ar->wmi.ops->pull_ch_info(ar, skb, arg); in ath10k_wmi_pull_ch_info()
207 ath10k_wmi_pull_vdev_start(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_vdev_start() argument
210 if (!ar->wmi.ops->pull_vdev_start) in ath10k_wmi_pull_vdev_start()
213 return ar->wmi.ops->pull_vdev_start(ar, skb, arg); in ath10k_wmi_pull_vdev_start()
217 ath10k_wmi_pull_peer_kick(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_peer_kick() argument
220 if (!ar->wmi.ops->pull_peer_kick) in ath10k_wmi_pull_peer_kick()
223 return ar->wmi.ops->pull_peer_kick(ar, skb, arg); in ath10k_wmi_pull_peer_kick()
227 ath10k_wmi_pull_swba(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_swba() argument
230 if (!ar->wmi.ops->pull_swba) in ath10k_wmi_pull_swba()
233 return ar->wmi.ops->pull_swba(ar, skb, arg); in ath10k_wmi_pull_swba()
237 ath10k_wmi_pull_phyerr(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_phyerr() argument
240 if (!ar->wmi.ops->pull_phyerr) in ath10k_wmi_pull_phyerr()
243 return ar->wmi.ops->pull_phyerr(ar, skb, arg); in ath10k_wmi_pull_phyerr()
247 ath10k_wmi_pull_svc_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_svc_rdy() argument
250 if (!ar->wmi.ops->pull_svc_rdy) in ath10k_wmi_pull_svc_rdy()
253 return ar->wmi.ops->pull_svc_rdy(ar, skb, arg); in ath10k_wmi_pull_svc_rdy()
257 ath10k_wmi_pull_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_rdy() argument
260 if (!ar->wmi.ops->pull_rdy) in ath10k_wmi_pull_rdy()
263 return ar->wmi.ops->pull_rdy(ar, skb, arg); in ath10k_wmi_pull_rdy()
267 ath10k_wmi_pull_fw_stats(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_fw_stats() argument
270 if (!ar->wmi.ops->pull_fw_stats) in ath10k_wmi_pull_fw_stats()
273 return ar->wmi.ops->pull_fw_stats(ar, skb, stats); in ath10k_wmi_pull_fw_stats()
277 ath10k_wmi_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_mgmt_tx() argument
283 if (!ar->wmi.ops->gen_mgmt_tx) in ath10k_wmi_mgmt_tx()
286 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx()
290 ret = ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->mgmt_tx_cmdid); in ath10k_wmi_mgmt_tx()
297 ieee80211_tx_status_irqsafe(ar->hw, msdu); in ath10k_wmi_mgmt_tx()
303 ath10k_wmi_pdev_set_regdomain(struct ath10k *ar, u16 rd, u16 rd2g, u16 rd5g, in ath10k_wmi_pdev_set_regdomain() argument
309 if (!ar->wmi.ops->gen_pdev_set_rd) in ath10k_wmi_pdev_set_regdomain()
312 skb = ar->wmi.ops->gen_pdev_set_rd(ar, rd, rd2g, rd5g, ctl2g, ctl5g, in ath10k_wmi_pdev_set_regdomain()
317 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_regdomain()
318 ar->wmi.cmd->pdev_set_regdomain_cmdid); in ath10k_wmi_pdev_set_regdomain()
322 ath10k_wmi_pdev_suspend_target(struct ath10k *ar, u32 suspend_opt) in ath10k_wmi_pdev_suspend_target() argument
326 if (!ar->wmi.ops->gen_pdev_suspend) in ath10k_wmi_pdev_suspend_target()
329 skb = ar->wmi.ops->gen_pdev_suspend(ar, suspend_opt); in ath10k_wmi_pdev_suspend_target()
333 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_suspend_cmdid); in ath10k_wmi_pdev_suspend_target()
337 ath10k_wmi_pdev_resume_target(struct ath10k *ar) in ath10k_wmi_pdev_resume_target() argument
341 if (!ar->wmi.ops->gen_pdev_resume) in ath10k_wmi_pdev_resume_target()
344 skb = ar->wmi.ops->gen_pdev_resume(ar); in ath10k_wmi_pdev_resume_target()
348 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_resume_cmdid); in ath10k_wmi_pdev_resume_target()
352 ath10k_wmi_pdev_set_param(struct ath10k *ar, u32 id, u32 value) in ath10k_wmi_pdev_set_param() argument
356 if (!ar->wmi.ops->gen_pdev_set_param) in ath10k_wmi_pdev_set_param()
359 skb = ar->wmi.ops->gen_pdev_set_param(ar, id, value); in ath10k_wmi_pdev_set_param()
363 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_set_param_cmdid); in ath10k_wmi_pdev_set_param()
367 ath10k_wmi_cmd_init(struct ath10k *ar) in ath10k_wmi_cmd_init() argument
371 if (!ar->wmi.ops->gen_init) in ath10k_wmi_cmd_init()
374 skb = ar->wmi.ops->gen_init(ar); in ath10k_wmi_cmd_init()
378 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->init_cmdid); in ath10k_wmi_cmd_init()
382 ath10k_wmi_start_scan(struct ath10k *ar, in ath10k_wmi_start_scan() argument
387 if (!ar->wmi.ops->gen_start_scan) in ath10k_wmi_start_scan()
390 skb = ar->wmi.ops->gen_start_scan(ar, arg); in ath10k_wmi_start_scan()
394 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->start_scan_cmdid); in ath10k_wmi_start_scan()
398 ath10k_wmi_stop_scan(struct ath10k *ar, const struct wmi_stop_scan_arg *arg) in ath10k_wmi_stop_scan() argument
402 if (!ar->wmi.ops->gen_stop_scan) in ath10k_wmi_stop_scan()
405 skb = ar->wmi.ops->gen_stop_scan(ar, arg); in ath10k_wmi_stop_scan()
409 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->stop_scan_cmdid); in ath10k_wmi_stop_scan()
413 ath10k_wmi_vdev_create(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_create() argument
420 if (!ar->wmi.ops->gen_vdev_create) in ath10k_wmi_vdev_create()
423 skb = ar->wmi.ops->gen_vdev_create(ar, vdev_id, type, subtype, macaddr); in ath10k_wmi_vdev_create()
427 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_create_cmdid); in ath10k_wmi_vdev_create()
431 ath10k_wmi_vdev_delete(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_delete() argument
435 if (!ar->wmi.ops->gen_vdev_delete) in ath10k_wmi_vdev_delete()
438 skb = ar->wmi.ops->gen_vdev_delete(ar, vdev_id); in ath10k_wmi_vdev_delete()
442 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_delete_cmdid); in ath10k_wmi_vdev_delete()
446 ath10k_wmi_vdev_start(struct ath10k *ar, in ath10k_wmi_vdev_start() argument
451 if (!ar->wmi.ops->gen_vdev_start) in ath10k_wmi_vdev_start()
454 skb = ar->wmi.ops->gen_vdev_start(ar, arg, false); in ath10k_wmi_vdev_start()
458 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_start()
459 ar->wmi.cmd->vdev_start_request_cmdid); in ath10k_wmi_vdev_start()
463 ath10k_wmi_vdev_restart(struct ath10k *ar, in ath10k_wmi_vdev_restart() argument
468 if (!ar->wmi.ops->gen_vdev_start) in ath10k_wmi_vdev_restart()
471 skb = ar->wmi.ops->gen_vdev_start(ar, arg, true); in ath10k_wmi_vdev_restart()
475 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_restart()
476 ar->wmi.cmd->vdev_restart_request_cmdid); in ath10k_wmi_vdev_restart()
480 ath10k_wmi_vdev_stop(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_stop() argument
484 if (!ar->wmi.ops->gen_vdev_stop) in ath10k_wmi_vdev_stop()
487 skb = ar->wmi.ops->gen_vdev_stop(ar, vdev_id); in ath10k_wmi_vdev_stop()
491 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_stop_cmdid); in ath10k_wmi_vdev_stop()
495 ath10k_wmi_vdev_up(struct ath10k *ar, u32 vdev_id, u32 aid, const u8 *bssid) in ath10k_wmi_vdev_up() argument
499 if (!ar->wmi.ops->gen_vdev_up) in ath10k_wmi_vdev_up()
502 skb = ar->wmi.ops->gen_vdev_up(ar, vdev_id, aid, bssid); in ath10k_wmi_vdev_up()
506 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_up_cmdid); in ath10k_wmi_vdev_up()
510 ath10k_wmi_vdev_down(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_down() argument
514 if (!ar->wmi.ops->gen_vdev_down) in ath10k_wmi_vdev_down()
517 skb = ar->wmi.ops->gen_vdev_down(ar, vdev_id); in ath10k_wmi_vdev_down()
521 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_down_cmdid); in ath10k_wmi_vdev_down()
525 ath10k_wmi_vdev_set_param(struct ath10k *ar, u32 vdev_id, u32 param_id, in ath10k_wmi_vdev_set_param() argument
530 if (!ar->wmi.ops->gen_vdev_set_param) in ath10k_wmi_vdev_set_param()
533 skb = ar->wmi.ops->gen_vdev_set_param(ar, vdev_id, param_id, in ath10k_wmi_vdev_set_param()
538 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_set_param_cmdid); in ath10k_wmi_vdev_set_param()
542 ath10k_wmi_vdev_install_key(struct ath10k *ar, in ath10k_wmi_vdev_install_key() argument
547 if (!ar->wmi.ops->gen_vdev_install_key) in ath10k_wmi_vdev_install_key()
550 skb = ar->wmi.ops->gen_vdev_install_key(ar, arg); in ath10k_wmi_vdev_install_key()
554 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_install_key()
555 ar->wmi.cmd->vdev_install_key_cmdid); in ath10k_wmi_vdev_install_key()
559 ath10k_wmi_vdev_spectral_conf(struct ath10k *ar, in ath10k_wmi_vdev_spectral_conf() argument
565 skb = ar->wmi.ops->gen_vdev_spectral_conf(ar, arg); in ath10k_wmi_vdev_spectral_conf()
569 cmd_id = ar->wmi.cmd->vdev_spectral_scan_configure_cmdid; in ath10k_wmi_vdev_spectral_conf()
570 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_conf()
574 ath10k_wmi_vdev_spectral_enable(struct ath10k *ar, u32 vdev_id, u32 trigger, in ath10k_wmi_vdev_spectral_enable() argument
580 skb = ar->wmi.ops->gen_vdev_spectral_enable(ar, vdev_id, trigger, in ath10k_wmi_vdev_spectral_enable()
585 cmd_id = ar->wmi.cmd->vdev_spectral_scan_enable_cmdid; in ath10k_wmi_vdev_spectral_enable()
586 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_enable()
590 ath10k_wmi_vdev_sta_uapsd(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_sta_uapsd() argument
598 if (!ar->wmi.ops->gen_vdev_sta_uapsd) in ath10k_wmi_vdev_sta_uapsd()
601 skb = ar->wmi.ops->gen_vdev_sta_uapsd(ar, vdev_id, peer_addr, args, in ath10k_wmi_vdev_sta_uapsd()
606 cmd_id = ar->wmi.cmd->sta_uapsd_auto_trig_cmdid; in ath10k_wmi_vdev_sta_uapsd()
607 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_sta_uapsd()
611 ath10k_wmi_vdev_wmm_conf(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_wmm_conf() argument
617 skb = ar->wmi.ops->gen_vdev_wmm_conf(ar, vdev_id, arg); in ath10k_wmi_vdev_wmm_conf()
621 cmd_id = ar->wmi.cmd->vdev_set_wmm_params_cmdid; in ath10k_wmi_vdev_wmm_conf()
622 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_wmm_conf()
626 ath10k_wmi_peer_create(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_create() argument
631 if (!ar->wmi.ops->gen_peer_create) in ath10k_wmi_peer_create()
634 skb = ar->wmi.ops->gen_peer_create(ar, vdev_id, peer_addr); in ath10k_wmi_peer_create()
638 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_create_cmdid); in ath10k_wmi_peer_create()
642 ath10k_wmi_peer_delete(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_delete() argument
647 if (!ar->wmi.ops->gen_peer_delete) in ath10k_wmi_peer_delete()
650 skb = ar->wmi.ops->gen_peer_delete(ar, vdev_id, peer_addr); in ath10k_wmi_peer_delete()
654 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_delete_cmdid); in ath10k_wmi_peer_delete()
658 ath10k_wmi_peer_flush(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_flush() argument
663 if (!ar->wmi.ops->gen_peer_flush) in ath10k_wmi_peer_flush()
666 skb = ar->wmi.ops->gen_peer_flush(ar, vdev_id, peer_addr, tid_bitmap); in ath10k_wmi_peer_flush()
670 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_flush_tids_cmdid); in ath10k_wmi_peer_flush()
674 ath10k_wmi_peer_set_param(struct ath10k *ar, u32 vdev_id, const u8 *peer_addr, in ath10k_wmi_peer_set_param() argument
679 if (!ar->wmi.ops->gen_peer_set_param) in ath10k_wmi_peer_set_param()
682 skb = ar->wmi.ops->gen_peer_set_param(ar, vdev_id, peer_addr, param_id, in ath10k_wmi_peer_set_param()
687 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_set_param_cmdid); in ath10k_wmi_peer_set_param()
691 ath10k_wmi_set_psmode(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_set_psmode() argument
696 if (!ar->wmi.ops->gen_set_psmode) in ath10k_wmi_set_psmode()
699 skb = ar->wmi.ops->gen_set_psmode(ar, vdev_id, psmode); in ath10k_wmi_set_psmode()
703 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_psmode()
704 ar->wmi.cmd->sta_powersave_mode_cmdid); in ath10k_wmi_set_psmode()
708 ath10k_wmi_set_sta_ps_param(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_set_sta_ps_param() argument
713 if (!ar->wmi.ops->gen_set_sta_ps) in ath10k_wmi_set_sta_ps_param()
716 skb = ar->wmi.ops->gen_set_sta_ps(ar, vdev_id, param_id, value); in ath10k_wmi_set_sta_ps_param()
720 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_sta_ps_param()
721 ar->wmi.cmd->sta_powersave_param_cmdid); in ath10k_wmi_set_sta_ps_param()
725 ath10k_wmi_set_ap_ps_param(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_set_ap_ps_param() argument
730 if (!ar->wmi.ops->gen_set_ap_ps) in ath10k_wmi_set_ap_ps_param()
733 skb = ar->wmi.ops->gen_set_ap_ps(ar, vdev_id, mac, param_id, value); in ath10k_wmi_set_ap_ps_param()
737 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_ap_ps_param()
738 ar->wmi.cmd->ap_ps_peer_param_cmdid); in ath10k_wmi_set_ap_ps_param()
742 ath10k_wmi_scan_chan_list(struct ath10k *ar, in ath10k_wmi_scan_chan_list() argument
747 if (!ar->wmi.ops->gen_scan_chan_list) in ath10k_wmi_scan_chan_list()
750 skb = ar->wmi.ops->gen_scan_chan_list(ar, arg); in ath10k_wmi_scan_chan_list()
754 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->scan_chan_list_cmdid); in ath10k_wmi_scan_chan_list()
758 ath10k_wmi_peer_assoc(struct ath10k *ar, in ath10k_wmi_peer_assoc() argument
763 if (!ar->wmi.ops->gen_peer_assoc) in ath10k_wmi_peer_assoc()
766 skb = ar->wmi.ops->gen_peer_assoc(ar, arg); in ath10k_wmi_peer_assoc()
770 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_assoc_cmdid); in ath10k_wmi_peer_assoc()
774 ath10k_wmi_beacon_send_ref_nowait(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_beacon_send_ref_nowait() argument
782 if (!ar->wmi.ops->gen_beacon_dma) in ath10k_wmi_beacon_send_ref_nowait()
785 skb = ar->wmi.ops->gen_beacon_dma(ar, vdev_id, bcn, bcn_len, bcn_paddr, in ath10k_wmi_beacon_send_ref_nowait()
790 ret = ath10k_wmi_cmd_send_nowait(ar, skb, in ath10k_wmi_beacon_send_ref_nowait()
791 ar->wmi.cmd->pdev_send_bcn_cmdid); in ath10k_wmi_beacon_send_ref_nowait()
801 ath10k_wmi_pdev_set_wmm_params(struct ath10k *ar, in ath10k_wmi_pdev_set_wmm_params() argument
806 if (!ar->wmi.ops->gen_pdev_set_wmm) in ath10k_wmi_pdev_set_wmm_params()
809 skb = ar->wmi.ops->gen_pdev_set_wmm(ar, arg); in ath10k_wmi_pdev_set_wmm_params()
813 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_wmm_params()
814 ar->wmi.cmd->pdev_set_wmm_params_cmdid); in ath10k_wmi_pdev_set_wmm_params()
818 ath10k_wmi_request_stats(struct ath10k *ar, u32 stats_mask) in ath10k_wmi_request_stats() argument
822 if (!ar->wmi.ops->gen_request_stats) in ath10k_wmi_request_stats()
825 skb = ar->wmi.ops->gen_request_stats(ar, stats_mask); in ath10k_wmi_request_stats()
829 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->request_stats_cmdid); in ath10k_wmi_request_stats()
833 ath10k_wmi_force_fw_hang(struct ath10k *ar, in ath10k_wmi_force_fw_hang() argument
838 if (!ar->wmi.ops->gen_force_fw_hang) in ath10k_wmi_force_fw_hang()
841 skb = ar->wmi.ops->gen_force_fw_hang(ar, type, delay_ms); in ath10k_wmi_force_fw_hang()
845 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->force_fw_hang_cmdid); in ath10k_wmi_force_fw_hang()
849 ath10k_wmi_dbglog_cfg(struct ath10k *ar, u32 module_enable, u32 log_level) in ath10k_wmi_dbglog_cfg() argument
853 if (!ar->wmi.ops->gen_dbglog_cfg) in ath10k_wmi_dbglog_cfg()
856 skb = ar->wmi.ops->gen_dbglog_cfg(ar, module_enable, log_level); in ath10k_wmi_dbglog_cfg()
860 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->dbglog_cfg_cmdid); in ath10k_wmi_dbglog_cfg()
864 ath10k_wmi_pdev_pktlog_enable(struct ath10k *ar, u32 filter) in ath10k_wmi_pdev_pktlog_enable() argument
868 if (!ar->wmi.ops->gen_pktlog_enable) in ath10k_wmi_pdev_pktlog_enable()
871 skb = ar->wmi.ops->gen_pktlog_enable(ar, filter); in ath10k_wmi_pdev_pktlog_enable()
875 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_pktlog_enable_cmdid); in ath10k_wmi_pdev_pktlog_enable()
879 ath10k_wmi_pdev_pktlog_disable(struct ath10k *ar) in ath10k_wmi_pdev_pktlog_disable() argument
883 if (!ar->wmi.ops->gen_pktlog_disable) in ath10k_wmi_pdev_pktlog_disable()
886 skb = ar->wmi.ops->gen_pktlog_disable(ar); in ath10k_wmi_pdev_pktlog_disable()
890 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_pktlog_disable()
891 ar->wmi.cmd->pdev_pktlog_disable_cmdid); in ath10k_wmi_pdev_pktlog_disable()
895 ath10k_wmi_pdev_set_quiet_mode(struct ath10k *ar, u32 period, u32 duration, in ath10k_wmi_pdev_set_quiet_mode() argument
900 if (!ar->wmi.ops->gen_pdev_set_quiet_mode) in ath10k_wmi_pdev_set_quiet_mode()
903 skb = ar->wmi.ops->gen_pdev_set_quiet_mode(ar, period, duration, in ath10k_wmi_pdev_set_quiet_mode()
908 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_quiet_mode()
909 ar->wmi.cmd->pdev_set_quiet_mode_cmdid); in ath10k_wmi_pdev_set_quiet_mode()
913 ath10k_wmi_pdev_get_temperature(struct ath10k *ar) in ath10k_wmi_pdev_get_temperature() argument
917 if (!ar->wmi.ops->gen_pdev_get_temperature) in ath10k_wmi_pdev_get_temperature()
920 skb = ar->wmi.ops->gen_pdev_get_temperature(ar); in ath10k_wmi_pdev_get_temperature()
924 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_temperature()
925 ar->wmi.cmd->pdev_get_temperature_cmdid); in ath10k_wmi_pdev_get_temperature()
929 ath10k_wmi_addba_clear_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac) in ath10k_wmi_addba_clear_resp() argument
933 if (!ar->wmi.ops->gen_addba_clear_resp) in ath10k_wmi_addba_clear_resp()
936 skb = ar->wmi.ops->gen_addba_clear_resp(ar, vdev_id, mac); in ath10k_wmi_addba_clear_resp()
940 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_clear_resp()
941 ar->wmi.cmd->addba_clear_resp_cmdid); in ath10k_wmi_addba_clear_resp()
945 ath10k_wmi_addba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_send() argument
950 if (!ar->wmi.ops->gen_addba_send) in ath10k_wmi_addba_send()
953 skb = ar->wmi.ops->gen_addba_send(ar, vdev_id, mac, tid, buf_size); in ath10k_wmi_addba_send()
957 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_send()
958 ar->wmi.cmd->addba_send_cmdid); in ath10k_wmi_addba_send()
962 ath10k_wmi_addba_set_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_set_resp() argument
967 if (!ar->wmi.ops->gen_addba_set_resp) in ath10k_wmi_addba_set_resp()
970 skb = ar->wmi.ops->gen_addba_set_resp(ar, vdev_id, mac, tid, status); in ath10k_wmi_addba_set_resp()
974 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_set_resp()
975 ar->wmi.cmd->addba_set_resp_cmdid); in ath10k_wmi_addba_set_resp()
979 ath10k_wmi_delba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_delba_send() argument
984 if (!ar->wmi.ops->gen_delba_send) in ath10k_wmi_delba_send()
987 skb = ar->wmi.ops->gen_delba_send(ar, vdev_id, mac, tid, initiator, in ath10k_wmi_delba_send()
992 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_delba_send()
993 ar->wmi.cmd->delba_send_cmdid); in ath10k_wmi_delba_send()
997 ath10k_wmi_bcn_tmpl(struct ath10k *ar, u32 vdev_id, u32 tim_ie_offset, in ath10k_wmi_bcn_tmpl() argument
1003 if (!ar->wmi.ops->gen_bcn_tmpl) in ath10k_wmi_bcn_tmpl()
1006 skb = ar->wmi.ops->gen_bcn_tmpl(ar, vdev_id, tim_ie_offset, bcn, in ath10k_wmi_bcn_tmpl()
1012 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->bcn_tmpl_cmdid); in ath10k_wmi_bcn_tmpl()
1016 ath10k_wmi_prb_tmpl(struct ath10k *ar, u32 vdev_id, struct sk_buff *prb) in ath10k_wmi_prb_tmpl() argument
1020 if (!ar->wmi.ops->gen_prb_tmpl) in ath10k_wmi_prb_tmpl()
1023 skb = ar->wmi.ops->gen_prb_tmpl(ar, vdev_id, prb); in ath10k_wmi_prb_tmpl()
1027 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->prb_tmpl_cmdid); in ath10k_wmi_prb_tmpl()
1031 ath10k_wmi_p2p_go_bcn_ie(struct ath10k *ar, u32 vdev_id, const u8 *p2p_ie) in ath10k_wmi_p2p_go_bcn_ie() argument
1035 if (!ar->wmi.ops->gen_p2p_go_bcn_ie) in ath10k_wmi_p2p_go_bcn_ie()
1038 skb = ar->wmi.ops->gen_p2p_go_bcn_ie(ar, vdev_id, p2p_ie); in ath10k_wmi_p2p_go_bcn_ie()
1042 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->p2p_go_set_beacon_ie); in ath10k_wmi_p2p_go_bcn_ie()
1046 ath10k_wmi_sta_keepalive(struct ath10k *ar, in ath10k_wmi_sta_keepalive() argument
1052 if (!ar->wmi.ops->gen_sta_keepalive) in ath10k_wmi_sta_keepalive()
1055 skb = ar->wmi.ops->gen_sta_keepalive(ar, arg); in ath10k_wmi_sta_keepalive()
1059 cmd_id = ar->wmi.cmd->sta_keepalive_cmd; in ath10k_wmi_sta_keepalive()
1060 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_sta_keepalive()