Lines Matching refs:rhp
92 struct c4iw_dev *rhp = to_c4iw_dev(context->device); in c4iw_dealloc_ucontext() local
99 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
108 struct c4iw_dev *rhp = to_c4iw_dev(ibdev); in c4iw_alloc_ucontext() local
121 c4iw_init_dev_ucontext(&rhp->rdev, &context->uctx); in c4iw_alloc_ucontext()
128 rhp->rdev.flags |= T4_STATUS_PAGE_DISABLED; in c4iw_alloc_ucontext()
149 mm->addr = virt_to_phys(rhp->rdev.status_page); in c4iw_alloc_ucontext()
233 struct c4iw_dev *rhp; in c4iw_deallocate_pd() local
237 rhp = php->rhp; in c4iw_deallocate_pd()
239 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
240 mutex_lock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
241 rhp->rdev.stats.pd.cur--; in c4iw_deallocate_pd()
242 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
253 struct c4iw_dev *rhp; in c4iw_allocate_pd() local
256 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd()
257 pdid = c4iw_get_resource(&rhp->rdev.resource.pdid_table); in c4iw_allocate_pd()
262 c4iw_put_resource(&rhp->rdev.resource.pdid_table, pdid); in c4iw_allocate_pd()
266 php->rhp = rhp; in c4iw_allocate_pd()
273 mutex_lock(&rhp->rdev.stats.lock); in c4iw_allocate_pd()
274 rhp->rdev.stats.pd.cur++; in c4iw_allocate_pd()
275 if (rhp->rdev.stats.pd.cur > rhp->rdev.stats.pd.max) in c4iw_allocate_pd()
276 rhp->rdev.stats.pd.max = rhp->rdev.stats.pd.cur; in c4iw_allocate_pd()
277 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_allocate_pd()