Lines Matching refs:skb

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,
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,
125 struct sk_buff *(*gen_mgmt_tx)(struct ath10k *ar, struct sk_buff *skb);
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
199 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx()
215 ath10k_wmi_pull_scan(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_scan() argument
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
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
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
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
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
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
281 return ar->wmi.ops->pull_phyerr_hdr(ar, skb, arg); in ath10k_wmi_pull_phyerr_hdr()
295 ath10k_wmi_pull_svc_rdy(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_pull_svc_rdy() argument
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
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
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
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
341 return ar->wmi.ops->pull_wow_event(ar, skb, arg); in ath10k_wmi_pull_wow_event()
357 struct sk_buff *skb; in ath10k_wmi_mgmt_tx() local
363 skb = ar->wmi.ops->gen_mgmt_tx(ar, msdu); in ath10k_wmi_mgmt_tx()
364 if (IS_ERR(skb)) in ath10k_wmi_mgmt_tx()
365 return PTR_ERR(skb); in ath10k_wmi_mgmt_tx()
367 ret = ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->mgmt_tx_cmdid); in ath10k_wmi_mgmt_tx()
384 struct sk_buff *skb; in ath10k_wmi_pdev_set_regdomain() local
389 skb = ar->wmi.ops->gen_pdev_set_rd(ar, rd, rd2g, rd5g, ctl2g, ctl5g, in ath10k_wmi_pdev_set_regdomain()
391 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_regdomain()
392 return PTR_ERR(skb); in ath10k_wmi_pdev_set_regdomain()
394 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_regdomain()
401 struct sk_buff *skb; in ath10k_wmi_pdev_suspend_target() local
406 skb = ar->wmi.ops->gen_pdev_suspend(ar, suspend_opt); in ath10k_wmi_pdev_suspend_target()
407 if (IS_ERR(skb)) in ath10k_wmi_pdev_suspend_target()
408 return PTR_ERR(skb); 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()
416 struct sk_buff *skb; in ath10k_wmi_pdev_resume_target() local
421 skb = ar->wmi.ops->gen_pdev_resume(ar); in ath10k_wmi_pdev_resume_target()
422 if (IS_ERR(skb)) in ath10k_wmi_pdev_resume_target()
423 return PTR_ERR(skb); 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()
431 struct sk_buff *skb; in ath10k_wmi_pdev_set_param() local
436 skb = ar->wmi.ops->gen_pdev_set_param(ar, id, value); in ath10k_wmi_pdev_set_param()
437 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_param()
438 return PTR_ERR(skb); 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()
446 struct sk_buff *skb; in ath10k_wmi_cmd_init() local
451 skb = ar->wmi.ops->gen_init(ar); in ath10k_wmi_cmd_init()
452 if (IS_ERR(skb)) in ath10k_wmi_cmd_init()
453 return PTR_ERR(skb); in ath10k_wmi_cmd_init()
455 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->init_cmdid); in ath10k_wmi_cmd_init()
462 struct sk_buff *skb; in ath10k_wmi_start_scan() local
467 skb = ar->wmi.ops->gen_start_scan(ar, arg); in ath10k_wmi_start_scan()
468 if (IS_ERR(skb)) in ath10k_wmi_start_scan()
469 return PTR_ERR(skb); in ath10k_wmi_start_scan()
471 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->start_scan_cmdid); in ath10k_wmi_start_scan()
477 struct sk_buff *skb; in ath10k_wmi_stop_scan() local
482 skb = ar->wmi.ops->gen_stop_scan(ar, arg); in ath10k_wmi_stop_scan()
483 if (IS_ERR(skb)) in ath10k_wmi_stop_scan()
484 return PTR_ERR(skb); in ath10k_wmi_stop_scan()
486 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->stop_scan_cmdid); in ath10k_wmi_stop_scan()
495 struct sk_buff *skb; in ath10k_wmi_vdev_create() local
500 skb = ar->wmi.ops->gen_vdev_create(ar, vdev_id, type, subtype, macaddr); in ath10k_wmi_vdev_create()
501 if (IS_ERR(skb)) in ath10k_wmi_vdev_create()
502 return PTR_ERR(skb); in ath10k_wmi_vdev_create()
504 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_create_cmdid); in ath10k_wmi_vdev_create()
510 struct sk_buff *skb; in ath10k_wmi_vdev_delete() local
515 skb = ar->wmi.ops->gen_vdev_delete(ar, vdev_id); in ath10k_wmi_vdev_delete()
516 if (IS_ERR(skb)) in ath10k_wmi_vdev_delete()
517 return PTR_ERR(skb); in ath10k_wmi_vdev_delete()
519 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_delete_cmdid); in ath10k_wmi_vdev_delete()
526 struct sk_buff *skb; in ath10k_wmi_vdev_start() local
531 skb = ar->wmi.ops->gen_vdev_start(ar, arg, false); in ath10k_wmi_vdev_start()
532 if (IS_ERR(skb)) in ath10k_wmi_vdev_start()
533 return PTR_ERR(skb); in ath10k_wmi_vdev_start()
535 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_start()
543 struct sk_buff *skb; in ath10k_wmi_vdev_restart() local
548 skb = ar->wmi.ops->gen_vdev_start(ar, arg, true); in ath10k_wmi_vdev_restart()
549 if (IS_ERR(skb)) in ath10k_wmi_vdev_restart()
550 return PTR_ERR(skb); in ath10k_wmi_vdev_restart()
552 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_restart()
559 struct sk_buff *skb; in ath10k_wmi_vdev_stop() local
564 skb = ar->wmi.ops->gen_vdev_stop(ar, vdev_id); in ath10k_wmi_vdev_stop()
565 if (IS_ERR(skb)) in ath10k_wmi_vdev_stop()
566 return PTR_ERR(skb); in ath10k_wmi_vdev_stop()
568 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_stop_cmdid); in ath10k_wmi_vdev_stop()
574 struct sk_buff *skb; in ath10k_wmi_vdev_up() local
579 skb = ar->wmi.ops->gen_vdev_up(ar, vdev_id, aid, bssid); in ath10k_wmi_vdev_up()
580 if (IS_ERR(skb)) in ath10k_wmi_vdev_up()
581 return PTR_ERR(skb); in ath10k_wmi_vdev_up()
583 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_up_cmdid); in ath10k_wmi_vdev_up()
589 struct sk_buff *skb; in ath10k_wmi_vdev_down() local
594 skb = ar->wmi.ops->gen_vdev_down(ar, vdev_id); in ath10k_wmi_vdev_down()
595 if (IS_ERR(skb)) in ath10k_wmi_vdev_down()
596 return PTR_ERR(skb); in ath10k_wmi_vdev_down()
598 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->vdev_down_cmdid); in ath10k_wmi_vdev_down()
605 struct sk_buff *skb; in ath10k_wmi_vdev_set_param() local
610 skb = ar->wmi.ops->gen_vdev_set_param(ar, vdev_id, param_id, in ath10k_wmi_vdev_set_param()
612 if (IS_ERR(skb)) in ath10k_wmi_vdev_set_param()
613 return PTR_ERR(skb); 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()
622 struct sk_buff *skb; in ath10k_wmi_vdev_install_key() local
627 skb = ar->wmi.ops->gen_vdev_install_key(ar, arg); in ath10k_wmi_vdev_install_key()
628 if (IS_ERR(skb)) in ath10k_wmi_vdev_install_key()
629 return PTR_ERR(skb); in ath10k_wmi_vdev_install_key()
631 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_vdev_install_key()
639 struct sk_buff *skb; in ath10k_wmi_vdev_spectral_conf() local
642 skb = ar->wmi.ops->gen_vdev_spectral_conf(ar, arg); in ath10k_wmi_vdev_spectral_conf()
643 if (IS_ERR(skb)) in ath10k_wmi_vdev_spectral_conf()
644 return PTR_ERR(skb); in ath10k_wmi_vdev_spectral_conf()
647 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_conf()
654 struct sk_buff *skb; in ath10k_wmi_vdev_spectral_enable() local
657 skb = ar->wmi.ops->gen_vdev_spectral_enable(ar, vdev_id, trigger, in ath10k_wmi_vdev_spectral_enable()
659 if (IS_ERR(skb)) in ath10k_wmi_vdev_spectral_enable()
660 return PTR_ERR(skb); in ath10k_wmi_vdev_spectral_enable()
663 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_spectral_enable()
672 struct sk_buff *skb; in ath10k_wmi_vdev_sta_uapsd() local
678 skb = ar->wmi.ops->gen_vdev_sta_uapsd(ar, vdev_id, peer_addr, args, in ath10k_wmi_vdev_sta_uapsd()
680 if (IS_ERR(skb)) in ath10k_wmi_vdev_sta_uapsd()
681 return PTR_ERR(skb); in ath10k_wmi_vdev_sta_uapsd()
684 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_sta_uapsd()
691 struct sk_buff *skb; in ath10k_wmi_vdev_wmm_conf() local
694 skb = ar->wmi.ops->gen_vdev_wmm_conf(ar, vdev_id, arg); in ath10k_wmi_vdev_wmm_conf()
695 if (IS_ERR(skb)) in ath10k_wmi_vdev_wmm_conf()
696 return PTR_ERR(skb); in ath10k_wmi_vdev_wmm_conf()
699 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_vdev_wmm_conf()
707 struct sk_buff *skb; in ath10k_wmi_peer_create() local
712 skb = ar->wmi.ops->gen_peer_create(ar, vdev_id, peer_addr, peer_type); in ath10k_wmi_peer_create()
713 if (IS_ERR(skb)) in ath10k_wmi_peer_create()
714 return PTR_ERR(skb); in ath10k_wmi_peer_create()
716 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_create_cmdid); in ath10k_wmi_peer_create()
723 struct sk_buff *skb; in ath10k_wmi_peer_delete() local
728 skb = ar->wmi.ops->gen_peer_delete(ar, vdev_id, peer_addr); in ath10k_wmi_peer_delete()
729 if (IS_ERR(skb)) in ath10k_wmi_peer_delete()
730 return PTR_ERR(skb); in ath10k_wmi_peer_delete()
732 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_delete_cmdid); in ath10k_wmi_peer_delete()
739 struct sk_buff *skb; in ath10k_wmi_peer_flush() local
744 skb = ar->wmi.ops->gen_peer_flush(ar, vdev_id, peer_addr, tid_bitmap); in ath10k_wmi_peer_flush()
745 if (IS_ERR(skb)) in ath10k_wmi_peer_flush()
746 return PTR_ERR(skb); 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()
755 struct sk_buff *skb; in ath10k_wmi_peer_set_param() local
760 skb = ar->wmi.ops->gen_peer_set_param(ar, vdev_id, peer_addr, param_id, in ath10k_wmi_peer_set_param()
762 if (IS_ERR(skb)) in ath10k_wmi_peer_set_param()
763 return PTR_ERR(skb); 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()
772 struct sk_buff *skb; in ath10k_wmi_set_psmode() local
777 skb = ar->wmi.ops->gen_set_psmode(ar, vdev_id, psmode); in ath10k_wmi_set_psmode()
778 if (IS_ERR(skb)) in ath10k_wmi_set_psmode()
779 return PTR_ERR(skb); in ath10k_wmi_set_psmode()
781 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_psmode()
789 struct sk_buff *skb; in ath10k_wmi_set_sta_ps_param() local
794 skb = ar->wmi.ops->gen_set_sta_ps(ar, vdev_id, param_id, value); in ath10k_wmi_set_sta_ps_param()
795 if (IS_ERR(skb)) in ath10k_wmi_set_sta_ps_param()
796 return PTR_ERR(skb); in ath10k_wmi_set_sta_ps_param()
798 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_sta_ps_param()
806 struct sk_buff *skb; in ath10k_wmi_set_ap_ps_param() local
811 skb = ar->wmi.ops->gen_set_ap_ps(ar, vdev_id, mac, param_id, value); in ath10k_wmi_set_ap_ps_param()
812 if (IS_ERR(skb)) in ath10k_wmi_set_ap_ps_param()
813 return PTR_ERR(skb); in ath10k_wmi_set_ap_ps_param()
815 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_set_ap_ps_param()
823 struct sk_buff *skb; in ath10k_wmi_scan_chan_list() local
828 skb = ar->wmi.ops->gen_scan_chan_list(ar, arg); in ath10k_wmi_scan_chan_list()
829 if (IS_ERR(skb)) in ath10k_wmi_scan_chan_list()
830 return PTR_ERR(skb); 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()
839 struct sk_buff *skb; in ath10k_wmi_peer_assoc() local
844 skb = ar->wmi.ops->gen_peer_assoc(ar, arg); in ath10k_wmi_peer_assoc()
845 if (IS_ERR(skb)) in ath10k_wmi_peer_assoc()
846 return PTR_ERR(skb); in ath10k_wmi_peer_assoc()
848 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->peer_assoc_cmdid); in ath10k_wmi_peer_assoc()
857 struct sk_buff *skb; in ath10k_wmi_beacon_send_ref_nowait() local
863 skb = ar->wmi.ops->gen_beacon_dma(ar, vdev_id, bcn, bcn_len, bcn_paddr, in ath10k_wmi_beacon_send_ref_nowait()
865 if (IS_ERR(skb)) in ath10k_wmi_beacon_send_ref_nowait()
866 return PTR_ERR(skb); in ath10k_wmi_beacon_send_ref_nowait()
868 ret = ath10k_wmi_cmd_send_nowait(ar, skb, in ath10k_wmi_beacon_send_ref_nowait()
871 dev_kfree_skb(skb); in ath10k_wmi_beacon_send_ref_nowait()
882 struct sk_buff *skb; in ath10k_wmi_pdev_set_wmm_params() local
887 skb = ar->wmi.ops->gen_pdev_set_wmm(ar, arg); in ath10k_wmi_pdev_set_wmm_params()
888 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_wmm_params()
889 return PTR_ERR(skb); in ath10k_wmi_pdev_set_wmm_params()
891 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_wmm_params()
898 struct sk_buff *skb; in ath10k_wmi_request_stats() local
903 skb = ar->wmi.ops->gen_request_stats(ar, stats_mask); in ath10k_wmi_request_stats()
904 if (IS_ERR(skb)) in ath10k_wmi_request_stats()
905 return PTR_ERR(skb); in ath10k_wmi_request_stats()
907 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->request_stats_cmdid); in ath10k_wmi_request_stats()
914 struct sk_buff *skb; in ath10k_wmi_force_fw_hang() local
919 skb = ar->wmi.ops->gen_force_fw_hang(ar, type, delay_ms); in ath10k_wmi_force_fw_hang()
920 if (IS_ERR(skb)) in ath10k_wmi_force_fw_hang()
921 return PTR_ERR(skb); 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()
929 struct sk_buff *skb; in ath10k_wmi_dbglog_cfg() local
934 skb = ar->wmi.ops->gen_dbglog_cfg(ar, module_enable, log_level); in ath10k_wmi_dbglog_cfg()
935 if (IS_ERR(skb)) in ath10k_wmi_dbglog_cfg()
936 return PTR_ERR(skb); in ath10k_wmi_dbglog_cfg()
938 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->dbglog_cfg_cmdid); in ath10k_wmi_dbglog_cfg()
944 struct sk_buff *skb; in ath10k_wmi_pdev_pktlog_enable() local
949 skb = ar->wmi.ops->gen_pktlog_enable(ar, filter); in ath10k_wmi_pdev_pktlog_enable()
950 if (IS_ERR(skb)) in ath10k_wmi_pdev_pktlog_enable()
951 return PTR_ERR(skb); 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()
959 struct sk_buff *skb; in ath10k_wmi_pdev_pktlog_disable() local
964 skb = ar->wmi.ops->gen_pktlog_disable(ar); in ath10k_wmi_pdev_pktlog_disable()
965 if (IS_ERR(skb)) in ath10k_wmi_pdev_pktlog_disable()
966 return PTR_ERR(skb); in ath10k_wmi_pdev_pktlog_disable()
968 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_pktlog_disable()
976 struct sk_buff *skb; in ath10k_wmi_pdev_set_quiet_mode() local
981 skb = ar->wmi.ops->gen_pdev_set_quiet_mode(ar, period, duration, in ath10k_wmi_pdev_set_quiet_mode()
983 if (IS_ERR(skb)) in ath10k_wmi_pdev_set_quiet_mode()
984 return PTR_ERR(skb); in ath10k_wmi_pdev_set_quiet_mode()
986 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_set_quiet_mode()
993 struct sk_buff *skb; in ath10k_wmi_pdev_get_temperature() local
998 skb = ar->wmi.ops->gen_pdev_get_temperature(ar); in ath10k_wmi_pdev_get_temperature()
999 if (IS_ERR(skb)) in ath10k_wmi_pdev_get_temperature()
1000 return PTR_ERR(skb); in ath10k_wmi_pdev_get_temperature()
1002 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_temperature()
1009 struct sk_buff *skb; in ath10k_wmi_addba_clear_resp() local
1014 skb = ar->wmi.ops->gen_addba_clear_resp(ar, vdev_id, mac); in ath10k_wmi_addba_clear_resp()
1015 if (IS_ERR(skb)) in ath10k_wmi_addba_clear_resp()
1016 return PTR_ERR(skb); in ath10k_wmi_addba_clear_resp()
1018 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_clear_resp()
1026 struct sk_buff *skb; in ath10k_wmi_addba_send() local
1031 skb = ar->wmi.ops->gen_addba_send(ar, vdev_id, mac, tid, buf_size); in ath10k_wmi_addba_send()
1032 if (IS_ERR(skb)) in ath10k_wmi_addba_send()
1033 return PTR_ERR(skb); in ath10k_wmi_addba_send()
1035 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_send()
1043 struct sk_buff *skb; in ath10k_wmi_addba_set_resp() local
1048 skb = ar->wmi.ops->gen_addba_set_resp(ar, vdev_id, mac, tid, status); in ath10k_wmi_addba_set_resp()
1049 if (IS_ERR(skb)) in ath10k_wmi_addba_set_resp()
1050 return PTR_ERR(skb); in ath10k_wmi_addba_set_resp()
1052 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_addba_set_resp()
1060 struct sk_buff *skb; in ath10k_wmi_delba_send() local
1065 skb = ar->wmi.ops->gen_delba_send(ar, vdev_id, mac, tid, initiator, in ath10k_wmi_delba_send()
1067 if (IS_ERR(skb)) in ath10k_wmi_delba_send()
1068 return PTR_ERR(skb); in ath10k_wmi_delba_send()
1070 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_delba_send()
1079 struct sk_buff *skb; in ath10k_wmi_bcn_tmpl() local
1084 skb = ar->wmi.ops->gen_bcn_tmpl(ar, vdev_id, tim_ie_offset, bcn, in ath10k_wmi_bcn_tmpl()
1087 if (IS_ERR(skb)) in ath10k_wmi_bcn_tmpl()
1088 return PTR_ERR(skb); in ath10k_wmi_bcn_tmpl()
1090 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->bcn_tmpl_cmdid); in ath10k_wmi_bcn_tmpl()
1096 struct sk_buff *skb; in ath10k_wmi_prb_tmpl() local
1101 skb = ar->wmi.ops->gen_prb_tmpl(ar, vdev_id, prb); in ath10k_wmi_prb_tmpl()
1102 if (IS_ERR(skb)) in ath10k_wmi_prb_tmpl()
1103 return PTR_ERR(skb); in ath10k_wmi_prb_tmpl()
1105 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->prb_tmpl_cmdid); in ath10k_wmi_prb_tmpl()
1111 struct sk_buff *skb; in ath10k_wmi_p2p_go_bcn_ie() local
1116 skb = ar->wmi.ops->gen_p2p_go_bcn_ie(ar, vdev_id, p2p_ie); in ath10k_wmi_p2p_go_bcn_ie()
1117 if (IS_ERR(skb)) in ath10k_wmi_p2p_go_bcn_ie()
1118 return PTR_ERR(skb); 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()
1127 struct sk_buff *skb; in ath10k_wmi_sta_keepalive() local
1133 skb = ar->wmi.ops->gen_sta_keepalive(ar, arg); in ath10k_wmi_sta_keepalive()
1134 if (IS_ERR(skb)) in ath10k_wmi_sta_keepalive()
1135 return PTR_ERR(skb); in ath10k_wmi_sta_keepalive()
1138 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_sta_keepalive()
1144 struct sk_buff *skb; in ath10k_wmi_wow_enable() local
1150 skb = ar->wmi.ops->gen_wow_enable(ar); in ath10k_wmi_wow_enable()
1151 if (IS_ERR(skb)) in ath10k_wmi_wow_enable()
1152 return PTR_ERR(skb); in ath10k_wmi_wow_enable()
1155 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_enable()
1163 struct sk_buff *skb; in ath10k_wmi_wow_add_wakeup_event() local
1169 skb = ar->wmi.ops->gen_wow_add_wakeup_event(ar, vdev_id, event, enable); in ath10k_wmi_wow_add_wakeup_event()
1170 if (IS_ERR(skb)) in ath10k_wmi_wow_add_wakeup_event()
1171 return PTR_ERR(skb); in ath10k_wmi_wow_add_wakeup_event()
1174 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_add_wakeup_event()
1180 struct sk_buff *skb; in ath10k_wmi_wow_host_wakeup_ind() local
1186 skb = ar->wmi.ops->gen_wow_host_wakeup_ind(ar); in ath10k_wmi_wow_host_wakeup_ind()
1187 if (IS_ERR(skb)) in ath10k_wmi_wow_host_wakeup_ind()
1188 return PTR_ERR(skb); in ath10k_wmi_wow_host_wakeup_ind()
1191 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_host_wakeup_ind()
1199 struct sk_buff *skb; in ath10k_wmi_wow_add_pattern() local
1205 skb = ar->wmi.ops->gen_wow_add_pattern(ar, vdev_id, pattern_id, in ath10k_wmi_wow_add_pattern()
1208 if (IS_ERR(skb)) in ath10k_wmi_wow_add_pattern()
1209 return PTR_ERR(skb); in ath10k_wmi_wow_add_pattern()
1212 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_add_pattern()
1218 struct sk_buff *skb; in ath10k_wmi_wow_del_pattern() local
1224 skb = ar->wmi.ops->gen_wow_del_pattern(ar, vdev_id, pattern_id); in ath10k_wmi_wow_del_pattern()
1225 if (IS_ERR(skb)) in ath10k_wmi_wow_del_pattern()
1226 return PTR_ERR(skb); in ath10k_wmi_wow_del_pattern()
1229 return ath10k_wmi_cmd_send(ar, skb, cmd_id); in ath10k_wmi_wow_del_pattern()
1236 struct sk_buff *skb; in ath10k_wmi_update_fw_tdls_state() local
1241 skb = ar->wmi.ops->gen_update_fw_tdls_state(ar, vdev_id, state); in ath10k_wmi_update_fw_tdls_state()
1242 if (IS_ERR(skb)) in ath10k_wmi_update_fw_tdls_state()
1243 return PTR_ERR(skb); 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()
1254 struct sk_buff *skb; in ath10k_wmi_tdls_peer_update() local
1259 skb = ar->wmi.ops->gen_tdls_peer_update(ar, arg, cap, chan); in ath10k_wmi_tdls_peer_update()
1260 if (IS_ERR(skb)) in ath10k_wmi_tdls_peer_update()
1261 return PTR_ERR(skb); in ath10k_wmi_tdls_peer_update()
1263 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_tdls_peer_update()
1270 struct sk_buff *skb; in ath10k_wmi_adaptive_qcs() local
1275 skb = ar->wmi.ops->gen_adaptive_qcs(ar, enable); in ath10k_wmi_adaptive_qcs()
1276 if (IS_ERR(skb)) in ath10k_wmi_adaptive_qcs()
1277 return PTR_ERR(skb); in ath10k_wmi_adaptive_qcs()
1279 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->adaptive_qcs_cmdid); in ath10k_wmi_adaptive_qcs()
1285 struct sk_buff *skb; in ath10k_wmi_pdev_get_tpc_config() local
1290 skb = ar->wmi.ops->gen_pdev_get_tpc_config(ar, param); in ath10k_wmi_pdev_get_tpc_config()
1292 if (IS_ERR(skb)) in ath10k_wmi_pdev_get_tpc_config()
1293 return PTR_ERR(skb); in ath10k_wmi_pdev_get_tpc_config()
1295 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_get_tpc_config()
1314 struct sk_buff *skb; in ath10k_wmi_pdev_enable_adaptive_cca() local
1319 skb = ar->wmi.ops->gen_pdev_enable_adaptive_cca(ar, enable, in ath10k_wmi_pdev_enable_adaptive_cca()
1323 if (IS_ERR(skb)) in ath10k_wmi_pdev_enable_adaptive_cca()
1324 return PTR_ERR(skb); in ath10k_wmi_pdev_enable_adaptive_cca()
1326 return ath10k_wmi_cmd_send(ar, skb, in ath10k_wmi_pdev_enable_adaptive_cca()