Lines Matching refs:rhp
96 struct c4iw_dev *rhp; in c4iw_dealloc_ucontext() local
100 rhp = to_c4iw_dev(ucontext->ibucontext.device); in c4iw_dealloc_ucontext()
106 c4iw_release_dev_ucontext(&rhp->rdev, &ucontext->uctx); in c4iw_dealloc_ucontext()
114 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()
130 rhp->rdev.flags |= T4_STATUS_PAGE_DISABLED; in c4iw_alloc_ucontext()
150 mm->addr = vtophys(rhp->rdev.status_page); in c4iw_alloc_ucontext()
213 struct c4iw_dev *rhp = php->rhp; in c4iw_deallocate_pd() local
217 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
218 mutex_lock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
219 rhp->rdev.stats.pd.cur--; in c4iw_deallocate_pd()
220 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_deallocate_pd()
229 struct c4iw_dev *rhp; in c4iw_allocate_pd() local
233 rhp = (struct c4iw_dev *) ibdev; in c4iw_allocate_pd()
234 if (__predict_false(c4iw_stopped(&rhp->rdev))) in c4iw_allocate_pd()
236 pdid = c4iw_get_resource(&rhp->rdev.resource.pdid_table); in c4iw_allocate_pd()
241 php->rhp = rhp; in c4iw_allocate_pd()
248 mutex_lock(&rhp->rdev.stats.lock); in c4iw_allocate_pd()
249 rhp->rdev.stats.pd.cur++; in c4iw_allocate_pd()
250 if (rhp->rdev.stats.pd.cur > rhp->rdev.stats.pd.max) in c4iw_allocate_pd()
251 rhp->rdev.stats.pd.max = rhp->rdev.stats.pd.cur; in c4iw_allocate_pd()
252 mutex_unlock(&rhp->rdev.stats.lock); in c4iw_allocate_pd()