Lines Matching defs:new_device

718 	dev_info_t *new_device;
795 if ((new_device = pcicfg_devi_find(devi,
808 (pcie_ari_device(new_device) == PCIE_ARI_DEVICE)) {
824 if (pcie_ari_get_next_function(new_device,
869 if ((new_device = pcicfg_devi_find(devi,
881 (void) pcicfg_destroy_phdl(new_device);
887 if (ddi_get_child(new_device) != NULL)
888 pcie_fab_fini_bus(new_device, PCIE_BUS_ALL);
890 pcie_fini_bus(new_device, PCIE_BUS_ALL);
895 (void) ndi_devi_offline(new_device, NDI_DEVI_REMOVE);
903 * configure the child nodes of ntbridge. new_device points to ntbridge itself
907 pcicfg_configure_ntbridge(dev_info_t *new_device, uint_t bus, uint_t device)
925 if ((rc = ndi_prop_update_int(DDI_DEV_T_NONE, new_device,
932 if (pci_config_setup(new_device, &config_handle) != DDI_SUCCESS)
935 if (pcicfg_pcie_device_type(new_device, config_handle) == DDI_SUCCESS)
940 if (pcicfg_set_busnode_props(new_device, pcie_device_type, -1, -1) !=
949 if (ndi_ra_alloc(ddi_get_parent(new_device), &req,
965 if (ndi_prop_update_int_array(DDI_DEV_T_NONE, new_device,
982 rc = ndi_devi_online(new_device, NDI_NO_EVENT|NDI_CONFIG);
993 if (pcicfg_ntbridge_allocate_resources(new_device) !=
1003 if (ndi_devi_alloc(new_device, DEVI_PSEUDO_NEXNAME,
1043 if (pcicfg_configure(new_device, devno, PCICFG_ALL_FUNC, 0)
1053 new_device, old_dev) == PCICFG_FAILURE)
1066 rc = pcicfg_ntbridge_configure_done(new_device);
1068 pcicfg_phdl_t *entry = pcicfg_find_phdl(new_device);
1072 if (ddi_getlongprop(DDI_DEV_T_ANY, new_device,
1083 if (ndi_ra_free(ddi_get_parent(new_device),
1107 (void) pcicfg_destroy_phdl(new_device);
1117 rc1 = ndi_devi_offline(new_device, NDI_NO_EVENT);
1323 pcicfg_ntbridge_unconfigure_child(dev_info_t *new_device, uint_t devno)
1333 if (ddi_getlongprop_buf(DDI_DEV_T_ANY, new_device, DDI_PROP_DONTPASS,
1341 if (ndi_devi_alloc(new_device, DEVI_PSEUDO_NEXNAME,
1377 return (pcicfg_unconfigure(new_device, devno, PCICFG_ALL_FUNC, 0));
4909 dev_info_t *new_device;
5279 new_device = pcicfg_devi_find(new_child,
5286 if (new_device == NULL)
5291 (pcie_ari_device(new_device) ==
5310 if (new_device == NULL)
5313 if (pcie_ari_get_next_function(new_device,