/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_queue.c | 117 ASSERT(headp->l2_nextp != NULL); in L2_add() 118 ASSERT(headp->l2_prevp != NULL); in L2_add() 122 elementp->l2_nextp = headp; in L2_add() 125 headp->l2_prevp = elementp; in L2_add() 152 ASSERT(headp->l2_nextp != NULL); in L2_add_head() 157 elementp->l2_prevp = headp; in L2_add_head() 160 headp->l2_nextp = elementp; in L2_add_head() 173 L2_remove_head(L2el_t *headp) in L2_remove_head() argument 177 ASSERT(headp != NULL); in L2_remove_head() 179 if (L2_EMPTY(headp)) in L2_remove_head() [all …]
|
H A D | ghd_queue.h | 69 #define L2_INIT(headp) \ argument 70 (((headp)->l2_nextp = (headp)), ((headp)->l2_prevp = (headp))) 72 #define L2_EMPTY(headp) ((headp)->l2_nextp == (headp)) argument 74 void L2_add(L2el_t *headp, L2el_t *elementp, void *private); 76 void L2_add_head(L2el_t *headp, L2el_t *elementp, void *private); 77 void *L2_remove_head(L2el_t *headp);
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/ |
H A D | ghd_queue.h | 71 #define L2_INIT(headp) \ argument 72 (((headp)->l2_nextp = (headp)), ((headp)->l2_prevp = (headp))) 74 #define L2_EMPTY(headp) ((headp)->l2_nextp == (headp)) argument 76 void L2_add(L2el_t *headp, L2el_t *elementp, void *priv); 78 void L2_add_head(L2el_t *headp, L2el_t *elementp, void *priv); 79 void *L2_remove_head(L2el_t *headp);
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_shares.c | 64 tmp = headp->next; in fs_free_share_list() 65 free(headp->path); in fs_free_share_list() 67 free(headp->fstype); in fs_free_share_list() 68 free(headp->options); in fs_free_share_list() 70 headp->next = NULL; in fs_free_share_list() 71 free(headp); in fs_free_share_list() 73 headp = tmp; in fs_free_share_list() 84 fs_sharelist_t *headp; in fs_get_share_list() local 88 headp = NULL; in fs_get_share_list() 109 headp = newp; in fs_get_share_list() [all …]
|
H A D | fs_mounts.c | 69 tmp = headp->next; in fs_free_mount_list() 76 free(headp); in fs_free_mount_list() 78 headp = tmp; in fs_free_mount_list() 166 headp = NULL; in fs_get_filtered_mount_list() 200 headp = newp; in fs_get_filtered_mount_list() 216 return (headp); in fs_get_filtered_mount_list() 277 headp = NULL; in fs_get_mounts_by_mntopt() 322 return (headp); in fs_get_mounts_by_mntopt() 333 headp = NULL; in fs_get_mount_list() 362 headp = newp; in fs_get_mount_list() [all …]
|
H A D | fs_mount_defaults.c | 73 tmp = headp->next; in fs_free_mntdefaults_list() 76 free(headp->mountp); in fs_free_mntdefaults_list() 81 headp->next = NULL; in fs_free_mntdefaults_list() 82 free(headp); in fs_free_mntdefaults_list() 84 headp = tmp; in fs_free_mntdefaults_list() 100 headp = NULL; in fs_get_filtered_mount_defaults() 137 headp = newp; in fs_get_filtered_mount_defaults() 152 return (headp); in fs_get_filtered_mount_defaults() 164 headp = NULL; in fs_get_mount_defaults() 188 headp = newp; in fs_get_mount_defaults() [all …]
|
H A D | fs_dfstab.c | 135 while (headp != NULL) { in free_dfstab_list() 136 tmp = headp->next; in free_dfstab_list() 137 if (headp->path != NULL) { in free_dfstab_list() 138 free(headp->path); in free_dfstab_list() 141 free(headp->resource); in free_dfstab_list() 144 free(headp->fstype); in free_dfstab_list() 147 free(headp->options); in free_dfstab_list() 152 headp->next = NULL; in free_dfstab_list() 153 free(headp); in free_dfstab_list() 154 headp = tmp; in free_dfstab_list() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 212 headp = NULL; in load_mnttab() 240 free_mnttab(headp); in load_mnttab() 245 if (headp == NULL) { in load_mnttab() 246 headp = currp; in load_mnttab() 282 free_mnttab(headp); in load_mnttab() 295 free_mnttab(headp); in load_mnttab() 299 if (headp == NULL) { in load_mnttab() 300 headp = currp; in load_mnttab() 319 free_mnttab(headp); in load_mnttab() 327 free_mnttab(headp); in load_mnttab() [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/unwind/ |
H A D | thrp_unwind.c | 48 __cleanup_t **headp = (__cleanup_t **)func_arg; in posix_stop_func() local 65 while ((head = *headp) != NULL && in posix_stop_func() 67 *headp = head->next; in posix_stop_func() 85 __cleanup_t **headp = &self->ul_clnup_hdr; in _thrp_unwind() local 104 (*fptr)(posix_stop_func, headp); in _thrp_unwind() 109 while ((head = *headp) != NULL) { in _thrp_unwind() 110 *headp = head->next; in _thrp_unwind()
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_util.c | 192 if (*headp == NULL) { in linkattr_add() 193 *headp = attrp; in linkattr_add() 195 (*headp)->lp_prev = attrp; in linkattr_add() 196 attrp->lp_next = *headp; in linkattr_add() 197 *headp = attrp; in linkattr_add() 213 *headp = next; in linkattr_rm() 236 attrp = linkattr_find(*headp, attr); in linkattr_set() 241 if (linkattr_equal(headp, attr, attrval, attrsz)) in linkattr_set() 269 linkattr_add(headp, attrp); in linkattr_set() 279 linkattr_rm(headp, attrp); in linkattr_unset() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_shash.c | 120 SH_TAILQ_HEAD(hash_head) *headp; 122 headp = (struct hash_head *)begin; 124 for (i = 0; i < nelements; i++, headp++) 125 SH_TAILQ_INIT(headp);
|
H A D | db_dispatch.c | 183 DB_TXNHEAD *headp; local 186 if ((ret = __os_malloc(sizeof(DB_TXNHEAD), NULL, &headp)) != 0) 189 LIST_INIT(&headp->head); 190 headp->maxid = 0; 191 headp->generation = 1; 193 *(void **)retp = headp;
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | arcs.c | 364 nltype *headp; in inheritflags() local 369 headp = childp->cyclehead; in inheritflags() 370 if (childp == headp) { in inheritflags() 399 headp->printflag = FALSE; in inheritflags() 400 headp->propfraction = 0.0; in inheritflags() 408 headp->printflag |= parentp->printflag; in inheritflags() 415 if (headp->ncall) { in inheritflags() 416 headp->propfraction += in inheritflags() 419 / ((double)headp->ncall)); in inheritflags() 424 memp->printflag = headp->printflag; in inheritflags() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 493 tmp = *headp; in free_node_list() 494 *headp = (*headp)->next; in free_node_list() 512 tmp = *headp; in append_node_list() 527 tmp = *headp; in prepend_node_list() 528 *headp = list; in prepend_node_list() 573 tmp = *headp; in insert_node_list() 658 free(*headp); in prune_sib() 672 prev = *headp; in prune_sib() 692 curr = *headp; in prune_sib() 730 tmp = *headp; in update_node_list() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio_subr.c | 794 aio_req_t *headp; in aio_cleanup_portq() local 812 headp = aiop->aio_portq; in aio_cleanup_portq() 815 if ((reqp = headp) != NULL) { in aio_cleanup_portq() 836 headp->aio_req_prev = newqprev; in aio_cleanup_portq() 839 newqprev->aio_req_next = headp; in aio_cleanup_portq() 841 aiop->aio_portq = headp; in aio_cleanup_portq() 1184 aio_req_t *headp; in aio_close_port() local 1215 reqp = headp; in aio_close_port() 1239 headp = NULL; in aio_close_port() 1248 reqp->aio_req_next = headp; in aio_close_port() [all …]
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pciev.c | 58 pcie_domains_t **headp); 556 pcie_domains_t **headp) in pcie_faulty_list_update() argument 561 if (*headp == NULL) { in pcie_faulty_list_update() 562 *headp = pd; in pcie_faulty_list_update() 567 pd->faulty_next = *headp; in pcie_faulty_list_update() 568 (*headp)->faulty_prev = pd; in pcie_faulty_list_update() 571 *headp = pd; in pcie_faulty_list_update()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | sysdc.c | 647 sysdc_t *volatile *headp = &SYSDC_LIST(sdc)->sdl_list; in sysdc_activate() local 657 head = *headp; in sysdc_activate() 659 } while (atomic_cas_ptr(headp, head, sdc) != head); in sysdc_activate() 706 sysdc_t *volatile *headp = &sdl->sdl_list; in sysdc_update() local 710 if (*headp == &sysdc_dummy) in sysdc_update() 725 head = atomic_swap_ptr(headp, &sysdc_dummy); in sysdc_update() 778 tail = *headp; in sysdc_update() 780 } while (atomic_cas_ptr(headp, tail, head) != tail); in sysdc_update()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | pmem.c | 680 pmem_lpg_free(pmem_lpg_t **headp, pmem_lpg_t *plp) in pmem_lpg_free() argument 682 if (*headp == plp) in pmem_lpg_free() 683 *headp = plp->pl_next; /* go to next pmem_lpg_t */ in pmem_lpg_free() 685 if (*headp == plp) in pmem_lpg_free() 686 *headp = NULL; /* this list is gone */ in pmem_lpg_free()
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_utils.c | 691 ibcm_ud_state_data_t *prevp, *headp; in ibcm_delete_ud_state_data() local 710 headp = hcap->hca_sidr_list; in ibcm_delete_ud_state_data() 712 while (headp != NULL) { in ibcm_delete_ud_state_data() 714 if (headp == ud_statep) { in ibcm_delete_ud_state_data() 716 prevp->ud_nextp = headp->ud_nextp; in ibcm_delete_ud_state_data() 718 prevp = headp->ud_nextp; in ibcm_delete_ud_state_data() 723 prevp = headp; in ibcm_delete_ud_state_data() 724 headp = headp->ud_nextp; in ibcm_delete_ud_state_data()
|
H A D | ibcm_impl.c | 1175 ibcm_hca_info_t *headp, *prevp = NULL; in ibcm_delete_hca_entry() local 1183 headp = ibcm_hca_listp; in ibcm_delete_hca_entry() 1184 while (headp != NULL) { in ibcm_delete_hca_entry() 1185 if (headp == hcap) { in ibcm_delete_hca_entry() 1190 prevp->hca_next = headp->hca_next; in ibcm_delete_hca_entry() 1192 prevp = headp->hca_next; in ibcm_delete_hca_entry() 1203 prevp = headp; in ibcm_delete_hca_entry() 1204 headp = headp->hca_next; in ibcm_delete_hca_entry()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_bitmap.c | 1080 dbmap_list_t *headp; in dbm_chunks_free() local 1086 headp = &bmp->bm_lru; in dbm_chunks_free() 1087 if (!headp) in dbm_chunks_free() 1090 while (!TAILQ_EMPTY(headp)) { in dbm_chunks_free() 1091 cp = TAILQ_FIRST(headp); in dbm_chunks_free() 1092 TAILQ_REMOVE(headp, cp, c_lru); in dbm_chunks_free()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | intr.c | 500 intr_dist_rem_list(struct intr_dist **headp, void (*func)(void *), void *arg) in intr_dist_rem_list() argument 506 for (iptr = *headp, vect = headp; in intr_dist_rem_list()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_flow.c | 285 flow_entry_t **headp, **p; in mac_flow_add() local 320 headp = &ft->ft_table[index]; in mac_flow_add() 325 for (p = headp; *p != NULL; p = &(*p)->fe_next) { in mac_flow_add() 341 err = ops->fo_insert_fe(ft, headp, flent); in mac_flow_add() 1811 flow_generic_insert_fe(flow_tab_t *ft, flow_entry_t **headp, in flow_generic_insert_fe() argument 1816 if (*headp != NULL) { in flow_generic_insert_fe() 1818 flent->fe_next = *headp; in flow_generic_insert_fe() 1820 *headp = flent; in flow_generic_insert_fe() 2181 flow_ip_insert_fe(flow_tab_t *ft, flow_entry_t **headp, in flow_ip_insert_fe() argument 2184 flow_entry_t **p = headp; in flow_ip_insert_fe()
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/rds/ |
H A D | rdsib_buf.h | 164 void rds_free_send_buf(struct rds_ep_s *ep, rds_buf_t *headp,
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getnetgrent.c | 666 struct grouplist **headp = headp_arg; in save_triple() local 699 gl->gl_nxt = *headp; in save_triple() 700 *headp = gl; in save_triple()
|