Lines Matching refs:ring_id
108 int ring_id = wil_find_free_sring(wil); in wil_tx_init_edma() local
120 status_ring_size, ring_id); in wil_tx_init_edma()
122 if (ring_id < 0) in wil_tx_init_edma()
123 return ring_id; in wil_tx_init_edma()
128 sring = &wil->srings[ring_id]; in wil_tx_init_edma()
137 rc = wil_wmi_tx_sring_cfg(wil, ring_id); in wil_tx_init_edma()
142 wil->tx_sring_idx = ring_id; in wil_tx_init_edma()
344 u16 ring_id) in wil_init_rx_sring() argument
346 struct wil_status_ring *sring = &wil->srings[ring_id]; in wil_init_rx_sring()
350 status_ring_size, ring_id); in wil_init_rx_sring()
361 rc = wil_wmi_rx_sring_add(wil, ring_id); in wil_init_rx_sring()
696 static int wil_ring_init_tx_edma(struct wil6210_vif *vif, int ring_id, in wil_ring_init_tx_edma() argument
701 struct wil_ring *ring = &wil->ring_tx[ring_id]; in wil_ring_init_tx_edma()
702 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_id]; in wil_ring_init_tx_edma()
708 ring_id, cid, tid, wil->tx_sring_idx); in wil_ring_init_tx_edma()
716 wil->ring2cid_tid[ring_id][0] = cid; in wil_ring_init_tx_edma()
717 wil->ring2cid_tid[ring_id][1] = tid; in wil_ring_init_tx_edma()
721 rc = wil_wmi_tx_desc_ring_add(vif, ring_id, cid, tid); in wil_ring_init_tx_edma()
728 wil_addba_tx_request(wil, ring_id, agg_wsize); in wil_ring_init_tx_edma()
737 wil->ring2cid_tid[ring_id][0] = wil->max_assoc_sta; in wil_ring_init_tx_edma()
738 wil->ring2cid_tid[ring_id][1] = 0; in wil_ring_init_tx_edma()
744 static int wil_tx_ring_modify_edma(struct wil6210_vif *vif, int ring_id, in wil_tx_ring_modify_edma() argument
1170 unsigned int ring_id; in wil_tx_sring_handler() local
1190 ring_id = msg.ring_id; in wil_tx_sring_handler()
1192 if (unlikely(ring_id >= WIL6210_MAX_TX_RINGS)) { in wil_tx_sring_handler()
1193 wil_err(wil, "invalid ring id %d\n", ring_id); in wil_tx_sring_handler()
1196 ring = &wil->ring_tx[ring_id]; in wil_tx_sring_handler()
1199 ring_id); in wil_tx_sring_handler()
1202 txdata = &wil->ring_tx_data[ring_id]; in wil_tx_sring_handler()
1204 wil_info(wil, "Tx irq[%d]: ring disabled\n", ring_id); in wil_tx_sring_handler()
1210 txdata->mid, ring_id); in wil_tx_sring_handler()
1216 cid = wil->ring2cid_tid[ring_id][0]; in wil_tx_sring_handler()
1222 ring_id, num_descs); in wil_tx_sring_handler()
1240 ring_id, ring->swtail, dmalen, in wil_tx_sring_handler()
1290 ring_id, used_before_complete, used_new); in wil_tx_sring_handler()
1546 static int wil_ring_init_bcast_edma(struct wil6210_vif *vif, int ring_id, in wil_ring_init_bcast_edma() argument
1550 struct wil_ring *ring = &wil->ring_tx[ring_id]; in wil_ring_init_bcast_edma()
1552 struct wil_ring_tx_data *txdata = &wil->ring_tx_data[ring_id]; in wil_ring_init_bcast_edma()
1555 ring_id, wil->tx_sring_idx); in wil_ring_init_bcast_edma()
1566 wil->ring2cid_tid[ring_id][0] = WIL6210_MAX_CID; /* CID */ in wil_ring_init_bcast_edma()
1567 wil->ring2cid_tid[ring_id][1] = 0; /* TID */ in wil_ring_init_bcast_edma()
1571 rc = wil_wmi_bcast_desc_ring_add(vif, ring_id); in wil_ring_init_bcast_edma()