Home
last modified time | relevance | path

Searched refs:di_node (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dlibdevinfo_sun4u.c52 static void dump_di_node(Prom_node *pnode, di_node_t di_node);
54 di_node_t di_node);
71 walk_di_tree(Sys_tree *tree, Prom_node *root, di_node_t di_node) in walk_di_tree() argument
96 dump_di_node(pnode, di_node); in walk_di_tree()
112 if ((n_names = di_compatible_names(di_node, &compatible_array)) > 0) { in walk_di_tree()
141 di_node_name(di_node), di_devfs_path(di_node)); in walk_di_tree()
163 di_node_name(di_node), di_devfs_path(di_node)); in walk_di_tree()
171 if (curnode = di_child_node(di_node)) { in walk_di_tree()
175 if (curnode = di_sibling_node(di_node)) { in walk_di_tree()
198 dump_di_node(Prom_node *pnode, di_node_t di_node) in dump_di_node() argument
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddr.c32 di_node_t di_node; member
112 add_devinfo_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_devinfo_props() argument
120 instance = di_instance(di_node); in add_devinfo_props()
126 di_val = di_bus_addr(di_node); in add_devinfo_props()
135 di_val = di_binding_name(di_node); in add_devinfo_props()
144 di_val = di_driver_name(di_node); in add_devinfo_props()
153 di_val = di_devfs_path(di_node); in add_devinfo_props()
163 for (di_prop = di_prop_next(di_node, DI_PROP_NIL); in add_devinfo_props()
165 di_prop = di_prop_next(di_node, di_prop)) { in add_devinfo_props()
326 get_cpuid(di_node_t di_node) in get_cpuid() argument
[all …]
/illumos-gate/usr/src/lib/libppt/common/
H A Dlibppt.c49 is_pci(di_node_t di_node) in is_pci() argument
53 if (di_prop_lookup_strings(DDI_DEV_T_ANY, di_parent_node(di_node), in is_pci()
61 populate_int_prop(di_node_t di_node, nvlist_t *nvl, const char *name, int *ival) in populate_int_prop() argument
67 if (di_prop_lookup_ints(DDI_DEV_T_ANY, di_node, name, &ivals) != 1) in populate_int_prop()
99 dev_getinfo(di_node_t di_node, pcidb_hdl_t *db, in dev_getinfo() argument
114 if ((err = populate_int_prop(di_node, nvl, "vendor-id", &vid)) != 0) in dev_getinfo()
116 if ((err = populate_int_prop(di_node, nvl, "device-id", &did)) != 0) in dev_getinfo()
118 if ((err = populate_int_prop(di_node, nvl, "revision-id", NULL)) != 0) in dev_getinfo()
125 (void) populate_int_prop(di_node, nvl, "subsystem-vendor-id", NULL); in dev_getinfo()
126 (void) populate_int_prop(di_node, nvl, "subsystem-id", NULL); in dev_getinfo()
[all …]
/illumos-gate/usr/src/cmd/fuser/
H A Dfuser.c230 di_node_t di_node; in i_get_dev_path() local
248 di_node = di_drv_first_node(drv_name, *di_root); in i_get_dev_path()
249 if (di_node == DI_NODE_NIL) in i_get_dev_path()
264 while (di_minor = di_minor_next(di_node, di_minor)) { in i_get_dev_path()
279 (f_user->fu_instance == di_instance(di_node))) { in i_get_dev_path()
280 path = di_devfs_path(di_node); in i_get_dev_path()
287 } while (di_node = di_drv_next_node(di_node)); in i_get_dev_path()
/illumos-gate/usr/src/cmd/pcitool/
H A Dpcitool.c141 static int do_probe(int fd, di_node_t di_node, di_prom_handle_t di_phdl,
748 do_probe(int fd, di_node_t di_node, di_prom_handle_t di_phdl, in do_probe() argument
776 len = di_prop_lookup_ints(DDI_DEV_T_ANY, di_node, in do_probe()
781 len = di_prom_prop_lookup_ints(di_phdl, di_node, in do_probe()
862 process_nexus_node(di_node_t di_node, di_minor_t minor, void *arg) in process_nexus_node() argument
908 if ((do_probe(fd, di_node, walk_args_p->di_phdl, in process_nexus_node()
938 di_node_t di_node; in do_probe_walk() local
944 if ((di_node = di_init("/", DINFOCPYALL)) == DI_NODE_NIL) { in do_probe_walk()
959 (void) di_walk_minor(di_node, DDI_NT_REGACC, 0, in do_probe_walk()
967 if (di_node != DI_NODE_NIL) { in do_probe_walk()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Ddevinfo.c223 struct di_node *di_node; /* di_node in snapshot */ member
1521 struct di_node *me; in build_vhci_list()
1566 struct di_node *vh_di_node; in build_phci_list()
1567 struct di_node *me; in build_phci_list()
1607 struct di_node *me; in snap_driver_list()
1785 struct di_node *me; in di_copynode()
1795 size = sizeof (struct di_node); in di_copynode()
2108 ASSERT(i_lnode->di_node->self > 0); in i_lnode_check_free()
2145 struct di_node *ptr; in i_lnode_hashfunc()
2152 ptr = i_lnode->di_node; in i_lnode_hashfunc()
[all …]
/illumos-gate/usr/src/cmd/biosdev/
H A Dbiosdev.c50 di_node_t di_node; member
250 pbp->di_node = node; in i_match_pcibdf()
265 pb.di_node = DI_NODE_NIL; in search_tree_match_pcibdf()
268 return (pb.di_node); in search_tree_match_pcibdf()
/illumos-gate/usr/src/lib/libcpc/sparc/
H A Dconf_ultra.c612 cpc_get_cpu_ver(di_node_t di_node, void *arg) in cpc_get_cpu_ver() argument
618 node_name = di_node_name(di_node); in cpc_get_cpu_ver()
628 if ((n_names = di_compatible_names(di_node, in cpc_get_cpu_ver()
/illumos-gate/usr/src/uts/common/sys/
H A Ddevinfo_impl.h114 #define DI_NODE(addr) ((struct di_node *)((void *)(addr)))
220 struct di_node { /* useful info to export for each tree node */ struct
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c898 add_openprom_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_openprom_props() argument
911 for (promp = di_prom_prop_next(ph, di_node, DI_PROM_PROP_NIL); in add_openprom_props()
913 promp = di_prom_prop_next(ph, di_node, promp)) { in add_openprom_props()
1062 di_node_t di_node; in get_path_state_name() local
1097 di_node = di_lookup_node(di_root, devfs_path); in get_path_state_name()
1098 if (di_node == DI_NODE_NIL) { in get_path_state_name()
1118 while ((pi = di_path_next_phci(di_node, pi)) != DI_PATH_NIL) { in get_path_state_name()
1215 construct_mpath_node(picl_nodehdl_t parh, di_node_t di_node) in construct_mpath_node() argument
1219 while ((pi = di_path_next_phci(di_node, pi)) != DI_PATH_NIL) { in construct_mpath_node()
1272 add_devinfo_props(picl_nodehdl_t nodeh, di_node_t di_node) in add_devinfo_props() argument
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Dlibdevinfo.h108 typedef struct di_node *di_node_t; /* node */
/illumos-gate/usr/src/lib/libraidcfg/common/
H A Draidcfg.c4454 di_node_t di_node; in controller_id_to_driver_name() local
4470 di_node = di_init(tmp, DINFOPROP); in controller_id_to_driver_name()
4471 if (di_node == DI_NODE_NIL) in controller_id_to_driver_name()
4474 name = di_driver_name(di_node); in controller_id_to_driver_name()