Searched refs:swhead (Results 1 – 2 of 2) sorted by relevance
4297 u16 swhead; in qib_sdma_7220_gethead() local4309 swhead = ppd->sdma_descq_head; in qib_sdma_7220_gethead()4313 if (swhead < swtail) { in qib_sdma_7220_gethead()4315 sane = (hwhead >= swhead) & (hwhead <= swtail); in qib_sdma_7220_gethead()4316 } else if (swhead > swtail) { in qib_sdma_7220_gethead()4318 sane = ((hwhead >= swhead) && (hwhead < cnt)) || in qib_sdma_7220_gethead()4322 sane = (hwhead == swhead); in qib_sdma_7220_gethead()4332 hwhead = swhead; in qib_sdma_7220_gethead()
6417 u16 swhead; in qib_sdma_7322_gethead() local6429 swhead = ppd->sdma_descq_head; in qib_sdma_7322_gethead()6433 if (swhead < swtail) in qib_sdma_7322_gethead()6435 sane = (hwhead >= swhead) & (hwhead <= swtail); in qib_sdma_7322_gethead()6436 else if (swhead > swtail) in qib_sdma_7322_gethead()6438 sane = ((hwhead >= swhead) && (hwhead < cnt)) || in qib_sdma_7322_gethead()6442 sane = (hwhead == swhead); in qib_sdma_7322_gethead()6451 hwhead = swhead; in qib_sdma_7322_gethead()