Lines Matching refs:tid

299 	u32 tid, porttid, cnt, i, tidcnt, tidoff;  in ipath_tid_update()  local
327 tid = pd->port_tidcursor; in ipath_tid_update()
334 tid = tidcursor_fp(fp); in ipath_tid_update()
339 tid = tidcursor_fp(fp); in ipath_tid_update()
358 pd->port_port, cnt, tid, tidbase); in ipath_tid_update()
390 for (; ntids--; tid++) { in ipath_tid_update()
391 if (tid == tidcnt) in ipath_tid_update()
392 tid = 0; in ipath_tid_update()
393 if (!dd->ipath_pageshadow[porttid + tid]) in ipath_tid_update()
408 tidlist[i] = tid + tidoff; in ipath_tid_update()
410 "vaddr %lx\n", i, tid + tidoff, vaddr); in ipath_tid_update()
412 dd->ipath_pageshadow[porttid + tid] = pagep[i]; in ipath_tid_update()
413 dd->ipath_physshadow[porttid + tid] = ipath_map_page( in ipath_tid_update()
419 __set_bit(tid, tidmap); in ipath_tid_update()
420 physaddr = dd->ipath_physshadow[porttid + tid]; in ipath_tid_update()
424 tid, vaddr, (unsigned long long) physaddr, in ipath_tid_update()
426 dd->ipath_f_put_tid(dd, &tidbase[tid], RCVHQ_RCV_TYPE_EXPECTED, in ipath_tid_update()
432 tid++; in ipath_tid_update()
446 tid = find_first_bit((const unsigned long *)tidmap, limit); in ipath_tid_update()
447 for (; tid < limit; tid++) { in ipath_tid_update()
448 if (!test_bit(tid, tidmap)) in ipath_tid_update()
450 if (dd->ipath_pageshadow[porttid + tid]) { in ipath_tid_update()
452 tid); in ipath_tid_update()
453 dd->ipath_f_put_tid(dd, &tidbase[tid], in ipath_tid_update()
457 dd->ipath_physshadow[porttid + tid], in ipath_tid_update()
459 dd->ipath_pageshadow[porttid + tid] = NULL; in ipath_tid_update()
481 if (tid == tidcnt) in ipath_tid_update()
482 tid = 0; in ipath_tid_update()
484 pd->port_tidcursor = tid; in ipath_tid_update()
486 tidcursor_fp(fp) = tid; in ipath_tid_update()
517 u32 tid, porttid, cnt, limit, tidcnt; in ipath_tid_free() local
552 tid = find_first_bit(tidmap, limit); in ipath_tid_free()
555 limit, tid, porttid); in ipath_tid_free()
556 for (cnt = 0; tid < limit; tid++) { in ipath_tid_free()
564 if (!test_bit(tid, tidmap)) in ipath_tid_free()
567 if (dd->ipath_pageshadow[porttid + tid]) { in ipath_tid_free()
569 p = dd->ipath_pageshadow[porttid + tid]; in ipath_tid_free()
570 dd->ipath_pageshadow[porttid + tid] = NULL; in ipath_tid_free()
572 pid_nr(pd->port_pid), tid); in ipath_tid_free()
573 dd->ipath_f_put_tid(dd, &tidbase[tid], in ipath_tid_free()
577 dd->ipath_physshadow[porttid + tid], in ipath_tid_free()
582 ipath_dbg("Unused tid %u, ignoring\n", tid); in ipath_tid_free()