/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_node.c | 134 topo_nodehash_t *nhp; in topo_node_destroy() local 155 nhp = node->tn_phash; in topo_node_destroy() 156 for (i = 0; i < nhp->th_arrlen; i++) { in topo_node_destroy() 157 if (node == nhp->th_nodearr[i]) { in topo_node_destroy() 158 nhp->th_nodearr[i] = NULL; in topo_node_destroy() 185 while ((nhp = topo_list_next(&node->tn_children)) != NULL) { in topo_node_destroy() 186 for (i = 0; i < nhp->th_arrlen; i++) { in topo_node_destroy() 187 assert(nhp->th_nodearr[i] == NULL); in topo_node_destroy() 189 hmod = nhp->th_enum; in topo_node_destroy() 190 topo_mod_strfree(hmod, nhp->th_name); in topo_node_destroy() [all …]
|
H A D | topo_list.c | 148 topo_nodehash_t *nhp; in topo_child_first() local 150 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_child_first() 151 nhp = topo_list_next(nhp)) { in topo_child_first() 152 for (i = 0; i < nhp->th_arrlen; ++i) { in topo_child_first() 153 if (nhp->th_nodearr[i] != NULL) in topo_child_first() 154 return (nhp->th_nodearr[i]); in topo_child_first() 166 topo_nodehash_t *nhp; in topo_child_next() local 178 for (nhp = node->tn_phash; nhp != NULL; nhp = topo_list_next(nhp)) { in topo_child_next() 179 for (i = index; i < nhp->th_arrlen; ++i) { in topo_child_next() 180 if (nhp->th_nodearr[i] != NULL) { in topo_child_next() [all …]
|
H A D | topo_2xml.c | 421 topo_nodehash_t *nhp; in txml_print_range() local 424 for (nhp = topo_list_next(&node->tn_children); nhp != NULL; in txml_print_range() 425 nhp = topo_list_next(nhp)) { in txml_print_range() 426 (void) snprintf(min, INT32BUFSZ, "%d", nhp->th_range.tr_min); in txml_print_range() 427 (void) snprintf(max, INT32BUFSZ, "%d", nhp->th_range.tr_max); in txml_print_range() 433 for (i = 0; i < nhp->th_arrlen; ++i) { in txml_print_range() 434 if (nhp->th_nodearr[i] != NULL) in txml_print_range() 445 begin_element(fp, Range, Name, nhp->th_name, Min, min, Max, in txml_print_range() 447 for (i = 0; i < nhp->th_arrlen; ++i) { in txml_print_range() 448 if (nhp->th_nodearr[i] != NULL) in txml_print_range() [all …]
|
H A D | topo_snap.c | 476 topo_nodehash_t *nhp; in topo_snap_destroy() local 498 while ((nhp = topo_list_next(&root->tn_children)) != NULL) { in topo_snap_destroy() 499 for (i = 0; i < nhp->th_arrlen; i++) { in topo_snap_destroy() 500 assert(nhp->th_nodearr[i] == NULL); in topo_snap_destroy() 502 mod = nhp->th_enum; in topo_snap_destroy() 503 topo_mod_strfree(mod, nhp->th_name); in topo_snap_destroy() 504 topo_mod_free(mod, nhp->th_nodearr, in topo_snap_destroy() 505 nhp->th_arrlen * sizeof (tnode_t *)); in topo_snap_destroy() 506 topo_list_delete(&root->tn_children, nhp); in topo_snap_destroy() 507 topo_mod_free(mod, nhp, sizeof (topo_nodehash_t)); in topo_snap_destroy()
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | pushlist.c | 36 struct hdrs *nhp, *ohp, *nextcont; in pushlist() local 61 nhp = (struct hdrs *)p; in pushlist() 63 (void) strlcpy(nhp->value, s, sizeof (nhp->value)); in pushlist() 90 free ((char *)nhp); in pushlist() 100 nextcont->cont = nhp; in pushlist() 109 hdrlines[hdrtype].head = hdrlines[hdrtype].tail = nhp; in pushlist() 113 nhp->next = ohp; in pushlist() 114 hdrlines[hdrtype].head = ohp->prev = nhp; in pushlist() 117 nhp->prev = ohp; in pushlist() 118 hdrlines[hdrtype].tail = ohp->next = nhp; in pushlist()
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_utils.c | 217 struct devhash *hp, *nhp; in getdev() local 239 for (hp = dev_chain; hp; hp = nhp) { in getdev() 240 nhp = hp->dev_nxt; in getdev() 251 dev_chain = nhp; in getdev()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | dnlc.c | 1471 dcentry_t *dep, *nhp; in dnlc_dir_abort() local 1481 nhp = dcp->dc_namehash[i]; in dnlc_dir_abort() 1482 while (nhp != NULL) { /* for each chained entry */ in dnlc_dir_abort() 1483 dep = nhp->de_next; in dnlc_dir_abort() 1484 kmem_free(nhp, DCENTTRY_SIZE(nhp->de_namelen)); in dnlc_dir_abort() 1485 nhp = dep; in dnlc_dir_abort() 1884 dcentry_t **newhash, *dep, **nhp, *tep; in dnlc_dir_adjust_nhash() local 1917 nhp = &newhash[tep->de_hash & newsizemask]; in dnlc_dir_adjust_nhash() 1918 tep->de_next = *nhp; in dnlc_dir_adjust_nhash() 1919 *nhp = tep; in dnlc_dir_adjust_nhash() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | envelope.c | 661 register HDR **nhp; local 718 nhp = &e->e_header; 721 *nhp = (HDR *) sm_rpool_malloc_x(rpool, sizeof(*bh)); 722 memmove((char *) *nhp, (char *) bh, sizeof(*bh)); 724 nhp = &(*nhp)->h_link;
|
/illumos-gate/usr/src/common/smbios/ |
H A D | smb_open.c | 219 const smb_header_t *hp, *nhp; in smbios_bufopen() local 286 for (i = 0; i < shp->sh_ent_stnum; i++, hp = nhp) { in smbios_bufopen() 333 nhp = (void *)(p + 2); in smbios_bufopen()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ipsecesp.c | 2371 uint8_t *nhp; in esp_outbound() local 2454 nhp = (uint8_t *)&ipha->ipha_protocol; in esp_outbound() 2481 nhp = &ipp.ipp_rthdr->ip6r_nxt; in esp_outbound() 2483 nhp = &ipp.ipp_hopopts->ip6h_nxt; in esp_outbound() 2487 nhp = &ip6h->ip6_nxt; in esp_outbound() 2637 protocol = *nhp; in esp_outbound() 2642 *nhp = IPPROTO_UDP; in esp_outbound() 2646 *nhp = IPPROTO_ESP; in esp_outbound() 2652 *nhp = IPPROTO_ESP; in esp_outbound()
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_node.c | 447 struct hsnode *hp, *nhp; in hs_synchash() local 476 for (hp = fsp->hsfs_hash[i]; hp != NULL; hp = nhp) { in hs_synchash() 477 nhp = hp->hs_hash; in hs_synchash()
|