Lines Matching defs:child
89 static void cardbus_init_child_regs(dev_info_t *child);
632 * The child of the dip is the cardbus dip. The child of the
1095 cardbus_init_child_regs(dev_info_t *child)
1107 * Map the child configuration space to for initialization.
1118 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS)
1121 cardbus_err(child, 6, "cardbus_init_child_regs()\n");
1137 command_preserve = ddi_prop_get_int(DDI_DEV_T_ANY, child,
1165 if (ddi_getprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
1172 (void) ndi_prop_update_int(DDI_DEV_T_NONE, child,
1179 if (ddi_getprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
1201 (void) ndi_prop_update_int(DDI_DEV_T_NONE, child,
1209 cardbus_initchild(dev_info_t *rdip, dev_info_t *dip, dev_info_t *child,
1218 cardbus_err(child, 6, "cardbus_initchild\n");
1221 * Name the child
1223 if (cardbus_name_child(child, name, MAXNAMELEN) != DDI_SUCCESS)
1226 ddi_set_name_addr(child, name);
1227 ddi_set_parent_data(child, NULL);
1229 if (ndi_dev_is_persistent_node(child) == 0) {
1234 if (ndi_merge_node(child, cardbus_name_child) == DDI_SUCCESS) {
1238 cardbus_removechild(child);
1242 * The child was not merged into a h/w node,
1247 ddi_driver_name(child), ddi_get_name_addr(child),
1248 ddi_driver_name(child));
1249 cardbus_removechild(child);
1259 cardbus_init_child_regs(child);
1264 if (ddi_get_parent_data(child) == NULL) {
1283 if (ddi_getprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS,
1289 cardbus_err(child, 5,
1294 ddi_set_parent_data(child, (caddr_t)ppd);
1301 cardbus_name_child(dev_info_t *child, char *name, int namelen)
1314 if (ndi_dev_is_persistent_node(child) == 0) {
1315 if (ddi_prop_lookup_string_array(DDI_DEV_T_ANY, child,
1319 ddi_driver_name(child));
1324 " not well-formed", ddi_driver_name(child));
1337 if (ddi_prop_lookup_int_array(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
1352 cardbus_err(child, 8,
1356 ddi_get_name(child), ddi_get_name_addr(child),
1357 DEVI(child)->devi_nodeid, name);
1867 /* A child has asked us to set something up */