Lines Matching refs:tb
137 const void **tb = data; in ath10k_wmi_tlv_iter_parse() local
140 tb[tag] = ptr; in ath10k_wmi_tlv_iter_parse()
145 static int ath10k_wmi_tlv_parse(struct ath10k *ar, const void **tb, in ath10k_wmi_tlv_parse() argument
149 (void *)tb); in ath10k_wmi_tlv_parse()
156 const void **tb; in ath10k_wmi_tlv_parse_alloc() local
159 tb = kcalloc(WMI_TLV_TAG_MAX, sizeof(*tb), gfp); in ath10k_wmi_tlv_parse_alloc()
160 if (!tb) in ath10k_wmi_tlv_parse_alloc()
163 ret = ath10k_wmi_tlv_parse(ar, tb, ptr, len); in ath10k_wmi_tlv_parse_alloc()
165 kfree(tb); in ath10k_wmi_tlv_parse_alloc()
169 return tb; in ath10k_wmi_tlv_parse_alloc()
183 const void **tb; in ath10k_wmi_tlv_event_bcn_tx_status() local
189 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_bcn_tx_status()
190 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_bcn_tx_status()
191 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
196 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
198 kfree(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
223 kfree(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
276 const void **tb; in ath10k_wmi_tlv_op_pull_peer_stats_info() local
282 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_peer_stats_info()
283 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_peer_stats_info()
284 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_peer_stats_info()
289 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STATS_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_peer_stats_info()
290 data = tb[WMI_TLV_TAG_ARRAY_STRUCT]; in ath10k_wmi_tlv_op_pull_peer_stats_info()
293 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_stats_info()
310 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_stats_info()
325 const void **tb; in ath10k_wmi_tlv_event_diag_data() local
335 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_diag_data()
336 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_diag_data()
337 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_diag_data()
342 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
343 data = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_event_diag_data()
345 kfree(tb); in ath10k_wmi_tlv_event_diag_data()
389 kfree(tb); in ath10k_wmi_tlv_event_diag_data()
396 const void **tb; in ath10k_wmi_tlv_event_diag() local
400 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_diag()
401 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_diag()
402 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_diag()
407 data = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_event_diag()
409 kfree(tb); in ath10k_wmi_tlv_event_diag()
417 kfree(tb); in ath10k_wmi_tlv_event_diag()
424 const void **tb; in ath10k_wmi_tlv_event_p2p_noa() local
429 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_p2p_noa()
430 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_p2p_noa()
431 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_p2p_noa()
436 ev = tb[WMI_TLV_TAG_STRUCT_P2P_NOA_EVENT]; in ath10k_wmi_tlv_event_p2p_noa()
437 noa = tb[WMI_TLV_TAG_STRUCT_P2P_NOA_INFO]; in ath10k_wmi_tlv_event_p2p_noa()
440 kfree(tb); in ath10k_wmi_tlv_event_p2p_noa()
451 kfree(tb); in ath10k_wmi_tlv_event_p2p_noa()
458 const void **tb; in ath10k_wmi_tlv_event_tx_pause() local
463 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_tx_pause()
464 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_tx_pause()
465 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_tx_pause()
470 ev = tb[WMI_TLV_TAG_STRUCT_TX_PAUSE_EVENT]; in ath10k_wmi_tlv_event_tx_pause()
472 kfree(tb); in ath10k_wmi_tlv_event_tx_pause()
516 kfree(tb); in ath10k_wmi_tlv_event_tx_pause()
524 const void **tb; in ath10k_wmi_tlv_event_rfkill_state_change() local
528 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_rfkill_state_change()
529 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_rfkill_state_change()
530 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_rfkill_state_change()
537 ev = tb[WMI_TLV_TAG_STRUCT_RFKILL_EVENT]; in ath10k_wmi_tlv_event_rfkill_state_change()
539 kfree(tb); in ath10k_wmi_tlv_event_rfkill_state_change()
580 const void **tb; in ath10k_wmi_event_tdls_peer() local
583 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_event_tdls_peer()
584 if (IS_ERR(tb)) { in ath10k_wmi_event_tdls_peer()
588 ev = tb[WMI_TLV_TAG_STRUCT_TDLS_PEER_EVENT]; in ath10k_wmi_event_tdls_peer()
590 kfree(tb); in ath10k_wmi_event_tdls_peer()
623 kfree(tb); in ath10k_wmi_event_tdls_peer()
629 kfree(tb); in ath10k_wmi_event_tdls_peer()
830 const void **tb; in ath10k_wmi_tlv_op_pull_scan_ev() local
834 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_scan_ev()
835 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_scan_ev()
836 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_scan_ev()
841 ev = tb[WMI_TLV_TAG_STRUCT_SCAN_EVENT]; in ath10k_wmi_tlv_op_pull_scan_ev()
843 kfree(tb); in ath10k_wmi_tlv_op_pull_scan_ev()
854 kfree(tb); in ath10k_wmi_tlv_op_pull_scan_ev()
862 const void **tb; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev() local
866 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
867 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
868 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
873 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_TX_COMPL_EVENT]; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
883 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
964 const void **tb; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev() local
970 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
971 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
972 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
977 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_RX_HDR]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
978 frame = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
981 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
998 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
1008 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
1016 const void **tb; in ath10k_wmi_tlv_op_pull_ch_info_ev() local
1020 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_ch_info_ev()
1021 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_ch_info_ev()
1022 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_ch_info_ev()
1027 ev = tb[WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1029 kfree(tb); in ath10k_wmi_tlv_op_pull_ch_info_ev()
1043 kfree(tb); in ath10k_wmi_tlv_op_pull_ch_info_ev()
1051 const void **tb; in ath10k_wmi_tlv_op_pull_vdev_start_ev() local
1055 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1056 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1057 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1062 ev = tb[WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT]; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1064 kfree(tb); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1074 kfree(tb); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1082 const void **tb; in ath10k_wmi_tlv_op_pull_peer_kick_ev() local
1086 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1087 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1088 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1093 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT]; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1095 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1101 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1229 const void **tb; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr() local
1234 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1235 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1236 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1241 ev = tb[WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR]; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1242 phyerrs = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1245 kfree(tb); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1255 kfree(tb); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1411 const void **tb; in ath10k_wmi_tlv_op_pull_rdy_ev() local
1415 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_rdy_ev()
1416 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_rdy_ev()
1417 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_rdy_ev()
1422 ev = tb[WMI_TLV_TAG_STRUCT_READY_EVENT]; in ath10k_wmi_tlv_op_pull_rdy_ev()
1424 kfree(tb); in ath10k_wmi_tlv_op_pull_rdy_ev()
1433 kfree(tb); in ath10k_wmi_tlv_op_pull_rdy_ev()
1517 const void **tb; in ath10k_wmi_tlv_op_pull_fw_stats() local
1535 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_fw_stats()
1536 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_fw_stats()
1537 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1542 ev = tb[WMI_TLV_TAG_STRUCT_STATS_EVENT]; in ath10k_wmi_tlv_op_pull_fw_stats()
1543 data = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_op_pull_fw_stats()
1546 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1574 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1601 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1626 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1669 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1677 const void **tb; in ath10k_wmi_tlv_op_pull_roam_ev() local
1681 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_roam_ev()
1682 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_roam_ev()
1683 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_roam_ev()
1688 ev = tb[WMI_TLV_TAG_STRUCT_ROAM_EVENT]; in ath10k_wmi_tlv_op_pull_roam_ev()
1690 kfree(tb); in ath10k_wmi_tlv_op_pull_roam_ev()
1698 kfree(tb); in ath10k_wmi_tlv_op_pull_roam_ev()
1706 const void **tb; in ath10k_wmi_tlv_op_pull_wow_ev() local
1710 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_wow_ev()
1711 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_wow_ev()
1712 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_wow_ev()
1717 ev = tb[WMI_TLV_TAG_STRUCT_WOW_EVENT_INFO]; in ath10k_wmi_tlv_op_pull_wow_ev()
1719 kfree(tb); in ath10k_wmi_tlv_op_pull_wow_ev()
1728 kfree(tb); in ath10k_wmi_tlv_op_pull_wow_ev()
1736 const void **tb; in ath10k_wmi_tlv_op_pull_echo_ev() local
1740 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_echo_ev()
1741 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_echo_ev()
1742 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_echo_ev()
1747 ev = tb[WMI_TLV_TAG_STRUCT_ECHO_EVENT]; in ath10k_wmi_tlv_op_pull_echo_ev()
1749 kfree(tb); in ath10k_wmi_tlv_op_pull_echo_ev()
1755 kfree(tb); in ath10k_wmi_tlv_op_pull_echo_ev()