Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/infiniband/hw/qib/
Dqib_iba7220.c4297 u16 swhead; in qib_sdma_7220_gethead() local
4309 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()
Dqib_iba7322.c6417 u16 swhead; in qib_sdma_7322_gethead() local
6429 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()