Lines Matching refs:uctx

695 		struct bnxt_re_ucontext *uctx = rdma_udata_to_drv_context(  in bnxt_re_create_ah()  local
700 spin_lock_irqsave(&uctx->sh_lock, flag); in bnxt_re_create_ah()
701 wrptr = (u32 *)(uctx->shpg + BNXT_RE_AVID_OFFT); in bnxt_re_create_ah()
704 spin_unlock_irqrestore(&uctx->sh_lock, flag); in bnxt_re_create_ah()
2842 struct bnxt_re_ucontext *uctx = rdma_udata_to_drv_context( in bnxt_re_create_cq() local
2857 cq->qplib_cq.dpi = &uctx->dpi; in bnxt_re_create_cq()
3847 struct bnxt_re_ucontext *uctx = in bnxt_re_alloc_ucontext() local
3863 uctx->rdev = rdev; in bnxt_re_alloc_ucontext()
3865 uctx->shpg = (void *)__get_free_page(GFP_KERNEL); in bnxt_re_alloc_ucontext()
3866 if (!uctx->shpg) { in bnxt_re_alloc_ucontext()
3870 spin_lock_init(&uctx->sh_lock); in bnxt_re_alloc_ucontext()
3898 free_page((unsigned long)uctx->shpg); in bnxt_re_alloc_ucontext()
3899 uctx->shpg = NULL; in bnxt_re_alloc_ucontext()
3906 struct bnxt_re_ucontext *uctx = container_of(ib_uctx, in bnxt_re_dealloc_ucontext() local
3910 struct bnxt_re_dev *rdev = uctx->rdev; in bnxt_re_dealloc_ucontext()
3912 if (uctx->shpg) in bnxt_re_dealloc_ucontext()
3913 free_page((unsigned long)uctx->shpg); in bnxt_re_dealloc_ucontext()
3915 if (uctx->dpi.dbr) { in bnxt_re_dealloc_ucontext()
3920 &rdev->qplib_res.dpi_tbl, &uctx->dpi); in bnxt_re_dealloc_ucontext()
3921 uctx->dpi.dbr = NULL; in bnxt_re_dealloc_ucontext()
3928 struct bnxt_re_ucontext *uctx = container_of(ib_uctx, in bnxt_re_mmap() local
3931 struct bnxt_re_dev *rdev = uctx->rdev; in bnxt_re_mmap()
3945 pfn = virt_to_phys(uctx->shpg) >> PAGE_SHIFT; in bnxt_re_mmap()