Lines Matching defs:tinfo
247 struct hfi1_tid_info *tinfo)
258 if (!PAGE_ALIGNED(tinfo->vaddr))
260 if (tinfo->length == 0)
268 tidbuf->vaddr = tinfo->vaddr;
269 tidbuf->length = tinfo->length;
442 tinfo->tidcnt = tididx;
443 tinfo->length = mapped_pages * PAGE_SIZE;
445 if (copy_to_user(u64_to_user_ptr(tinfo->tidlist),
461 tinfo->tidlist = (unsigned long)tidlist;
462 hfi1_user_exp_rcv_clear(fd, tinfo);
463 tinfo->tidlist = 0;
484 struct hfi1_tid_info *tinfo)
491 if (unlikely(tinfo->tidcnt > fd->tid_used))
494 tidinfo = memdup_array_user(u64_to_user_ptr(tinfo->tidlist),
495 tinfo->tidcnt, sizeof(tidinfo[0]));
500 for (tididx = 0; tididx < tinfo->tidcnt; tididx++) {
511 tinfo->tidcnt = tididx;
519 struct hfi1_tid_info *tinfo)
543 tinfo->tidcnt = fd->invalid_tid_idx;
551 tinfo->tidcnt = 0;
555 if (tinfo->tidcnt) {
556 if (copy_to_user((void __user *)tinfo->tidlist,
557 array, sizeof(*array) * tinfo->tidcnt))