Lines Matching refs:rhp
65 struct c4iw_dev *rhp; in c4iw_dealloc_ucontext() local
69 rhp = to_c4iw_dev(ucontext->ibucontext.device); in c4iw_dealloc_ucontext()
73 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
81 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() local
87 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
93 rhp->rdev.flags |= T4_STATUS_PAGE_DISABLED; in c4iw_alloc_ucontext()
114 mm->addr = virt_to_phys(rhp->rdev.status_page); in c4iw_alloc_ucontext()
118 insert_flag_to_mmap(&rhp->rdev, mm, mm->addr); in c4iw_alloc_ucontext()
195 struct c4iw_dev *rhp; in c4iw_deallocate_pd() local
199 rhp = php->rhp; in c4iw_deallocate_pd()
201 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
202 mutex_lock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
203 rhp->rdev.stats.pd.cur--; in c4iw_deallocate_pd()
204 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
213 struct c4iw_dev *rhp; in c4iw_allocate_pd() local
216 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd()
217 pdid = c4iw_get_resource(&rhp->rdev.resource.pdid_table); in c4iw_allocate_pd()
222 php->rhp = rhp; in c4iw_allocate_pd()
231 mutex_lock(&rhp->rdev.stats.lock); in c4iw_allocate_pd()
232 rhp->rdev.stats.pd.cur++; in c4iw_allocate_pd()
233 if (rhp->rdev.stats.pd.cur > rhp->rdev.stats.pd.max) in c4iw_allocate_pd()
234 rhp->rdev.stats.pd.max = rhp->rdev.stats.pd.cur; in c4iw_allocate_pd()
235 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_allocate_pd()