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_hdr)(struct ath10k *ar, struct sk_buff *skb,
42 int (*pull_phyerr)(struct ath10k *ar, const void *phyerr_buf,
44 int (*pull_svc_rdy)(struct ath10k *ar, struct sk_buff *skb,
46 int (*pull_rdy)(struct ath10k *ar, struct sk_buff *skb,
48 int (*pull_fw_stats)(struct ath10k *ar, struct sk_buff *skb,
50 int (*pull_roam_ev)(struct ath10k *ar, struct sk_buff *skb,
52 int (*pull_wow_event)(struct ath10k *ar, struct sk_buff *skb,
54 enum wmi_txbf_conf (*get_txbf_conf_scheme)(struct ath10k *ar);
56 struct sk_buff *(*gen_pdev_suspend)(struct ath10k *ar, u32 suspend_opt);
57 struct sk_buff *(*gen_pdev_resume)(struct ath10k *ar);
58 struct sk_buff *(*gen_pdev_set_rd)(struct ath10k *ar, u16 rd, u16 rd2g,
61 struct sk_buff *(*gen_pdev_set_param)(struct ath10k *ar, u32 id,
63 struct sk_buff *(*gen_init)(struct ath10k *ar);
64 struct sk_buff *(*gen_start_scan)(struct ath10k *ar,
66 struct sk_buff *(*gen_stop_scan)(struct ath10k *ar,
68 struct sk_buff *(*gen_vdev_create)(struct ath10k *ar, u32 vdev_id,
72 struct sk_buff *(*gen_vdev_delete)(struct ath10k *ar, u32 vdev_id);
73 struct sk_buff *(*gen_vdev_start)(struct ath10k *ar,
76 struct sk_buff *(*gen_vdev_stop)(struct ath10k *ar, u32 vdev_id);
77 struct sk_buff *(*gen_vdev_up)(struct ath10k *ar, u32 vdev_id, u32 aid,
79 struct sk_buff *(*gen_vdev_down)(struct ath10k *ar, u32 vdev_id);
80 struct sk_buff *(*gen_vdev_set_param)(struct ath10k *ar, u32 vdev_id,
82 struct sk_buff *(*gen_vdev_install_key)(struct ath10k *ar,
84 struct sk_buff *(*gen_vdev_spectral_conf)(struct ath10k *ar,
86 struct sk_buff *(*gen_vdev_spectral_enable)(struct ath10k *ar, u32 vdev_id,
88 struct sk_buff *(*gen_vdev_wmm_conf)(struct ath10k *ar, u32 vdev_id,
90 struct sk_buff *(*gen_peer_create)(struct ath10k *ar, u32 vdev_id,
93 struct sk_buff *(*gen_peer_delete)(struct ath10k *ar, u32 vdev_id,
95 struct sk_buff *(*gen_peer_flush)(struct ath10k *ar, u32 vdev_id,
98 struct sk_buff *(*gen_peer_set_param)(struct ath10k *ar, u32 vdev_id,
102 struct sk_buff *(*gen_peer_assoc)(struct ath10k *ar,
104 struct sk_buff *(*gen_set_psmode)(struct ath10k *ar, u32 vdev_id,
106 struct sk_buff *(*gen_set_sta_ps)(struct ath10k *ar, u32 vdev_id,
109 struct sk_buff *(*gen_set_ap_ps)(struct ath10k *ar, u32 vdev_id,
113 struct sk_buff *(*gen_scan_chan_list)(struct ath10k *ar,
115 struct sk_buff *(*gen_beacon_dma)(struct ath10k *ar, u32 vdev_id,
119 struct sk_buff *(*gen_pdev_set_wmm)(struct ath10k *ar,
121 struct sk_buff *(*gen_request_stats)(struct ath10k *ar, u32 stats_mask);
122 struct sk_buff *(*gen_force_fw_hang)(struct ath10k *ar,
125 struct sk_buff *(*gen_mgmt_tx)(struct ath10k *ar, struct sk_buff *skb);
126 struct sk_buff *(*gen_dbglog_cfg)(struct ath10k *ar, u32 module_enable,
128 struct sk_buff *(*gen_pktlog_enable)(struct ath10k *ar, u32 filter);
129 struct sk_buff *(*gen_pktlog_disable)(struct ath10k *ar);
130 struct sk_buff *(*gen_pdev_set_quiet_mode)(struct ath10k *ar,
134 struct sk_buff *(*gen_pdev_get_temperature)(struct ath10k *ar);
135 struct sk_buff *(*gen_addba_clear_resp)(struct ath10k *ar, u32 vdev_id,
137 struct sk_buff *(*gen_addba_send)(struct ath10k *ar, u32 vdev_id,
139 struct sk_buff *(*gen_addba_set_resp)(struct ath10k *ar, u32 vdev_id,
142 struct sk_buff *(*gen_delba_send)(struct ath10k *ar, u32 vdev_id,
145 struct sk_buff *(*gen_bcn_tmpl)(struct ath10k *ar, u32 vdev_id,
149 struct sk_buff *(*gen_prb_tmpl)(struct ath10k *ar, u32 vdev_id,
151 struct sk_buff *(*gen_p2p_go_bcn_ie)(struct ath10k *ar, u32 vdev_id,
153 struct sk_buff *(*gen_vdev_sta_uapsd)(struct ath10k *ar, u32 vdev_id,
157 struct sk_buff *(*gen_sta_keepalive)(struct ath10k *ar,
159 struct sk_buff *(*gen_wow_enable)(struct ath10k *ar);
160 struct sk_buff *(*gen_wow_add_wakeup_event)(struct ath10k *ar, u32 vdev_id,
163 struct sk_buff *(*gen_wow_host_wakeup_ind)(struct ath10k *ar);
164 struct sk_buff *(*gen_wow_add_pattern)(struct ath10k *ar, u32 vdev_id,
170 struct sk_buff *(*gen_wow_del_pattern)(struct ath10k *ar, u32 vdev_id,
172 struct sk_buff *(*gen_update_fw_tdls_state)(struct ath10k *ar,
175 struct sk_buff *(*gen_tdls_peer_update)(struct ath10k *ar,
179 struct sk_buff *(*gen_adaptive_qcs)(struct ath10k *ar, bool enable);
180 struct sk_buff *(*gen_pdev_get_tpc_config)(struct ath10k *ar,
182 void (*fw_stats_fill)(struct ath10k *ar,
185 struct sk_buff *(*gen_pdev_enable_adaptive_cca)(struct ath10k *ar,
191 int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id);
194 ath10k_wmi_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_rx() argument
196 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx()
199 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx()
204 ath10k_wmi_map_svc(struct ath10k *ar, const __le32 *in, unsigned long *out, in ath10k_wmi_map_svc() argument
207 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc()
210 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc()
215 ath10k_wmi_pull_scan(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_scan() argument
218 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan()
221 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan()
225 ath10k_wmi_pull_mgmt_rx(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_mgmt_rx() argument
228 if (!ar->wmi.ops->pull_mgmt_rx) in ath10k_wmi_pull_mgmt_rx()
231 return ar->wmi.ops->pull_mgmt_rx(ar, skb, arg); in ath10k_wmi_pull_mgmt_rx()
235 ath10k_wmi_pull_ch_info(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_ch_info() argument
238 if (!ar->wmi.ops->pull_ch_info) in ath10k_wmi_pull_ch_info()
241 return ar->wmi.ops->pull_ch_info(ar, skb, arg); in ath10k_wmi_pull_ch_info()
245 ath10k_wmi_pull_vdev_start(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_vdev_start() argument
248 if (!ar->wmi.ops->pull_vdev_start) in ath10k_wmi_pull_vdev_start()
251 return ar->wmi.ops->pull_vdev_start(ar, skb, arg); in ath10k_wmi_pull_vdev_start()
255 ath10k_wmi_pull_peer_kick(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_peer_kick() argument
258 if (!ar->wmi.ops->pull_peer_kick) in ath10k_wmi_pull_peer_kick()
261 return ar->wmi.ops->pull_peer_kick(ar, skb, arg); in ath10k_wmi_pull_peer_kick()
265 ath10k_wmi_pull_swba(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_swba() argument
268 if (!ar->wmi.ops->pull_swba) in ath10k_wmi_pull_swba()
271 return ar->wmi.ops->pull_swba(ar, skb, arg); in ath10k_wmi_pull_swba()
275 ath10k_wmi_pull_phyerr_hdr(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_phyerr_hdr() argument
278 if (!ar->wmi.ops->pull_phyerr_hdr) in ath10k_wmi_pull_phyerr_hdr()
281 return ar->wmi.ops->pull_phyerr_hdr(ar, skb, arg); in ath10k_wmi_pull_phyerr_hdr()
285 ath10k_wmi_pull_phyerr(struct ath10k *ar, const void *phyerr_buf, in ath10k_wmi_pull_phyerr() argument
288 if (!ar->wmi.ops->pull_phyerr) in ath10k_wmi_pull_phyerr()
291 return ar->wmi.ops->pull_phyerr(ar, phyerr_buf, left_len, arg); in ath10k_wmi_pull_phyerr()
295 ath10k_wmi_pull_svc_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_svc_rdy() argument
298 if (!ar->wmi.ops->pull_svc_rdy) in ath10k_wmi_pull_svc_rdy()
301 return ar->wmi.ops->pull_svc_rdy(ar, skb, arg); in ath10k_wmi_pull_svc_rdy()
305 ath10k_wmi_pull_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_rdy() argument
308 if (!ar->wmi.ops->pull_rdy) in ath10k_wmi_pull_rdy()
311 return ar->wmi.ops->pull_rdy(ar, skb, arg); in ath10k_wmi_pull_rdy()
315 ath10k_wmi_pull_fw_stats(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_fw_stats() argument
318 if (!ar->wmi.ops->pull_fw_stats) in ath10k_wmi_pull_fw_stats()
321 return ar->wmi.ops->pull_fw_stats(ar, skb, stats); in ath10k_wmi_pull_fw_stats()
325 ath10k_wmi_pull_roam_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_roam_ev() argument
328 if (!ar->wmi.ops->pull_roam_ev) in ath10k_wmi_pull_roam_ev()
331 return ar->wmi.ops->pull_roam_ev(ar, skb, arg); in ath10k_wmi_pull_roam_ev()
335 ath10k_wmi_pull_wow_event(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_wow_event() argument
338 if (!ar->wmi.ops->pull_wow_event) in ath10k_wmi_pull_wow_event()
341 return ar->wmi.ops->pull_wow_event(ar, skb, arg); in ath10k_wmi_pull_wow_event()
345 ath10k_wmi_get_txbf_conf_scheme(struct ath10k *ar) in ath10k_wmi_get_txbf_conf_scheme() argument
347 if (!ar->wmi.ops->get_txbf_conf_scheme) in ath10k_wmi_get_txbf_conf_scheme()
350 return ar->wmi.ops->get_txbf_conf_scheme(ar); in ath10k_wmi_get_txbf_conf_scheme()
354 ath10k_wmi_mgmt_tx(struct ath10k *ar, struct sk_buff *msdu) in ath10k_wmi_mgmt_tx() argument
360 if (!ar->wmi.ops->gen_mgmt_tx) in ath10k_wmi_mgmt_tx()
363 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx()
367 ret = ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->mgmt_tx_cmdid); in ath10k_wmi_mgmt_tx()
374 ieee80211_tx_status_irqsafe(ar->hw, msdu); in ath10k_wmi_mgmt_tx()
380 ath10k_wmi_pdev_set_regdomain(struct ath10k *ar, u16 rd, u16 rd2g, u16 rd5g, in ath10k_wmi_pdev_set_regdomain() argument
386 if (!ar->wmi.ops->gen_pdev_set_rd) in ath10k_wmi_pdev_set_regdomain()
389 skb = ar->wmi.ops->gen_pdev_set_rd(ar, rd, rd2g, rd5g, ctl2g, ctl5g, in ath10k_wmi_pdev_set_regdomain()
394 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_regdomain()
395 ar->wmi.cmd->pdev_set_regdomain_cmdid); in ath10k_wmi_pdev_set_regdomain()
399 ath10k_wmi_pdev_suspend_target(struct ath10k *ar, u32 suspend_opt) in ath10k_wmi_pdev_suspend_target() argument
403 if (!ar->wmi.ops->gen_pdev_suspend) in ath10k_wmi_pdev_suspend_target()
406 skb = ar->wmi.ops->gen_pdev_suspend(ar, suspend_opt); in ath10k_wmi_pdev_suspend_target()
410 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_suspend_cmdid); in ath10k_wmi_pdev_suspend_target()
414 ath10k_wmi_pdev_resume_target(struct ath10k *ar) in ath10k_wmi_pdev_resume_target() argument
418 if (!ar->wmi.ops->gen_pdev_resume) in ath10k_wmi_pdev_resume_target()
421 skb = ar->wmi.ops->gen_pdev_resume(ar); in ath10k_wmi_pdev_resume_target()
425 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_resume_cmdid); in ath10k_wmi_pdev_resume_target()
429 ath10k_wmi_pdev_set_param(struct ath10k *ar, u32 id, u32 value) in ath10k_wmi_pdev_set_param() argument
433 if (!ar->wmi.ops->gen_pdev_set_param) in ath10k_wmi_pdev_set_param()
436 skb = ar->wmi.ops->gen_pdev_set_param(ar, id, value); in ath10k_wmi_pdev_set_param()
440 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_set_param_cmdid); in ath10k_wmi_pdev_set_param()
444 ath10k_wmi_cmd_init(struct ath10k *ar) in ath10k_wmi_cmd_init() argument
448 if (!ar->wmi.ops->gen_init) in ath10k_wmi_cmd_init()
451 skb = ar->wmi.ops->gen_init(ar); in ath10k_wmi_cmd_init()
455 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->init_cmdid); in ath10k_wmi_cmd_init()
459 ath10k_wmi_start_scan(struct ath10k *ar, in ath10k_wmi_start_scan() argument
464 if (!ar->wmi.ops->gen_start_scan) in ath10k_wmi_start_scan()
467 skb = ar->wmi.ops->gen_start_scan(ar, arg); in ath10k_wmi_start_scan()
471 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->start_scan_cmdid); in ath10k_wmi_start_scan()
475 ath10k_wmi_stop_scan(struct ath10k *ar, const struct wmi_stop_scan_arg *arg) in ath10k_wmi_stop_scan() argument
479 if (!ar->wmi.ops->gen_stop_scan) in ath10k_wmi_stop_scan()
482 skb = ar->wmi.ops->gen_stop_scan(ar, arg); in ath10k_wmi_stop_scan()
486 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->stop_scan_cmdid); in ath10k_wmi_stop_scan()
490 ath10k_wmi_vdev_create(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_create() argument
497 if (!ar->wmi.ops->gen_vdev_create) in ath10k_wmi_vdev_create()
500 skb = ar->wmi.ops->gen_vdev_create(ar, vdev_id, type, subtype, macaddr); in ath10k_wmi_vdev_create()
504 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_create_cmdid); in ath10k_wmi_vdev_create()
508 ath10k_wmi_vdev_delete(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_delete() argument
512 if (!ar->wmi.ops->gen_vdev_delete) in ath10k_wmi_vdev_delete()
515 skb = ar->wmi.ops->gen_vdev_delete(ar, vdev_id); in ath10k_wmi_vdev_delete()
519 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_delete_cmdid); in ath10k_wmi_vdev_delete()
523 ath10k_wmi_vdev_start(struct ath10k *ar, in ath10k_wmi_vdev_start() argument
528 if (!ar->wmi.ops->gen_vdev_start) in ath10k_wmi_vdev_start()
531 skb = ar->wmi.ops->gen_vdev_start(ar, arg, false); in ath10k_wmi_vdev_start()
535 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_start()
536 ar->wmi.cmd->vdev_start_request_cmdid); in ath10k_wmi_vdev_start()
540 ath10k_wmi_vdev_restart(struct ath10k *ar, in ath10k_wmi_vdev_restart() argument
545 if (!ar->wmi.ops->gen_vdev_start) in ath10k_wmi_vdev_restart()
548 skb = ar->wmi.ops->gen_vdev_start(ar, arg, true); in ath10k_wmi_vdev_restart()
552 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_restart()
553 ar->wmi.cmd->vdev_restart_request_cmdid); in ath10k_wmi_vdev_restart()
557 ath10k_wmi_vdev_stop(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_stop() argument
561 if (!ar->wmi.ops->gen_vdev_stop) in ath10k_wmi_vdev_stop()
564 skb = ar->wmi.ops->gen_vdev_stop(ar, vdev_id); in ath10k_wmi_vdev_stop()
568 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_stop_cmdid); in ath10k_wmi_vdev_stop()
572 ath10k_wmi_vdev_up(struct ath10k *ar, u32 vdev_id, u32 aid, const u8 *bssid) in ath10k_wmi_vdev_up() argument
576 if (!ar->wmi.ops->gen_vdev_up) in ath10k_wmi_vdev_up()
579 skb = ar->wmi.ops->gen_vdev_up(ar, vdev_id, aid, bssid); in ath10k_wmi_vdev_up()
583 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_up_cmdid); in ath10k_wmi_vdev_up()
587 ath10k_wmi_vdev_down(struct ath10k *ar, u32 vdev_id) in ath10k_wmi_vdev_down() argument
591 if (!ar->wmi.ops->gen_vdev_down) in ath10k_wmi_vdev_down()
594 skb = ar->wmi.ops->gen_vdev_down(ar, vdev_id); in ath10k_wmi_vdev_down()
598 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_down_cmdid); in ath10k_wmi_vdev_down()
602 ath10k_wmi_vdev_set_param(struct ath10k *ar, u32 vdev_id, u32 param_id, in ath10k_wmi_vdev_set_param() argument
607 if (!ar->wmi.ops->gen_vdev_set_param) in ath10k_wmi_vdev_set_param()
610 skb = ar->wmi.ops->gen_vdev_set_param(ar, vdev_id, param_id, in ath10k_wmi_vdev_set_param()
615 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_set_param_cmdid); in ath10k_wmi_vdev_set_param()
619 ath10k_wmi_vdev_install_key(struct ath10k *ar, in ath10k_wmi_vdev_install_key() argument
624 if (!ar->wmi.ops->gen_vdev_install_key) in ath10k_wmi_vdev_install_key()
627 skb = ar->wmi.ops->gen_vdev_install_key(ar, arg); in ath10k_wmi_vdev_install_key()
631 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_install_key()
632 ar->wmi.cmd->vdev_install_key_cmdid); in ath10k_wmi_vdev_install_key()
636 ath10k_wmi_vdev_spectral_conf(struct ath10k *ar, in ath10k_wmi_vdev_spectral_conf() argument
642 skb = ar->wmi.ops->gen_vdev_spectral_conf(ar, arg); in ath10k_wmi_vdev_spectral_conf()
646 cmd_id = ar->wmi.cmd->vdev_spectral_scan_configure_cmdid; in ath10k_wmi_vdev_spectral_conf()
647 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_conf()
651 ath10k_wmi_vdev_spectral_enable(struct ath10k *ar, u32 vdev_id, u32 trigger, in ath10k_wmi_vdev_spectral_enable() argument
657 skb = ar->wmi.ops->gen_vdev_spectral_enable(ar, vdev_id, trigger, in ath10k_wmi_vdev_spectral_enable()
662 cmd_id = ar->wmi.cmd->vdev_spectral_scan_enable_cmdid; in ath10k_wmi_vdev_spectral_enable()
663 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_enable()
667 ath10k_wmi_vdev_sta_uapsd(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_sta_uapsd() argument
675 if (!ar->wmi.ops->gen_vdev_sta_uapsd) in ath10k_wmi_vdev_sta_uapsd()
678 skb = ar->wmi.ops->gen_vdev_sta_uapsd(ar, vdev_id, peer_addr, args, in ath10k_wmi_vdev_sta_uapsd()
683 cmd_id = ar->wmi.cmd->sta_uapsd_auto_trig_cmdid; in ath10k_wmi_vdev_sta_uapsd()
684 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_sta_uapsd()
688 ath10k_wmi_vdev_wmm_conf(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_vdev_wmm_conf() argument
694 skb = ar->wmi.ops->gen_vdev_wmm_conf(ar, vdev_id, arg); in ath10k_wmi_vdev_wmm_conf()
698 cmd_id = ar->wmi.cmd->vdev_set_wmm_params_cmdid; in ath10k_wmi_vdev_wmm_conf()
699 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_wmm_conf()
703 ath10k_wmi_peer_create(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_create() argument
709 if (!ar->wmi.ops->gen_peer_create) in ath10k_wmi_peer_create()
712 skb = ar->wmi.ops->gen_peer_create(ar, vdev_id, peer_addr, peer_type); in ath10k_wmi_peer_create()
716 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_create_cmdid); in ath10k_wmi_peer_create()
720 ath10k_wmi_peer_delete(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_delete() argument
725 if (!ar->wmi.ops->gen_peer_delete) in ath10k_wmi_peer_delete()
728 skb = ar->wmi.ops->gen_peer_delete(ar, vdev_id, peer_addr); in ath10k_wmi_peer_delete()
732 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_delete_cmdid); in ath10k_wmi_peer_delete()
736 ath10k_wmi_peer_flush(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_peer_flush() argument
741 if (!ar->wmi.ops->gen_peer_flush) in ath10k_wmi_peer_flush()
744 skb = ar->wmi.ops->gen_peer_flush(ar, vdev_id, peer_addr, tid_bitmap); in ath10k_wmi_peer_flush()
748 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_flush_tids_cmdid); in ath10k_wmi_peer_flush()
752 ath10k_wmi_peer_set_param(struct ath10k *ar, u32 vdev_id, const u8 *peer_addr, in ath10k_wmi_peer_set_param() argument
757 if (!ar->wmi.ops->gen_peer_set_param) in ath10k_wmi_peer_set_param()
760 skb = ar->wmi.ops->gen_peer_set_param(ar, vdev_id, peer_addr, param_id, in ath10k_wmi_peer_set_param()
765 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_set_param_cmdid); in ath10k_wmi_peer_set_param()
769 ath10k_wmi_set_psmode(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_set_psmode() argument
774 if (!ar->wmi.ops->gen_set_psmode) in ath10k_wmi_set_psmode()
777 skb = ar->wmi.ops->gen_set_psmode(ar, vdev_id, psmode); in ath10k_wmi_set_psmode()
781 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_psmode()
782 ar->wmi.cmd->sta_powersave_mode_cmdid); in ath10k_wmi_set_psmode()
786 ath10k_wmi_set_sta_ps_param(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_set_sta_ps_param() argument
791 if (!ar->wmi.ops->gen_set_sta_ps) in ath10k_wmi_set_sta_ps_param()
794 skb = ar->wmi.ops->gen_set_sta_ps(ar, vdev_id, param_id, value); in ath10k_wmi_set_sta_ps_param()
798 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_sta_ps_param()
799 ar->wmi.cmd->sta_powersave_param_cmdid); in ath10k_wmi_set_sta_ps_param()
803 ath10k_wmi_set_ap_ps_param(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_set_ap_ps_param() argument
808 if (!ar->wmi.ops->gen_set_ap_ps) in ath10k_wmi_set_ap_ps_param()
811 skb = ar->wmi.ops->gen_set_ap_ps(ar, vdev_id, mac, param_id, value); in ath10k_wmi_set_ap_ps_param()
815 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_ap_ps_param()
816 ar->wmi.cmd->ap_ps_peer_param_cmdid); in ath10k_wmi_set_ap_ps_param()
820 ath10k_wmi_scan_chan_list(struct ath10k *ar, in ath10k_wmi_scan_chan_list() argument
825 if (!ar->wmi.ops->gen_scan_chan_list) in ath10k_wmi_scan_chan_list()
828 skb = ar->wmi.ops->gen_scan_chan_list(ar, arg); in ath10k_wmi_scan_chan_list()
832 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->scan_chan_list_cmdid); in ath10k_wmi_scan_chan_list()
836 ath10k_wmi_peer_assoc(struct ath10k *ar, in ath10k_wmi_peer_assoc() argument
841 if (!ar->wmi.ops->gen_peer_assoc) in ath10k_wmi_peer_assoc()
844 skb = ar->wmi.ops->gen_peer_assoc(ar, arg); in ath10k_wmi_peer_assoc()
848 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_assoc_cmdid); in ath10k_wmi_peer_assoc()
852 ath10k_wmi_beacon_send_ref_nowait(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_beacon_send_ref_nowait() argument
860 if (!ar->wmi.ops->gen_beacon_dma) in ath10k_wmi_beacon_send_ref_nowait()
863 skb = ar->wmi.ops->gen_beacon_dma(ar, vdev_id, bcn, bcn_len, bcn_paddr, in ath10k_wmi_beacon_send_ref_nowait()
868 ret = ath10k_wmi_cmd_send_nowait(ar, skb, in ath10k_wmi_beacon_send_ref_nowait()
869 ar->wmi.cmd->pdev_send_bcn_cmdid); in ath10k_wmi_beacon_send_ref_nowait()
879 ath10k_wmi_pdev_set_wmm_params(struct ath10k *ar, in ath10k_wmi_pdev_set_wmm_params() argument
884 if (!ar->wmi.ops->gen_pdev_set_wmm) in ath10k_wmi_pdev_set_wmm_params()
887 skb = ar->wmi.ops->gen_pdev_set_wmm(ar, arg); in ath10k_wmi_pdev_set_wmm_params()
891 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_wmm_params()
892 ar->wmi.cmd->pdev_set_wmm_params_cmdid); in ath10k_wmi_pdev_set_wmm_params()
896 ath10k_wmi_request_stats(struct ath10k *ar, u32 stats_mask) in ath10k_wmi_request_stats() argument
900 if (!ar->wmi.ops->gen_request_stats) in ath10k_wmi_request_stats()
903 skb = ar->wmi.ops->gen_request_stats(ar, stats_mask); in ath10k_wmi_request_stats()
907 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->request_stats_cmdid); in ath10k_wmi_request_stats()
911 ath10k_wmi_force_fw_hang(struct ath10k *ar, in ath10k_wmi_force_fw_hang() argument
916 if (!ar->wmi.ops->gen_force_fw_hang) in ath10k_wmi_force_fw_hang()
919 skb = ar->wmi.ops->gen_force_fw_hang(ar, type, delay_ms); in ath10k_wmi_force_fw_hang()
923 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->force_fw_hang_cmdid); in ath10k_wmi_force_fw_hang()
927 ath10k_wmi_dbglog_cfg(struct ath10k *ar, u32 module_enable, u32 log_level) in ath10k_wmi_dbglog_cfg() argument
931 if (!ar->wmi.ops->gen_dbglog_cfg) in ath10k_wmi_dbglog_cfg()
934 skb = ar->wmi.ops->gen_dbglog_cfg(ar, module_enable, log_level); in ath10k_wmi_dbglog_cfg()
938 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->dbglog_cfg_cmdid); in ath10k_wmi_dbglog_cfg()
942 ath10k_wmi_pdev_pktlog_enable(struct ath10k *ar, u32 filter) in ath10k_wmi_pdev_pktlog_enable() argument
946 if (!ar->wmi.ops->gen_pktlog_enable) in ath10k_wmi_pdev_pktlog_enable()
949 skb = ar->wmi.ops->gen_pktlog_enable(ar, filter); in ath10k_wmi_pdev_pktlog_enable()
953 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->pdev_pktlog_enable_cmdid); in ath10k_wmi_pdev_pktlog_enable()
957 ath10k_wmi_pdev_pktlog_disable(struct ath10k *ar) in ath10k_wmi_pdev_pktlog_disable() argument
961 if (!ar->wmi.ops->gen_pktlog_disable) in ath10k_wmi_pdev_pktlog_disable()
964 skb = ar->wmi.ops->gen_pktlog_disable(ar); in ath10k_wmi_pdev_pktlog_disable()
968 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_pktlog_disable()
969 ar->wmi.cmd->pdev_pktlog_disable_cmdid); in ath10k_wmi_pdev_pktlog_disable()
973 ath10k_wmi_pdev_set_quiet_mode(struct ath10k *ar, u32 period, u32 duration, in ath10k_wmi_pdev_set_quiet_mode() argument
978 if (!ar->wmi.ops->gen_pdev_set_quiet_mode) in ath10k_wmi_pdev_set_quiet_mode()
981 skb = ar->wmi.ops->gen_pdev_set_quiet_mode(ar, period, duration, in ath10k_wmi_pdev_set_quiet_mode()
986 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_quiet_mode()
987 ar->wmi.cmd->pdev_set_quiet_mode_cmdid); in ath10k_wmi_pdev_set_quiet_mode()
991 ath10k_wmi_pdev_get_temperature(struct ath10k *ar) in ath10k_wmi_pdev_get_temperature() argument
995 if (!ar->wmi.ops->gen_pdev_get_temperature) in ath10k_wmi_pdev_get_temperature()
998 skb = ar->wmi.ops->gen_pdev_get_temperature(ar); in ath10k_wmi_pdev_get_temperature()
1002 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_temperature()
1003 ar->wmi.cmd->pdev_get_temperature_cmdid); in ath10k_wmi_pdev_get_temperature()
1007 ath10k_wmi_addba_clear_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac) in ath10k_wmi_addba_clear_resp() argument
1011 if (!ar->wmi.ops->gen_addba_clear_resp) in ath10k_wmi_addba_clear_resp()
1014 skb = ar->wmi.ops->gen_addba_clear_resp(ar, vdev_id, mac); in ath10k_wmi_addba_clear_resp()
1018 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_clear_resp()
1019 ar->wmi.cmd->addba_clear_resp_cmdid); in ath10k_wmi_addba_clear_resp()
1023 ath10k_wmi_addba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_send() argument
1028 if (!ar->wmi.ops->gen_addba_send) in ath10k_wmi_addba_send()
1031 skb = ar->wmi.ops->gen_addba_send(ar, vdev_id, mac, tid, buf_size); in ath10k_wmi_addba_send()
1035 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_send()
1036 ar->wmi.cmd->addba_send_cmdid); in ath10k_wmi_addba_send()
1040 ath10k_wmi_addba_set_resp(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_addba_set_resp() argument
1045 if (!ar->wmi.ops->gen_addba_set_resp) in ath10k_wmi_addba_set_resp()
1048 skb = ar->wmi.ops->gen_addba_set_resp(ar, vdev_id, mac, tid, status); in ath10k_wmi_addba_set_resp()
1052 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_set_resp()
1053 ar->wmi.cmd->addba_set_resp_cmdid); in ath10k_wmi_addba_set_resp()
1057 ath10k_wmi_delba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac, in ath10k_wmi_delba_send() argument
1062 if (!ar->wmi.ops->gen_delba_send) in ath10k_wmi_delba_send()
1065 skb = ar->wmi.ops->gen_delba_send(ar, vdev_id, mac, tid, initiator, in ath10k_wmi_delba_send()
1070 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_delba_send()
1071 ar->wmi.cmd->delba_send_cmdid); in ath10k_wmi_delba_send()
1075 ath10k_wmi_bcn_tmpl(struct ath10k *ar, u32 vdev_id, u32 tim_ie_offset, in ath10k_wmi_bcn_tmpl() argument
1081 if (!ar->wmi.ops->gen_bcn_tmpl) in ath10k_wmi_bcn_tmpl()
1084 skb = ar->wmi.ops->gen_bcn_tmpl(ar, vdev_id, tim_ie_offset, bcn, in ath10k_wmi_bcn_tmpl()
1090 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->bcn_tmpl_cmdid); in ath10k_wmi_bcn_tmpl()
1094 ath10k_wmi_prb_tmpl(struct ath10k *ar, u32 vdev_id, struct sk_buff *prb) in ath10k_wmi_prb_tmpl() argument
1098 if (!ar->wmi.ops->gen_prb_tmpl) in ath10k_wmi_prb_tmpl()
1101 skb = ar->wmi.ops->gen_prb_tmpl(ar, vdev_id, prb); in ath10k_wmi_prb_tmpl()
1105 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->prb_tmpl_cmdid); in ath10k_wmi_prb_tmpl()
1109 ath10k_wmi_p2p_go_bcn_ie(struct ath10k *ar, u32 vdev_id, const u8 *p2p_ie) in ath10k_wmi_p2p_go_bcn_ie() argument
1113 if (!ar->wmi.ops->gen_p2p_go_bcn_ie) in ath10k_wmi_p2p_go_bcn_ie()
1116 skb = ar->wmi.ops->gen_p2p_go_bcn_ie(ar, vdev_id, p2p_ie); in ath10k_wmi_p2p_go_bcn_ie()
1120 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->p2p_go_set_beacon_ie); in ath10k_wmi_p2p_go_bcn_ie()
1124 ath10k_wmi_sta_keepalive(struct ath10k *ar, in ath10k_wmi_sta_keepalive() argument
1130 if (!ar->wmi.ops->gen_sta_keepalive) in ath10k_wmi_sta_keepalive()
1133 skb = ar->wmi.ops->gen_sta_keepalive(ar, arg); in ath10k_wmi_sta_keepalive()
1137 cmd_id = ar->wmi.cmd->sta_keepalive_cmd; in ath10k_wmi_sta_keepalive()
1138 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_sta_keepalive()
1142 ath10k_wmi_wow_enable(struct ath10k *ar) in ath10k_wmi_wow_enable() argument
1147 if (!ar->wmi.ops->gen_wow_enable) in ath10k_wmi_wow_enable()
1150 skb = ar->wmi.ops->gen_wow_enable(ar); in ath10k_wmi_wow_enable()
1154 cmd_id = ar->wmi.cmd->wow_enable_cmdid; in ath10k_wmi_wow_enable()
1155 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_enable()
1159 ath10k_wmi_wow_add_wakeup_event(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_wow_add_wakeup_event() argument
1166 if (!ar->wmi.ops->gen_wow_add_wakeup_event) in ath10k_wmi_wow_add_wakeup_event()
1169 skb = ar->wmi.ops->gen_wow_add_wakeup_event(ar, vdev_id, event, enable); in ath10k_wmi_wow_add_wakeup_event()
1173 cmd_id = ar->wmi.cmd->wow_enable_disable_wake_event_cmdid; in ath10k_wmi_wow_add_wakeup_event()
1174 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_add_wakeup_event()
1178 ath10k_wmi_wow_host_wakeup_ind(struct ath10k *ar) in ath10k_wmi_wow_host_wakeup_ind() argument
1183 if (!ar->wmi.ops->gen_wow_host_wakeup_ind) in ath10k_wmi_wow_host_wakeup_ind()
1186 skb = ar->wmi.ops->gen_wow_host_wakeup_ind(ar); in ath10k_wmi_wow_host_wakeup_ind()
1190 cmd_id = ar->wmi.cmd->wow_hostwakeup_from_sleep_cmdid; in ath10k_wmi_wow_host_wakeup_ind()
1191 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_host_wakeup_ind()
1195 ath10k_wmi_wow_add_pattern(struct ath10k *ar, u32 vdev_id, u32 pattern_id, in ath10k_wmi_wow_add_pattern() argument
1202 if (!ar->wmi.ops->gen_wow_add_pattern) in ath10k_wmi_wow_add_pattern()
1205 skb = ar->wmi.ops->gen_wow_add_pattern(ar, vdev_id, pattern_id, in ath10k_wmi_wow_add_pattern()
1211 cmd_id = ar->wmi.cmd->wow_add_wake_pattern_cmdid; in ath10k_wmi_wow_add_pattern()
1212 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_add_pattern()
1216 ath10k_wmi_wow_del_pattern(struct ath10k *ar, u32 vdev_id, u32 pattern_id) in ath10k_wmi_wow_del_pattern() argument
1221 if (!ar->wmi.ops->gen_wow_del_pattern) in ath10k_wmi_wow_del_pattern()
1224 skb = ar->wmi.ops->gen_wow_del_pattern(ar, vdev_id, pattern_id); in ath10k_wmi_wow_del_pattern()
1228 cmd_id = ar->wmi.cmd->wow_del_wake_pattern_cmdid; in ath10k_wmi_wow_del_pattern()
1229 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_del_pattern()
1233 ath10k_wmi_update_fw_tdls_state(struct ath10k *ar, u32 vdev_id, in ath10k_wmi_update_fw_tdls_state() argument
1238 if (!ar->wmi.ops->gen_update_fw_tdls_state) in ath10k_wmi_update_fw_tdls_state()
1241 skb = ar->wmi.ops->gen_update_fw_tdls_state(ar, vdev_id, state); in ath10k_wmi_update_fw_tdls_state()
1245 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->tdls_set_state_cmdid); in ath10k_wmi_update_fw_tdls_state()
1249 ath10k_wmi_tdls_peer_update(struct ath10k *ar, in ath10k_wmi_tdls_peer_update() argument
1256 if (!ar->wmi.ops->gen_tdls_peer_update) in ath10k_wmi_tdls_peer_update()
1259 skb = ar->wmi.ops->gen_tdls_peer_update(ar, arg, cap, chan); in ath10k_wmi_tdls_peer_update()
1263 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_tdls_peer_update()
1264 ar->wmi.cmd->tdls_peer_update_cmdid); in ath10k_wmi_tdls_peer_update()
1268 ath10k_wmi_adaptive_qcs(struct ath10k *ar, bool enable) in ath10k_wmi_adaptive_qcs() argument
1272 if (!ar->wmi.ops->gen_adaptive_qcs) in ath10k_wmi_adaptive_qcs()
1275 skb = ar->wmi.ops->gen_adaptive_qcs(ar, enable); in ath10k_wmi_adaptive_qcs()
1279 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->adaptive_qcs_cmdid); in ath10k_wmi_adaptive_qcs()
1283 ath10k_wmi_pdev_get_tpc_config(struct ath10k *ar, u32 param) in ath10k_wmi_pdev_get_tpc_config() argument
1287 if (!ar->wmi.ops->gen_pdev_get_tpc_config) in ath10k_wmi_pdev_get_tpc_config()
1290 skb = ar->wmi.ops->gen_pdev_get_tpc_config(ar, param); in ath10k_wmi_pdev_get_tpc_config()
1295 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_tpc_config()
1296 ar->wmi.cmd->pdev_get_tpc_config_cmdid); in ath10k_wmi_pdev_get_tpc_config()
1300 ath10k_wmi_fw_stats_fill(struct ath10k *ar, struct ath10k_fw_stats *fw_stats, in ath10k_wmi_fw_stats_fill() argument
1303 if (!ar->wmi.ops->fw_stats_fill) in ath10k_wmi_fw_stats_fill()
1306 ar->wmi.ops->fw_stats_fill(ar, fw_stats, buf); in ath10k_wmi_fw_stats_fill()
1311 ath10k_wmi_pdev_enable_adaptive_cca(struct ath10k *ar, u8 enable, in ath10k_wmi_pdev_enable_adaptive_cca() argument
1316 if (!ar->wmi.ops->gen_pdev_enable_adaptive_cca) in ath10k_wmi_pdev_enable_adaptive_cca()
1319 skb = ar->wmi.ops->gen_pdev_enable_adaptive_cca(ar, enable, in ath10k_wmi_pdev_enable_adaptive_cca()
1326 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_enable_adaptive_cca()
1327 ar->wmi.cmd->pdev_enable_adaptive_cca_cmdid); in ath10k_wmi_pdev_enable_adaptive_cca()