Lines Matching refs:swhead
1683 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
1803 swhead = sde->descq_head & sde->sdma_mask; in sdma_make_progress()
1804 trace_hfi1_sdma_progress(sde, hwhead, swhead, txp); in sdma_make_progress()
1805 while (swhead != hwhead) { in sdma_make_progress()
1807 swhead = ++sde->descq_head & sde->sdma_mask; in sdma_make_progress()
1810 if (txp && txp->next_descq_idx == swhead) { in sdma_make_progress()
1817 trace_hfi1_sdma_progress(sde, hwhead, swhead, txp); in sdma_make_progress()