Lines Matching refs:php
234 struct c4iw_pd *php; in c4iw_deallocate_pd() local
236 php = to_c4iw_pd(pd); in c4iw_deallocate_pd()
237 rhp = php->rhp; in c4iw_deallocate_pd()
238 PDBG("%s ibpd %p pdid 0x%x\n", __func__, pd, php->pdid); in c4iw_deallocate_pd()
239 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
243 kfree(php); in c4iw_deallocate_pd()
251 struct c4iw_pd *php; in c4iw_allocate_pd() local
260 php = kzalloc(sizeof(*php), GFP_KERNEL); in c4iw_allocate_pd()
261 if (!php) { in c4iw_allocate_pd()
265 php->pdid = pdid; in c4iw_allocate_pd()
266 php->rhp = rhp; in c4iw_allocate_pd()
268 if (ib_copy_to_udata(udata, &php->pdid, sizeof(u32))) { in c4iw_allocate_pd()
269 c4iw_deallocate_pd(&php->ibpd); in c4iw_allocate_pd()
278 PDBG("%s pdid 0x%0x ptr 0x%p\n", __func__, pdid, php); in c4iw_allocate_pd()
279 return &php->ibpd; in c4iw_allocate_pd()