Lines Matching refs:php
238 struct c4iw_pd *php; in c4iw_deallocate_pd() local
240 php = to_c4iw_pd(pd); in c4iw_deallocate_pd()
241 rhp = php->rhp; in c4iw_deallocate_pd()
242 PDBG("%s ibpd %p pdid 0x%x\n", __func__, pd, php->pdid); in c4iw_deallocate_pd()
243 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
247 kfree(php); in c4iw_deallocate_pd()
255 struct c4iw_pd *php; in c4iw_allocate_pd() local
264 php = kzalloc(sizeof(*php), GFP_KERNEL); in c4iw_allocate_pd()
265 if (!php) { in c4iw_allocate_pd()
269 php->pdid = pdid; in c4iw_allocate_pd()
270 php->rhp = rhp; in c4iw_allocate_pd()
272 if (ib_copy_to_udata(udata, &php->pdid, sizeof(u32))) { in c4iw_allocate_pd()
273 c4iw_deallocate_pd(&php->ibpd); in c4iw_allocate_pd()
282 PDBG("%s pdid 0x%0x ptr 0x%p\n", __func__, pdid, php); in c4iw_allocate_pd()
283 return &php->ibpd; in c4iw_allocate_pd()