Lines Matching refs:tb
135 const void **tb = data; in ath10k_wmi_tlv_iter_parse() local
138 tb[tag] = ptr; in ath10k_wmi_tlv_iter_parse()
143 static int ath10k_wmi_tlv_parse(struct ath10k *ar, const void **tb, in ath10k_wmi_tlv_parse() argument
147 (void *)tb); in ath10k_wmi_tlv_parse()
154 const void **tb; in ath10k_wmi_tlv_parse_alloc() local
157 tb = kzalloc(sizeof(*tb) * WMI_TLV_TAG_MAX, gfp); in ath10k_wmi_tlv_parse_alloc()
158 if (!tb) in ath10k_wmi_tlv_parse_alloc()
161 ret = ath10k_wmi_tlv_parse(ar, tb, ptr, len); in ath10k_wmi_tlv_parse_alloc()
163 kfree(tb); in ath10k_wmi_tlv_parse_alloc()
167 return tb; in ath10k_wmi_tlv_parse_alloc()
181 const void **tb; in ath10k_wmi_tlv_event_bcn_tx_status() local
187 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_bcn_tx_status()
188 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_bcn_tx_status()
189 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
194 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
196 kfree(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
221 kfree(tb); in ath10k_wmi_tlv_event_bcn_tx_status()
228 const void **tb; in ath10k_wmi_tlv_event_diag_data() local
234 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_diag_data()
235 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_diag_data()
236 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_diag_data()
241 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
242 data = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_event_diag_data()
244 kfree(tb); in ath10k_wmi_tlv_event_diag_data()
284 kfree(tb); in ath10k_wmi_tlv_event_diag_data()
291 const void **tb; in ath10k_wmi_tlv_event_diag() local
295 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_diag()
296 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_diag()
297 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_diag()
302 data = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_event_diag()
304 kfree(tb); in ath10k_wmi_tlv_event_diag()
312 kfree(tb); in ath10k_wmi_tlv_event_diag()
319 const void **tb; in ath10k_wmi_tlv_event_p2p_noa() local
324 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_p2p_noa()
325 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_p2p_noa()
326 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_p2p_noa()
331 ev = tb[WMI_TLV_TAG_STRUCT_P2P_NOA_EVENT]; in ath10k_wmi_tlv_event_p2p_noa()
332 noa = tb[WMI_TLV_TAG_STRUCT_P2P_NOA_INFO]; in ath10k_wmi_tlv_event_p2p_noa()
335 kfree(tb); in ath10k_wmi_tlv_event_p2p_noa()
346 kfree(tb); in ath10k_wmi_tlv_event_p2p_noa()
353 const void **tb; in ath10k_wmi_tlv_event_tx_pause() local
358 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_event_tx_pause()
359 if (IS_ERR(tb)) { in ath10k_wmi_tlv_event_tx_pause()
360 ret = PTR_ERR(tb); in ath10k_wmi_tlv_event_tx_pause()
365 ev = tb[WMI_TLV_TAG_STRUCT_TX_PAUSE_EVENT]; in ath10k_wmi_tlv_event_tx_pause()
367 kfree(tb); in ath10k_wmi_tlv_event_tx_pause()
411 kfree(tb); in ath10k_wmi_tlv_event_tx_pause()
568 const void **tb; in ath10k_wmi_tlv_op_pull_scan_ev() local
572 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_scan_ev()
573 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_scan_ev()
574 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_scan_ev()
579 ev = tb[WMI_TLV_TAG_STRUCT_SCAN_EVENT]; in ath10k_wmi_tlv_op_pull_scan_ev()
581 kfree(tb); in ath10k_wmi_tlv_op_pull_scan_ev()
592 kfree(tb); in ath10k_wmi_tlv_op_pull_scan_ev()
600 const void **tb; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev() local
606 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
607 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
608 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
613 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_RX_HDR]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
614 frame = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
617 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
631 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
641 kfree(tb); in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
649 const void **tb; in ath10k_wmi_tlv_op_pull_ch_info_ev() local
653 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_ch_info_ev()
654 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_ch_info_ev()
655 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_ch_info_ev()
660 ev = tb[WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_ch_info_ev()
662 kfree(tb); in ath10k_wmi_tlv_op_pull_ch_info_ev()
673 kfree(tb); in ath10k_wmi_tlv_op_pull_ch_info_ev()
681 const void **tb; in ath10k_wmi_tlv_op_pull_vdev_start_ev() local
685 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
686 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_vdev_start_ev()
687 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
692 ev = tb[WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT]; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
694 kfree(tb); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
704 kfree(tb); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
712 const void **tb; in ath10k_wmi_tlv_op_pull_peer_kick_ev() local
716 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
717 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_peer_kick_ev()
718 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
723 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT]; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
725 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
731 kfree(tb); in ath10k_wmi_tlv_op_pull_peer_kick_ev()
859 const void **tb; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr() local
864 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
865 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
866 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
871 ev = tb[WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR]; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
872 phyerrs = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
875 kfree(tb); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
885 kfree(tb); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
924 const void **tb; in ath10k_wmi_tlv_op_pull_svc_rdy_ev() local
931 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
932 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
933 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
938 ev = tb[WMI_TLV_TAG_STRUCT_SERVICE_READY_EVENT]; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
939 reg = tb[WMI_TLV_TAG_STRUCT_HAL_REG_CAPABILITIES]; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
940 svc_bmap = tb[WMI_TLV_TAG_ARRAY_UINT32]; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
941 mem_reqs = tb[WMI_TLV_TAG_ARRAY_STRUCT]; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
944 kfree(tb); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
964 kfree(tb); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
985 kfree(tb); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
990 kfree(tb); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
998 const void **tb; in ath10k_wmi_tlv_op_pull_rdy_ev() local
1002 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_rdy_ev()
1003 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_rdy_ev()
1004 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_rdy_ev()
1009 ev = tb[WMI_TLV_TAG_STRUCT_READY_EVENT]; in ath10k_wmi_tlv_op_pull_rdy_ev()
1011 kfree(tb); in ath10k_wmi_tlv_op_pull_rdy_ev()
1020 kfree(tb); in ath10k_wmi_tlv_op_pull_rdy_ev()
1064 const void **tb; in ath10k_wmi_tlv_op_pull_fw_stats() local
1076 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_fw_stats()
1077 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_fw_stats()
1078 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1083 ev = tb[WMI_TLV_TAG_STRUCT_STATS_EVENT]; in ath10k_wmi_tlv_op_pull_fw_stats()
1084 data = tb[WMI_TLV_TAG_ARRAY_BYTE]; in ath10k_wmi_tlv_op_pull_fw_stats()
1087 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1109 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1132 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1153 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1169 kfree(tb); in ath10k_wmi_tlv_op_pull_fw_stats()
1177 const void **tb; in ath10k_wmi_tlv_op_pull_roam_ev() local
1181 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_roam_ev()
1182 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_roam_ev()
1183 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_roam_ev()
1188 ev = tb[WMI_TLV_TAG_STRUCT_ROAM_EVENT]; in ath10k_wmi_tlv_op_pull_roam_ev()
1190 kfree(tb); in ath10k_wmi_tlv_op_pull_roam_ev()
1198 kfree(tb); in ath10k_wmi_tlv_op_pull_roam_ev()
1206 const void **tb; in ath10k_wmi_tlv_op_pull_wow_ev() local
1210 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_wow_ev()
1211 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_wow_ev()
1212 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_wow_ev()
1217 ev = tb[WMI_TLV_TAG_STRUCT_WOW_EVENT_INFO]; in ath10k_wmi_tlv_op_pull_wow_ev()
1219 kfree(tb); in ath10k_wmi_tlv_op_pull_wow_ev()
1228 kfree(tb); in ath10k_wmi_tlv_op_pull_wow_ev()
1236 const void **tb; in ath10k_wmi_tlv_op_pull_echo_ev() local
1240 tb = ath10k_wmi_tlv_parse_alloc(ar, skb->data, skb->len, GFP_ATOMIC); in ath10k_wmi_tlv_op_pull_echo_ev()
1241 if (IS_ERR(tb)) { in ath10k_wmi_tlv_op_pull_echo_ev()
1242 ret = PTR_ERR(tb); in ath10k_wmi_tlv_op_pull_echo_ev()
1247 ev = tb[WMI_TLV_TAG_STRUCT_ECHO_EVENT]; in ath10k_wmi_tlv_op_pull_echo_ev()
1249 kfree(tb); in ath10k_wmi_tlv_op_pull_echo_ev()
1255 kfree(tb); in ath10k_wmi_tlv_op_pull_echo_ev()