Lines Matching refs:ctxttid
288 u32 tid, ctxttid, cnt, i, tidcnt, tidoff; in qib_tid_update() local
308 ctxttid = rcd->ctxt * dd->rcvtidcnt; in qib_tid_update()
317 ctxttid += tidoff; in qib_tid_update()
322 ctxttid += tidoff; in qib_tid_update()
342 ctxttid * sizeof(*tidbase)); in qib_tid_update()
372 if (!dd->pageshadow[ctxttid + tid]) in qib_tid_update()
391 dd->pageshadow[ctxttid + tid] = pagep[i]; in qib_tid_update()
392 dd->physshadow[ctxttid + tid] = daddr; in qib_tid_update()
397 physaddr = dd->physshadow[ctxttid + tid]; in qib_tid_update()
421 if (dd->pageshadow[ctxttid + tid]) { in qib_tid_update()
424 phys = dd->physshadow[ctxttid + tid]; in qib_tid_update()
425 dd->physshadow[ctxttid + tid] = dd->tidinvalid; in qib_tid_update()
434 dd->pageshadow[ctxttid + tid] = NULL; in qib_tid_update()
487 u32 tid, ctxttid, cnt, limit, tidcnt; in qib_tid_free() local
503 ctxttid = rcd->ctxt * dd->rcvtidcnt; in qib_tid_free()
509 ctxttid += dd->rcvtidcnt - tidcnt; in qib_tid_free()
512 ctxttid += tidcnt * (subctxt - 1); in qib_tid_free()
516 ctxttid * sizeof(*tidbase)); in qib_tid_free()
534 if (dd->pageshadow[ctxttid + tid]) { in qib_tid_free()
538 p = dd->pageshadow[ctxttid + tid]; in qib_tid_free()
539 dd->pageshadow[ctxttid + tid] = NULL; in qib_tid_free()
540 phys = dd->physshadow[ctxttid + tid]; in qib_tid_free()
541 dd->physshadow[ctxttid + tid] = dd->tidinvalid; in qib_tid_free()