Home
last modified time | relevance | path

Searched refs:swhead (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.c91 sring->swhead = 0; in wil_sring_alloc()
217 (sring->va + (sring->elem_size * sring->swhead)); in wil_get_next_rx_status_msg()
226 sring->swhead = (sring->swhead + 1) % sring->size; in wil_sring_advance_swhead()
227 if (sring->swhead == 0) in wil_sring_advance_swhead()
240 ring->swhead = next_head) { in wil_rx_refill_edma()
241 rc = wil_ring_alloc_skb_edma(wil, ring, ring->swhead); in wil_rx_refill_edma()
248 rc, ring->swhead); in wil_rx_refill_edma()
258 wil_w(wil, ring->hwtail, ring->swhead); in wil_rx_refill_edma()
383 ring->swhead = 0; in wil_ring_alloc_desc_ring()
890 sring->swhead); in wil_sring_reap_rx_edma()
[all …]
Dtxrx.h581 return ring->swhead == ring->swtail; in wil_ring_is_empty()
591 ring->swhead = (ring->swhead + n) % ring->size; in wil_ring_advance_head()
596 return wil_ring_next_tail(ring) == ring->swhead; in wil_ring_is_full()
632 u32 swhead = ring->swhead; in wil_ring_used_tx() local
635 return (ring->size + swhead - swtail) % ring->size; in wil_ring_used_tx()
Dtxrx.c120 vring->swhead = 0; in wil_vring_alloc()
234 &vring->va[vring->swhead].rx.legacy; in wil_vring_free()
236 ctx = &vring->ctx[vring->swhead]; in wil_vring_free()
356 _d = (struct vring_rx_desc *)&ring->va[ring->swhead].rx.legacy; in wil_is_rx_idle()
463 i = (int)vring->swhead; in wil_vring_reap_rx()
615 (next_tail != v->swhead) && (count-- > 0); in wil_rx_refill()
1745 u32 swhead = vring->swhead; in __wil_tx_vring_tso() local
1753 uint i = swhead; in __wil_tx_vring_tso()
1861 i = (swhead + descs_used) % vring->size; in __wil_tx_vring_tso()
1993 wil_dbg_txrx(wil, "TSO: Tx swhead %d -> %d\n", swhead, vring->swhead); in __wil_tx_vring_tso()
[all …]
Dtxrx_edma.h422 (s->va + (s->elem_size * s->swhead)))->buff_id = 0; in wil_rx_status_reset_buff_id()
567 return (ring->swhead + 1) % ring->size; in wil_ring_next_head()
Ddebugfs.c89 seq_printf(s, " swhead = %d\n", ring->swhead); in wil_print_ring()
146 u32 swhead = ring->swhead; in ring_show() local
148 int used = (ring->size + swhead - swtail) in ring_show()
206 seq_printf(s, " swhead = %d\n", sring->swhead); in wil_print_sring()
239 if (i == sring->swhead) in wil_print_sring()
Dwil6210.h527 u32 swhead; member
554 u32 swhead; member
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dtrace_tx.h361 u16 swhead,
364 TP_ARGS(sde, hwhead, swhead, txp),
368 __field(u16, swhead)
376 __entry->swhead = swhead;
389 __entry->swhead,
398 u16 hwhead, u16 swhead,
401 TP_ARGS(sde, hwhead, swhead, txp),
404 __field(u16, swhead)
412 __entry->swhead = swhead;
423 __entry->swhead,
Dsdma.c1683 u16 swhead; in sdma_gethead() local
1686 swhead = sde->descq_head & sde->sdma_mask; in sdma_gethead()
1691 if (swhead < swtail) in sdma_gethead()
1693 sane = (hwhead >= swhead) & (hwhead <= swtail); in sdma_gethead()
1694 else if (swhead > swtail) in sdma_gethead()
1696 sane = ((hwhead >= swhead) && (hwhead < cnt)) || in sdma_gethead()
1700 sane = (hwhead == swhead); in sdma_gethead()
1706 hwhead, swhead, swtail, cnt); in sdma_gethead()
1713 hwhead = swhead; in sdma_gethead()
1790 u16 hwhead, swhead; in sdma_make_progress() local
[all …]
/linux-6.1.9/drivers/infiniband/hw/qib/
Dqib_iba7220.c4269 u16 swhead; in qib_sdma_7220_gethead() local
4281 swhead = ppd->sdma_descq_head; in qib_sdma_7220_gethead()
4285 if (swhead < swtail) { in qib_sdma_7220_gethead()
4287 sane = (hwhead >= swhead) & (hwhead <= swtail); in qib_sdma_7220_gethead()
4288 } else if (swhead > swtail) { in qib_sdma_7220_gethead()
4290 sane = ((hwhead >= swhead) && (hwhead < cnt)) || in qib_sdma_7220_gethead()
4294 sane = (hwhead == swhead); in qib_sdma_7220_gethead()
4304 hwhead = swhead; in qib_sdma_7220_gethead()
Dqib_iba7322.c6885 u16 swhead; in qib_sdma_7322_gethead() local
6897 swhead = ppd->sdma_descq_head; in qib_sdma_7322_gethead()
6901 if (swhead < swtail) in qib_sdma_7322_gethead()
6903 sane = (hwhead >= swhead) & (hwhead <= swtail); in qib_sdma_7322_gethead()
6904 else if (swhead > swtail) in qib_sdma_7322_gethead()
6906 sane = ((hwhead >= swhead) && (hwhead < cnt)) || in qib_sdma_7322_gethead()
6910 sane = (hwhead == swhead); in qib_sdma_7322_gethead()
6919 hwhead = swhead; in qib_sdma_7322_gethead()