Lines Matching defs:new_child

4009 	dev_info_t		*new_child;
4025 (pnode_t)DEVI_SID_NODEID, &new_child)
4031 if (pcicfg_add_config_reg(new_child, bus,
4038 if ((ret = pcicfg_config_setup(new_child, &config_handle))
4041 (void) ndi_devi_free(new_child);
4050 (void) pcie_init_bus(new_child, PCI_GETBDF(bus, device, func),
4061 if (pcicfg_pcie_dev(new_child, PCICFG_DEVICE_TYPE_PCIE, &regs)
4070 if (pcicfg_set_standard_props(new_child, config_handle,
4079 if (pcicfg_set_childnode_props(new_child, config_handle,
4092 (void) ndi_devi_free(new_child);
4104 (void) i_ndi_config_node(new_child, DS_LINKED, 0);
4115 if (pcicfg_probe_bridge(new_child, config_handle,
4117 (void) pcicfg_free_bridge_resources(new_child);
4132 ret = pcicfg_populate_props_from_bar(new_child,
4142 ret = pcicfg_device_assign_readonly(new_child);
4144 (void) pcicfg_free_device_resources(new_child,
4152 ret = pcicfg_populate_reg_props(new_child,
4158 ret = pcicfg_device_assign(new_child);
4160 (void) pcicfg_free_device_resources(new_child,
4166 (void) ndi_devi_bind_driver(new_child, 0);
4176 (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL);
4184 pcie_fini_bus(new_child, PCIE_BUS_FINAL);
4188 (void) ndi_devi_free(new_child);
4196 pcicfg_populate_reg_props(dev_info_t *new_child,
4217 if (pcicfg_update_reg_prop(new_child,
4264 if (pcicfg_update_reg_prop(new_child,
4280 dev_info_t *new_child;
4328 (pnode_t)DEVI_SID_NODEID, &new_child)
4341 if (pcicfg_add_config_reg(new_child, bus,
4347 if ((ret = pcicfg_config_setup(new_child, &h))
4367 if (pcicfg_map_phys(new_child, &p, &virt, &acc, &h)) {
4379 if (ddi_peek16(new_child, (int16_t *)v, &vendor_id)) {
4388 (void) pcie_init_bus(new_child, PCI_GETBDF(bus, device, func),
4400 if (pcicfg_pcie_dev(new_child, PCICFG_DEVICE_TYPE_PCIE, &regs)
4409 if (pcicfg_set_standard_props(new_child,
4418 if (pcicfg_set_childnode_props(new_child,
4454 if ((ret = pcicfg_probe_bridge(new_child, h,
4456 (void) pcicfg_free_bridge_resources(new_child);
4468 (void) i_ndi_config_node(new_child, DS_LINKED, 0);
4506 if (pcicfg_fcode_assign_bars(h, new_child,
4521 (void) pcicfg_load_fcode(new_child, bus, device,
4532 (void) pcicfg_free_resource(new_child, p, 0);
4543 new_child, "fcode-rom-offset", 0)
4572 parent, new_child, unit_address);
4574 c = pci_fc_ops_alloc_handle(parent, new_child,
4580 new_child, ddi_binding_name(new_child),
4581 ddi_driver_major(new_child));
4612 DEBUG3("DIP=%lx binding name %s major %d\n", new_child,
4613 ddi_binding_name(new_child),
4614 ddi_driver_major(new_child));
4619 if (pcicfg_alloc_new_resources(new_child) ==
4630 new_child, NULL, "status", &status_prop) ==
4645 (void) ndi_devi_bind_driver(new_child, 0);
4655 (void) pcicfg_free_resources(new_child, flags);
4674 (void) pcicfg_free_resources(new_child, flags);
4683 pcie_fini_bus(new_child, PCIE_BUS_FINAL);
4685 (void) ndi_devi_free(new_child);
4700 if ((new_child = pcicfg_devi_find(
4728 if (pcicfg_is_ntbridge(new_child) != DDI_FAILURE) {
4732 ret = pcicfg_configure_ntbridge(new_child,
4742 (void) pcicfg_ntbridge_unconfigure(new_child);
4743 (void) pcicfg_teardown_device(new_child,
4754 (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL);
4756 pcie_fini_bus(new_child, PCIE_BUS_FINAL);
4766 (void) ndi_devi_free(new_child);
4784 pcicfg_populate_props_from_bar(dev_info_t *new_child,
4808 if (pcicfg_update_reg_prop(new_child,
4823 if (pcicfg_update_assigned_prop_value(new_child,
4871 if (pcicfg_update_reg_prop(new_child,
4879 if (pcicfg_update_assigned_prop_value(new_child, size,
4892 pcicfg_probe_bridge(dev_info_t *new_child, ddi_acc_handle_t h, uint_t bus,
4926 if (ndi_prop_update_string(DDI_DEV_T_NONE, new_child,
4939 rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
4956 if (ndi_ra_map_setup(new_child, NDI_RA_TYPE_PCI_BUSNUM)
4967 (void) ndi_ra_free(new_child, pcibus_base+1, pcibus_alen-1,
4995 rval = ndi_ra_alloc(ddi_get_parent(new_child), &req,
5014 if (ndi_ra_map_setup(new_child, NDI_RA_TYPE_MEM) == NDI_FAILURE) {
5022 (void) ndi_ra_free(new_child, mem_answer, mem_alen, NDI_RA_TYPE_MEM,
5037 rval = ndi_ra_alloc(ddi_get_parent(new_child), &req, &io_answer,
5056 if (ndi_ra_map_setup(new_child, NDI_RA_TYPE_IO) ==
5065 (void) ndi_ra_free(new_child, io_answer, io_alen,
5078 if (ndi_prop_update_int_array(DDI_DEV_T_NONE, new_child,
5126 (void) ndi_ra_alloc(new_child, &req,
5168 (void) ndi_ra_alloc(new_child, &req,
5184 if (pcicfg_update_ranges_prop(new_child, &range[0])) {
5189 if (pcicfg_update_ranges_prop(new_child, &range[1])) {
5212 if (pcicfg_pcie_device_type(new_child, h) == DDI_SUCCESS)
5218 if (pcicfg_set_busnode_props(new_child, pcie_device_type,
5227 (void) pcie_init_bus(new_child, 0, PCIE_BUS_FINAL);
5228 if (ndi_devi_online(new_child, NDI_NO_EVENT|NDI_CONFIG)
5247 ndi_devi_enter(new_child, &count);
5256 if ((rval = pcicfg_fcode_probe(new_child,
5279 new_device = pcicfg_devi_find(new_child,
5289 if ((pcie_ari_supported(new_child) ==
5293 if (pcie_ari_enable(new_child) ==
5297 new_child,
5326 ndi_devi_exit(new_child, count);
5341 VERIFY(ndi_devi_offline(new_child, NDI_NO_EVENT|NDI_UNCONFIG)
5344 pcie_fini_bus(new_child, PCIE_BUS_INITIAL);
5346 phdl.dip = new_child;
5351 ndi_devi_enter(ddi_get_parent(new_child), &count);
5352 ddi_walk_devs(new_child, pcicfg_find_resource_end, (void *)&phdl);
5353 ndi_devi_exit(ddi_get_parent(new_child), count);
5360 num_slots = pcicfg_get_nslots(new_child, h);
5377 (void) ndi_prop_remove(DDI_DEV_T_NONE, new_child, "available");
5437 if (pcicfg_update_available_prop(new_child, &reg)) {
5447 if (pcicfg_update_available_prop(new_child, &reg)) {
5458 (void) ndi_ra_free(ddi_get_parent(new_child),
5485 (void) ndi_ra_free(ddi_get_parent(new_child),
5521 (void) ndi_ra_free(ddi_get_parent(new_child),
5536 if (ndi_prop_update_int_array(DDI_DEV_T_NONE, new_child,
5546 (void) ndi_prop_remove(DDI_DEV_T_NONE, new_child, "ranges");
5563 if (pcicfg_update_ranges_prop(new_child, &range[0])) {
5570 if (pcicfg_update_ranges_prop(new_child, &range[1])) {
5584 if (ndi_ra_map_destroy(new_child, NDI_RA_TYPE_MEM) == NDI_FAILURE) {
5589 if (ndi_ra_map_destroy(new_child, NDI_RA_TYPE_IO) == NDI_FAILURE) {
5594 if (ndi_ra_map_destroy(new_child, NDI_RA_TYPE_PCI_BUSNUM)