Lines Matching refs:uctx

694 		struct bnxt_re_ucontext *uctx = rdma_udata_to_drv_context(  in bnxt_re_create_ah()  local
699 spin_lock_irqsave(&uctx->sh_lock, flag); in bnxt_re_create_ah()
700 wrptr = (u32 *)(uctx->shpg + BNXT_RE_AVID_OFFT); in bnxt_re_create_ah()
703 spin_unlock_irqrestore(&uctx->sh_lock, flag); in bnxt_re_create_ah()
2841 struct bnxt_re_ucontext *uctx = rdma_udata_to_drv_context( in bnxt_re_create_cq() local
2856 cq->qplib_cq.dpi = &uctx->dpi; in bnxt_re_create_cq()
3846 struct bnxt_re_ucontext *uctx = in bnxt_re_alloc_ucontext() local
3862 uctx->rdev = rdev; in bnxt_re_alloc_ucontext()
3864 uctx->shpg = (void *)__get_free_page(GFP_KERNEL); in bnxt_re_alloc_ucontext()
3865 if (!uctx->shpg) { in bnxt_re_alloc_ucontext()
3869 spin_lock_init(&uctx->sh_lock); in bnxt_re_alloc_ucontext()
3897 free_page((unsigned long)uctx->shpg); in bnxt_re_alloc_ucontext()
3898 uctx->shpg = NULL; in bnxt_re_alloc_ucontext()
3905 struct bnxt_re_ucontext *uctx = container_of(ib_uctx, in bnxt_re_dealloc_ucontext() local
3909 struct bnxt_re_dev *rdev = uctx->rdev; in bnxt_re_dealloc_ucontext()
3911 if (uctx->shpg) in bnxt_re_dealloc_ucontext()
3912 free_page((unsigned long)uctx->shpg); in bnxt_re_dealloc_ucontext()
3914 if (uctx->dpi.dbr) { in bnxt_re_dealloc_ucontext()
3919 &rdev->qplib_res.dpi_tbl, &uctx->dpi); in bnxt_re_dealloc_ucontext()
3920 uctx->dpi.dbr = NULL; in bnxt_re_dealloc_ucontext()
3927 struct bnxt_re_ucontext *uctx = container_of(ib_uctx, in bnxt_re_mmap() local
3930 struct bnxt_re_dev *rdev = uctx->rdev; in bnxt_re_mmap()
3944 pfn = virt_to_phys(uctx->shpg) >> PAGE_SHIFT; in bnxt_re_mmap()