/titanic_44/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_node.c | 133 topo_nodehash_t *nhp; in topo_node_destroy() local 151 nhp = node->tn_phash; in topo_node_destroy() 152 for (i = 0; i < nhp->th_arrlen; i++) { in topo_node_destroy() 153 if (node == nhp->th_nodearr[i]) { in topo_node_destroy() 154 nhp->th_nodearr[i] = NULL; in topo_node_destroy() 181 while ((nhp = topo_list_next(&node->tn_children)) != NULL) { in topo_node_destroy() 182 for (i = 0; i < nhp->th_arrlen; i++) { in topo_node_destroy() 183 assert(nhp->th_nodearr[i] == NULL); in topo_node_destroy() 185 hmod = nhp->th_enum; in topo_node_destroy() 186 topo_mod_strfree(hmod, nhp->th_name); in topo_node_destroy() [all …]
|
H A D | topo_list.c | 145 topo_nodehash_t *nhp; in topo_child_first() local 147 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_child_first() 148 nhp = topo_list_next(nhp)) { in topo_child_first() 149 for (i = 0; i < nhp->th_arrlen; ++i) { in topo_child_first() 150 if (nhp->th_nodearr[i] != NULL) in topo_child_first() 151 return (nhp->th_nodearr[i]); in topo_child_first() 163 topo_nodehash_t *nhp; in topo_child_next() local 175 for (nhp = node->tn_phash; nhp != NULL; nhp = topo_list_next(nhp)) { in topo_child_next() 176 for (i = index; i < nhp->th_arrlen; ++i) { in topo_child_next() 177 if (nhp->th_nodearr[i] != NULL) { in topo_child_next() [all …]
|
H A D | topo_2xml.c | 280 topo_nodehash_t *nhp; in txml_print_range() local 283 for (nhp = topo_list_next(&node->tn_children); nhp != NULL; in txml_print_range() 284 nhp = topo_list_next(nhp)) { in txml_print_range() 285 (void) snprintf(min, INT32BUFSZ, "%d", nhp->th_range.tr_min); in txml_print_range() 286 (void) snprintf(max, INT32BUFSZ, "%d", nhp->th_range.tr_max); in txml_print_range() 292 for (i = 0; i < nhp->th_arrlen; ++i) { in txml_print_range() 293 if (nhp->th_nodearr[i] != NULL) in txml_print_range() 304 begin_element(fp, Range, Name, nhp->th_name, Min, min, Max, in txml_print_range() 306 for (i = 0; i < nhp->th_arrlen; ++i) { in txml_print_range() 307 if (nhp->th_nodearr[i] != NULL) in txml_print_range() [all …]
|
H A D | topo_snap.c | 428 topo_nodehash_t *nhp; in topo_snap_destroy() local 450 while ((nhp = topo_list_next(&root->tn_children)) != NULL) { in topo_snap_destroy() 451 for (i = 0; i < nhp->th_arrlen; i++) { in topo_snap_destroy() 452 assert(nhp->th_nodearr[i] == NULL); in topo_snap_destroy() 454 mod = nhp->th_enum; in topo_snap_destroy() 455 topo_mod_strfree(mod, nhp->th_name); in topo_snap_destroy() 456 topo_mod_free(mod, nhp->th_nodearr, in topo_snap_destroy() 457 nhp->th_arrlen * sizeof (tnode_t *)); in topo_snap_destroy() 458 topo_list_delete(&root->tn_children, nhp); in topo_snap_destroy() 459 topo_mod_free(mod, nhp, sizeof (topo_nodehash_t)); in topo_snap_destroy()
|
/titanic_44/usr/src/cmd/mail/ |
H A D | pushlist.c | 40 struct hdrs *nhp, *ohp, *nextcont; local 65 nhp = (struct hdrs *)p; 67 (void) strlcpy(nhp->value, s, sizeof (nhp->value)); 94 free ((char *)nhp); 104 nextcont->cont = nhp; 113 hdrlines[hdrtype].head = hdrlines[hdrtype].tail = nhp; 117 nhp->next = ohp; 118 hdrlines[hdrtype].head = ohp->prev = nhp; 121 nhp->prev = ohp; 122 hdrlines[hdrtype].tail = ohp->next = nhp;
|
/titanic_44/usr/src/cmd/sgs/libld/common/ |
H A D | util.c | 115 Ld_heap *nhp; in libld_malloc() local 125 if ((nhp = dz_map(tsize)) == MAP_FAILED) in libld_malloc() 128 nhp->lh_next = chp; in libld_malloc() 129 nhp->lh_free = (void *)((size_t)nhp + hsize); in libld_malloc() 130 nhp->lh_end = (void *)((size_t)nhp + tsize); in libld_malloc() 132 ld_heap = chp = nhp; in libld_malloc()
|
/titanic_44/usr/src/cmd/lastcomm/ |
H A D | lc_utils.c | 219 struct devhash *hp, *nhp; in getdev() local 241 for (hp = dev_chain; hp; hp = nhp) { in getdev() 242 nhp = hp->dev_nxt; in getdev() 253 dev_chain = nhp; in getdev()
|
/titanic_44/usr/src/uts/common/fs/ |
H A D | dnlc.c | 1470 dcentry_t *dep, *nhp; in dnlc_dir_abort() local 1480 nhp = dcp->dc_namehash[i]; in dnlc_dir_abort() 1481 while (nhp != NULL) { /* for each chained entry */ in dnlc_dir_abort() 1482 dep = nhp->de_next; in dnlc_dir_abort() 1483 kmem_free(nhp, sizeof (dcentry_t) - 1 + in dnlc_dir_abort() 1484 nhp->de_namelen); in dnlc_dir_abort() 1485 nhp = dep; in dnlc_dir_abort() 1885 dcentry_t **newhash, *dep, **nhp, *tep; in dnlc_dir_adjust_nhash() local 1918 nhp = &newhash[tep->de_hash & newsizemask]; in dnlc_dir_adjust_nhash() 1919 tep->de_next = *nhp; in dnlc_dir_adjust_nhash() [all …]
|
/titanic_44/usr/src/cmd/sendmail/src/ |
H A D | envelope.c | 659 register HDR **nhp; local 716 nhp = &e->e_header; 719 *nhp = (HDR *) sm_rpool_malloc_x(rpool, sizeof(*bh)); 720 memmove((char *) *nhp, (char *) bh, sizeof(*bh)); 722 nhp = &(*nhp)->h_link;
|
/titanic_44/usr/src/common/smbios/ |
H A D | smb_open.c | 218 const smb_header_t *hp, *nhp; in smbios_bufopen() local 279 for (i = 0; i < shp->sh_ent_stnum; i++, hp = nhp) { in smbios_bufopen() 326 nhp = (void *)(p + 2); in smbios_bufopen()
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ipsecesp.c | 2613 uint8_t *nhp; in esp_outbound() local 2695 nhp = (uint8_t *)&ipha->ipha_protocol; in esp_outbound() 2723 nhp = &ipp.ipp_rthdr->ip6r_nxt; in esp_outbound() 2725 nhp = &ipp.ipp_hopopts->ip6h_nxt; in esp_outbound() 2729 nhp = &ip6h->ip6_nxt; in esp_outbound() 2879 protocol = *nhp; in esp_outbound() 2884 *nhp = IPPROTO_UDP; in esp_outbound() 2888 *nhp = IPPROTO_ESP; in esp_outbound() 2894 *nhp = IPPROTO_ESP; in esp_outbound()
|
/titanic_44/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()
|