Lines Matching refs:uinfo
43 const struct hfi1_user_info *uinfo);
60 const struct hfi1_user_info *uinfo);
62 struct hfi1_user_info *uinfo,
749 struct hfi1_user_info uinfo; in assign_ctxt() local
754 if (sizeof(uinfo) != len) in assign_ctxt()
757 if (copy_from_user(&uinfo, (void __user *)arg, sizeof(uinfo))) in assign_ctxt()
760 swmajor = uinfo.userversion >> 16; in assign_ctxt()
764 if (uinfo.subctxt_cnt > HFI1_MAX_SHARED_CTXTS) in assign_ctxt()
776 ret = find_sub_ctxt(fd, &uinfo); in assign_ctxt()
783 ret = allocate_ctxt(fd, fd->dd, &uinfo, &uctxt); in assign_ctxt()
814 const struct hfi1_user_info *uinfo, in match_ctxt() argument
826 if (memcmp(uctxt->uuid, uinfo->uuid, sizeof(uctxt->uuid)) || in match_ctxt()
828 uctxt->subctxt_id != uinfo->subctxt_id || in match_ctxt()
829 uctxt->subctxt_cnt != uinfo->subctxt_cnt) in match_ctxt()
833 if (uctxt->userversion != uinfo->userversion) in match_ctxt()
876 const struct hfi1_user_info *uinfo) in find_sub_ctxt() argument
883 if (!uinfo->subctxt_cnt) in find_sub_ctxt()
889 ret = match_ctxt(fd, uinfo, uctxt); in find_sub_ctxt()
901 struct hfi1_user_info *uinfo, in allocate_ctxt() argument
963 if (uinfo->subctxt_cnt) in allocate_ctxt()
964 init_subctxts(uctxt, uinfo); in allocate_ctxt()
965 uctxt->userversion = uinfo->userversion; in allocate_ctxt()
969 memcpy(uctxt->uuid, uinfo->uuid, sizeof(uctxt->uuid)); in allocate_ctxt()
1000 const struct hfi1_user_info *uinfo) in init_subctxts() argument
1002 uctxt->subctxt_cnt = uinfo->subctxt_cnt; in init_subctxts()
1003 uctxt->subctxt_id = uinfo->subctxt_id; in init_subctxts()