/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_io.c | 313 pnode_t node; in promif_instance_to_path() local 328 node = instance_to_package(ih); in promif_instance_to_path() 332 while (node != prom_rootnode()) { in promif_instance_to_path() 333 if (prom_getprop(node, OBP_NAME, name) == -1) { in promif_instance_to_path() 335 "node=0x%x\n", node); in promif_instance_to_path() 340 if ((rlen = prom_getproplen(node, OBP_REG)) == -1) in promif_instance_to_path() 350 (void) prom_getprop(node, OBP_REG, regval); in promif_instance_to_path() 362 node = prom_parentnode(node); in promif_instance_to_path()
|
/illumos-gate/usr/src/uts/sun4u/chicago/os/ |
H A D | chicago.c | 374 pnode_t node; in get_ebus_rtc_vaddr() local 379 if ((node = prom_findnode_byname(prom_rootnode(), in get_ebus_rtc_vaddr() 382 if ((node = prom_findnode_byname(node, RTC_NAME)) == OBP_NONODE) in get_ebus_rtc_vaddr() 386 if ((size = prom_getproplen(node, "address")) == -1) in get_ebus_rtc_vaddr() 391 if (prom_getprop(node, "address", (caddr_t)&eaddr) == -1) in get_ebus_rtc_vaddr() 398 if (prom_getproplen(node, "watchdog-enable") != -1) in get_ebus_rtc_vaddr()
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | printhash_live.c | 24 iphtent_t entry, *top, *node; local 63 node = top; 64 (void) printhashnode(hp, node, bcopywrap, opts); 65 top = node->ipe_snext; 66 free(node);
|
H A D | printpool_live.c | 24 ip_pool_node_t entry, *top, *node; local 63 node = top; 64 (void) printpoolnode(node, opts); 65 top = node->ipn_next; 66 free(node);
|
H A D | remove_hashnode.c | 18 int remove_hashnode(unit, name, node, iocfunc) in remove_hashnode() argument 21 iphtent_t *node; 40 bcopy((char *)&node->ipe_addr, (char *)&ipe.ipe_addr, 42 bcopy((char *)&node->ipe_mask, (char *)&ipe.ipe_mask,
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_write.c | 490 smb_node_t *node; in smb_common_write() local 498 node = ofile->f_node; in smb_common_write() 500 if (!smb_node_is_dir(node)) { in smb_common_write() 511 (node->flags & NODE_FLAGS_WRITE_THROUGH)) { in smb_common_write() 521 (void) smb_oplock_break_WRITE(node, ofile); in smb_common_write() 531 smb_node_notify_modified(node); in smb_common_write() 571 smb_node_t *node = ofile->f_node; in smb_write_truncate() local 579 mutex_enter(&node->n_mutex); in smb_write_truncate() 580 if (!smb_node_is_dir(node)) { in smb_write_truncate() 584 mutex_exit(&node->n_mutex); in smb_write_truncate() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | avl.c | 50 avl_node_t *node = (avl_node_t *)((uintptr_t)buff + offset); in avl_leftmostchild() local 58 if (node->avl_child[0] == NULL) in avl_leftmostchild() 60 addr = (uintptr_t)node->avl_child[0]; in avl_leftmostchild() 184 avl_node_t *node; in avl_walk_step() local 202 node = (avl_node_t *)((uintptr_t)aw->aw_buff + offset); in avl_walk_step() 237 addr = (uintptr_t)node->avl_child[1]; in avl_walk_step() 250 was_child = AVL_XCHILD(node); in avl_walk_step() 251 addr = (uintptr_t)AVL_XPARENT(node); in avl_walk_step()
|
/illumos-gate/usr/src/cmd/hotplug/ |
H A D | hotplug.c | 1030 list_cb(hp_node_t node, void *arg) in list_cb() argument 1039 switch (hp_type(node)) { in list_cb() 1041 (void) printf("%s\n", hp_name(node)); in list_cb() 1045 (void) printf("[%s]", hp_name(node)); in list_cb() 1051 (void) printf("<%s>", hp_name(node)); in list_cb() 1072 list_long_cb(hp_node_t node, void *arg) in list_long_cb() argument 1077 if (hp_type(node) != HP_NODE_USAGE) { in list_long_cb() 1083 switch (hp_type(node)) { in list_long_cb() 1112 error_cb(hp_node_t node, void *arg) in error_cb() argument 1119 if (((child = hp_child(node)) != NULL) && in error_cb() [all …]
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm.c | 147 pcieadm_di_node_is_pci(di_node_t node) in pcieadm_di_node_is_pci() argument 153 name = di_node_name(node); in pcieadm_di_node_is_pci() 178 pcieadm_di_walk_cb(di_node_t node, void *arg) in pcieadm_di_walk_cb() argument 182 if (!pcieadm_di_node_is_pci(node)) { in pcieadm_di_walk_cb() 186 return (walk->pdw_func(node, walk->pdw_arg)); in pcieadm_di_walk_cb() 227 path = di_devfs_path(node); in pcieadm_find_dip_cb() 230 "%s", di_node_name(node)); in pcieadm_find_dip_cb() 233 driver = di_driver_name(node); in pcieadm_find_dip_cb() 234 inst = di_instance(node); in pcieadm_find_dip_cb() 258 di_node_name(node)); in pcieadm_find_dip_cb() [all …]
|
/illumos-gate/usr/src/lib/libuuid/common/ |
H A D | etheraddr.c | 48 arp_get(uuid_node_t *node) in arp_get() argument 83 bcopy(&ar.arp_ha.sa_data, node, 6); in arp_get() 98 get_ethernet_address(uuid_node_t *node) in get_ethernet_address() argument 102 if (arp_get(node) == 0) in get_ethernet_address() 111 bcopy(state.wa_etheraddr, node, state.wa_etheraddrlen); in get_ethernet_address()
|
/illumos-gate/usr/src/lib/libcpc/sparc/ |
H A D | conf_ultra.c | 590 node2ver(char *node) in node2ver() argument 592 if (strcmp(node, "SUNW,UltraSPARC") == 0 || in node2ver() 593 strcmp(node, "SUNW,UltraSPARC-II") == 0 || in node2ver() 594 strcmp(node, "SUNW,UltraSPARC-IIi") == 0 || in node2ver() 595 strcmp(node, "SUNW,UltraSPARC-IIe") == 0) { in node2ver() 597 } else if (strcmp(node, "SUNW,UltraSPARC-III") == 0) in node2ver() 599 else if (strcmp(node, "SUNW,UltraSPARC-III+") == 0 || in node2ver() 600 strcmp(node, "SUNW,UltraSPARC-IV") == 0) in node2ver() 602 else if (strcmp(node, "SUNW,UltraSPARC-IIIi") == 0 || in node2ver() 603 strcmp(node, "SUNW,UltraSPARC-IIIi+") == 0) in node2ver() [all …]
|
/illumos-gate/usr/src/cmd/cxgbetool/ |
H A D | cxgbetool.c | 660 di_node_t root, node; in cxgbetool_parse_path() local 703 for (node = di_drv_first_node(arg, root); node != DI_NODE_NIL; in cxgbetool_parse_path() 704 node = di_drv_next_node(node)) { in cxgbetool_parse_path() 708 if (di_instance(node) != inst) { in cxgbetool_parse_path() 714 node = di_parent_node(node); in cxgbetool_parse_path() 715 pdrv = di_driver_name(node); in cxgbetool_parse_path() 720 pdrv != NULL ? di_instance(node) : -1); in cxgbetool_parse_path() 725 di_instance(node)); in cxgbetool_parse_path() 727 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) { in cxgbetool_parse_path() 735 mname, di_driver_name(node), di_instance(node)); in cxgbetool_parse_path() [all …]
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | ufm.c | 228 ufmfw_node_pci(di_node_t node) in ufmfw_node_pci() argument 230 while (node != DI_NODE_NIL) { in ufmfw_node_pci() 232 int ret = di_prop_lookup_strings(DDI_DEV_T_ANY, node, in ufmfw_node_pci() 242 node = di_parent_node(node); in ufmfw_node_pci() 253 ufmfw_fill_vpd(struct devicelist *flashdev, di_node_t node) in ufmfw_fill_vpd() argument 274 &svid) != 1 || di_prop_lookup_ints(DDI_DEV_T_ANY, node, in ufmfw_fill_vpd() 332 ufmfw_di_walk_cb(di_node_t node, void *arg) in ufmfw_di_walk_cb() argument 345 while ((prop = di_prop_next(node, prop)) != DI_PROP_NIL) { in ufmfw_di_walk_cb() 357 if (!ufmfw_node_pci(node)) { in ufmfw_di_walk_cb() 361 if ((devfs = di_devfs_path(node)) == NULL) { in ufmfw_di_walk_cb() [all …]
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | sysevent.c | 370 di_node_t node; in sysevent_lofi_add() local 392 if ((node = di_init (devfs_path, DINFOCPYALL)) == DI_NODE_NIL) { in sysevent_lofi_add() 400 di_fini (node); in sysevent_lofi_add() 447 di_node_t node; in sysevent_devfs_add() local 458 if ((driver_name = di_driver_name (node)) == NULL) in sysevent_devfs_add() 469 devinfo_usb_add (parent, node, devfs_path, NULL); in sysevent_devfs_add() 471 di_fini (node); in sysevent_devfs_add() 478 di_fini (node); in sysevent_devfs_add() 585 sysevent_dr_insert_cpu(di_node_t node, void *arg) in sysevent_dr_insert_cpu() argument 592 devfs_path = di_devfs_path (node); in sysevent_dr_insert_cpu() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | platform.h | 53 struct node *platform_getpath(nvlist_t *nvl); 58 int platform_call(struct node *np, struct lut **globals, struct config *croot, 60 int platform_confcall(struct node *np, struct lut **globals, 62 int platform_payloadprop(struct node *np, struct evalue *valuep);
|
H A D | eval.c | 51 static struct node *eval_dup(struct node *np, struct lut *ex, 55 static struct node *eval_fru(struct node *np); 56 static struct node *eval_asru(struct node *np); 64 begins_with(struct node *lhs, struct node *rhs, struct lut *ex) in begins_with() 118 static struct node * 123 struct node *nodep; in eval_getname() 166 eval_cat(struct node *np, struct lut *ex, struct node *events[], in eval_cat() 211 eval_func(struct node *funcnp, struct lut *ex, struct node *events[], in eval_func() 217 struct node *lhs; in eval_func() 218 struct node *rhs; in eval_func() [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | smp_link.c | 37 static int smp_callback(di_minor_t minor, di_node_t node); 63 smp_callback(di_minor_t minor, di_node_t node) in smp_callback() argument 73 devfspath = di_devfs_path(node); in smp_callback() 89 (void) devfsadm_mklink(l_path, node, minor, 0); in smp_callback()
|
H A D | fssnap_link.c | 36 static int fssnap(di_minor_t minor, di_node_t node); 54 fssnap(di_minor_t minor, di_node_t node) in fssnap() argument 65 (void) devfsadm_mklink(SNAP_CTL_NAME, node, minor, 0); in fssnap() 83 (void) devfsadm_mklink(path, node, minor, 0); in fssnap()
|
H A D | tape_link.c | 34 static int tape_process(di_minor_t minor, di_node_t node); 60 tape_process(di_minor_t minor, di_node_t node) in tape_process() argument 80 devfspath = di_devfs_path(node); in tape_process() 104 (void) devfsadm_mklink(l_path, node, minor, flags); in tape_process()
|
/illumos-gate/usr/src/lib/libfru/include/ |
H A D | libfrup.h | 47 typedef void (*end_node_fp_t)(fru_nodehdl_t node, const char *path, 57 extern fru_errno_t fru_walk_tree(fru_nodehdl_t node, const char *prior_path, 58 fru_errno_t (*process_node)(fru_nodehdl_t node, 67 extern fru_errno_t fru_for_each_segment(fru_nodehdl_t node,
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasRefreshInformation.c | 35 match_smhba_sas_hba(di_node_t node, void *arg) in match_smhba_sas_hba() argument 42 if (IS_STUB_NODE(node)) { in match_smhba_sas_hba() 46 rval = di_prop_lookup_ints(DDI_DEV_T_ANY, node, in match_smhba_sas_hba() 51 if ((devpath = di_devfs_path(node)) == NULL) { in match_smhba_sas_hba() 60 if (devtree_get_one_hba(node) == in match_smhba_sas_hba()
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xenbus_probe.c | 117 if (dev->otherend_watch.node) { in free_otherend_watch() 119 kmem_free((void *)dev->otherend_watch.node, in free_otherend_watch() 120 strlen(dev->otherend_watch.node) + 1); in free_otherend_watch() 121 dev->otherend_watch.node = NULL; in free_otherend_watch() 149 state, dev->otherend_watch.node, vec[XS_WATCH_PATH]); in otherend_changed()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/s1394/ |
H A D | s1394.c | 136 s1394_node_t node[IEEE1394_MAX_NODES]; in print_node_info() local 143 if (mdb_vread(node, (num_nodes * sizeof (s1394_node_t)), in print_node_info() 170 if (node[i].cfgrom != NULL) { in print_node_info() 172 (uintptr_t)node[i].cfgrom) == -1) { in print_node_info() 189 } else if (node[i].link_active == 0) { in print_node_info() 192 } else if (CFGROM_BIB_READ(&node[i])) { in print_node_info()
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | ptree_impl.h | 151 picl_node_t node; member 171 #define first_prop u.node.firstprop 172 #define node_lock u.node.rwlock 173 #define child_node u.node.child 174 #define sibling_node u.node.sibling 175 #define parent_node u.node.parent 176 #define node_classname u.node.classname
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_scf.c | 348 if ((node = in get_plugin_kva() 355 node_head = node; in get_plugin_kva() 358 node_prev->next = node; in get_plugin_kva() 359 node->prev = node_prev; in get_plugin_kva() 361 node_prev = node; in get_plugin_kva() 1256 if (node == NULL) { in plugin_kva_ll_free() 1261 node = node->prev; in plugin_kva_ll_free() 1263 while (node != NULL) { in plugin_kva_ll_free() 1265 node_next = node->next; in plugin_kva_ll_free() 1266 free(node); in plugin_kva_ll_free() [all …]
|