Lines Matching full:mid

633 static int __wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid,  in __wmi_send()  argument
646 .mid = mid, in __wmi_send()
730 wil_dbg_wmi(wil, "sending %s (0x%04x) [%d] mid %d\n", in __wmi_send()
731 cmdid2name(cmdid), cmdid, len, mid); in __wmi_send()
755 int wmi_send(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len) in wmi_send() argument
760 rc = __wmi_send(wil, cmdid, mid, buf, len); in wmi_send()
774 wil_info(wil, "FW ver. %s(SW %d); MAC %pM; %d MID's\n", in wmi_evt_ready()
859 wil_dbg_wmi(wil, "qid %d mid %d cid %d\n", in wmi_evt_rx_mgmt()
860 data->info.qid, data->info.mid, data->info.cid); in wmi_evt_rx_mgmt()
938 if (vif->mid == 0) in wmi_evt_scan_complete()
1038 wil->sta[evt->cid].mid = vif->mid; in wmi_evt_connect()
1114 wil->sta[evt->cid].mid = U8_MAX; in wmi_evt_connect()
1177 wil_dbg_wmi(wil, "EAPOL len %d from %pM MID %d\n", 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()
1225 wil_dbg_wmi(wil, "Enable vring %d MID %d\n", vri, vif->mid); in wmi_evt_ring_en()
1308 wil_addba_rx_request(wil, vif->mid, cid, tid, evt->dialog_token, in wmi_evt_addba_rx_req()
1337 wil_dbg_wmi(wil, "DELBA MID %d CID %d TID %d from %s reason %d\n", in wmi_evt_delba()
1338 vif->mid, cid, tid, in wmi_evt_delba()
1426 wil_dbg_wmi(wil, "len %d qid %d mid %d cid %d\n", in wmi_evt_sched_scan_result()
1427 d_len, data->info.qid, data->info.mid, data->info.cid); in wmi_evt_sched_scan_result()
1602 if (!ring->va || !txdata->enabled || txdata->mid != vif->mid) in wil_find_cid_ringid_sta()
1806 wil_err(wil, "modify TX for CID %d MID %d ring %d failed (%d)\n", in wmi_evt_reassoc_status()
1807 cid, vif->mid, ringid, rc); in wmi_evt_reassoc_status()
1978 u8 mid = wmi->mid; in wmi_recv_cmd() local
1991 wil->reply_mid == mid) { in wmi_recv_cmd()
2005 wil_dbg_wmi(wil, "recv %s (0x%04x) MID %d @%d msec\n", in wmi_recv_cmd()
2006 eventid2name(id), id, wmi->mid, tstamp); in wmi_recv_cmd()
2039 int wmi_call(struct wil6210_priv *wil, u16 cmdid, u8 mid, void *buf, u16 len, in wmi_call() argument
2050 wil->reply_mid = mid; in wmi_call()
2056 rc = __wmi_send(wil, cmdid, mid, buf, len); in wmi_call()
2093 return wmi_call(wil, WMI_ECHO_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_echo()
2107 return wmi_send(wil, WMI_SET_MAC_ADDRESS_CMDID, vif->mid, in wmi_set_mac_address()
2152 rc = wmi_call(wil, WMI_LED_CFG_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_led_cfg()
2184 rc = wmi_call(wil, WMI_RBUFCAP_CFG_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_rbufcap_cfg()
2247 rc = wmi_call(wil, WMI_PCP_START_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_pcp_start()
2271 return wmi_call(wil, WMI_PCP_STOP_CMDID, vif->mid, NULL, 0, in wmi_pcp_stop()
2288 return wmi_send(wil, WMI_SET_SSID_CMDID, vif->mid, &cmd, sizeof(cmd)); in wmi_set_ssid()
2303 rc = wmi_call(wil, WMI_GET_SSID_CMDID, vif->mid, NULL, 0, in wmi_get_ssid()
2326 return wmi_send(wil, WMI_SET_PCP_CHANNEL_CMDID, vif->mid, in wmi_set_channel()
2341 rc = wmi_call(wil, WMI_GET_PCP_CHANNEL_CMDID, vif->mid, NULL, 0, in wmi_get_channel()
2373 rc = wmi_call(wil, WMI_P2P_CFG_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_p2p_cfg()
2396 rc = wmi_call(wil, WMI_START_LISTEN_CMDID, vif->mid, NULL, 0, in wmi_start_listen()
2420 rc = wmi_call(wil, WMI_START_SEARCH_CMDID, vif->mid, NULL, 0, in wmi_start_search()
2438 rc = wmi_call(wil, WMI_DISCOVERY_STOP_CMDID, vif->mid, NULL, 0, in wmi_stop_discovery()
2459 return wmi_send(wil, WMI_DELETE_CIPHER_KEY_CMDID, vif->mid, in wmi_del_cipher_key()
2488 return wmi_send(wil, WMI_ADD_CIPHER_KEY_CMDID, vif->mid, in wmi_add_cipher_key()
2524 rc = wmi_send(wil, WMI_SET_APPIE_CMDID, vif->mid, cmd, len); in wmi_set_ie()
2561 rc = wmi_send(wil, WMI_UPDATE_FT_IES_CMDID, vif->mid, cmd, len); in wmi_update_ft_ies()
2594 rc = wmi_call(wil, WMI_START_LISTEN_CMDID, vif->mid, NULL, 0, in wmi_rxon()
2601 rc = wmi_call(wil, WMI_DISCOVERY_STOP_CMDID, vif->mid, NULL, 0, in wmi_rxon()
2622 .mid = 0, /* TODO - what is it? */ in wmi_rx_chain_add()
2659 rc = wmi_call(wil, WMI_CFG_RX_CHAIN_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_rx_chain_add()
2691 rc = wmi_call(wil, WMI_TEMP_SENSE_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_get_temperature()
2728 rc = wmi_call(wil, WMI_TEMP_SENSE_ALL_CMDID, vif->mid, &cmd, in wmi_get_all_temperatures()
2765 rc = wmi_call(wil, WMI_DEL_STA_CMDID, vif->mid, &del_sta_cmd, in wmi_disconnect_sta()
2770 rc = wmi_call(wil, WMI_DISCONNECT_STA_CMDID, vif->mid, in wmi_disconnect_sta()
2785 int wmi_addba(struct wil6210_priv *wil, u8 mid, in wmi_addba() argument
2801 return wmi_send(wil, WMI_RING_BA_EN_CMDID, mid, &cmd, sizeof(cmd)); in wmi_addba()
2804 int wmi_delba_tx(struct wil6210_priv *wil, u8 mid, u8 ringid, u16 reason) in wmi_delba_tx() argument
2813 return wmi_send(wil, WMI_RING_BA_DIS_CMDID, mid, &cmd, sizeof(cmd)); in wmi_delba_tx()
2816 int wmi_delba_rx(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, u16 reason) in wmi_delba_rx() argument
2833 return wmi_send(wil, WMI_RCP_DELBA_CMDID, mid, &cmd, sizeof(cmd)); in wmi_delba_rx()
2837 u8 mid, u8 cid, u8 tid, u8 token, in wmi_addba_rx_resp() argument
2869 "ADDBA response for MID %d CID %d TID %d size %d timeout %d status %d AMSDU%s\n", in wmi_addba_rx_resp()
2870 mid, cid, tid, agg_wsize, in wmi_addba_rx_resp()
2873 rc = wmi_call(wil, WMI_RCP_ADDBA_RESP_CMDID, mid, &cmd, sizeof(cmd), in wmi_addba_rx_resp()
2888 int wmi_addba_rx_resp_edma(struct wil6210_priv *wil, u8 mid, u8 cid, u8 tid, in wmi_addba_rx_resp_edma() argument
2921 rc = wmi_call(wil, WMI_RCP_ADDBA_RESP_EDMA_CMDID, mid, &cmd, in wmi_addba_rx_resp_edma()
2954 rc = wmi_call(wil, WMI_PS_DEV_PROFILE_CFG_CMDID, vif->mid, in wmi_ps_dev_profile_cfg()
2991 rc = wmi_call(wil, WMI_SET_MGMT_RETRY_LIMIT_CMDID, vif->mid, in wmi_set_mgmt_retry()
3022 rc = wmi_call(wil, WMI_GET_MGMT_RETRY_LIMIT_CMDID, vif->mid, NULL, 0, in wmi_get_mgmt_retry()
3041 rc = wmi_send(wil, WMI_ABORT_SCAN_CMDID, vif->mid, NULL, 0); in wmi_abort_scan()
3060 rc = wmi_send(wil, WMI_NEW_STA_CMDID, vif->mid, &cmd, sizeof(cmd)); in wmi_new_sta()
3117 rc = wmi_call(wil, WMI_TRAFFIC_SUSPEND_CMDID, vif->mid, in wmi_suspend()
3201 rc = wmi_call(wil, WMI_TRAFFIC_RESUME_CMDID, vif->mid, NULL, 0, in wmi_resume()
3215 int wmi_port_allocate(struct wil6210_priv *wil, u8 mid, in wmi_port_allocate() argument
3220 .mid = mid, in wmi_port_allocate()
3229 wil_dbg_misc(wil, "port allocate, mid %d iftype %d, mac %pM\n", in wmi_port_allocate()
3230 mid, iftype, mac); in wmi_port_allocate()
3252 rc = wmi_call(wil, WMI_PORT_ALLOCATE_CMDID, mid, in wmi_port_allocate()
3269 int wmi_port_delete(struct wil6210_priv *wil, u8 mid) in wmi_port_delete() argument
3273 .mid = mid, in wmi_port_delete()
3282 wil_dbg_misc(wil, "port delete, mid %d\n", mid); in wmi_port_delete()
3284 rc = wmi_call(wil, WMI_PORT_DELETE_CMDID, mid, in wmi_port_delete()
3327 u8 mid = wmi->mid; in wmi_event_handle() local
3333 if (mid == MID_BROADCAST) in wmi_event_handle()
3334 mid = 0; in wmi_event_handle()
3335 if (mid >= GET_MAX_VIFS(wil)) { in wmi_event_handle()
3336 wil_dbg_wmi(wil, "invalid mid %d, event skipped\n", in wmi_event_handle()
3337 mid); in wmi_event_handle()
3340 vif = wil->vifs[mid]; in wmi_event_handle()
3343 mid); in wmi_event_handle()
3349 wil->reply_mid == mid) { in wmi_event_handle()
3569 rc = wmi_call(wil, WMI_START_SCHED_SCAN_CMDID, vif->mid, in wmi_start_sched_scan()
3599 rc = wmi_call(wil, WMI_STOP_SCHED_SCAN_CMDID, vif->mid, NULL, 0, in wmi_stop_sched_scan()
3628 wil_dbg_misc(wil, "mgmt_tx mid %d\n", vif->mid); in wmi_mgmt_tx()
3649 rc = wmi_call(wil, WMI_SW_TX_REQ_CMDID, vif->mid, cmd, total, in wmi_mgmt_tx()
3677 wil_dbg_wmi(wil, "mgmt_tx_ext mid %d channel %d duration %d\n", in wmi_mgmt_tx_ext()
3678 vif->mid, channel, duration_ms); in wmi_mgmt_tx_ext()
3703 rc = wmi_call(wil, WMI_SW_TX_REQ_EXT_CMDID, vif->mid, cmd, total, in wmi_mgmt_tx_ext()
3737 rc = wmi_call(wil, WMI_TX_STATUS_RING_ADD_CMDID, vif->mid, &cmd, in wil_wmi_tx_sring_cfg()
3775 rc = wmi_call(wil, WMI_CFG_DEF_RX_OFFLOAD_CMDID, vif->mid, &cmd, in wil_wmi_cfg_def_rx_offload()
3816 rc = wmi_call(wil, WMI_RX_STATUS_RING_ADD_CMDID, vif->mid, &cmd, in wil_wmi_rx_sring_add()
3858 rc = wmi_call(wil, WMI_RX_DESC_RING_ADD_CMDID, vif->mid, &cmd, in wil_wmi_rx_desc_ring_add()
3908 rc = wmi_call(wil, WMI_TX_DESC_RING_ADD_CMDID, vif->mid, &cmd, in wil_wmi_tx_desc_ring_add()
3924 txdata->mid = vif->mid; in wil_wmi_tx_desc_ring_add()
3954 rc = wmi_call(wil, WMI_BCAST_DESC_RING_ADD_CMDID, vif->mid, &cmd, in wil_wmi_bcast_desc_ring_add()
3970 txdata->mid = vif->mid; in wil_wmi_bcast_desc_ring_add()
3994 rc = wmi_call(wil, WMI_LINK_STATS_CMDID, vif->mid, &cmd, sizeof(cmd), in wmi_link_stats_cfg()
4032 rc = wmi_call(wil, WMI_SET_LINK_MONITOR_CMDID, vif->mid, cmd, in wmi_set_cqm_rssi_config()