Lines Matching refs:ppd
1265 struct cardbus_parent_private_data *ppd; in cardbus_initchild() local
1268 ppd = (struct cardbus_parent_private_data *) in cardbus_initchild()
1273 ppd = (struct cardbus_parent_private_data *) in cardbus_initchild()
1277 ppd->ppd.par_intr = (struct intrspec *)(ppd + 1); in cardbus_initchild()
1278 (ppd->ppd.par_intr)->intrspec_pri = 0; in cardbus_initchild()
1279 (ppd->ppd.par_intr)->intrspec_vec = 0; in cardbus_initchild()
1280 (ppd->ppd.par_intr)->intrspec_func = (uint_t (*)()) 0; in cardbus_initchild()
1285 ppd->ppd.par_nintr = 1; in cardbus_initchild()
1287 ppd->code = CB_PPD_CODE; in cardbus_initchild()
1291 ppd->ppd.par_nreg = 0; in cardbus_initchild()
1292 ppd->ppd.par_reg = NULL; in cardbus_initchild()
1294 ddi_set_parent_data(child, (caddr_t)ppd); in cardbus_initchild()
1365 struct cardbus_parent_private_data *ppd; in cardbus_removechild() local
1369 ppd = (struct cardbus_parent_private_data *)ddi_get_parent_data(dip); in cardbus_removechild()
1370 if (ppd && (ppd->code == CB_PPD_CODE)) { in cardbus_removechild()
1371 if (ppd->ppd.par_reg && (ppd->ppd.par_nreg > 0)) in cardbus_removechild()
1372 kmem_free((caddr_t)ppd->ppd.par_reg, in cardbus_removechild()
1373 ppd->ppd.par_nreg * sizeof (struct regspec)); in cardbus_removechild()
1375 kmem_free(ppd, sizeof (struct cardbus_parent_private_data)); in cardbus_removechild()
1377 kmem_free(ppd, sizeof (struct cardbus_parent_private_data) + in cardbus_removechild()