Lines Matching refs:swhead
1725 u16 swhead; in sdma_gethead() local
1728 swhead = sde->descq_head & sde->sdma_mask; in sdma_gethead()
1733 if (swhead < swtail) in sdma_gethead()
1735 sane = (hwhead >= swhead) & (hwhead <= swtail); in sdma_gethead()
1736 else if (swhead > swtail) in sdma_gethead()
1738 sane = ((hwhead >= swhead) && (hwhead < cnt)) || in sdma_gethead()
1742 sane = (hwhead == swhead); in sdma_gethead()
1748 hwhead, swhead, swtail, cnt); in sdma_gethead()
1755 hwhead = swhead; in sdma_gethead()
1832 u16 hwhead, swhead; in sdma_make_progress() local
1845 swhead = sde->descq_head & sde->sdma_mask; in sdma_make_progress()
1846 trace_hfi1_sdma_progress(sde, hwhead, swhead, txp); in sdma_make_progress()
1847 while (swhead != hwhead) { in sdma_make_progress()
1849 swhead = ++sde->descq_head & sde->sdma_mask; in sdma_make_progress()
1852 if (txp && txp->next_descq_idx == swhead) { in sdma_make_progress()
1859 trace_hfi1_sdma_progress(sde, hwhead, swhead, txp); in sdma_make_progress()