Lines Matching refs:ev
182 const struct wmi_tlv_bcn_tx_status_ev *ev; in ath10k_wmi_tlv_event_bcn_tx_status() local
194 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
195 if (!ev) { in ath10k_wmi_tlv_event_bcn_tx_status()
200 tx_status = __le32_to_cpu(ev->tx_status); in ath10k_wmi_tlv_event_bcn_tx_status()
201 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_bcn_tx_status()
229 const struct wmi_tlv_diag_data_ev *ev; in ath10k_wmi_tlv_event_diag_data() local
241 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
243 if (!ev || !data) { in ath10k_wmi_tlv_event_diag_data()
248 num_items = __le32_to_cpu(ev->num_items); in ath10k_wmi_tlv_event_diag_data()
320 const struct wmi_tlv_p2p_noa_ev *ev; in ath10k_wmi_tlv_event_p2p_noa() local
331 ev = tb[WMI_TLV_TAG_STRUCT_P2P_NOA_EVENT]; in ath10k_wmi_tlv_event_p2p_noa()
334 if (!ev || !noa) { in ath10k_wmi_tlv_event_p2p_noa()
339 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_p2p_noa()
354 const struct wmi_tlv_tx_pause_ev *ev; in ath10k_wmi_tlv_event_tx_pause() local
365 ev = tb[WMI_TLV_TAG_STRUCT_TX_PAUSE_EVENT]; in ath10k_wmi_tlv_event_tx_pause()
366 if (!ev) { in ath10k_wmi_tlv_event_tx_pause()
371 pause_id = __le32_to_cpu(ev->pause_id); in ath10k_wmi_tlv_event_tx_pause()
372 action = __le32_to_cpu(ev->action); in ath10k_wmi_tlv_event_tx_pause()
373 vdev_map = __le32_to_cpu(ev->vdev_map); in ath10k_wmi_tlv_event_tx_pause()
374 peer_id = __le32_to_cpu(ev->peer_id); in ath10k_wmi_tlv_event_tx_pause()
375 tid_map = __le32_to_cpu(ev->tid_map); in ath10k_wmi_tlv_event_tx_pause()
569 const struct wmi_scan_event *ev; in ath10k_wmi_tlv_op_pull_scan_ev() local
579 ev = tb[WMI_TLV_TAG_STRUCT_SCAN_EVENT]; in ath10k_wmi_tlv_op_pull_scan_ev()
580 if (!ev) { in ath10k_wmi_tlv_op_pull_scan_ev()
585 arg->event_type = ev->event_type; in ath10k_wmi_tlv_op_pull_scan_ev()
586 arg->reason = ev->reason; in ath10k_wmi_tlv_op_pull_scan_ev()
587 arg->channel_freq = ev->channel_freq; in ath10k_wmi_tlv_op_pull_scan_ev()
588 arg->scan_req_id = ev->scan_req_id; in ath10k_wmi_tlv_op_pull_scan_ev()
589 arg->scan_id = ev->scan_id; in ath10k_wmi_tlv_op_pull_scan_ev()
590 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_scan_ev()
601 const struct wmi_tlv_mgmt_rx_ev *ev; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev() local
613 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_RX_HDR]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
616 if (!ev || !frame) { in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
621 arg->channel = ev->channel; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
622 arg->buf_len = ev->buf_len; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
623 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
624 arg->snr = ev->snr; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
625 arg->phy_mode = ev->phy_mode; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
626 arg->rate = ev->rate; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
650 const struct wmi_chan_info_event *ev; in ath10k_wmi_tlv_op_pull_ch_info_ev() local
660 ev = tb[WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_ch_info_ev()
661 if (!ev) { in ath10k_wmi_tlv_op_pull_ch_info_ev()
666 arg->err_code = ev->err_code; in ath10k_wmi_tlv_op_pull_ch_info_ev()
667 arg->freq = ev->freq; in ath10k_wmi_tlv_op_pull_ch_info_ev()
668 arg->cmd_flags = ev->cmd_flags; in ath10k_wmi_tlv_op_pull_ch_info_ev()
669 arg->noise_floor = ev->noise_floor; in ath10k_wmi_tlv_op_pull_ch_info_ev()
670 arg->rx_clear_count = ev->rx_clear_count; in ath10k_wmi_tlv_op_pull_ch_info_ev()
671 arg->cycle_count = ev->cycle_count; in ath10k_wmi_tlv_op_pull_ch_info_ev()
682 const struct wmi_vdev_start_response_event *ev; in ath10k_wmi_tlv_op_pull_vdev_start_ev() local
692 ev = tb[WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT]; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
693 if (!ev) { in ath10k_wmi_tlv_op_pull_vdev_start_ev()
698 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
699 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
700 arg->req_id = ev->req_id; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
701 arg->resp_type = ev->resp_type; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
702 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
713 const struct wmi_peer_sta_kickout_event *ev; in ath10k_wmi_tlv_op_pull_peer_kick_ev() local
723 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT]; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
724 if (!ev) { in ath10k_wmi_tlv_op_pull_peer_kick_ev()
729 arg->mac_addr = ev->peer_macaddr.addr; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
736 const struct wmi_host_swba_event *ev; member
798 swba->ev = ptr; in ath10k_wmi_tlv_swba_parse()
839 if (!swba.ev) in ath10k_wmi_tlv_op_pull_swba_ev()
842 arg->vdev_map = swba.ev->vdev_map; in ath10k_wmi_tlv_op_pull_swba_ev()
860 const struct wmi_tlv_phyerr_ev *ev; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr() local
871 ev = tb[WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR]; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
874 if (!ev || !phyerrs) { in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
879 arg->num_phyerrs = __le32_to_cpu(ev->num_phyerrs); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
880 arg->tsf_l32 = __le32_to_cpu(ev->tsf_l32); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
881 arg->tsf_u32 = __le32_to_cpu(ev->tsf_u32); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
882 arg->buf_len = __le32_to_cpu(ev->buf_len); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
926 const struct wmi_tlv_svc_rdy_ev *ev; in ath10k_wmi_tlv_op_pull_svc_rdy_ev() local
938 ev = tb[WMI_TLV_TAG_STRUCT_SERVICE_READY_EVENT]; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
943 if (!ev || !reg || !svc_bmap || !mem_reqs) { in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
953 __le32_to_cpu(ev->abi.abi_ver0), WMI_TLV_ABI_VER0, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
954 __le32_to_cpu(ev->abi.abi_ver_ns0), WMI_TLV_ABI_VER_NS0, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
955 __le32_to_cpu(ev->abi.abi_ver_ns1), WMI_TLV_ABI_VER_NS1, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
956 __le32_to_cpu(ev->abi.abi_ver_ns2), WMI_TLV_ABI_VER_NS2, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
957 __le32_to_cpu(ev->abi.abi_ver_ns3), WMI_TLV_ABI_VER_NS3); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
959 if (__le32_to_cpu(ev->abi.abi_ver0) != WMI_TLV_ABI_VER0 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
960 __le32_to_cpu(ev->abi.abi_ver_ns0) != WMI_TLV_ABI_VER_NS0 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
961 __le32_to_cpu(ev->abi.abi_ver_ns1) != WMI_TLV_ABI_VER_NS1 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
962 __le32_to_cpu(ev->abi.abi_ver_ns2) != WMI_TLV_ABI_VER_NS2 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
963 __le32_to_cpu(ev->abi.abi_ver_ns3) != WMI_TLV_ABI_VER_NS3) { in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
968 arg->min_tx_power = ev->hw_min_tx_power; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
969 arg->max_tx_power = ev->hw_max_tx_power; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
970 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
971 arg->vht_cap = ev->vht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
972 arg->sw_ver0 = ev->abi.abi_ver0; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
973 arg->sw_ver1 = ev->abi.abi_ver1; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
974 arg->fw_build = ev->fw_build_vers; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
975 arg->phy_capab = ev->phy_capability; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
976 arg->num_rf_chains = ev->num_rf_chains; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
978 arg->num_mem_reqs = ev->num_mem_reqs; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
999 const struct wmi_tlv_rdy_ev *ev; in ath10k_wmi_tlv_op_pull_rdy_ev() local
1009 ev = tb[WMI_TLV_TAG_STRUCT_READY_EVENT]; in ath10k_wmi_tlv_op_pull_rdy_ev()
1010 if (!ev) { in ath10k_wmi_tlv_op_pull_rdy_ev()
1015 arg->sw_version = ev->abi.abi_ver0; in ath10k_wmi_tlv_op_pull_rdy_ev()
1016 arg->abi_version = ev->abi.abi_ver1; in ath10k_wmi_tlv_op_pull_rdy_ev()
1017 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_rdy_ev()
1018 arg->mac_addr = ev->mac_addr.addr; in ath10k_wmi_tlv_op_pull_rdy_ev()
1065 const struct wmi_tlv_stats_ev *ev; in ath10k_wmi_tlv_op_pull_fw_stats() local
1083 ev = tb[WMI_TLV_TAG_STRUCT_STATS_EVENT]; in ath10k_wmi_tlv_op_pull_fw_stats()
1086 if (!ev || !data) { in ath10k_wmi_tlv_op_pull_fw_stats()
1092 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1093 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1094 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1095 num_bcnflt_stats = __le32_to_cpu(ev->num_bcnflt_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1096 num_chan_stats = __le32_to_cpu(ev->num_chan_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1178 const struct wmi_tlv_roam_ev *ev; in ath10k_wmi_tlv_op_pull_roam_ev() local
1188 ev = tb[WMI_TLV_TAG_STRUCT_ROAM_EVENT]; in ath10k_wmi_tlv_op_pull_roam_ev()
1189 if (!ev) { in ath10k_wmi_tlv_op_pull_roam_ev()
1194 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_roam_ev()
1195 arg->reason = ev->reason; in ath10k_wmi_tlv_op_pull_roam_ev()
1196 arg->rssi = ev->rssi; in ath10k_wmi_tlv_op_pull_roam_ev()
1207 const struct wmi_tlv_wow_event_info *ev; in ath10k_wmi_tlv_op_pull_wow_ev() local
1217 ev = tb[WMI_TLV_TAG_STRUCT_WOW_EVENT_INFO]; in ath10k_wmi_tlv_op_pull_wow_ev()
1218 if (!ev) { in ath10k_wmi_tlv_op_pull_wow_ev()
1223 arg->vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_op_pull_wow_ev()
1224 arg->flag = __le32_to_cpu(ev->flag); in ath10k_wmi_tlv_op_pull_wow_ev()
1225 arg->wake_reason = __le32_to_cpu(ev->wake_reason); in ath10k_wmi_tlv_op_pull_wow_ev()
1226 arg->data_len = __le32_to_cpu(ev->data_len); in ath10k_wmi_tlv_op_pull_wow_ev()
1237 const struct wmi_echo_event *ev; in ath10k_wmi_tlv_op_pull_echo_ev() local
1247 ev = tb[WMI_TLV_TAG_STRUCT_ECHO_EVENT]; in ath10k_wmi_tlv_op_pull_echo_ev()
1248 if (!ev) { in ath10k_wmi_tlv_op_pull_echo_ev()
1253 arg->value = ev->value; in ath10k_wmi_tlv_op_pull_echo_ev()