Lines Matching refs:tid

288 	u32 tid, ctxttid, cnt, i, tidcnt, tidoff;  in qib_tid_update()  local
311 tid = rcd->tidcursor; in qib_tid_update()
318 tid = tidcursor_fp(fp); in qib_tid_update()
323 tid = tidcursor_fp(fp); in qib_tid_update()
367 for (; ntids--; tid++) { in qib_tid_update()
368 if (tid == tidcnt) in qib_tid_update()
369 tid = 0; in qib_tid_update()
370 if (!dd->pageshadow[ctxttid + tid]) in qib_tid_update()
383 tidlist[i] = tid + tidoff; in qib_tid_update()
385 dd->pageshadow[ctxttid + tid] = pagep[i]; in qib_tid_update()
386 dd->physshadow[ctxttid + tid] = in qib_tid_update()
392 __set_bit(tid, tidmap); in qib_tid_update()
393 physaddr = dd->physshadow[ctxttid + tid]; in qib_tid_update()
395 dd->f_put_tid(dd, &tidbase[tid], in qib_tid_update()
401 tid++; in qib_tid_update()
413 tid = find_first_bit((const unsigned long *)tidmap, limit); in qib_tid_update()
414 for (; tid < limit; tid++) { in qib_tid_update()
415 if (!test_bit(tid, tidmap)) in qib_tid_update()
417 if (dd->pageshadow[ctxttid + tid]) { in qib_tid_update()
420 phys = dd->physshadow[ctxttid + tid]; in qib_tid_update()
421 dd->physshadow[ctxttid + tid] = dd->tidinvalid; in qib_tid_update()
425 dd->f_put_tid(dd, &tidbase[tid], in qib_tid_update()
430 dd->pageshadow[ctxttid + tid] = NULL; in qib_tid_update()
451 if (tid == tidcnt) in qib_tid_update()
452 tid = 0; in qib_tid_update()
454 rcd->tidcursor = tid; in qib_tid_update()
456 tidcursor_fp(fp) = tid; in qib_tid_update()
483 u32 tid, ctxttid, cnt, limit, tidcnt; in qib_tid_free() local
518 tid = find_first_bit(tidmap, limit); in qib_tid_free()
519 for (cnt = 0; tid < limit; tid++) { in qib_tid_free()
527 if (!test_bit(tid, tidmap)) in qib_tid_free()
530 if (dd->pageshadow[ctxttid + tid]) { in qib_tid_free()
534 p = dd->pageshadow[ctxttid + tid]; in qib_tid_free()
535 dd->pageshadow[ctxttid + tid] = NULL; in qib_tid_free()
536 phys = dd->physshadow[ctxttid + tid]; in qib_tid_free()
537 dd->physshadow[ctxttid + tid] = dd->tidinvalid; in qib_tid_free()
541 dd->f_put_tid(dd, &tidbase[tid], in qib_tid_free()