Lines Matching refs:php
232 struct c4iw_pd *php = to_c4iw_pd(pd); in c4iw_deallocate_pd() local
233 struct c4iw_dev *rhp = php->rhp; in c4iw_deallocate_pd()
235 CTR3(KTR_IW_CXGBE, "%s: pd %p, pdid 0x%x", __func__, pd, php->pdid); in c4iw_deallocate_pd()
237 c4iw_put_resource(&rhp->rdev.resource.pdid_table, php->pdid); in c4iw_deallocate_pd()
241 kfree(php); in c4iw_deallocate_pd()
250 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()
281 ibdev, context, udata, pdid, php); in c4iw_allocate_pd()
282 return (&php->ibpd); in c4iw_allocate_pd()