Lines Matching refs:tb
262 const void **tb = data; in ath11k_wmi_tlv_iter_parse() local
265 tb[tag] = ptr; in ath11k_wmi_tlv_iter_parse()
270 static int ath11k_wmi_tlv_parse(struct ath11k_base *ar, const void **tb, in ath11k_wmi_tlv_parse() argument
274 (void *)tb); in ath11k_wmi_tlv_parse()
280 const void **tb; in ath11k_wmi_tlv_parse_alloc() local
283 tb = kcalloc(WMI_TAG_MAX, sizeof(*tb), gfp); in ath11k_wmi_tlv_parse_alloc()
284 if (!tb) in ath11k_wmi_tlv_parse_alloc()
287 ret = ath11k_wmi_tlv_parse(ab, tb, ptr, len); in ath11k_wmi_tlv_parse_alloc()
289 kfree(tb); in ath11k_wmi_tlv_parse_alloc()
293 return tb; in ath11k_wmi_tlv_parse_alloc()
4131 const void **tb; in ath11k_wmi_obss_color_collision_event() local
4136 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_obss_color_collision_event()
4137 if (IS_ERR(tb)) { in ath11k_wmi_obss_color_collision_event()
4138 ret = PTR_ERR(tb); in ath11k_wmi_obss_color_collision_event()
4147 ev = tb[WMI_TAG_OBSS_COLOR_COLLISION_EVT]; in ath11k_wmi_obss_color_collision_event()
4182 kfree(tb); in ath11k_wmi_obss_color_collision_event()
5272 const void **tb; in ath11k_pull_vdev_start_resp_tlv() local
5276 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_vdev_start_resp_tlv()
5277 if (IS_ERR(tb)) { in ath11k_pull_vdev_start_resp_tlv()
5278 ret = PTR_ERR(tb); in ath11k_pull_vdev_start_resp_tlv()
5283 ev = tb[WMI_TAG_VDEV_START_RESPONSE_EVENT]; in ath11k_pull_vdev_start_resp_tlv()
5286 kfree(tb); in ath11k_pull_vdev_start_resp_tlv()
5302 kfree(tb); in ath11k_pull_vdev_start_resp_tlv()
5371 const void **tb; in ath11k_pull_reg_chan_list_update_ev() local
5383 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_reg_chan_list_update_ev()
5384 if (IS_ERR(tb)) { in ath11k_pull_reg_chan_list_update_ev()
5385 ret = PTR_ERR(tb); in ath11k_pull_reg_chan_list_update_ev()
5390 chan_list_event_hdr = tb[WMI_TAG_REG_CHAN_LIST_CC_EVENT]; in ath11k_pull_reg_chan_list_update_ev()
5393 kfree(tb); in ath11k_pull_reg_chan_list_update_ev()
5402 kfree(tb); in ath11k_pull_reg_chan_list_update_ev()
5456 kfree(tb); in ath11k_pull_reg_chan_list_update_ev()
5472 kfree(tb); in ath11k_pull_reg_chan_list_update_ev()
5484 kfree(tb); in ath11k_pull_reg_chan_list_update_ev()
5556 const void **tb; in ath11k_pull_reg_chan_list_ext_update_ev() local
5571 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_reg_chan_list_ext_update_ev()
5572 if (IS_ERR(tb)) { in ath11k_pull_reg_chan_list_ext_update_ev()
5573 ret = PTR_ERR(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5578 ev = tb[WMI_TAG_REG_CHAN_LIST_CC_EXT_EVENT]; in ath11k_pull_reg_chan_list_ext_update_ev()
5581 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5613 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5623 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5651 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5658 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5775 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5814 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5837 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5859 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5919 kfree(tb); in ath11k_pull_reg_chan_list_ext_update_ev()
5926 const void **tb; in ath11k_pull_peer_del_resp_ev() local
5930 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_peer_del_resp_ev()
5931 if (IS_ERR(tb)) { in ath11k_pull_peer_del_resp_ev()
5932 ret = PTR_ERR(tb); in ath11k_pull_peer_del_resp_ev()
5937 ev = tb[WMI_TAG_PEER_DELETE_RESP_EVENT]; in ath11k_pull_peer_del_resp_ev()
5940 kfree(tb); in ath11k_pull_peer_del_resp_ev()
5950 kfree(tb); in ath11k_pull_peer_del_resp_ev()
5958 const void **tb; in ath11k_pull_vdev_del_resp_ev() local
5962 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_vdev_del_resp_ev()
5963 if (IS_ERR(tb)) { in ath11k_pull_vdev_del_resp_ev()
5964 ret = PTR_ERR(tb); in ath11k_pull_vdev_del_resp_ev()
5969 ev = tb[WMI_TAG_VDEV_DELETE_RESP_EVENT]; in ath11k_pull_vdev_del_resp_ev()
5972 kfree(tb); in ath11k_pull_vdev_del_resp_ev()
5978 kfree(tb); in ath11k_pull_vdev_del_resp_ev()
5986 const void **tb; in ath11k_pull_bcn_tx_status_ev() local
5990 tb = ath11k_wmi_tlv_parse_alloc(ab, evt_buf, len, GFP_ATOMIC); in ath11k_pull_bcn_tx_status_ev()
5991 if (IS_ERR(tb)) { in ath11k_pull_bcn_tx_status_ev()
5992 ret = PTR_ERR(tb); in ath11k_pull_bcn_tx_status_ev()
5997 ev = tb[WMI_TAG_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath11k_pull_bcn_tx_status_ev()
6000 kfree(tb); in ath11k_pull_bcn_tx_status_ev()
6007 kfree(tb); in ath11k_pull_bcn_tx_status_ev()
6014 const void **tb; in ath11k_pull_vdev_stopped_param_tlv() local
6018 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_vdev_stopped_param_tlv()
6019 if (IS_ERR(tb)) { in ath11k_pull_vdev_stopped_param_tlv()
6020 ret = PTR_ERR(tb); in ath11k_pull_vdev_stopped_param_tlv()
6025 ev = tb[WMI_TAG_VDEV_STOPPED_EVENT]; in ath11k_pull_vdev_stopped_param_tlv()
6028 kfree(tb); in ath11k_pull_vdev_stopped_param_tlv()
6034 kfree(tb); in ath11k_pull_vdev_stopped_param_tlv()
6168 const void **tb; in ath11k_pull_mgmt_tx_compl_param_tlv() local
6172 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_mgmt_tx_compl_param_tlv()
6173 if (IS_ERR(tb)) { in ath11k_pull_mgmt_tx_compl_param_tlv()
6174 ret = PTR_ERR(tb); in ath11k_pull_mgmt_tx_compl_param_tlv()
6179 ev = tb[WMI_TAG_MGMT_TX_COMPL_EVENT]; in ath11k_pull_mgmt_tx_compl_param_tlv()
6182 kfree(tb); in ath11k_pull_mgmt_tx_compl_param_tlv()
6191 kfree(tb); in ath11k_pull_mgmt_tx_compl_param_tlv()
6344 const void **tb; in ath11k_pull_scan_ev() local
6348 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_scan_ev()
6349 if (IS_ERR(tb)) { in ath11k_pull_scan_ev()
6350 ret = PTR_ERR(tb); in ath11k_pull_scan_ev()
6355 ev = tb[WMI_TAG_SCAN_EVENT]; in ath11k_pull_scan_ev()
6358 kfree(tb); in ath11k_pull_scan_ev()
6370 kfree(tb); in ath11k_pull_scan_ev()
6377 const void **tb; in ath11k_pull_peer_sta_kickout_ev() local
6381 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_peer_sta_kickout_ev()
6382 if (IS_ERR(tb)) { in ath11k_pull_peer_sta_kickout_ev()
6383 ret = PTR_ERR(tb); in ath11k_pull_peer_sta_kickout_ev()
6388 ev = tb[WMI_TAG_PEER_STA_KICKOUT_EVENT]; in ath11k_pull_peer_sta_kickout_ev()
6391 kfree(tb); in ath11k_pull_peer_sta_kickout_ev()
6397 kfree(tb); in ath11k_pull_peer_sta_kickout_ev()
6404 const void **tb; in ath11k_pull_roam_ev() local
6408 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_roam_ev()
6409 if (IS_ERR(tb)) { in ath11k_pull_roam_ev()
6410 ret = PTR_ERR(tb); in ath11k_pull_roam_ev()
6415 ev = tb[WMI_TAG_ROAM_EVENT]; in ath11k_pull_roam_ev()
6418 kfree(tb); in ath11k_pull_roam_ev()
6426 kfree(tb); in ath11k_pull_roam_ev()
6452 const void **tb; in ath11k_pull_chan_info_ev() local
6456 tb = ath11k_wmi_tlv_parse_alloc(ab, evt_buf, len, GFP_ATOMIC); in ath11k_pull_chan_info_ev()
6457 if (IS_ERR(tb)) { in ath11k_pull_chan_info_ev()
6458 ret = PTR_ERR(tb); in ath11k_pull_chan_info_ev()
6463 ev = tb[WMI_TAG_CHAN_INFO_EVENT]; in ath11k_pull_chan_info_ev()
6466 kfree(tb); in ath11k_pull_chan_info_ev()
6483 kfree(tb); in ath11k_pull_chan_info_ev()
6491 const void **tb; in ath11k_pull_pdev_bss_chan_info_ev() local
6495 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_pdev_bss_chan_info_ev()
6496 if (IS_ERR(tb)) { in ath11k_pull_pdev_bss_chan_info_ev()
6497 ret = PTR_ERR(tb); in ath11k_pull_pdev_bss_chan_info_ev()
6502 ev = tb[WMI_TAG_PDEV_BSS_CHAN_INFO_EVENT]; in ath11k_pull_pdev_bss_chan_info_ev()
6505 kfree(tb); in ath11k_pull_pdev_bss_chan_info_ev()
6523 kfree(tb); in ath11k_pull_pdev_bss_chan_info_ev()
6531 const void **tb; in ath11k_pull_vdev_install_key_compl_ev() local
6535 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_vdev_install_key_compl_ev()
6536 if (IS_ERR(tb)) { in ath11k_pull_vdev_install_key_compl_ev()
6537 ret = PTR_ERR(tb); in ath11k_pull_vdev_install_key_compl_ev()
6542 ev = tb[WMI_TAG_VDEV_INSTALL_KEY_COMPLETE_EVENT]; in ath11k_pull_vdev_install_key_compl_ev()
6545 kfree(tb); in ath11k_pull_vdev_install_key_compl_ev()
6555 kfree(tb); in ath11k_pull_vdev_install_key_compl_ev()
6562 const void **tb; in ath11k_pull_peer_assoc_conf_ev() local
6566 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pull_peer_assoc_conf_ev()
6567 if (IS_ERR(tb)) { in ath11k_pull_peer_assoc_conf_ev()
6568 ret = PTR_ERR(tb); in ath11k_pull_peer_assoc_conf_ev()
6573 ev = tb[WMI_TAG_PEER_ASSOC_CONF_EVENT]; in ath11k_pull_peer_assoc_conf_ev()
6576 kfree(tb); in ath11k_pull_peer_assoc_conf_ev()
6583 kfree(tb); in ath11k_pull_peer_assoc_conf_ev()
7312 const void **tb; in ath11k_reg_11d_new_cc_event() local
7315 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_reg_11d_new_cc_event()
7316 if (IS_ERR(tb)) { in ath11k_reg_11d_new_cc_event()
7317 ret = PTR_ERR(tb); in ath11k_reg_11d_new_cc_event()
7322 ev = tb[WMI_TAG_11D_NEW_COUNTRY_EVENT]; in ath11k_reg_11d_new_cc_event()
7324 kfree(tb); in ath11k_reg_11d_new_cc_event()
7337 kfree(tb); in ath11k_reg_11d_new_cc_event()
7746 const void **tb; in ath11k_wmi_event_peer_sta_ps_state_chg() local
7750 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_event_peer_sta_ps_state_chg()
7751 if (IS_ERR(tb)) { in ath11k_wmi_event_peer_sta_ps_state_chg()
7752 ret = PTR_ERR(tb); in ath11k_wmi_event_peer_sta_ps_state_chg()
7757 ev = tb[WMI_TAG_PEER_STA_PS_STATECHANGE_EVENT]; in ath11k_wmi_event_peer_sta_ps_state_chg()
7760 kfree(tb); in ath11k_wmi_event_peer_sta_ps_state_chg()
7836 kfree(tb); in ath11k_wmi_event_peer_sta_ps_state_chg()
8565 const void **tb; in ath11k_pdev_ctl_failsafe_check_event() local
8569 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_pdev_ctl_failsafe_check_event()
8570 if (IS_ERR(tb)) { in ath11k_pdev_ctl_failsafe_check_event()
8571 ret = PTR_ERR(tb); in ath11k_pdev_ctl_failsafe_check_event()
8576 ev = tb[WMI_TAG_PDEV_CTL_FAILSAFE_CHECK_EVENT]; in ath11k_pdev_ctl_failsafe_check_event()
8579 kfree(tb); in ath11k_pdev_ctl_failsafe_check_event()
8594 kfree(tb); in ath11k_pdev_ctl_failsafe_check_event()
8629 const void **tb; in ath11k_wmi_pdev_csa_switch_count_status_event() local
8634 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_pdev_csa_switch_count_status_event()
8635 if (IS_ERR(tb)) { in ath11k_wmi_pdev_csa_switch_count_status_event()
8636 ret = PTR_ERR(tb); in ath11k_wmi_pdev_csa_switch_count_status_event()
8641 ev = tb[WMI_TAG_PDEV_CSA_SWITCH_COUNT_STATUS_EVENT]; in ath11k_wmi_pdev_csa_switch_count_status_event()
8642 vdev_ids = tb[WMI_TAG_ARRAY_UINT32]; in ath11k_wmi_pdev_csa_switch_count_status_event()
8646 kfree(tb); in ath11k_wmi_pdev_csa_switch_count_status_event()
8657 kfree(tb); in ath11k_wmi_pdev_csa_switch_count_status_event()
8663 const void **tb; in ath11k_wmi_pdev_dfs_radar_detected_event() local
8668 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_pdev_dfs_radar_detected_event()
8669 if (IS_ERR(tb)) { in ath11k_wmi_pdev_dfs_radar_detected_event()
8670 ret = PTR_ERR(tb); in ath11k_wmi_pdev_dfs_radar_detected_event()
8675 ev = tb[WMI_TAG_PDEV_DFS_RADAR_DETECTION_EVENT]; in ath11k_wmi_pdev_dfs_radar_detected_event()
8679 kfree(tb); in ath11k_wmi_pdev_dfs_radar_detected_event()
8706 kfree(tb); in ath11k_wmi_pdev_dfs_radar_detected_event()
8714 const void **tb; in ath11k_wmi_pdev_temperature_event() local
8718 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_pdev_temperature_event()
8719 if (IS_ERR(tb)) { in ath11k_wmi_pdev_temperature_event()
8720 ret = PTR_ERR(tb); in ath11k_wmi_pdev_temperature_event()
8725 ev = tb[WMI_TAG_PDEV_TEMPERATURE_EVENT]; in ath11k_wmi_pdev_temperature_event()
8728 kfree(tb); in ath11k_wmi_pdev_temperature_event()
8738 kfree(tb); in ath11k_wmi_pdev_temperature_event()
8744 kfree(tb); in ath11k_wmi_pdev_temperature_event()
8750 const void **tb; in ath11k_fils_discovery_event() local
8754 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_fils_discovery_event()
8755 if (IS_ERR(tb)) { in ath11k_fils_discovery_event()
8756 ret = PTR_ERR(tb); in ath11k_fils_discovery_event()
8765 ev = tb[WMI_TAG_HOST_SWFDA_EVENT]; in ath11k_fils_discovery_event()
8768 kfree(tb); in ath11k_fils_discovery_event()
8776 kfree(tb); in ath11k_fils_discovery_event()
8782 const void **tb; in ath11k_probe_resp_tx_status_event() local
8786 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_probe_resp_tx_status_event()
8787 if (IS_ERR(tb)) { in ath11k_probe_resp_tx_status_event()
8788 ret = PTR_ERR(tb); in ath11k_probe_resp_tx_status_event()
8797 ev = tb[WMI_TAG_OFFLOAD_PRB_RSP_TX_STATUS_EVENT]; in ath11k_probe_resp_tx_status_event()
8801 kfree(tb); in ath11k_probe_resp_tx_status_event()
8810 kfree(tb); in ath11k_probe_resp_tx_status_event()
8912 const void **tb; in ath11k_wmi_twt_add_dialog_event() local
8916 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_twt_add_dialog_event()
8917 if (IS_ERR(tb)) { in ath11k_wmi_twt_add_dialog_event()
8918 ret = PTR_ERR(tb); in ath11k_wmi_twt_add_dialog_event()
8927 ev = tb[WMI_TAG_TWT_ADD_DIALOG_COMPLETE_EVENT]; in ath11k_wmi_twt_add_dialog_event()
8940 kfree(tb); in ath11k_wmi_twt_add_dialog_event()
8946 const void **tb; in ath11k_wmi_gtk_offload_status_event() local
8953 tb = ath11k_wmi_tlv_parse_alloc(ab, skb->data, skb->len, GFP_ATOMIC); in ath11k_wmi_gtk_offload_status_event()
8954 if (IS_ERR(tb)) { in ath11k_wmi_gtk_offload_status_event()
8955 ret = PTR_ERR(tb); in ath11k_wmi_gtk_offload_status_event()
8960 ev = tb[WMI_TAG_GTK_OFFLOAD_STATUS_EVENT]; in ath11k_wmi_gtk_offload_status_event()
8963 kfree(tb); in ath11k_wmi_gtk_offload_status_event()
8971 kfree(tb); in ath11k_wmi_gtk_offload_status_event()
8990 kfree(tb); in ath11k_wmi_gtk_offload_status_event()