Lines Matching defs:uctx
343 static int hns_roce_alloc_uar_entry(struct ib_ucontext *uctx)
345 struct hns_roce_ucontext *context = to_hr_ucontext(uctx);
350 uctx, address, PAGE_SIZE, HNS_ROCE_MMAP_TYPE_DB);
357 static int hns_roce_alloc_ucontext(struct ib_ucontext *uctx,
360 struct hns_roce_ucontext *context = to_hr_ucontext(uctx);
361 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device);
404 ret = hns_roce_alloc_uar_entry(uctx);
445 static int hns_roce_mmap(struct ib_ucontext *uctx, struct vm_area_struct *vma)
447 struct hns_roce_dev *hr_dev = to_hr_dev(uctx->device);
454 rdma_entry = rdma_user_mmap_entry_get_pgoff(uctx, vma->vm_pgoff);
473 ret = rdma_user_mmap_io(uctx, vma, pfn, rdma_entry->npages * PAGE_SIZE,