/illumos-gate/usr/src/cmd/ldmad/ |
H A D | mdesc_lib.c | 154 md_node_t *nodep; in md_new_node() local 156 nodep = calloc(1, sizeof (md_node_t)); in md_new_node() 157 if (nodep == NULL) in md_new_node() 159 nodep->typep = md_new_string(mdp, sp); in md_new_node() 160 if (nodep->typep == NULL) { in md_new_node() 161 free(nodep); in md_new_node() 164 CHAIN_ADD(mdp->node_list, nodep); in md_new_node() 166 return (nodep); in md_new_node() 170 md_new_property(mmd_t *mdp, md_node_t *nodep, uint8_t type, char *sp) in md_new_property() argument 184 CHAIN_ADD(nodep->prop_list, propp); in md_new_property() [all …]
|
H A D | mdesc_mutable.h | 119 md_node_t *nodep; member 145 md_node_t *nodep, char *sp, uint64_t value); 146 int md_add_string_property(mmd_t *mdp, md_node_t *nodep, char *sp, char *bufp); 147 int md_add_data_property(mmd_t *mdp, md_node_t *nodep, char *sp, int len, 153 void md_free_node(mmd_t *mdp, md_node_t *nodep);
|
/illumos-gate/usr/src/uts/common/fs/namefs/ |
H A D | namevno.c | 80 struct namenode *nodep = VTONM(*vpp); in nm_open() local 93 infilevp = outfilevp = nodep->nm_filevp; in nm_open() 108 namefind(outfilevp, nodep->nm_mountpt)) != NULL) { in nm_open() 121 mutex_enter(&nodep->nm_lock); in nm_open() 130 bcopy(&nodep->nm_vattr, &newnamep->nm_vattr, sizeof (vattr_t)); in nm_open() 137 newnamep->nm_filep = nodep->nm_filep; in nm_open() 138 newnamep->nm_mountpt = nodep->nm_mountpt; in nm_open() 139 mutex_exit(&nodep->nm_lock); in nm_open() 167 struct namenode *nodep = VTONM(vp); in nm_close() local 172 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct); in nm_close() [all …]
|
H A D | namevfs.c | 138 nameinsert(struct namenode *nodep) in nameinsert() argument 144 bucket = NM_FILEVP_HASH(nodep->nm_filevp); in nameinsert() 145 nodep->nm_nextp = *bucket; in nameinsert() 146 *bucket = nodep; in nameinsert() 153 nameremove(struct namenode *nodep) in nameremove() argument 159 for (npp = NM_FILEVP_HASH(nodep->nm_filevp); (np = *npp) != NULL; in nameremove() 161 if (np == nodep) { in nameremove() 234 struct namenode *nodep; in nm_umountall() local 247 nodep = *NM_FILEVP_HASH(vp); in nm_umountall() 248 while (nodep) { in nm_umountall() [all …]
|
/illumos-gate/usr/src/uts/common/ipp/ipgpc/ |
H A D | trie.c | 124 node_t *nodep = *c_node; in t_split() local 128 if (pos == (nodep->pos - nodep->bits)) { in t_split() 130 ASSERT(nodep->one == NULL); in t_split() 131 ASSERT(nodep->zero == NULL); in t_split() 132 nodep->one = create_node(KM_SLEEP); in t_split() 133 nodep->zero = create_node(KM_SLEEP); in t_split() 135 old_bits = nodep->bits; /* save old bits entry */ in t_split() 137 nodep->bits = nodep->pos - pos; in t_split() 139 bit = EXTRACTBIT(nodep->val, pos, key_len); in t_split() 141 if ((nodep->one == NULL) && (nodep->zero == NULL)) { in t_split() [all …]
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | picltree.c | 690 lock_obj(int rw, picl_obj_t *nodep) in lock_obj() argument 693 (void) rw_rdlock(&nodep->node_lock); in lock_obj() 695 (void) rw_wrlock(&nodep->node_lock); in lock_obj() 706 unlock_node(picl_obj_t *nodep) in unlock_node() argument 708 if (nodep == NULL) in unlock_node() 710 (void) rw_unlock(&nodep->node_lock); in unlock_node() 718 lookup_and_lock_propnode(int rw, picl_prophdl_t proph, picl_obj_t **nodep, in lookup_and_lock_propnode() argument 744 *nodep = nobj; in lookup_and_lock_propnode() 755 lookup_and_lock_tablenode(int rw, picl_prophdl_t tblh, picl_obj_t **nodep, in lookup_and_lock_tablenode() argument 776 *nodep = nobj; in lookup_and_lock_tablenode() [all …]
|
H A D | ptree_impl.h | 115 picl_obj_t *nodep; /* prop's node or table */ member 166 #define prop_node u.prop.nodep 167 #define prop_table u.prop.nodep
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_ioctl.c | 219 ibnex_node_data_t *nodep = NULL; in ibnex_devctl() local 253 rv = ibnex_get_dip_from_apid(apid_n, &apid_dip, &nodep); in ibnex_devctl() 265 ibnex_figure_ap_devstate(nodep, &ap_state); in ibnex_devctl() 457 rv = ibnex_get_dip_from_apid(apid_n, &apid_dip, &nodep); in ibnex_devctl() 815 &nodep); in ibnex_devctl() 826 nodep->node_reprobe_state != 0) { in ibnex_devctl() 828 nodep->node_reprobe_state != 0) { in ibnex_devctl() 837 nodep->node_reprobe_state = in ibnex_devctl() 880 rv = ibnex_get_dip_from_apid(apid_n, &apid_dip, &nodep); in ibnex_devctl() 890 if (!IBNEX_VALID_NODE_TYPE(nodep)) { in ibnex_devctl() [all …]
|
H A D | ibnex.c | 704 ibnex_node_data_t *nodep = ibnex.ibnex_pseudo_node_head; in ibnex_pseudo_node_cleanup() local 710 for (; nodep; nodep = nodep->node_next) in ibnex_pseudo_node_cleanup() 711 if (nodep->node_dip) in ibnex_pseudo_node_cleanup() 715 for (nodep = ibnex.ibnex_pseudo_node_head; nodep; in ibnex_pseudo_node_cleanup() 716 nodep = nodep->node_next) { in ibnex_pseudo_node_cleanup() 718 pseudo = &nodep->node_data.pseudo_node; in ibnex_pseudo_node_cleanup() 1917 ibnex_node_data_t *nodep; in ibnex_config_pseudo_all() local 1921 for (nodep = ibnex.ibnex_pseudo_node_head; in ibnex_config_pseudo_all() 1922 nodep; nodep = nodep->node_next) { in ibnex_config_pseudo_all() 1923 (void) ibnex_pseudo_config_one(nodep, NULL, pdip); in ibnex_config_pseudo_all() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | util.c | 195 struct q_node *nodep; in queue_add() local 201 if (qp->nodep == NULL) in queue_add() 202 qp->nodep = qnp; in queue_add() 204 nodep = qp->nodep; in queue_add() 206 while (nodep->next != NULL) in queue_add() 207 nodep = nodep->next; in queue_add() 209 nodep->next = qnp; in queue_add() 213 if (qp->boe && qp->nodep == qnp) in queue_add() 227 while (qp->boe && qp->nodep == NULL) { in queue_remove() 234 if (qp->nodep != NULL) { in queue_remove() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_persist.c | 1038 i_ipmgmt_add_amnode(ipmgmt_aobjmap_t *nodep) in i_ipmgmt_add_amnode() argument 1045 *new = *nodep; in i_ipmgmt_add_amnode() 1093 i_ipmgmt_lookupadd_amnode(ipmgmt_aobjmap_t *nodep) in i_ipmgmt_lookupadd_amnode() argument 1099 if (strcmp(head->am_ifname, nodep->am_ifname) == 0) in i_ipmgmt_lookupadd_amnode() 1107 if (nodep->am_aobjname[0] == '\0') { in i_ipmgmt_lookupadd_amnode() 1118 if (snprintf(nodep->am_aobjname, IPADM_AOBJSIZ, "%s/_%s", in i_ipmgmt_lookupadd_amnode() 1119 nodep->am_ifname, tmpstr) >= IPADM_AOBJSIZ) { in i_ipmgmt_lookupadd_amnode() 1122 nodep->am_nextnum = ++nextnum; in i_ipmgmt_lookupadd_amnode() 1126 if (strcmp(head->am_aobjname, nodep->am_aobjname) == 0) in i_ipmgmt_lookupadd_amnode() 1129 nodep->am_nextnum = nextnum; in i_ipmgmt_lookupadd_amnode() [all …]
|
H A D | ipmgmt_door.c | 231 i_ipmgmt_nvl2aobjnode(nvlist_t *nvl, ipmgmt_aobjmap_t *nodep) in i_ipmgmt_nvl2aobjnode() argument 265 *nodep->ipmgmt_am_reqhost = '\0'; in i_ipmgmt_nvl2aobjnode() 271 (void) strlcpy(nodep->ipmgmt_am_reqhost, reqhost, in i_ipmgmt_nvl2aobjnode() 272 sizeof (nodep->ipmgmt_am_reqhost)); in i_ipmgmt_nvl2aobjnode() 297 nodep->ipmgmt_am_linklocal = B_TRUE; in i_ipmgmt_nvl2aobjnode() 298 nodep->ipmgmt_am_ifid = sin6; in i_ipmgmt_nvl2aobjnode() 304 (void) strlcpy(nodep->am_ifname, ifname, sizeof (nodep->am_ifname)); in i_ipmgmt_nvl2aobjnode() 305 (void) strlcpy(nodep->am_aobjname, aobjname, in i_ipmgmt_nvl2aobjnode() 306 sizeof (nodep->am_aobjname)); in i_ipmgmt_nvl2aobjnode() 307 nodep->am_lnum = lnum; in i_ipmgmt_nvl2aobjnode() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | eval.c | 123 struct node *nodep; in eval_getname() local 128 nodep = np; in eval_getname() 130 nodep = eval_fru(np->u.func.arglist); in eval_getname() 132 nodep = eval_asru(np->u.func.arglist); in eval_getname() 153 if (eval_expr(nodep, ex, events, globals, croot, in eval_getname() 155 nodep = (struct node *)(uintptr_t)val.v; in eval_getname() 158 nodep = eval_dup(nodep, ex, events); in eval_getname() 161 return (nodep); in eval_getname() 220 struct node *nodep; in eval_func() local 260 nodep = eval_getname(funcnp, ex, events, np->u.expr.left, in eval_func() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/shared/ |
H A D | topo_port.c | 135 tnode_t **nodep) in port_create_sff() argument 142 *nodep = tn; in port_create_sff() 148 tnode_t **nodep) in port_create_usb() argument 155 *nodep = tn; in port_create_usb() 161 tnode_t **nodep) in port_create_unknown() argument 168 *nodep = tn; in port_create_unknown()
|
H A D | topo_transceiver.c | 126 const char *serial, tnode_t **nodep) in transceiver_create_sff() argument 178 if (nodep != NULL) in transceiver_create_sff() 179 *nodep = tn; in transceiver_create_sff()
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | sgen.c | 306 sgen_type_node_t *nodep; in sgen_setup_binddb() local 316 nodep = kmem_zalloc(sizeof (sgen_type_node_t), in sgen_setup_binddb() 318 nodep->node_type = devtype; in sgen_setup_binddb() 319 nodep->node_next = sgen_binddb.sdb_type_nodes; in sgen_setup_binddb() 320 sgen_binddb.sdb_type_nodes = nodep; in sgen_setup_binddb() 345 sgen_inq_node_t *nodep; in sgen_setup_binddb() local 369 nodep = kmem_zalloc(sizeof (sgen_inq_node_t), in sgen_setup_binddb() 371 nodep->node_vendor = kmem_alloc(vcplen + 1, KM_SLEEP); in sgen_setup_binddb() 372 (void) strcpy(nodep->node_vendor, vcp); in sgen_setup_binddb() 373 nodep->node_product = kmem_alloc(pcplen + 1, KM_SLEEP); in sgen_setup_binddb() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_groups.c | 107 _dwarf_grp_destroy_free_node(void*nodep) in _dwarf_grp_destroy_free_node() argument 109 struct Dwarf_Group_Map_Entry_s * enp = nodep; in _dwarf_grp_destroy_free_node() 220 grp_walk_map(const void *nodep, in grp_walk_map() argument 226 re = *(struct Dwarf_Group_Map_Entry_s **)nodep; in grp_walk_map() 352 grp_walk_for_name(const void *nodep, in grp_walk_for_name() argument 358 re = *(struct Dwarf_Group_Map_Entry_s **)nodep; in grp_walk_for_name()
|
H A D | dwarf_tsearchhash.c | 164 void (*free_node)(void *nodep), 626 void (*action)(const void *nodep, const DW_VISIT which, in dwarf_twalk_inner() argument 645 void (*action)(const void *nodep, const DW_VISIT which, in dwarf_twalk() argument 660 void (*free_node)(void *nodep), in dwarf_tdestroy_inner() argument 696 dwarf_tdestroy(void *rootp, void (*free_node)(void *nodep)) in dwarf_tdestroy() argument
|
H A D | pro_alloc.c | 180 _dwarf_str_hashtab_freenode(void * nodep) in _dwarf_str_hashtab_freenode() argument 182 free(nodep); in _dwarf_str_hashtab_freenode()
|
H A D | dwarf_tied.c | 113 _dwarf_tied_destroy_free_node(void*nodep) in _dwarf_tied_destroy_free_node() argument 115 struct Dwarf_Tied_Entry_s * enp = nodep; in _dwarf_tied_destroy_free_node()
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_gem.c | 394 unm_dmah_node_t *nodep; in unm_free_tx_dmahdl() local 397 nodep = &adapter->tx_dma_hdls[0]; in unm_free_tx_dmahdl() 400 if (nodep->dmahdl != NULL) { in unm_free_tx_dmahdl() 401 ddi_dma_free_handle(&nodep->dmahdl); in unm_free_tx_dmahdl() 402 nodep->dmahdl = NULL; in unm_free_tx_dmahdl() 404 nodep->next = NULL; in unm_free_tx_dmahdl() 405 nodep++; in unm_free_tx_dmahdl() 417 unm_dmah_node_t *nodep = &adapter->tx_dma_hdls[0]; in unm_alloc_tx_dmahdl() local 422 DDI_DMA_DONTWAIT, NULL, &nodep->dmahdl) != DDI_SUCCESS) { in unm_alloc_tx_dmahdl() 428 nodep->next = nodep - 1; in unm_alloc_tx_dmahdl() [all …]
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | cpr_sparc.c | 73 cpr_get_options_node(pnode_t *nodep) in cpr_get_options_node() argument 75 *nodep = prom_optionsnode(); in cpr_get_options_node() 76 if (*nodep == OBP_NONODE || *nodep == OBP_BADNODE) { in cpr_get_options_node()
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlwlan.c | 371 attr_node_t *nodep; in connect_cb() local 417 nodep = malloc(sizeof (attr_node_t)); in connect_cb() 418 if (nodep == NULL) in connect_cb() 421 (void) memcpy(&nodep->an_attr, attrp, sizeof (dladm_wlan_attr_t)); in connect_cb() 422 nodep->an_next = statep->cs_list; in connect_cb() 423 statep->cs_list = nodep; in connect_cb() 563 attr_node_t *nodep = NULL; in dladm_wlan_connect() local 620 nodep = state.cs_list; in dladm_wlan_connect() 622 wl_list[i] = &nodep->an_attr; in dladm_wlan_connect() 623 nodep = nodep->an_next; in dladm_wlan_connect() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/xml/ |
H A D | data.c | 545 xmlNodePtr *nodep, in parse_xml_obj() argument 552 xmlNodePtr node = *nodep; in parse_xml_obj() 575 *nodep = children; in parse_xml_obj() 588 *nodep = children; in parse_xml_obj() 591 *nodep = node; in parse_xml_obj()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | rdma.c | 55 #define RB_CLEAR_NODE(nodep) AVL_SETPARENT(nodep, nodep); argument
|