Lines Matching defs:child
309 name_child(dev_info_t *child, char *name, int namelen)
323 if (ddi_prop_lookup_string_array(DDI_DEV_T_ANY, child,
328 " not well-formed", ddi_driver_name(child));
341 if (ddi_prop_lookup_int_array(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
359 cmn_err(CE_WARN, "cannot name pci child '%s'", ddi_node_name(child));
364 uninit_child(pci_t *pci_p, dev_info_t *child)
368 ddi_driver_name(child), ddi_get_instance(child));
371 (void) pm_uninit_child(child);
373 ddi_set_name_addr(child, NULL);
374 ddi_remove_minor_node(child, NULL);
375 impl_rem_dev_props(child);
377 DEBUG0(DBG_PWR, ddi_get_parent(child), "\n\n");
380 * Handle chip specific post-uninit-child tasks.
399 init_child(pci_t *pci_p, dev_info_t *child)
417 if (strcmp(ddi_driver_name(child), "pcimem") == 0) {
418 (void) ddi_prop_create(DDI_DEV_T_NONE, child,
421 ddi_set_name_addr(child, "0");
422 ddi_set_parent_data(child, NULL);
430 no_config = ddi_prop_get_int(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
439 if ((ndi_dev_is_persistent_node(child) == 0) && (no_config == 0)) {
442 if (ddi_getlongprop(DDI_DEV_T_ANY, child,
446 ddi_driver_name(child));
451 * Name the child
453 if (name_child(child, name, 10) != DDI_SUCCESS)
456 ddi_set_name_addr(child, name);
457 ddi_set_parent_data(child, NULL);
463 if (ndi_merge_node(child, name_child) == DDI_SUCCESS) {
467 ddi_set_name_addr(child, NULL);
476 ddi_driver_name(child), ddi_get_name_addr(child),
477 ddi_driver_name(child));
478 ddi_set_name_addr(child, NULL);
482 if (name_child(child, name, 10) != DDI_SUCCESS)
484 ddi_set_name_addr(child, name);
493 if (pm_init_child(child) != DDI_SUCCESS)
499 * child (before it went to D3), then let the child do the
503 if (ddi_prop_exists(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
504 "config-regs-saved-by-child") == 1) {
505 DEBUG0(DBG_PWR, child,
506 "INITCHILD: config regs to be restored by child\n");
511 DEBUG2(DBG_PWR, ddi_get_parent(child),
513 ddi_node_name(child), ddi_get_name_addr(child));
516 * Map the child configuration space to for initialization.
529 if (pci_config_setup(child, &config_handle) != DDI_SUCCESS) {
530 (void) pm_uninit_child(child);
531 ddi_set_name_addr(child, NULL);
541 ddi_driver_name(child), header_type);
553 ddi_prop_get_int(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
556 ddi_driver_name(child), command_preserve);
563 ddi_driver_name(child),
584 ddi_getprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
591 (void) ndi_prop_update_int(DDI_DEV_T_NONE, child,
599 ddi_getprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
610 ddi_driver_name(child), min_gnt);
627 (void) ndi_prop_update_int(DDI_DEV_T_NONE, child,
634 * Handle chip specific init-child tasks.
636 pci_post_init_child(pci_p, child);
644 * Given a dev info pointer to a pci child, this routine returns the
652 get_nreg_set(dev_info_t *child)
660 if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg",
673 * Given a dev info pointer to a pci child, this routine returns the
681 get_nintr(dev_info_t *child)
686 if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS,
809 * Save the state of the configuration headers of child
829 * Only save config registers if not already saved by child.