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