Lines Matching refs:ev
172 const struct wmi_tlv_bcn_tx_status_ev *ev; in ath10k_wmi_tlv_event_bcn_tx_status() local
184 ev = tb[WMI_TLV_TAG_STRUCT_OFFLOAD_BCN_TX_STATUS_EVENT]; in ath10k_wmi_tlv_event_bcn_tx_status()
185 if (!ev) { in ath10k_wmi_tlv_event_bcn_tx_status()
190 tx_status = __le32_to_cpu(ev->tx_status); in ath10k_wmi_tlv_event_bcn_tx_status()
191 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_bcn_tx_status()
265 const struct wmi_tlv_peer_stats_info_ev *ev; in ath10k_wmi_tlv_op_pull_peer_stats_info() local
277 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STATS_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_peer_stats_info()
280 if (!ev || !data) { in ath10k_wmi_tlv_op_pull_peer_stats_info()
285 num_peer_stats = __le32_to_cpu(ev->num_peers); in ath10k_wmi_tlv_op_pull_peer_stats_info()
289 __le32_to_cpu(ev->vdev_id), in ath10k_wmi_tlv_op_pull_peer_stats_info()
291 __le32_to_cpu(ev->more_data)); in ath10k_wmi_tlv_op_pull_peer_stats_info()
314 const struct wmi_tlv_diag_data_ev *ev; in ath10k_wmi_tlv_event_diag_data() local
326 ev = tb[WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT]; in ath10k_wmi_tlv_event_diag_data()
328 if (!ev || !data) { in ath10k_wmi_tlv_event_diag_data()
333 num_items = __le32_to_cpu(ev->num_items); in ath10k_wmi_tlv_event_diag_data()
405 const struct wmi_tlv_p2p_noa_ev *ev; in ath10k_wmi_tlv_event_p2p_noa() local
416 ev = tb[WMI_TLV_TAG_STRUCT_P2P_NOA_EVENT]; in ath10k_wmi_tlv_event_p2p_noa()
419 if (!ev || !noa) { in ath10k_wmi_tlv_event_p2p_noa()
424 vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_event_p2p_noa()
439 const struct wmi_tlv_tx_pause_ev *ev; in ath10k_wmi_tlv_event_tx_pause() local
450 ev = tb[WMI_TLV_TAG_STRUCT_TX_PAUSE_EVENT]; in ath10k_wmi_tlv_event_tx_pause()
451 if (!ev) { in ath10k_wmi_tlv_event_tx_pause()
456 pause_id = __le32_to_cpu(ev->pause_id); in ath10k_wmi_tlv_event_tx_pause()
457 action = __le32_to_cpu(ev->action); in ath10k_wmi_tlv_event_tx_pause()
458 vdev_map = __le32_to_cpu(ev->vdev_map); in ath10k_wmi_tlv_event_tx_pause()
459 peer_id = __le32_to_cpu(ev->peer_id); in ath10k_wmi_tlv_event_tx_pause()
460 tid_map = __le32_to_cpu(ev->tid_map); in ath10k_wmi_tlv_event_tx_pause()
503 const struct wmi_tlv_rfkill_state_change_ev *ev; in ath10k_wmi_tlv_event_rfkill_state_change() local
517 ev = tb[WMI_TLV_TAG_STRUCT_RFKILL_EVENT]; in ath10k_wmi_tlv_event_rfkill_state_change()
518 if (!ev) { in ath10k_wmi_tlv_event_rfkill_state_change()
525 __le32_to_cpu(ev->gpio_pin_num), in ath10k_wmi_tlv_event_rfkill_state_change()
526 __le32_to_cpu(ev->int_type), in ath10k_wmi_tlv_event_rfkill_state_change()
527 __le32_to_cpu(ev->radio_state)); in ath10k_wmi_tlv_event_rfkill_state_change()
529 radio = (__le32_to_cpu(ev->radio_state) == WMI_TLV_RFKILL_RADIO_STATE_ON); in ath10k_wmi_tlv_event_rfkill_state_change()
546 const struct wmi_tlv_pdev_temperature_event *ev; in ath10k_wmi_tlv_event_temperature() local
548 ev = (struct wmi_tlv_pdev_temperature_event *)skb->data; in ath10k_wmi_tlv_event_temperature()
549 if (WARN_ON(skb->len < sizeof(*ev))) in ath10k_wmi_tlv_event_temperature()
552 ath10k_thermal_event_temperature(ar, __le32_to_cpu(ev->temperature)); in ath10k_wmi_tlv_event_temperature()
559 const struct wmi_tlv_tdls_peer_event *ev; in ath10k_wmi_event_tdls_peer() local
568 ev = tb[WMI_TLV_TAG_STRUCT_TDLS_PEER_EVENT]; in ath10k_wmi_event_tdls_peer()
569 if (!ev) { in ath10k_wmi_event_tdls_peer()
575 switch (__le32_to_cpu(ev->peer_reason)) { in ath10k_wmi_event_tdls_peer()
581 ev->peer_macaddr.addr, in ath10k_wmi_event_tdls_peer()
587 arvif = ath10k_get_arvif(ar, __le32_to_cpu(ev->vdev_id)); in ath10k_wmi_event_tdls_peer()
804 const struct wmi_scan_event *ev; in ath10k_wmi_tlv_op_pull_scan_ev() local
814 ev = tb[WMI_TLV_TAG_STRUCT_SCAN_EVENT]; in ath10k_wmi_tlv_op_pull_scan_ev()
815 if (!ev) { in ath10k_wmi_tlv_op_pull_scan_ev()
820 arg->event_type = ev->event_type; in ath10k_wmi_tlv_op_pull_scan_ev()
821 arg->reason = ev->reason; in ath10k_wmi_tlv_op_pull_scan_ev()
822 arg->channel_freq = ev->channel_freq; in ath10k_wmi_tlv_op_pull_scan_ev()
823 arg->scan_req_id = ev->scan_req_id; in ath10k_wmi_tlv_op_pull_scan_ev()
824 arg->scan_id = ev->scan_id; in ath10k_wmi_tlv_op_pull_scan_ev()
825 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_scan_ev()
836 const struct wmi_tlv_mgmt_tx_compl_ev *ev; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev() local
846 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_TX_COMPL_EVENT]; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
848 arg->desc_id = ev->desc_id; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
849 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
850 arg->pdev_id = ev->pdev_id; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
851 arg->ppdu_id = ev->ppdu_id; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
854 arg->ack_rssi = ev->ack_rssi; in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
938 const struct wmi_tlv_mgmt_rx_ev *ev; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev() local
950 ev = tb[WMI_TLV_TAG_STRUCT_MGMT_RX_HDR]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
953 if (!ev || !frame) { in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
958 arg->channel = ev->channel; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
959 arg->buf_len = ev->buf_len; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
960 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
961 arg->snr = ev->snr; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
962 arg->phy_mode = ev->phy_mode; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
963 arg->rate = ev->rate; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
965 for (i = 0; i < ARRAY_SIZE(ev->rssi); i++) in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
966 arg->rssi[i] = ev->rssi[i]; in ath10k_wmi_tlv_op_pull_mgmt_rx_ev()
990 const struct wmi_tlv_chan_info_event *ev; in ath10k_wmi_tlv_op_pull_ch_info_ev() local
1000 ev = tb[WMI_TLV_TAG_STRUCT_CHAN_INFO_EVENT]; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1001 if (!ev) { in ath10k_wmi_tlv_op_pull_ch_info_ev()
1006 arg->err_code = ev->err_code; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1007 arg->freq = ev->freq; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1008 arg->cmd_flags = ev->cmd_flags; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1009 arg->noise_floor = ev->noise_floor; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1010 arg->rx_clear_count = ev->rx_clear_count; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1011 arg->cycle_count = ev->cycle_count; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1014 arg->mac_clk_mhz = ev->mac_clk_mhz; in ath10k_wmi_tlv_op_pull_ch_info_ev()
1025 const struct wmi_vdev_start_response_event *ev; in ath10k_wmi_tlv_op_pull_vdev_start_ev() local
1035 ev = tb[WMI_TLV_TAG_STRUCT_VDEV_START_RESPONSE_EVENT]; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1036 if (!ev) { in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1041 skb_pull(skb, sizeof(*ev)); in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1042 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1043 arg->req_id = ev->req_id; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1044 arg->resp_type = ev->resp_type; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1045 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_vdev_start_ev()
1056 const struct wmi_peer_sta_kickout_event *ev; in ath10k_wmi_tlv_op_pull_peer_kick_ev() local
1066 ev = tb[WMI_TLV_TAG_STRUCT_PEER_STA_KICKOUT_EVENT]; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1067 if (!ev) { in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1072 arg->mac_addr = ev->peer_macaddr.addr; in ath10k_wmi_tlv_op_pull_peer_kick_ev()
1079 const struct wmi_host_swba_event *ev; member
1141 swba->ev = ptr; in ath10k_wmi_tlv_swba_parse()
1182 if (!swba.ev) in ath10k_wmi_tlv_op_pull_swba_ev()
1185 arg->vdev_map = swba.ev->vdev_map; in ath10k_wmi_tlv_op_pull_swba_ev()
1203 const struct wmi_tlv_phyerr_ev *ev; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr() local
1214 ev = tb[WMI_TLV_TAG_STRUCT_COMB_PHYERR_RX_HDR]; in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1217 if (!ev || !phyerrs) { in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1222 arg->num_phyerrs = __le32_to_cpu(ev->num_phyerrs); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1223 arg->tsf_l32 = __le32_to_cpu(ev->tsf_l32); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1224 arg->tsf_u32 = __le32_to_cpu(ev->tsf_u32); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1225 arg->buf_len = __le32_to_cpu(ev->buf_len); in ath10k_wmi_tlv_op_pull_phyerr_ev_hdr()
1265 const struct wmi_tlv_svc_rdy_ev *ev; member
1279 svc_rdy->ev = ptr; in ath10k_wmi_tlv_svc_rdy_parse()
1306 const struct wmi_tlv_svc_rdy_ev *ev; in ath10k_wmi_tlv_op_pull_svc_rdy_ev() local
1319 ev = svc_rdy.ev; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1324 if (!ev || !reg || !svc_bmap || !mem_reqs) in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1332 __le32_to_cpu(ev->abi.abi_ver0), WMI_TLV_ABI_VER0, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1333 __le32_to_cpu(ev->abi.abi_ver_ns0), WMI_TLV_ABI_VER_NS0, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1334 __le32_to_cpu(ev->abi.abi_ver_ns1), WMI_TLV_ABI_VER_NS1, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1335 __le32_to_cpu(ev->abi.abi_ver_ns2), WMI_TLV_ABI_VER_NS2, in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1336 __le32_to_cpu(ev->abi.abi_ver_ns3), WMI_TLV_ABI_VER_NS3); in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1338 if (__le32_to_cpu(ev->abi.abi_ver0) != WMI_TLV_ABI_VER0 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1339 __le32_to_cpu(ev->abi.abi_ver_ns0) != WMI_TLV_ABI_VER_NS0 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1340 __le32_to_cpu(ev->abi.abi_ver_ns1) != WMI_TLV_ABI_VER_NS1 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1341 __le32_to_cpu(ev->abi.abi_ver_ns2) != WMI_TLV_ABI_VER_NS2 || in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1342 __le32_to_cpu(ev->abi.abi_ver_ns3) != WMI_TLV_ABI_VER_NS3) { in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1346 arg->min_tx_power = ev->hw_min_tx_power; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1347 arg->max_tx_power = ev->hw_max_tx_power; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1348 arg->ht_cap = ev->ht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1349 arg->vht_cap = ev->vht_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1350 arg->vht_supp_mcs = ev->vht_supp_mcs; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1351 arg->sw_ver0 = ev->abi.abi_ver0; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1352 arg->sw_ver1 = ev->abi.abi_ver1; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1353 arg->fw_build = ev->fw_build_vers; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1354 arg->phy_capab = ev->phy_capability; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1355 arg->num_rf_chains = ev->num_rf_chains; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1361 arg->num_mem_reqs = ev->num_mem_reqs; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1364 arg->sys_cap_info = ev->sys_cap_info; in ath10k_wmi_tlv_op_pull_svc_rdy_ev()
1381 const struct wmi_tlv_rdy_ev *ev; in ath10k_wmi_tlv_op_pull_rdy_ev() local
1391 ev = tb[WMI_TLV_TAG_STRUCT_READY_EVENT]; in ath10k_wmi_tlv_op_pull_rdy_ev()
1392 if (!ev) { in ath10k_wmi_tlv_op_pull_rdy_ev()
1397 arg->sw_version = ev->abi.abi_ver0; in ath10k_wmi_tlv_op_pull_rdy_ev()
1398 arg->abi_version = ev->abi.abi_ver1; in ath10k_wmi_tlv_op_pull_rdy_ev()
1399 arg->status = ev->status; in ath10k_wmi_tlv_op_pull_rdy_ev()
1400 arg->mac_addr = ev->mac_addr.addr; in ath10k_wmi_tlv_op_pull_rdy_ev()
1482 const struct wmi_tlv_stats_ev *ev; in ath10k_wmi_tlv_op_pull_fw_stats() local
1502 ev = tb[WMI_TLV_TAG_STRUCT_STATS_EVENT]; in ath10k_wmi_tlv_op_pull_fw_stats()
1505 if (!ev || !data) { in ath10k_wmi_tlv_op_pull_fw_stats()
1511 num_pdev_stats = __le32_to_cpu(ev->num_pdev_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1512 num_vdev_stats = __le32_to_cpu(ev->num_vdev_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1513 num_peer_stats = __le32_to_cpu(ev->num_peer_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1514 num_bcnflt_stats = __le32_to_cpu(ev->num_bcnflt_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1515 num_chan_stats = __le32_to_cpu(ev->num_chan_stats); in ath10k_wmi_tlv_op_pull_fw_stats()
1516 stats_id = __le32_to_cpu(ev->stats_id); in ath10k_wmi_tlv_op_pull_fw_stats()
1517 num_peer_stats_extd = __le32_to_cpu(ev->num_peer_stats_extd); in ath10k_wmi_tlv_op_pull_fw_stats()
1621 const struct wmi_tlv_roam_ev *ev; in ath10k_wmi_tlv_op_pull_roam_ev() local
1631 ev = tb[WMI_TLV_TAG_STRUCT_ROAM_EVENT]; in ath10k_wmi_tlv_op_pull_roam_ev()
1632 if (!ev) { in ath10k_wmi_tlv_op_pull_roam_ev()
1637 arg->vdev_id = ev->vdev_id; in ath10k_wmi_tlv_op_pull_roam_ev()
1638 arg->reason = ev->reason; in ath10k_wmi_tlv_op_pull_roam_ev()
1639 arg->rssi = ev->rssi; in ath10k_wmi_tlv_op_pull_roam_ev()
1650 const struct wmi_tlv_wow_event_info *ev; in ath10k_wmi_tlv_op_pull_wow_ev() local
1660 ev = tb[WMI_TLV_TAG_STRUCT_WOW_EVENT_INFO]; in ath10k_wmi_tlv_op_pull_wow_ev()
1661 if (!ev) { in ath10k_wmi_tlv_op_pull_wow_ev()
1666 arg->vdev_id = __le32_to_cpu(ev->vdev_id); in ath10k_wmi_tlv_op_pull_wow_ev()
1667 arg->flag = __le32_to_cpu(ev->flag); in ath10k_wmi_tlv_op_pull_wow_ev()
1668 arg->wake_reason = __le32_to_cpu(ev->wake_reason); in ath10k_wmi_tlv_op_pull_wow_ev()
1669 arg->data_len = __le32_to_cpu(ev->data_len); in ath10k_wmi_tlv_op_pull_wow_ev()
1680 const struct wmi_echo_event *ev; in ath10k_wmi_tlv_op_pull_echo_ev() local
1690 ev = tb[WMI_TLV_TAG_STRUCT_ECHO_EVENT]; in ath10k_wmi_tlv_op_pull_echo_ev()
1691 if (!ev) { in ath10k_wmi_tlv_op_pull_echo_ev()
1696 arg->value = ev->value; in ath10k_wmi_tlv_op_pull_echo_ev()