Lines Matching full:mid
147 txdata->mid >= GET_MAX_VIFS(wil)) in wil6210_netdev_poll_tx()
150 vif = wil->vifs[txdata->mid]; in wil6210_netdev_poll_tx()
152 wil_dbg_txrx(wil, "Invalid MID %d\n", txdata->mid); in wil6210_netdev_poll_tx()
304 u8 mid; in wil_vif_alloc() local
306 mid = wil_vif_find_free_mid(wil); in wil_vif_alloc()
307 if (mid == U8_MAX) { in wil_vif_alloc()
318 if (mid == 0) { in wil_vif_alloc()
328 vif->mid = mid; in wil_vif_alloc()
416 if (wil->vifs[vif->mid]) { in wil_vif_add()
417 dev_err(&ndev->dev, "VIF with mid %d already in use\n", in wil_vif_add()
418 vif->mid); in wil_vif_add()
421 if (any_active && vif->mid != 0) { in wil_vif_add()
422 rc = wmi_port_allocate(wil, vif->mid, ndev->dev_addr, in wil_vif_add()
430 if (any_active && vif->mid != 0) in wil_vif_add()
431 wmi_port_delete(wil, vif->mid); in wil_vif_add()
435 wil->vifs[vif->mid] = vif; in wil_vif_add()
493 void wil_vif_remove(struct wil6210_priv *wil, u8 mid) in wil_vif_remove() argument
500 if (mid >= GET_MAX_VIFS(wil)) { in wil_vif_remove()
501 wil_err(wil, "invalid MID: %d\n", mid); in wil_vif_remove()
505 vif = wil->vifs[mid]; in wil_vif_remove()
507 wil_err(wil, "MID %d not registered\n", mid); in wil_vif_remove()
521 if (any_active && vif->mid != 0) in wil_vif_remove()
522 wmi_port_delete(wil, vif->mid); in wil_vif_remove()
526 wil->vifs[mid] = NULL; in wil_vif_remove()