Lines Matching refs:ntn

127 	tnode_t *ntn;
129 if ((ntn = tnode_create(mod, parent, name, i, priv)) == NULL)
131 if (topo_method_register(mod, ntn, Pci_methods) < 0) {
134 topo_node_unbind(ntn);
137 return (ntn);
164 tnode_t *ntn, *ptn;
228 if ((ntn = pci_tnode_create(mod, parent, PCIEX_FUNCTION, i, dn))
231 if (did_props_set(ntn, pd, Fn_common_props, Fn_propcnt) < 0) {
232 topo_node_unbind(ntn);
238 if (child_range_add(mod, ntn, PCIEX_BUS, 0, MAX_HB_BUSES) < 0) {
239 topo_node_unbind(ntn);
242 if (child_range_add(mod, ntn, PCI_BUS, 0, MAX_HB_BUSES) < 0) {
243 topo_node_range_destroy(ntn, PCIEX_BUS);
244 topo_node_unbind(ntn);
247 return (ntn);
255 tnode_t *ntn;
261 if ((ntn = pci_tnode_create(mod, parent, PCIEX_DEVICE, i, dn)) == NULL)
263 if (did_props_set(ntn, pd, Dev_common_props, Dev_propcnt) < 0) {
264 topo_node_unbind(ntn);
272 ntn, PCIEX_FUNCTION, 0, MAX_PCIDEV_FNS) < 0) {
273 topo_node_unbind(ntn);
276 return (ntn);
284 tnode_t *ntn;
289 if ((ntn = pci_tnode_create(mod, parent, PCIEX_BUS, i, dn)) == NULL)
291 if (did_props_set(ntn, pd, Bus_common_props, Bus_propcnt) < 0) {
292 topo_node_unbind(ntn);
299 ntn, PCIEX_DEVICE, 0, MAX_PCIBUS_DEVS) < 0) {
300 topo_node_unbind(ntn);
303 return (ntn);
311 tnode_t *ntn;
317 if ((ntn = pci_tnode_create(mod, parent, PCI_FUNCTION, i, dn)) == NULL)
319 if (did_props_set(ntn, pd, Fn_common_props, Fn_propcnt) < 0) {
320 topo_node_unbind(ntn);
326 if (child_range_add(mod, ntn, PCI_BUS, 0, MAX_HB_BUSES) < 0) {
327 topo_node_unbind(ntn);
330 return (ntn);
338 tnode_t *ntn;
345 if ((ntn = pci_tnode_create(mod, parent, PCI_DEVICE, i, dn)) == NULL)
347 if (did_props_set(ntn, pd, Dev_common_props, Dev_propcnt) < 0) {
348 topo_node_unbind(ntn);
355 if (child_range_add(mod, ntn, PCI_FUNCTION, 0, MAX_PCIDEV_FNS) < 0) {
356 topo_node_unbind(ntn);
359 return (ntn);
367 tnode_t *ntn;
373 if ((ntn = pci_tnode_create(mod, parent, PCI_BUS, i, dn)) == NULL)
383 if (did_props_set(ntn, pd, Bus_common_props, Bus_propcnt) < 0) {
384 topo_node_unbind(ntn);
390 if (child_range_add(mod, ntn, PCI_DEVICE, 0, MAX_PCIBUS_DEVS) < 0) {
391 topo_node_unbind(ntn);
400 if (hostbridge_asdevice(mod, ntn) < 0) {
401 topo_node_range_destroy(ntn, PCI_DEVICE);
402 topo_node_unbind(ntn);
406 return (ntn);