Lines Matching refs:skb

905 	struct sk_buff *skb;  in ath10k_wmi_alloc_skb()  local
908 skb = ath10k_htc_alloc_skb(ar, WMI_SKB_HEADROOM + round_len); in ath10k_wmi_alloc_skb()
909 if (!skb) in ath10k_wmi_alloc_skb()
912 skb_reserve(skb, WMI_SKB_HEADROOM); in ath10k_wmi_alloc_skb()
913 if (!IS_ALIGNED((unsigned long)skb->data, 4)) in ath10k_wmi_alloc_skb()
916 skb_put(skb, round_len); in ath10k_wmi_alloc_skb()
917 memset(skb->data, 0, round_len); in ath10k_wmi_alloc_skb()
919 return skb; in ath10k_wmi_alloc_skb()
922 static void ath10k_wmi_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_htc_tx_complete() argument
924 dev_kfree_skb(skb); in ath10k_wmi_htc_tx_complete()
927 int ath10k_wmi_cmd_send_nowait(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_cmd_send_nowait() argument
930 struct ath10k_skb_cb *skb_cb = ATH10K_SKB_CB(skb); in ath10k_wmi_cmd_send_nowait()
935 if (skb_push(skb, sizeof(struct wmi_cmd_hdr)) == NULL) in ath10k_wmi_cmd_send_nowait()
940 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath10k_wmi_cmd_send_nowait()
944 ret = ath10k_htc_send(&ar->htc, ar->wmi.eid, skb); in ath10k_wmi_cmd_send_nowait()
945 trace_ath10k_wmi_cmd(ar, cmd_id, skb->data, skb->len, ret); in ath10k_wmi_cmd_send_nowait()
953 skb_pull(skb, sizeof(struct wmi_cmd_hdr)); in ath10k_wmi_cmd_send_nowait()
1024 int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id) in ath10k_wmi_cmd_send() argument
1040 ret = ath10k_wmi_cmd_send_nowait(ar, skb, cmd_id); in ath10k_wmi_cmd_send()
1049 dev_kfree_skb_any(skb); in ath10k_wmi_cmd_send()
1059 struct sk_buff *skb; in ath10k_wmi_op_gen_mgmt_tx() local
1082 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_op_gen_mgmt_tx()
1083 if (!skb) in ath10k_wmi_op_gen_mgmt_tx()
1086 cmd = (struct wmi_mgmt_tx_cmd *)skb->data; in ath10k_wmi_op_gen_mgmt_tx()
1097 msdu, skb->len, fc & IEEE80211_FCTL_FTYPE, in ath10k_wmi_op_gen_mgmt_tx()
1099 trace_ath10k_tx_hdr(ar, skb->data, skb->len); in ath10k_wmi_op_gen_mgmt_tx()
1100 trace_ath10k_tx_payload(ar, skb->data, skb->len); in ath10k_wmi_op_gen_mgmt_tx()
1102 return skb; in ath10k_wmi_op_gen_mgmt_tx()
1248 static int ath10k_wmi_op_pull_scan_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_scan_ev() argument
1251 struct wmi_scan_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_scan_ev()
1253 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_scan_ev()
1256 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_scan_ev()
1267 int ath10k_wmi_event_scan(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_scan() argument
1278 ret = ath10k_wmi_pull_scan(ar, skb, &arg); in ath10k_wmi_event_scan()
1415 struct sk_buff *skb, in ath10k_wmi_handle_wep_reauth() argument
1418 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in ath10k_wmi_handle_wep_reauth()
1428 if (skb->len < (hdrlen + IEEE80211_WEP_IV_LEN)) in ath10k_wmi_handle_wep_reauth()
1431 keyidx = skb->data[hdrlen + (IEEE80211_WEP_IV_LEN - 1)] >> WEP_KEYID_SHIFT; in ath10k_wmi_handle_wep_reauth()
1445 static int ath10k_wmi_op_pull_mgmt_rx_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_mgmt_rx_ev() argument
1455 ev_v2 = (struct wmi_mgmt_rx_event_v2 *)skb->data; in ath10k_wmi_op_pull_mgmt_rx_ev()
1459 ev_v1 = (struct wmi_mgmt_rx_event_v1 *)skb->data; in ath10k_wmi_op_pull_mgmt_rx_ev()
1464 if (skb->len < pull_len) in ath10k_wmi_op_pull_mgmt_rx_ev()
1467 skb_pull(skb, pull_len); in ath10k_wmi_op_pull_mgmt_rx_ev()
1476 if (skb->len < msdu_len) in ath10k_wmi_op_pull_mgmt_rx_ev()
1482 skb_trim(skb, msdu_len); in ath10k_wmi_op_pull_mgmt_rx_ev()
1487 int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_mgmt_rx() argument
1490 struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb); in ath10k_wmi_event_mgmt_rx()
1501 ret = ath10k_wmi_pull_mgmt_rx(ar, skb, &arg); in ath10k_wmi_event_mgmt_rx()
1520 dev_kfree_skb(skb); in ath10k_wmi_event_mgmt_rx()
1525 dev_kfree_skb(skb); in ath10k_wmi_event_mgmt_rx()
1530 dev_kfree_skb(skb); in ath10k_wmi_event_mgmt_rx()
1535 dev_kfree_skb(skb); in ath10k_wmi_event_mgmt_rx()
1555 dev_kfree_skb(skb); in ath10k_wmi_event_mgmt_rx()
1566 hdr = (struct ieee80211_hdr *)skb->data; in ath10k_wmi_event_mgmt_rx()
1569 ath10k_wmi_handle_wep_reauth(ar, skb, status); in ath10k_wmi_event_mgmt_rx()
1590 skb, skb->len, in ath10k_wmi_event_mgmt_rx()
1598 ieee80211_rx(ar->hw, skb); in ath10k_wmi_event_mgmt_rx()
1621 static int ath10k_wmi_op_pull_ch_info_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_ch_info_ev() argument
1624 struct wmi_chan_info_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_ch_info_ev()
1626 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_ch_info_ev()
1629 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_ch_info_ev()
1640 void ath10k_wmi_event_chan_info(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_chan_info() argument
1647 ret = ath10k_wmi_pull_ch_info(ar, skb, &arg); in ath10k_wmi_event_chan_info()
1708 void ath10k_wmi_event_echo(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_echo() argument
1713 int ath10k_wmi_event_debug_mesg(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_debug_mesg() argument
1716 skb->len); in ath10k_wmi_event_debug_mesg()
1718 trace_ath10k_wmi_dbglog(ar, skb->data, skb->len); in ath10k_wmi_event_debug_mesg()
1801 struct sk_buff *skb, in ath10k_wmi_main_op_pull_fw_stats() argument
1804 const struct wmi_stats_event *ev = (void *)skb->data; in ath10k_wmi_main_op_pull_fw_stats()
1808 if (!skb_pull(skb, sizeof(*ev))) in ath10k_wmi_main_op_pull_fw_stats()
1819 src = (void *)skb->data; in ath10k_wmi_main_op_pull_fw_stats()
1820 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_main_op_pull_fw_stats()
1840 src = (void *)skb->data; in ath10k_wmi_main_op_pull_fw_stats()
1841 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_main_op_pull_fw_stats()
1856 struct sk_buff *skb, in ath10k_wmi_10x_op_pull_fw_stats() argument
1859 const struct wmi_stats_event *ev = (void *)skb->data; in ath10k_wmi_10x_op_pull_fw_stats()
1863 if (!skb_pull(skb, sizeof(*ev))) in ath10k_wmi_10x_op_pull_fw_stats()
1874 src = (void *)skb->data; in ath10k_wmi_10x_op_pull_fw_stats()
1875 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10x_op_pull_fw_stats()
1896 src = (void *)skb->data; in ath10k_wmi_10x_op_pull_fw_stats()
1897 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10x_op_pull_fw_stats()
1915 struct sk_buff *skb, in ath10k_wmi_10_2_op_pull_fw_stats() argument
1918 const struct wmi_10_2_stats_event *ev = (void *)skb->data; in ath10k_wmi_10_2_op_pull_fw_stats()
1925 if (!skb_pull(skb, sizeof(*ev))) in ath10k_wmi_10_2_op_pull_fw_stats()
1937 src = (void *)skb->data; in ath10k_wmi_10_2_op_pull_fw_stats()
1938 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10_2_op_pull_fw_stats()
1957 src = (void *)skb->data; in ath10k_wmi_10_2_op_pull_fw_stats()
1958 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10_2_op_pull_fw_stats()
1974 src = (void *)skb->data; in ath10k_wmi_10_2_op_pull_fw_stats()
1975 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10_2_op_pull_fw_stats()
1994 struct sk_buff *skb, in ath10k_wmi_10_2_4_op_pull_fw_stats() argument
1997 const struct wmi_10_2_stats_event *ev = (void *)skb->data; in ath10k_wmi_10_2_4_op_pull_fw_stats()
2004 if (!skb_pull(skb, sizeof(*ev))) in ath10k_wmi_10_2_4_op_pull_fw_stats()
2016 src = (void *)skb->data; in ath10k_wmi_10_2_4_op_pull_fw_stats()
2017 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10_2_4_op_pull_fw_stats()
2036 src = (void *)skb->data; in ath10k_wmi_10_2_4_op_pull_fw_stats()
2037 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10_2_4_op_pull_fw_stats()
2053 src = (void *)skb->data; in ath10k_wmi_10_2_4_op_pull_fw_stats()
2054 if (!skb_pull(skb, sizeof(*src))) in ath10k_wmi_10_2_4_op_pull_fw_stats()
2072 void ath10k_wmi_event_update_stats(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_update_stats() argument
2075 ath10k_debug_fw_stats_process(ar, skb); in ath10k_wmi_event_update_stats()
2079 ath10k_wmi_op_pull_vdev_start_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_vdev_start_ev() argument
2082 struct wmi_vdev_start_response_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_vdev_start_ev()
2084 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_vdev_start_ev()
2087 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_vdev_start_ev()
2096 void ath10k_wmi_event_vdev_start_resp(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_vdev_start_resp() argument
2103 ret = ath10k_wmi_pull_vdev_start(ar, skb, &arg); in ath10k_wmi_event_vdev_start_resp()
2115 void ath10k_wmi_event_vdev_stopped(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_vdev_stopped() argument
2122 ath10k_wmi_op_pull_peer_kick_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_peer_kick_ev() argument
2125 struct wmi_peer_sta_kickout_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_peer_kick_ev()
2127 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_peer_kick_ev()
2130 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_peer_kick_ev()
2136 void ath10k_wmi_event_peer_sta_kickout(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_peer_sta_kickout() argument
2142 ret = ath10k_wmi_pull_peer_kick(ar, skb, &arg); in ath10k_wmi_event_peer_sta_kickout()
2384 static int ath10k_wmi_op_pull_swba_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_swba_ev() argument
2387 struct wmi_host_swba_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_swba_ev()
2391 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_swba_ev()
2394 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_swba_ev()
2415 void ath10k_wmi_event_host_swba(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_host_swba() argument
2427 ret = ath10k_wmi_pull_swba(ar, skb, &arg); in ath10k_wmi_event_host_swba()
2548 void ath10k_wmi_event_tbttoffset_update(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_tbttoffset_update() argument
2788 static int ath10k_wmi_op_pull_phyerr_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_phyerr_ev() argument
2791 struct wmi_phyerr_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_phyerr_ev()
2793 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_phyerr_ev()
2799 arg->buf_len = __cpu_to_le32(skb->len - sizeof(*ev)); in ath10k_wmi_op_pull_phyerr_ev()
2805 void ath10k_wmi_event_phyerr(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_phyerr() argument
2815 ret = ath10k_wmi_pull_phyerr(ar, skb, &arg); in ath10k_wmi_event_phyerr()
2874 void ath10k_wmi_event_roam(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_roam() argument
2879 void ath10k_wmi_event_profile_match(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_profile_match() argument
2884 void ath10k_wmi_event_debug_print(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_debug_print() argument
2890 if (i >= skb->len) in ath10k_wmi_event_debug_print()
2893 c = skb->data[i]; in ath10k_wmi_event_debug_print()
2905 ath10k_warn(ar, "wmi debug print truncated: %d\n", skb->len); in ath10k_wmi_event_debug_print()
2908 if (skb->data[i - 1] == '\n') in ath10k_wmi_event_debug_print()
2917 void ath10k_wmi_event_pdev_qvit(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_pdev_qvit() argument
2922 void ath10k_wmi_event_wlan_profile_data(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_wlan_profile_data() argument
2928 struct sk_buff *skb) in ath10k_wmi_event_rtt_measurement_report() argument
2934 struct sk_buff *skb) in ath10k_wmi_event_tsf_measurement_report() argument
2939 void ath10k_wmi_event_rtt_error_report(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_rtt_error_report() argument
2944 void ath10k_wmi_event_wow_wakeup_host(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_wow_wakeup_host() argument
2949 void ath10k_wmi_event_dcs_interference(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_dcs_interference() argument
2954 void ath10k_wmi_event_pdev_tpc_config(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_pdev_tpc_config() argument
2959 void ath10k_wmi_event_pdev_ftm_intg(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_pdev_ftm_intg() argument
2964 void ath10k_wmi_event_gtk_offload_status(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_gtk_offload_status() argument
2969 void ath10k_wmi_event_gtk_rekey_fail(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_gtk_rekey_fail() argument
2974 void ath10k_wmi_event_delba_complete(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_delba_complete() argument
2979 void ath10k_wmi_event_addba_complete(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_addba_complete() argument
2985 struct sk_buff *skb) in ath10k_wmi_event_vdev_install_key_complete() argument
2990 void ath10k_wmi_event_inst_rssi_stats(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_inst_rssi_stats() argument
2995 void ath10k_wmi_event_vdev_standby_req(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_vdev_standby_req() argument
3000 void ath10k_wmi_event_vdev_resume_req(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_vdev_resume_req() argument
3037 ath10k_wmi_main_op_pull_svc_rdy_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_main_op_pull_svc_rdy_ev() argument
3043 if (skb->len < sizeof(*ev)) in ath10k_wmi_main_op_pull_svc_rdy_ev()
3046 ev = (void *)skb->data; in ath10k_wmi_main_op_pull_svc_rdy_ev()
3047 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_main_op_pull_svc_rdy_ev()
3066 if (skb->len < in ath10k_wmi_main_op_pull_svc_rdy_ev()
3074 ath10k_wmi_10x_op_pull_svc_rdy_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_10x_op_pull_svc_rdy_ev() argument
3080 if (skb->len < sizeof(*ev)) in ath10k_wmi_10x_op_pull_svc_rdy_ev()
3083 ev = (void *)skb->data; in ath10k_wmi_10x_op_pull_svc_rdy_ev()
3084 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_10x_op_pull_svc_rdy_ev()
3102 if (skb->len < in ath10k_wmi_10x_op_pull_svc_rdy_ev()
3109 void ath10k_wmi_event_service_ready(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_service_ready() argument
3115 ret = ath10k_wmi_pull_svc_rdy(ar, skb, &arg); in ath10k_wmi_event_service_ready()
3218 static int ath10k_wmi_op_pull_rdy_ev(struct ath10k *ar, struct sk_buff *skb, in ath10k_wmi_op_pull_rdy_ev() argument
3221 struct wmi_ready_event *ev = (void *)skb->data; in ath10k_wmi_op_pull_rdy_ev()
3223 if (skb->len < sizeof(*ev)) in ath10k_wmi_op_pull_rdy_ev()
3226 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_op_pull_rdy_ev()
3235 int ath10k_wmi_event_ready(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_ready() argument
3240 ret = ath10k_wmi_pull_rdy(ar, skb, &arg); in ath10k_wmi_event_ready()
3258 static int ath10k_wmi_event_temperature(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_event_temperature() argument
3262 ev = (struct wmi_pdev_temperature_event *)skb->data; in ath10k_wmi_event_temperature()
3263 if (WARN_ON(skb->len < sizeof(*ev))) in ath10k_wmi_event_temperature()
3270 static void ath10k_wmi_op_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_op_rx() argument
3275 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath10k_wmi_op_rx()
3278 if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) in ath10k_wmi_op_rx()
3281 trace_ath10k_wmi_event(ar, id, skb->data, skb->len); in ath10k_wmi_op_rx()
3285 ath10k_wmi_event_mgmt_rx(ar, skb); in ath10k_wmi_op_rx()
3289 ath10k_wmi_event_scan(ar, skb); in ath10k_wmi_op_rx()
3292 ath10k_wmi_event_chan_info(ar, skb); in ath10k_wmi_op_rx()
3295 ath10k_wmi_event_echo(ar, skb); in ath10k_wmi_op_rx()
3298 ath10k_wmi_event_debug_mesg(ar, skb); in ath10k_wmi_op_rx()
3301 ath10k_wmi_event_update_stats(ar, skb); in ath10k_wmi_op_rx()
3304 ath10k_wmi_event_vdev_start_resp(ar, skb); in ath10k_wmi_op_rx()
3307 ath10k_wmi_event_vdev_stopped(ar, skb); in ath10k_wmi_op_rx()
3310 ath10k_wmi_event_peer_sta_kickout(ar, skb); in ath10k_wmi_op_rx()
3313 ath10k_wmi_event_host_swba(ar, skb); in ath10k_wmi_op_rx()
3316 ath10k_wmi_event_tbttoffset_update(ar, skb); in ath10k_wmi_op_rx()
3319 ath10k_wmi_event_phyerr(ar, skb); in ath10k_wmi_op_rx()
3322 ath10k_wmi_event_roam(ar, skb); in ath10k_wmi_op_rx()
3325 ath10k_wmi_event_profile_match(ar, skb); in ath10k_wmi_op_rx()
3328 ath10k_wmi_event_debug_print(ar, skb); in ath10k_wmi_op_rx()
3331 ath10k_wmi_event_pdev_qvit(ar, skb); in ath10k_wmi_op_rx()
3334 ath10k_wmi_event_wlan_profile_data(ar, skb); in ath10k_wmi_op_rx()
3337 ath10k_wmi_event_rtt_measurement_report(ar, skb); in ath10k_wmi_op_rx()
3340 ath10k_wmi_event_tsf_measurement_report(ar, skb); in ath10k_wmi_op_rx()
3343 ath10k_wmi_event_rtt_error_report(ar, skb); in ath10k_wmi_op_rx()
3346 ath10k_wmi_event_wow_wakeup_host(ar, skb); in ath10k_wmi_op_rx()
3349 ath10k_wmi_event_dcs_interference(ar, skb); in ath10k_wmi_op_rx()
3352 ath10k_wmi_event_pdev_tpc_config(ar, skb); in ath10k_wmi_op_rx()
3355 ath10k_wmi_event_pdev_ftm_intg(ar, skb); in ath10k_wmi_op_rx()
3358 ath10k_wmi_event_gtk_offload_status(ar, skb); in ath10k_wmi_op_rx()
3361 ath10k_wmi_event_gtk_rekey_fail(ar, skb); in ath10k_wmi_op_rx()
3364 ath10k_wmi_event_delba_complete(ar, skb); in ath10k_wmi_op_rx()
3367 ath10k_wmi_event_addba_complete(ar, skb); in ath10k_wmi_op_rx()
3370 ath10k_wmi_event_vdev_install_key_complete(ar, skb); in ath10k_wmi_op_rx()
3373 ath10k_wmi_event_service_ready(ar, skb); in ath10k_wmi_op_rx()
3376 ath10k_wmi_event_ready(ar, skb); in ath10k_wmi_op_rx()
3383 dev_kfree_skb(skb); in ath10k_wmi_op_rx()
3386 static void ath10k_wmi_10_1_op_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_10_1_op_rx() argument
3392 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath10k_wmi_10_1_op_rx()
3395 if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) in ath10k_wmi_10_1_op_rx()
3398 trace_ath10k_wmi_event(ar, id, skb->data, skb->len); in ath10k_wmi_10_1_op_rx()
3400 consumed = ath10k_tm_event_wmi(ar, id, skb); in ath10k_wmi_10_1_op_rx()
3414 ath10k_wmi_event_mgmt_rx(ar, skb); in ath10k_wmi_10_1_op_rx()
3418 ath10k_wmi_event_scan(ar, skb); in ath10k_wmi_10_1_op_rx()
3421 ath10k_wmi_event_chan_info(ar, skb); in ath10k_wmi_10_1_op_rx()
3424 ath10k_wmi_event_echo(ar, skb); in ath10k_wmi_10_1_op_rx()
3427 ath10k_wmi_event_debug_mesg(ar, skb); in ath10k_wmi_10_1_op_rx()
3430 ath10k_wmi_event_update_stats(ar, skb); in ath10k_wmi_10_1_op_rx()
3433 ath10k_wmi_event_vdev_start_resp(ar, skb); in ath10k_wmi_10_1_op_rx()
3436 ath10k_wmi_event_vdev_stopped(ar, skb); in ath10k_wmi_10_1_op_rx()
3439 ath10k_wmi_event_peer_sta_kickout(ar, skb); in ath10k_wmi_10_1_op_rx()
3442 ath10k_wmi_event_host_swba(ar, skb); in ath10k_wmi_10_1_op_rx()
3445 ath10k_wmi_event_tbttoffset_update(ar, skb); in ath10k_wmi_10_1_op_rx()
3448 ath10k_wmi_event_phyerr(ar, skb); in ath10k_wmi_10_1_op_rx()
3451 ath10k_wmi_event_roam(ar, skb); in ath10k_wmi_10_1_op_rx()
3454 ath10k_wmi_event_profile_match(ar, skb); in ath10k_wmi_10_1_op_rx()
3457 ath10k_wmi_event_debug_print(ar, skb); in ath10k_wmi_10_1_op_rx()
3460 ath10k_wmi_event_pdev_qvit(ar, skb); in ath10k_wmi_10_1_op_rx()
3463 ath10k_wmi_event_wlan_profile_data(ar, skb); in ath10k_wmi_10_1_op_rx()
3466 ath10k_wmi_event_rtt_measurement_report(ar, skb); in ath10k_wmi_10_1_op_rx()
3469 ath10k_wmi_event_tsf_measurement_report(ar, skb); in ath10k_wmi_10_1_op_rx()
3472 ath10k_wmi_event_rtt_error_report(ar, skb); in ath10k_wmi_10_1_op_rx()
3475 ath10k_wmi_event_wow_wakeup_host(ar, skb); in ath10k_wmi_10_1_op_rx()
3478 ath10k_wmi_event_dcs_interference(ar, skb); in ath10k_wmi_10_1_op_rx()
3481 ath10k_wmi_event_pdev_tpc_config(ar, skb); in ath10k_wmi_10_1_op_rx()
3484 ath10k_wmi_event_inst_rssi_stats(ar, skb); in ath10k_wmi_10_1_op_rx()
3487 ath10k_wmi_event_vdev_standby_req(ar, skb); in ath10k_wmi_10_1_op_rx()
3490 ath10k_wmi_event_vdev_resume_req(ar, skb); in ath10k_wmi_10_1_op_rx()
3493 ath10k_wmi_event_service_ready(ar, skb); in ath10k_wmi_10_1_op_rx()
3496 ath10k_wmi_event_ready(ar, skb); in ath10k_wmi_10_1_op_rx()
3507 dev_kfree_skb(skb); in ath10k_wmi_10_1_op_rx()
3510 static void ath10k_wmi_10_2_op_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_10_2_op_rx() argument
3515 cmd_hdr = (struct wmi_cmd_hdr *)skb->data; in ath10k_wmi_10_2_op_rx()
3518 if (skb_pull(skb, sizeof(struct wmi_cmd_hdr)) == NULL) in ath10k_wmi_10_2_op_rx()
3521 trace_ath10k_wmi_event(ar, id, skb->data, skb->len); in ath10k_wmi_10_2_op_rx()
3525 ath10k_wmi_event_mgmt_rx(ar, skb); in ath10k_wmi_10_2_op_rx()
3529 ath10k_wmi_event_scan(ar, skb); in ath10k_wmi_10_2_op_rx()
3532 ath10k_wmi_event_chan_info(ar, skb); in ath10k_wmi_10_2_op_rx()
3535 ath10k_wmi_event_echo(ar, skb); in ath10k_wmi_10_2_op_rx()
3538 ath10k_wmi_event_debug_mesg(ar, skb); in ath10k_wmi_10_2_op_rx()
3541 ath10k_wmi_event_update_stats(ar, skb); in ath10k_wmi_10_2_op_rx()
3544 ath10k_wmi_event_vdev_start_resp(ar, skb); in ath10k_wmi_10_2_op_rx()
3547 ath10k_wmi_event_vdev_stopped(ar, skb); in ath10k_wmi_10_2_op_rx()
3550 ath10k_wmi_event_peer_sta_kickout(ar, skb); in ath10k_wmi_10_2_op_rx()
3553 ath10k_wmi_event_host_swba(ar, skb); in ath10k_wmi_10_2_op_rx()
3556 ath10k_wmi_event_tbttoffset_update(ar, skb); in ath10k_wmi_10_2_op_rx()
3559 ath10k_wmi_event_phyerr(ar, skb); in ath10k_wmi_10_2_op_rx()
3562 ath10k_wmi_event_roam(ar, skb); in ath10k_wmi_10_2_op_rx()
3565 ath10k_wmi_event_profile_match(ar, skb); in ath10k_wmi_10_2_op_rx()
3568 ath10k_wmi_event_debug_print(ar, skb); in ath10k_wmi_10_2_op_rx()
3571 ath10k_wmi_event_pdev_qvit(ar, skb); in ath10k_wmi_10_2_op_rx()
3574 ath10k_wmi_event_wlan_profile_data(ar, skb); in ath10k_wmi_10_2_op_rx()
3577 ath10k_wmi_event_rtt_measurement_report(ar, skb); in ath10k_wmi_10_2_op_rx()
3580 ath10k_wmi_event_tsf_measurement_report(ar, skb); in ath10k_wmi_10_2_op_rx()
3583 ath10k_wmi_event_rtt_error_report(ar, skb); in ath10k_wmi_10_2_op_rx()
3586 ath10k_wmi_event_wow_wakeup_host(ar, skb); in ath10k_wmi_10_2_op_rx()
3589 ath10k_wmi_event_dcs_interference(ar, skb); in ath10k_wmi_10_2_op_rx()
3592 ath10k_wmi_event_pdev_tpc_config(ar, skb); in ath10k_wmi_10_2_op_rx()
3595 ath10k_wmi_event_inst_rssi_stats(ar, skb); in ath10k_wmi_10_2_op_rx()
3598 ath10k_wmi_event_vdev_standby_req(ar, skb); in ath10k_wmi_10_2_op_rx()
3601 ath10k_wmi_event_vdev_resume_req(ar, skb); in ath10k_wmi_10_2_op_rx()
3604 ath10k_wmi_event_service_ready(ar, skb); in ath10k_wmi_10_2_op_rx()
3607 ath10k_wmi_event_ready(ar, skb); in ath10k_wmi_10_2_op_rx()
3610 ath10k_wmi_event_temperature(ar, skb); in ath10k_wmi_10_2_op_rx()
3627 dev_kfree_skb(skb); in ath10k_wmi_10_2_op_rx()
3630 static void ath10k_wmi_process_rx(struct ath10k *ar, struct sk_buff *skb) in ath10k_wmi_process_rx() argument
3634 ret = ath10k_wmi_rx(ar, skb); in ath10k_wmi_process_rx()
3673 struct sk_buff *skb; in ath10k_wmi_op_gen_pdev_set_rd() local
3675 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_rd()
3676 if (!skb) in ath10k_wmi_op_gen_pdev_set_rd()
3679 cmd = (struct wmi_pdev_set_regdomain_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_rd()
3689 return skb; in ath10k_wmi_op_gen_pdev_set_rd()
3698 struct sk_buff *skb; in ath10k_wmi_10x_op_gen_pdev_set_rd() local
3700 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10x_op_gen_pdev_set_rd()
3701 if (!skb) in ath10k_wmi_10x_op_gen_pdev_set_rd()
3704 cmd = (struct wmi_pdev_set_regdomain_cmd_10x *)skb->data; in ath10k_wmi_10x_op_gen_pdev_set_rd()
3715 return skb; in ath10k_wmi_10x_op_gen_pdev_set_rd()
3722 struct sk_buff *skb; in ath10k_wmi_op_gen_pdev_suspend() local
3724 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_suspend()
3725 if (!skb) in ath10k_wmi_op_gen_pdev_suspend()
3728 cmd = (struct wmi_pdev_suspend_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_suspend()
3731 return skb; in ath10k_wmi_op_gen_pdev_suspend()
3737 struct sk_buff *skb; in ath10k_wmi_op_gen_pdev_resume() local
3739 skb = ath10k_wmi_alloc_skb(ar, 0); in ath10k_wmi_op_gen_pdev_resume()
3740 if (!skb) in ath10k_wmi_op_gen_pdev_resume()
3743 return skb; in ath10k_wmi_op_gen_pdev_resume()
3750 struct sk_buff *skb; in ath10k_wmi_op_gen_pdev_set_param() local
3758 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_param()
3759 if (!skb) in ath10k_wmi_op_gen_pdev_set_param()
3762 cmd = (struct wmi_pdev_set_param_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_param()
3768 return skb; in ath10k_wmi_op_gen_pdev_set_param()
4153 struct sk_buff *skb; in ath10k_wmi_op_gen_start_scan() local
4162 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_op_gen_start_scan()
4163 if (!skb) in ath10k_wmi_op_gen_start_scan()
4166 cmd = (struct wmi_start_scan_cmd *)skb->data; in ath10k_wmi_op_gen_start_scan()
4174 return skb; in ath10k_wmi_op_gen_start_scan()
4182 struct sk_buff *skb; in ath10k_wmi_10x_op_gen_start_scan() local
4191 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_10x_op_gen_start_scan()
4192 if (!skb) in ath10k_wmi_10x_op_gen_start_scan()
4195 cmd = (struct wmi_10x_start_scan_cmd *)skb->data; in ath10k_wmi_10x_op_gen_start_scan()
4201 return skb; in ath10k_wmi_10x_op_gen_start_scan()
4235 struct sk_buff *skb; in ath10k_wmi_op_gen_stop_scan() local
4244 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_stop_scan()
4245 if (!skb) in ath10k_wmi_op_gen_stop_scan()
4254 cmd = (struct wmi_stop_scan_cmd *)skb->data; in ath10k_wmi_op_gen_stop_scan()
4263 return skb; in ath10k_wmi_op_gen_stop_scan()
4273 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_create() local
4275 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_create()
4276 if (!skb) in ath10k_wmi_op_gen_vdev_create()
4279 cmd = (struct wmi_vdev_create_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_create()
4288 return skb; in ath10k_wmi_op_gen_vdev_create()
4295 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_delete() local
4297 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_delete()
4298 if (!skb) in ath10k_wmi_op_gen_vdev_delete()
4301 cmd = (struct wmi_vdev_delete_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_delete()
4306 return skb; in ath10k_wmi_op_gen_vdev_delete()
4315 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_start() local
4331 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_start()
4332 if (!skb) in ath10k_wmi_op_gen_vdev_start()
4340 cmd = (struct wmi_vdev_start_request_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_start()
4362 return skb; in ath10k_wmi_op_gen_vdev_start()
4369 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_stop() local
4371 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_stop()
4372 if (!skb) in ath10k_wmi_op_gen_vdev_stop()
4375 cmd = (struct wmi_vdev_stop_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_stop()
4379 return skb; in ath10k_wmi_op_gen_vdev_stop()
4387 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_up() local
4389 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_up()
4390 if (!skb) in ath10k_wmi_op_gen_vdev_up()
4393 cmd = (struct wmi_vdev_up_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_up()
4401 return skb; in ath10k_wmi_op_gen_vdev_up()
4408 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_down() local
4410 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_down()
4411 if (!skb) in ath10k_wmi_op_gen_vdev_down()
4414 cmd = (struct wmi_vdev_down_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_down()
4419 return skb; in ath10k_wmi_op_gen_vdev_down()
4427 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_set_param() local
4436 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_set_param()
4437 if (!skb) in ath10k_wmi_op_gen_vdev_set_param()
4440 cmd = (struct wmi_vdev_set_param_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_set_param()
4448 return skb; in ath10k_wmi_op_gen_vdev_set_param()
4456 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_install_key() local
4463 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd) + arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
4464 if (!skb) in ath10k_wmi_op_gen_vdev_install_key()
4467 cmd = (struct wmi_vdev_install_key_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_install_key()
4484 return skb; in ath10k_wmi_op_gen_vdev_install_key()
4492 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_spectral_conf() local
4494 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_spectral_conf()
4495 if (!skb) in ath10k_wmi_op_gen_vdev_spectral_conf()
4498 cmd = (struct wmi_vdev_spectral_conf_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_spectral_conf()
4519 return skb; in ath10k_wmi_op_gen_vdev_spectral_conf()
4527 struct sk_buff *skb; in ath10k_wmi_op_gen_vdev_spectral_enable() local
4529 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_spectral_enable()
4530 if (!skb) in ath10k_wmi_op_gen_vdev_spectral_enable()
4533 cmd = (struct wmi_vdev_spectral_enable_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_spectral_enable()
4538 return skb; in ath10k_wmi_op_gen_vdev_spectral_enable()
4546 struct sk_buff *skb; in ath10k_wmi_op_gen_peer_create() local
4548 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_create()
4549 if (!skb) in ath10k_wmi_op_gen_peer_create()
4552 cmd = (struct wmi_peer_create_cmd *)skb->data; in ath10k_wmi_op_gen_peer_create()
4559 return skb; in ath10k_wmi_op_gen_peer_create()
4567 struct sk_buff *skb; in ath10k_wmi_op_gen_peer_delete() local
4569 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_delete()
4570 if (!skb) in ath10k_wmi_op_gen_peer_delete()
4573 cmd = (struct wmi_peer_delete_cmd *)skb->data; in ath10k_wmi_op_gen_peer_delete()
4580 return skb; in ath10k_wmi_op_gen_peer_delete()
4588 struct sk_buff *skb; in ath10k_wmi_op_gen_peer_flush() local
4590 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_flush()
4591 if (!skb) in ath10k_wmi_op_gen_peer_flush()
4594 cmd = (struct wmi_peer_flush_tids_cmd *)skb->data; in ath10k_wmi_op_gen_peer_flush()
4602 return skb; in ath10k_wmi_op_gen_peer_flush()
4612 struct sk_buff *skb; in ath10k_wmi_op_gen_peer_set_param() local
4614 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_set_param()
4615 if (!skb) in ath10k_wmi_op_gen_peer_set_param()
4618 cmd = (struct wmi_peer_set_param_cmd *)skb->data; in ath10k_wmi_op_gen_peer_set_param()
4627 return skb; in ath10k_wmi_op_gen_peer_set_param()
4635 struct sk_buff *skb; in ath10k_wmi_op_gen_set_psmode() local
4637 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_set_psmode()
4638 if (!skb) in ath10k_wmi_op_gen_set_psmode()
4641 cmd = (struct wmi_sta_powersave_mode_cmd *)skb->data; in ath10k_wmi_op_gen_set_psmode()
4648 return skb; in ath10k_wmi_op_gen_set_psmode()
4657 struct sk_buff *skb; in ath10k_wmi_op_gen_set_sta_ps() local
4659 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_set_sta_ps()
4660 if (!skb) in ath10k_wmi_op_gen_set_sta_ps()
4663 cmd = (struct wmi_sta_powersave_param_cmd *)skb->data; in ath10k_wmi_op_gen_set_sta_ps()
4671 return skb; in ath10k_wmi_op_gen_set_sta_ps()
4679 struct sk_buff *skb; in ath10k_wmi_op_gen_set_ap_ps() local
4684 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_set_ap_ps()
4685 if (!skb) in ath10k_wmi_op_gen_set_ap_ps()
4688 cmd = (struct wmi_ap_ps_peer_cmd *)skb->data; in ath10k_wmi_op_gen_set_ap_ps()
4697 return skb; in ath10k_wmi_op_gen_set_ap_ps()
4705 struct sk_buff *skb; in ath10k_wmi_op_gen_scan_chan_list() local
4713 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_op_gen_scan_chan_list()
4714 if (!skb) in ath10k_wmi_op_gen_scan_chan_list()
4717 cmd = (struct wmi_scan_chan_list_cmd *)skb->data; in ath10k_wmi_op_gen_scan_chan_list()
4727 return skb; in ath10k_wmi_op_gen_scan_chan_list()
4826 struct sk_buff *skb; in ath10k_wmi_op_gen_peer_assoc() local
4833 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_op_gen_peer_assoc()
4834 if (!skb) in ath10k_wmi_op_gen_peer_assoc()
4837 ath10k_wmi_peer_assoc_fill_main(ar, skb->data, arg); in ath10k_wmi_op_gen_peer_assoc()
4843 return skb; in ath10k_wmi_op_gen_peer_assoc()
4851 struct sk_buff *skb; in ath10k_wmi_10_1_op_gen_peer_assoc() local
4858 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_10_1_op_gen_peer_assoc()
4859 if (!skb) in ath10k_wmi_10_1_op_gen_peer_assoc()
4862 ath10k_wmi_peer_assoc_fill_10_1(ar, skb->data, arg); in ath10k_wmi_10_1_op_gen_peer_assoc()
4868 return skb; in ath10k_wmi_10_1_op_gen_peer_assoc()
4876 struct sk_buff *skb; in ath10k_wmi_10_2_op_gen_peer_assoc() local
4883 skb = ath10k_wmi_alloc_skb(ar, len); in ath10k_wmi_10_2_op_gen_peer_assoc()
4884 if (!skb) in ath10k_wmi_10_2_op_gen_peer_assoc()
4887 ath10k_wmi_peer_assoc_fill_10_2(ar, skb->data, arg); in ath10k_wmi_10_2_op_gen_peer_assoc()
4893 return skb; in ath10k_wmi_10_2_op_gen_peer_assoc()
4899 struct sk_buff *skb; in ath10k_wmi_10_2_op_gen_pdev_get_temperature() local
4901 skb = ath10k_wmi_alloc_skb(ar, 0); in ath10k_wmi_10_2_op_gen_pdev_get_temperature()
4902 if (!skb) in ath10k_wmi_10_2_op_gen_pdev_get_temperature()
4906 return skb; in ath10k_wmi_10_2_op_gen_pdev_get_temperature()
4916 struct sk_buff *skb; in ath10k_wmi_op_gen_beacon_dma() local
4920 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_beacon_dma()
4921 if (!skb) in ath10k_wmi_op_gen_beacon_dma()
4927 cmd = (struct wmi_bcn_tx_ref_cmd *)skb->data; in ath10k_wmi_op_gen_beacon_dma()
4942 return skb; in ath10k_wmi_op_gen_beacon_dma()
4961 struct sk_buff *skb; in ath10k_wmi_op_gen_pdev_set_wmm() local
4963 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_wmm()
4964 if (!skb) in ath10k_wmi_op_gen_pdev_set_wmm()
4967 cmd = (struct wmi_pdev_set_wmm_params *)skb->data; in ath10k_wmi_op_gen_pdev_set_wmm()
4974 return skb; in ath10k_wmi_op_gen_pdev_set_wmm()
4981 struct sk_buff *skb; in ath10k_wmi_op_gen_request_stats() local
4983 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_request_stats()
4984 if (!skb) in ath10k_wmi_op_gen_request_stats()
4987 cmd = (struct wmi_request_stats_cmd *)skb->data; in ath10k_wmi_op_gen_request_stats()
4992 return skb; in ath10k_wmi_op_gen_request_stats()
5000 struct sk_buff *skb; in ath10k_wmi_op_gen_force_fw_hang() local
5002 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_force_fw_hang()
5003 if (!skb) in ath10k_wmi_op_gen_force_fw_hang()
5006 cmd = (struct wmi_force_fw_hang_cmd *)skb->data; in ath10k_wmi_op_gen_force_fw_hang()
5012 return skb; in ath10k_wmi_op_gen_force_fw_hang()
5020 struct sk_buff *skb; in ath10k_wmi_op_gen_dbglog_cfg() local
5023 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_dbglog_cfg()
5024 if (!skb) in ath10k_wmi_op_gen_dbglog_cfg()
5027 cmd = (struct wmi_dbglog_cfg_cmd *)skb->data; in ath10k_wmi_op_gen_dbglog_cfg()
5050 return skb; in ath10k_wmi_op_gen_dbglog_cfg()
5057 struct sk_buff *skb; in ath10k_wmi_op_gen_pktlog_enable() local
5059 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pktlog_enable()
5060 if (!skb) in ath10k_wmi_op_gen_pktlog_enable()
5065 cmd = (struct wmi_pdev_pktlog_enable_cmd *)skb->data; in ath10k_wmi_op_gen_pktlog_enable()
5070 return skb; in ath10k_wmi_op_gen_pktlog_enable()
5076 struct sk_buff *skb; in ath10k_wmi_op_gen_pktlog_disable() local
5078 skb = ath10k_wmi_alloc_skb(ar, 0); in ath10k_wmi_op_gen_pktlog_disable()
5079 if (!skb) in ath10k_wmi_op_gen_pktlog_disable()
5083 return skb; in ath10k_wmi_op_gen_pktlog_disable()
5092 struct sk_buff *skb; in ath10k_wmi_op_gen_pdev_set_quiet_mode() local
5094 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_quiet_mode()
5095 if (!skb) in ath10k_wmi_op_gen_pdev_set_quiet_mode()
5098 cmd = (struct wmi_pdev_set_quiet_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_quiet_mode()
5107 return skb; in ath10k_wmi_op_gen_pdev_set_quiet_mode()
5115 struct sk_buff *skb; in ath10k_wmi_op_gen_addba_clear_resp() local
5120 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_addba_clear_resp()
5121 if (!skb) in ath10k_wmi_op_gen_addba_clear_resp()
5124 cmd = (struct wmi_addba_clear_resp_cmd *)skb->data; in ath10k_wmi_op_gen_addba_clear_resp()
5131 return skb; in ath10k_wmi_op_gen_addba_clear_resp()
5139 struct sk_buff *skb; in ath10k_wmi_op_gen_addba_send() local
5144 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_addba_send()
5145 if (!skb) in ath10k_wmi_op_gen_addba_send()
5148 cmd = (struct wmi_addba_send_cmd *)skb->data; in ath10k_wmi_op_gen_addba_send()
5157 return skb; in ath10k_wmi_op_gen_addba_send()
5165 struct sk_buff *skb; in ath10k_wmi_op_gen_addba_set_resp() local
5170 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_addba_set_resp()
5171 if (!skb) in ath10k_wmi_op_gen_addba_set_resp()
5174 cmd = (struct wmi_addba_setresponse_cmd *)skb->data; in ath10k_wmi_op_gen_addba_set_resp()
5183 return skb; in ath10k_wmi_op_gen_addba_set_resp()
5191 struct sk_buff *skb; in ath10k_wmi_op_gen_delba_send() local
5196 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_delba_send()
5197 if (!skb) in ath10k_wmi_op_gen_delba_send()
5200 cmd = (struct wmi_delba_send_cmd *)skb->data; in ath10k_wmi_op_gen_delba_send()
5210 return skb; in ath10k_wmi_op_gen_delba_send()