Home
last modified time | relevance | path

Searched refs:nhp (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_node.c325 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_node_range_create()
326 nhp = topo_list_next(nhp)) { in topo_node_range_create()
373 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_node_range_destroy()
374 nhp = topo_list_next(nhp)) { in topo_node_range_destroy()
414 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_node_lookup()
415 nhp = topo_list_next(nhp)) { in topo_node_lookup()
438 return ((inst - nhp->th_range.tr_min) % nhp->th_arrlen); in topo_node_hash()
472 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_node_bind()
473 nhp = topo_list_next(nhp)) { in topo_node_bind()
567 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; in topo_node_facbind()
[all …]
H A Dtopo_list.c148 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 Dtopo_2xml.c421 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 Dtopo_snap.c476 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 Dpushlist.c36 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 Dlc_utils.c217 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 Ddnlc.c1471 dcentry_t *dep, *nhp; in dnlc_dir_abort() local
1481 nhp = dcp->dc_namehash[i]; 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
1918 tep->de_next = *nhp; in dnlc_dir_adjust_nhash()
1919 *nhp = tep; in dnlc_dir_adjust_nhash()
1936 dcfree_t **newhash, *dfp, **nhp, *tfp; in dnlc_dir_adjust_fhash() local
1969 tfp->df_next = *nhp; in dnlc_dir_adjust_fhash()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Denvelope.c661 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 Dsmb_open.c219 const smb_header_t *hp, *nhp; in smbios_bufopen() local
285 for (i = 0; i < shp->sh_ent_stnum; i++, hp = nhp) { in smbios_bufopen()
332 nhp = (void *)(p + 2); in smbios_bufopen()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dipsecesp.c2371 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 Dhsfs_node.c447 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()