Lines Matching refs:ev
170 const struct wmi_tlv_bcn_tx_status_ev *ev; in ath10k_wmi_tlv_event_bcn_tx_status() local
181 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
182 if (!ev) { in ath10k_wmi_tlv_event_bcn_tx_status()
187 tx_status = __le32_to_cpu(ev->tx_status); in ath10k_wmi_tlv_event_bcn_tx_status()
188 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_bcn_tx_status()
212 const struct wmi_tlv_diag_data_ev *ev; in ath10k_wmi_tlv_event_diag_data() local
224 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
226 if (!ev || !data) { in ath10k_wmi_tlv_event_diag_data()
231 num_items = __le32_to_cpu(ev->num_items); in ath10k_wmi_tlv_event_diag_data()
433 const struct wmi_scan_event *ev; in ath10k_wmi_tlv_op_pull_scan_ev() local
443 ev = tb[WMI_TLV_TAG_STRUCT_SCAN_EVENT]; in ath10k_wmi_tlv_op_pull_scan_ev()
444 if (!ev) { in ath10k_wmi_tlv_op_pull_scan_ev()
449 arg->event_type = ev->event_type; in ath10k_wmi_tlv_op_pull_scan_ev()
450 arg->reason = ev->reason; in ath10k_wmi_tlv_op_pull_scan_ev()
451 arg->channel_freq = ev->channel_freq; in ath10k_wmi_tlv_op_pull_scan_ev()
452 arg->scan_req_id = ev->scan_req_id; in ath10k_wmi_tlv_op_pull_scan_ev()
453 arg->scan_id = ev->scan_id; in ath10k_wmi_tlv_op_pull_scan_ev()
454 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_scan_ev()
465 const struct wmi_tlv_mgmt_rx_ev *ev; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev() local
477 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_RX_HDR]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
480 if (!ev || !frame) { in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
485 arg->channel = ev->channel; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
486 arg->buf_len = ev->buf_len; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
487 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
488 arg->snr = ev->snr; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
489 arg->phy_mode = ev->phy_mode; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
490 arg->rate = ev->rate; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
514 const struct wmi_chan_info_event *ev; in ath10k_wmi_tlv_op_pull_ch_info_ev() local
524 ev = tb[WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_ch_info_ev()
525 if (!ev) { in ath10k_wmi_tlv_op_pull_ch_info_ev()
530 arg->err_code = ev->err_code; in ath10k_wmi_tlv_op_pull_ch_info_ev()
531 arg->freq = ev->freq; in ath10k_wmi_tlv_op_pull_ch_info_ev()
532 arg->cmd_flags = ev->cmd_flags; in ath10k_wmi_tlv_op_pull_ch_info_ev()
533 arg->noise_floor = ev->noise_floor; in ath10k_wmi_tlv_op_pull_ch_info_ev()
534 arg->rx_clear_count = ev->rx_clear_count; in ath10k_wmi_tlv_op_pull_ch_info_ev()
535 arg->cycle_count = ev->cycle_count; in ath10k_wmi_tlv_op_pull_ch_info_ev()
546 const struct wmi_vdev_start_response_event *ev; in ath10k_wmi_tlv_op_pull_vdev_start_ev() local
556 ev = tb[WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT]; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
557 if (!ev) { in ath10k_wmi_tlv_op_pull_vdev_start_ev()
562 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
563 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
564 arg->req_id = ev->req_id; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
565 arg->resp_type = ev->resp_type; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
566 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
577 const struct wmi_peer_sta_kickout_event *ev; in ath10k_wmi_tlv_op_pull_peer_kick_ev() local
587 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT]; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
588 if (!ev) { in ath10k_wmi_tlv_op_pull_peer_kick_ev()
593 arg->mac_addr = ev->peer_macaddr.addr; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
600 const struct wmi_host_swba_event *ev; member
646 swba->ev = ptr; in ath10k_wmi_tlv_swba_parse()
687 if (!swba.ev) in ath10k_wmi_tlv_op_pull_swba_ev()
690 arg->vdev_map = swba.ev->vdev_map; in ath10k_wmi_tlv_op_pull_swba_ev()
708 const struct wmi_tlv_phyerr_ev *ev; in ath10k_wmi_tlv_op_pull_phyerr_ev() local
719 ev = tb[WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR]; in ath10k_wmi_tlv_op_pull_phyerr_ev()
722 if (!ev || !phyerrs) { in ath10k_wmi_tlv_op_pull_phyerr_ev()
727 arg->num_phyerrs = ev->num_phyerrs; in ath10k_wmi_tlv_op_pull_phyerr_ev()
728 arg->tsf_l32 = ev->tsf_l32; in ath10k_wmi_tlv_op_pull_phyerr_ev()
729 arg->tsf_u32 = ev->tsf_u32; in ath10k_wmi_tlv_op_pull_phyerr_ev()
730 arg->buf_len = ev->buf_len; in ath10k_wmi_tlv_op_pull_phyerr_ev()
774 const struct wmi_tlv_svc_rdy_ev *ev; in ath10k_wmi_tlv_op_pull_svc_rdy_ev() local
786 ev = tb[WMI_TLV_TAG_STRUCT_SERVICE_READY_EVENT]; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
791 if (!ev || !reg || !svc_bmap || !mem_reqs) { in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
801 __le32_to_cpu(ev->abi.abi_ver0), WMI_TLV_ABI_VER0, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
802 __le32_to_cpu(ev->abi.abi_ver_ns0), WMI_TLV_ABI_VER_NS0, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
803 __le32_to_cpu(ev->abi.abi_ver_ns1), WMI_TLV_ABI_VER_NS1, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
804 __le32_to_cpu(ev->abi.abi_ver_ns2), WMI_TLV_ABI_VER_NS2, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
805 __le32_to_cpu(ev->abi.abi_ver_ns3), WMI_TLV_ABI_VER_NS3); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
807 if (__le32_to_cpu(ev->abi.abi_ver0) != WMI_TLV_ABI_VER0 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
808 __le32_to_cpu(ev->abi.abi_ver_ns0) != WMI_TLV_ABI_VER_NS0 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
809 __le32_to_cpu(ev->abi.abi_ver_ns1) != WMI_TLV_ABI_VER_NS1 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
810 __le32_to_cpu(ev->abi.abi_ver_ns2) != WMI_TLV_ABI_VER_NS2 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
811 __le32_to_cpu(ev->abi.abi_ver_ns3) != WMI_TLV_ABI_VER_NS3) { in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
816 arg->min_tx_power = ev->hw_min_tx_power; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
817 arg->max_tx_power = ev->hw_max_tx_power; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
818 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
819 arg->vht_cap = ev->vht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
820 arg->sw_ver0 = ev->abi.abi_ver0; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
821 arg->sw_ver1 = ev->abi.abi_ver1; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
822 arg->fw_build = ev->fw_build_vers; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
823 arg->phy_capab = ev->phy_capability; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
824 arg->num_rf_chains = ev->num_rf_chains; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
826 arg->num_mem_reqs = ev->num_mem_reqs; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
847 const struct wmi_tlv_rdy_ev *ev; in ath10k_wmi_tlv_op_pull_rdy_ev() local
857 ev = tb[WMI_TLV_TAG_STRUCT_READY_EVENT]; in ath10k_wmi_tlv_op_pull_rdy_ev()
858 if (!ev) { in ath10k_wmi_tlv_op_pull_rdy_ev()
863 arg->sw_version = ev->abi.abi_ver0; in ath10k_wmi_tlv_op_pull_rdy_ev()
864 arg->abi_version = ev->abi.abi_ver1; in ath10k_wmi_tlv_op_pull_rdy_ev()
865 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_rdy_ev()
866 arg->mac_addr = ev->mac_addr.addr; in ath10k_wmi_tlv_op_pull_rdy_ev()
913 const struct wmi_tlv_stats_ev *ev; in ath10k_wmi_tlv_op_pull_fw_stats() local
931 ev = tb[WMI_TLV_TAG_STRUCT_STATS_EVENT]; in ath10k_wmi_tlv_op_pull_fw_stats()
934 if (!ev || !data) { in ath10k_wmi_tlv_op_pull_fw_stats()
940 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
941 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
942 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
943 num_bcnflt_stats = __le32_to_cpu(ev->num_bcnflt_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
944 num_chan_stats = __le32_to_cpu(ev->num_chan_stats); in ath10k_wmi_tlv_op_pull_fw_stats()