Lines Matching refs:evt

771 	struct wmi_ready_event *evt = d;  in wmi_evt_ready()  local
775 wil->fw_version, le32_to_cpu(evt->sw_version), in wmi_evt_ready()
776 evt->mac, evt->numof_additional_mids); in wmi_evt_ready()
777 if (evt->numof_additional_mids + 1 < wil->max_vifs) { in wmi_evt_ready()
787 evt->rfc_read_calib_result); in wmi_evt_ready()
788 wil->fw_calib_result = evt->rfc_read_calib_result; in wmi_evt_ready()
793 evt->max_assoc_sta > 0) { in wmi_evt_ready()
794 fw_max_assoc_sta = evt->max_assoc_sta; in wmi_evt_ready()
957 struct wmi_connect_event *evt = d; in wmi_evt_connect() local
968 if (len < sizeof(*evt)) { in wmi_evt_connect()
972 if (len != sizeof(*evt) + evt->beacon_ie_len + evt->assoc_req_len + in wmi_evt_connect()
973 evt->assoc_resp_len) { in wmi_evt_connect()
976 len, (int)sizeof(*evt), evt->beacon_ie_len, in wmi_evt_connect()
977 evt->assoc_req_len, evt->assoc_resp_len); in wmi_evt_connect()
980 if (evt->cid >= wil->max_assoc_sta) { in wmi_evt_connect()
981 wil_err(wil, "Connect CID invalid : %d\n", evt->cid); in wmi_evt_connect()
985 ch = evt->channel + 1; in wmi_evt_connect()
987 evt->bssid, ch, evt->cid, evt->aid); in wmi_evt_connect()
989 evt->assoc_info, len - sizeof(*evt), true); in wmi_evt_connect()
992 assoc_req_ie = &evt->assoc_info[evt->beacon_ie_len + in wmi_evt_connect()
994 assoc_req_ielen = evt->assoc_req_len - assoc_req_ie_offset; in wmi_evt_connect()
995 if (evt->assoc_req_len <= assoc_req_ie_offset) { in wmi_evt_connect()
1000 assoc_resp_ie = &evt->assoc_info[evt->beacon_ie_len + in wmi_evt_connect()
1001 evt->assoc_req_len + in wmi_evt_connect()
1003 assoc_resp_ielen = evt->assoc_resp_len - assoc_resp_ie_offset; in wmi_evt_connect()
1004 if (evt->assoc_resp_len <= assoc_resp_ie_offset) { in wmi_evt_connect()
1012 evt->cid); in wmi_evt_connect()
1029 if (wil->sta[evt->cid].status != wil_sta_unused) { in wmi_evt_connect()
1031 wil->sta[evt->cid].status, evt->cid); in wmi_evt_connect()
1037 ether_addr_copy(wil->sta[evt->cid].addr, evt->bssid); in wmi_evt_connect()
1038 wil->sta[evt->cid].mid = vif->mid; in wmi_evt_connect()
1039 wil->sta[evt->cid].status = wil_sta_conn_pending; in wmi_evt_connect()
1041 rc = wil_ring_init_tx(vif, evt->cid); in wmi_evt_connect()
1044 evt->cid, rc); in wmi_evt_connect()
1045 wmi_disconnect_sta(vif, wil->sta[evt->cid].addr, in wmi_evt_connect()
1048 wil_info(wil, "successful connection to CID %d\n", evt->cid); in wmi_evt_connect()
1057 cfg80211_connect_result(ndev, evt->bssid, NULL, 0, in wmi_evt_connect()
1066 cfg80211_connect_bss(ndev, evt->bssid, vif->bss, in wmi_evt_connect()
1079 cfg80211_del_sta(ndev, evt->bssid, GFP_KERNEL); in wmi_evt_connect()
1096 cfg80211_new_sta(ndev, evt->bssid, sinfo, GFP_KERNEL); in wmi_evt_connect()
1101 evt->cid); in wmi_evt_connect()
1105 wil->sta[evt->cid].status = wil_sta_connected; in wmi_evt_connect()
1106 wil->sta[evt->cid].aid = evt->aid; in wmi_evt_connect()
1113 wil->sta[evt->cid].status = wil_sta_unused; in wmi_evt_connect()
1114 wil->sta[evt->cid].mid = U8_MAX; in wmi_evt_connect()
1124 struct wmi_disconnect_event *evt = d; in wmi_evt_disconnect() local
1125 u16 reason_code = le16_to_cpu(evt->protocol_reason_status); in wmi_evt_disconnect()
1128 evt->bssid, reason_code, evt->disconnect_reason); in wmi_evt_disconnect()
1140 wil6210_disconnect_complete(vif, evt->bssid, reason_code); in wmi_evt_disconnect()
1151 cfg80211_cqm_pktloss_notify(ndev, evt->bssid, 0, in wmi_evt_disconnect()
1169 struct wmi_eapol_rx_event *evt = d; in wmi_evt_eapol_rx() local
1170 u16 eapol_len = le16_to_cpu(evt->eapol_len); in wmi_evt_eapol_rx()
1178 evt->src_mac, vif->mid); in wmi_evt_eapol_rx()
1180 cid = wil_find_cid(wil, vif->mid, evt->src_mac); in wmi_evt_eapol_rx()
1197 ether_addr_copy(eth->h_source, evt->src_mac); in wmi_evt_eapol_rx()
1199 skb_put_data(skb, evt->eapol, eapol_len); in wmi_evt_eapol_rx()
1218 struct wmi_ring_en_event *evt = d; in wmi_evt_ring_en() local
1219 u8 vri = evt->ring_index; in wmi_evt_ring_en()
1267 struct wmi_ba_status_event *evt = d; in wmi_evt_ba_status() local
1271 evt->ringid, in wmi_evt_ba_status()
1272 evt->status == WMI_BA_AGREED ? "OK" : "N/A", in wmi_evt_ba_status()
1273 evt->agg_wsize, __le16_to_cpu(evt->ba_timeout), in wmi_evt_ba_status()
1274 evt->amsdu ? "+" : "-"); in wmi_evt_ba_status()
1276 if (evt->ringid >= WIL6210_MAX_TX_RINGS) { in wmi_evt_ba_status()
1277 wil_err(wil, "invalid ring id %d\n", evt->ringid); in wmi_evt_ba_status()
1281 if (evt->status != WMI_BA_AGREED) { in wmi_evt_ba_status()
1282 evt->ba_timeout = 0; in wmi_evt_ba_status()
1283 evt->agg_wsize = 0; in wmi_evt_ba_status()
1284 evt->amsdu = 0; in wmi_evt_ba_status()
1287 txdata = &wil->ring_tx_data[evt->ringid]; in wmi_evt_ba_status()
1289 txdata->agg_timeout = le16_to_cpu(evt->ba_timeout); in wmi_evt_ba_status()
1290 txdata->agg_wsize = evt->agg_wsize; in wmi_evt_ba_status()
1291 txdata->agg_amsdu = evt->amsdu; in wmi_evt_ba_status()
1300 struct wmi_rcp_addba_req_event *evt = d; in wmi_evt_addba_rx_req() local
1302 if (evt->cidxtid != CIDXTID_EXTENDED_CID_TID) { in wmi_evt_addba_rx_req()
1303 parse_cidxtid(evt->cidxtid, &cid, &tid); in wmi_evt_addba_rx_req()
1305 cid = evt->cid; in wmi_evt_addba_rx_req()
1306 tid = evt->tid; in wmi_evt_addba_rx_req()
1308 wil_addba_rx_request(wil, vif->mid, cid, tid, evt->dialog_token, in wmi_evt_addba_rx_req()
1309 evt->ba_param_set, evt->ba_timeout, in wmi_evt_addba_rx_req()
1310 evt->ba_seq_ctrl); in wmi_evt_addba_rx_req()
1317 struct wmi_delba_event *evt = d; in wmi_evt_delba() local
1319 u16 reason = __le16_to_cpu(evt->reason); in wmi_evt_delba()
1325 if (evt->cidxtid != CIDXTID_EXTENDED_CID_TID) { in wmi_evt_delba()
1326 parse_cidxtid(evt->cidxtid, &cid, &tid); in wmi_evt_delba()
1328 cid = evt->cid; in wmi_evt_delba()
1329 tid = evt->tid; in wmi_evt_delba()
1339 evt->from_initiator ? "originator" : "recipient", in wmi_evt_delba()
1341 if (!evt->from_initiator) { in wmi_evt_delba()
1557 struct wmi_link_stats_event *evt = d; in wmi_evt_link_stats() local
1564 payload_size = le16_to_cpu(evt->payload_size); in wmi_evt_link_stats()
1570 wmi_link_stats_parse(vif, le64_to_cpu(evt->tsf), evt->has_next, in wmi_evt_link_stats()
1571 evt->payload, payload_size); in wmi_evt_link_stats()
1843 struct wmi_link_monitor_event *evt = d; in wmi_evt_link_monitor() local
1846 if (len < sizeof(*evt)) { in wmi_evt_link_monitor()
1852 evt->type, evt->rssi_level, wil->cqm_rssi_thold); in wmi_evt_link_monitor()
1854 if (evt->type != WMI_LINK_MONITOR_NOTIF_RSSI_THRESHOLD_EVT) in wmi_evt_link_monitor()
1858 event_type = (evt->rssi_level > wil->cqm_rssi_thold ? in wmi_evt_link_monitor()
1861 cfg80211_cqm_rssi_notify(ndev, event_type, evt->rssi_level, GFP_KERNEL); in wmi_evt_link_monitor()
1910 struct pending_wmi_event *evt; in wmi_recv_cmd() local
1961 evt = kmalloc(ALIGN(offsetof(struct pending_wmi_event, in wmi_recv_cmd()
1964 if (!evt) in wmi_recv_cmd()
1967 evt->event.hdr = hdr; in wmi_recv_cmd()
1968 cmd = (void *)&evt->event.wmi; in wmi_recv_cmd()
1976 struct wmi_cmd_hdr *wmi = &evt->event.wmi; in wmi_recv_cmd()
2011 &evt->event.hdr, sizeof(hdr) + len, true); in wmi_recv_cmd()
2022 kfree(evt); in wmi_recv_cmd()
2028 list_add_tail(&evt->list, &wil->pending_wmi_ev); in wmi_recv_cmd()
2134 struct wmi_led_cfg_done_event evt; in wmi_led_cfg() member
2136 .evt = {.status = cpu_to_le32(WMI_FW_STATUS_FAILURE)}, in wmi_led_cfg()
2158 if (reply.evt.status) { in wmi_led_cfg()
2160 led_id, le32_to_cpu(reply.evt.status)); in wmi_led_cfg()
2179 struct wmi_rbufcap_cfg_event evt; in wmi_rbufcap_cfg() member
2181 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_rbufcap_cfg()
2190 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_rbufcap_cfg()
2192 reply.evt.status); in wmi_rbufcap_cfg()
2221 struct wmi_pcp_started_event evt; in wmi_pcp_start() member
2223 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_pcp_start()
2252 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) in wmi_pcp_start()
2366 struct wmi_p2p_cfg_done_event evt; in wmi_p2p_cfg() member
2368 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_p2p_cfg()
2375 if (!rc && reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_p2p_cfg()
2376 wil_err(wil, "P2P_CFG failed. status %d\n", reply.evt.status); in wmi_p2p_cfg()
2389 struct wmi_listen_started_event evt; in wmi_start_listen() member
2391 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_start_listen()
2398 if (!rc && reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_start_listen()
2400 reply.evt.status); in wmi_start_listen()
2413 struct wmi_search_started_event evt; in wmi_start_search() member
2415 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_start_search()
2422 if (!rc && reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_start_search()
2424 reply.evt.status); in wmi_start_search()
2586 struct wmi_listen_started_event evt; in wmi_rxon() member
2588 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_rxon()
2598 if ((rc == 0) && (reply.evt.status != WMI_FW_STATUS_SUCCESS)) in wmi_rxon()
2629 struct wmi_cfg_rx_chain_done_event evt; in wmi_rx_chain_add() member
2630 } __packed evt; in wmi_rx_chain_add() local
2633 memset(&evt, 0, sizeof(evt)); in wmi_rx_chain_add()
2660 WMI_CFG_RX_CHAIN_DONE_EVENTID, &evt, sizeof(evt), 2000); in wmi_rx_chain_add()
2664 if (le32_to_cpu(evt.evt.status) != WMI_CFG_RX_CHAIN_SUCCESS) in wmi_rx_chain_add()
2667 vring->hwtail = le32_to_cpu(evt.evt.rx_ring_tail_ptr); in wmi_rx_chain_add()
2670 le32_to_cpu(evt.evt.status), vring->hwtail); in wmi_rx_chain_add()
2686 struct wmi_temp_sense_done_event evt; in wmi_get_temperature() member
2698 *t_bb = le32_to_cpu(reply.evt.baseband_t1000); in wmi_get_temperature()
2700 *t_rf = le32_to_cpu(reply.evt.rf_t1000); in wmi_get_temperature()
2718 struct wmi_temp_sense_all_done_event evt; in wmi_get_all_temperatures() member
2727 reply.evt.status = WMI_FW_STATUS_FAILURE; in wmi_get_all_temperatures()
2734 if (reply.evt.status == WMI_FW_STATUS_FAILURE) { in wmi_get_all_temperatures()
2739 memcpy(sense_all_evt, &reply.evt, sizeof(reply.evt)); in wmi_get_all_temperatures()
2756 struct wmi_disconnect_event evt; in wmi_disconnect_sta() member
2855 struct wmi_rcp_addba_resp_sent_event evt; in wmi_addba_rx_resp() member
2857 .evt = {.status = cpu_to_le16(WMI_FW_STATUS_FAILURE)}, in wmi_addba_rx_resp()
2879 if (reply.evt.status) { in wmi_addba_rx_resp()
2881 le16_to_cpu(reply.evt.status)); in wmi_addba_rx_resp()
2911 struct wmi_rcp_addba_resp_sent_event evt; in wmi_addba_rx_resp_edma() member
2913 .evt = {.status = cpu_to_le16(WMI_FW_STATUS_FAILURE)}, in wmi_addba_rx_resp_edma()
2927 if (reply.evt.status) { in wmi_addba_rx_resp_edma()
2929 le16_to_cpu(reply.evt.status)); in wmi_addba_rx_resp_edma()
2946 struct wmi_ps_dev_profile_cfg_event evt; in wmi_ps_dev_profile_cfg() member
2948 .evt = {.status = cpu_to_le32(WMI_PS_CFG_CMD_STATUS_ERROR)}, in wmi_ps_dev_profile_cfg()
2961 status = le32_to_cpu(reply.evt.status); in wmi_ps_dev_profile_cfg()
2981 struct wmi_set_mgmt_retry_limit_event evt; in wmi_set_mgmt_retry() member
2983 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_set_mgmt_retry()
2998 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_set_mgmt_retry()
3000 reply.evt.status); in wmi_set_mgmt_retry()
3013 struct wmi_get_mgmt_retry_limit_event evt; in wmi_get_mgmt_retry() member
3029 *retry_short = reply.evt.mgmt_retry_limit; in wmi_get_mgmt_retry()
3070 struct pending_wmi_event *evt, *t; in wmi_event_flush() local
3076 list_for_each_entry_safe(evt, t, &wil->pending_wmi_ev, list) { in wmi_event_flush()
3077 list_del(&evt->list); in wmi_event_flush()
3078 kfree(evt); in wmi_event_flush()
3107 struct wmi_traffic_suspend_event evt; in wmi_suspend() member
3109 .evt = {.status = WMI_TRAFFIC_SUSPEND_REJECTED_LINK_NOT_IDLE}, in wmi_suspend()
3148 if (reply.evt.status != WMI_TRAFFIC_SUSPEND_APPROVED) { in wmi_suspend()
3150 suspend_status2name(reply.evt.status)); in wmi_suspend()
3153 rc = reply.evt.status; in wmi_suspend()
3194 struct wmi_traffic_resume_event evt; in wmi_resume() member
3196 .evt = {.status = WMI_TRAFFIC_RESUME_FAILED, in wmi_resume()
3206 resume_triggers2string(le32_to_cpu(reply.evt.resume_triggers), string, in wmi_resume()
3209 reply.evt.status ? "failed" : "passed", string, in wmi_resume()
3210 le32_to_cpu(reply.evt.resume_triggers)); in wmi_resume()
3212 return reply.evt.status; in wmi_resume()
3224 struct wmi_port_allocated_event evt; in wmi_port_allocate() member
3226 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_port_allocate()
3260 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_port_allocate()
3262 reply.evt.status); in wmi_port_allocate()
3277 struct wmi_port_deleted_event evt; in wmi_port_delete() member
3279 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_port_delete()
3292 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_port_delete()
3294 reply.evt.status); in wmi_port_delete()
3410 struct pending_wmi_event *evt; in wmi_event_worker() local
3415 evt = list_entry(lh, struct pending_wmi_event, list); in wmi_event_worker()
3416 wmi_event_handle(wil, &evt->event.hdr); in wmi_event_worker()
3417 kfree(evt); in wmi_event_worker()
3550 struct wmi_start_sched_scan_event evt; in wmi_start_sched_scan() member
3552 .evt = {.result = WMI_PNO_REJECT}, in wmi_start_sched_scan()
3576 if (reply.evt.result != WMI_PNO_SUCCESS) { in wmi_start_sched_scan()
3578 reply.evt.result); in wmi_start_sched_scan()
3591 struct wmi_stop_sched_scan_event evt; in wmi_stop_sched_scan() member
3593 .evt = {.result = WMI_PNO_REJECT}, in wmi_stop_sched_scan()
3605 if (reply.evt.result != WMI_PNO_SUCCESS) { in wmi_stop_sched_scan()
3607 reply.evt.result); in wmi_stop_sched_scan()
3622 struct wmi_sw_tx_complete_event evt; in wmi_mgmt_tx() member
3623 } __packed evt = { in wmi_mgmt_tx() local
3624 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_mgmt_tx()
3650 WMI_SW_TX_COMPLETE_EVENTID, &evt, sizeof(evt), 2000); in wmi_mgmt_tx()
3651 if (!rc && evt.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_mgmt_tx()
3653 evt.evt.status); in wmi_mgmt_tx()
3671 struct wmi_sw_tx_complete_event evt; in wmi_mgmt_tx_ext() member
3672 } __packed evt = { in wmi_mgmt_tx_ext() local
3673 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_mgmt_tx_ext()
3704 WMI_SW_TX_COMPLETE_EVENTID, &evt, sizeof(evt), 2000); in wmi_mgmt_tx_ext()
3705 if (!rc && evt.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_mgmt_tx_ext()
3707 evt.evt.status); in wmi_mgmt_tx_ext()
3729 struct wmi_tx_status_ring_cfg_done_event evt; in wil_wmi_tx_sring_cfg() member
3731 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wil_wmi_tx_sring_cfg()
3745 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wil_wmi_tx_sring_cfg()
3747 reply.evt.status); in wil_wmi_tx_sring_cfg()
3751 sring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_tx_sring_cfg()
3770 struct wmi_cfg_def_rx_offload_done_event evt; in wil_wmi_cfg_def_rx_offload() member
3772 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wil_wmi_cfg_def_rx_offload()
3783 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wil_wmi_cfg_def_rx_offload()
3785 reply.evt.status); in wil_wmi_cfg_def_rx_offload()
3810 struct wmi_rx_status_ring_cfg_done_event evt; in wil_wmi_rx_sring_add() member
3812 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wil_wmi_rx_sring_add()
3824 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wil_wmi_rx_sring_add()
3826 reply.evt.status); in wil_wmi_rx_sring_add()
3830 sring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_rx_sring_add()
3851 struct wmi_rx_desc_ring_cfg_done_event evt; in wil_wmi_rx_desc_ring_add() member
3853 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wil_wmi_rx_desc_ring_add()
3866 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wil_wmi_rx_desc_ring_add()
3868 reply.evt.status); in wil_wmi_rx_desc_ring_add()
3872 ring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_rx_desc_ring_add()
3902 struct wmi_tx_desc_ring_cfg_done_event evt; in wil_wmi_tx_desc_ring_add() member
3904 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wil_wmi_tx_desc_ring_add()
3916 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wil_wmi_tx_desc_ring_add()
3918 reply.evt.status); in wil_wmi_tx_desc_ring_add()
3923 ring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_tx_desc_ring_add()
3947 struct wmi_rx_desc_ring_cfg_done_event evt; in wil_wmi_bcast_desc_ring_add() member
3949 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wil_wmi_bcast_desc_ring_add()
3962 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wil_wmi_bcast_desc_ring_add()
3964 reply.evt.status); in wil_wmi_bcast_desc_ring_add()
3969 ring->hwtail = le32_to_cpu(reply.evt.ring_tail_ptr); in wil_wmi_bcast_desc_ring_add()
3988 struct wmi_link_stats_config_done_event evt; in wmi_link_stats_cfg() member
3990 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_link_stats_cfg()
4002 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_link_stats_cfg()
4004 reply.evt.status); in wmi_link_stats_cfg()
4019 struct wmi_set_link_monitor_event evt; in wmi_set_cqm_rssi_config() member
4021 .evt = {.status = WMI_FW_STATUS_FAILURE}, in wmi_set_cqm_rssi_config()
4040 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_set_cqm_rssi_config()
4042 reply.evt.status); in wmi_set_cqm_rssi_config()