/titanic_50/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd_queue.c | 116 L2_add(L2el_t *headp, L2el_t *elementp, void *private) in L2_add() argument 119 ASSERT(headp != NULL && elementp != NULL); in L2_add() 120 ASSERT(headp->l2_nextp != NULL); in L2_add() 121 ASSERT(headp->l2_prevp != NULL); in L2_add() 125 elementp->l2_nextp = headp; in L2_add() 126 elementp->l2_prevp = headp->l2_prevp; in L2_add() 127 headp->l2_prevp->l2_nextp = elementp; in L2_add() 128 headp->l2_prevp = elementp; in L2_add() 151 L2_add_head(L2el_t *headp, L2el_t *elementp, void *private) in L2_add_head() argument 154 ASSERT(headp != NULL && elementp != NULL); in L2_add_head() [all …]
|
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 *private); 78 void L2_add_head(L2el_t *headp, L2el_t *elementp, void *private); 79 void *L2_remove_head(L2el_t *headp);
|
/titanic_50/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);
|
/titanic_50/usr/src/lib/libfsmgt/common/ |
H A D | fs_shares.c | 61 fs_free_share_list(fs_sharelist_t *headp) in fs_free_share_list() argument 65 while (headp != NULL) { in fs_free_share_list() 66 tmp = headp->next; in fs_free_share_list() 67 free(headp->path); in fs_free_share_list() 68 free(headp->resource); in fs_free_share_list() 69 free(headp->fstype); in fs_free_share_list() 70 free(headp->options); in fs_free_share_list() 71 free(headp->description); in fs_free_share_list() 72 headp->next = NULL; in fs_free_share_list() 73 free(headp); in fs_free_share_list() [all …]
|
H A D | fs_mounts.c | 67 fs_free_mount_list(fs_mntlist_t *headp) { in fs_free_mount_list() argument 70 while (headp != NULL) { in fs_free_mount_list() 71 tmp = headp->next; in fs_free_mount_list() 72 free(headp->resource); in fs_free_mount_list() 73 free(headp->mountp); in fs_free_mount_list() 74 free(headp->fstype); in fs_free_mount_list() 75 free(headp->mntopts); in fs_free_mount_list() 76 free(headp->time); in fs_free_mount_list() 77 headp->next = NULL; in fs_free_mount_list() 78 free(headp); in fs_free_mount_list() [all …]
|
H A D | fs_mount_defaults.c | 71 void fs_free_mntdefaults_list(fs_mntdefaults_t *headp) { in fs_free_mntdefaults_list() argument 74 while (headp != NULL) { in fs_free_mntdefaults_list() 75 tmp = headp->next; in fs_free_mntdefaults_list() 76 free(headp->resource); in fs_free_mntdefaults_list() 77 free(headp->fsckdevice); in fs_free_mntdefaults_list() 78 free(headp->mountp); in fs_free_mntdefaults_list() 79 free(headp->fstype); in fs_free_mntdefaults_list() 80 free(headp->fsckpass); in fs_free_mntdefaults_list() 81 free(headp->mountatboot); in fs_free_mntdefaults_list() 82 free(headp->mntopts); in fs_free_mntdefaults_list() [all …]
|
H A D | fs_dfstab.c | 133 free_dfstab_list(dfstab_entry_t *headp) in free_dfstab_list() argument 135 dfstab_entry_t *tmp = headp; in free_dfstab_list() 137 while (headp != NULL) { in free_dfstab_list() 138 tmp = headp->next; in free_dfstab_list() 139 if (headp->path != NULL) { in free_dfstab_list() 140 free(headp->path); in free_dfstab_list() 142 if (headp->resource != NULL) { in free_dfstab_list() 143 free(headp->resource); in free_dfstab_list() 145 if (headp->fstype != NULL) { in free_dfstab_list() 146 free(headp->fstype); in free_dfstab_list() [all …]
|
/titanic_50/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_mnt.c | 206 struct mntpnt_list *headp; in load_mnttab() local 214 headp = NULL; in load_mnttab() 242 free_mnttab(headp); in load_mnttab() 247 if (headp == NULL) { in load_mnttab() 248 headp = currp; in load_mnttab() 260 free_mnttab(headp); in load_mnttab() 270 free_mnttab(headp); in load_mnttab() 284 free_mnttab(headp); in load_mnttab() 297 free_mnttab(headp); in load_mnttab() 301 if (headp == NULL) { in load_mnttab() [all …]
|
/titanic_50/usr/src/lib/libc/amd64/unwind/ |
H A D | thrp_unwind.c | 52 __cleanup_t **headp = (__cleanup_t **)func_arg; in posix_stop_func() local 69 while ((head = *headp) != NULL && in posix_stop_func() 71 *headp = head->next; in posix_stop_func() 90 __cleanup_t **headp = &self->ul_clnup_hdr; in _thrp_unwind() local 109 (*fptr)(posix_stop_func, headp); in _thrp_unwind() 114 while ((head = *headp) != NULL) { in _thrp_unwind() 115 *headp = head->next; in _thrp_unwind()
|
/titanic_50/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_util.c | 189 linkattr_add(dlmgmt_linkattr_t **headp, dlmgmt_linkattr_t *attrp) in linkattr_add() argument 191 if (*headp == NULL) { in linkattr_add() 192 *headp = attrp; in linkattr_add() 194 (*headp)->lp_prev = attrp; in linkattr_add() 195 attrp->lp_next = *headp; in linkattr_add() 196 *headp = attrp; in linkattr_add() 201 linkattr_rm(dlmgmt_linkattr_t **headp, dlmgmt_linkattr_t *attrp) in linkattr_rm() argument 212 *headp = next; in linkattr_rm() 216 linkattr_find(dlmgmt_linkattr_t *headp, const char *attr) in linkattr_find() argument 220 for (attrp = headp; attrp != NULL; attrp = attrp->lp_next) { in linkattr_find() [all …]
|
/titanic_50/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;
|
/titanic_50/usr/src/cmd/sgs/gprof/common/ |
H A D | arcs.c | 359 nltype *headp; in inheritflags() local 364 headp = childp->cyclehead; in inheritflags() 365 if (childp == headp) { in inheritflags() 394 headp->printflag = FALSE; in inheritflags() 395 headp->propfraction = 0.0; in inheritflags() 396 for (memp = headp->cnext; memp; memp = memp->cnext) { in inheritflags() 399 if (arcp->arc_parentp->cyclehead == headp) { in inheritflags() 403 headp->printflag |= parentp->printflag; in inheritflags() 410 if (headp->ncall) { in inheritflags() 411 headp->propfraction += in inheritflags() [all …]
|
/titanic_50/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 488 free_node_list(struct node_list **headp) in free_node_list() argument 492 while (*headp) { in free_node_list() 493 tmp = *headp; in free_node_list() 494 *headp = (*headp)->next; in free_node_list() 500 append_node_list(struct node_list **headp, struct node_list *list) in append_node_list() argument 504 if (*headp == NULL) { in append_node_list() 505 *headp = list; in append_node_list() 512 tmp = *headp; in append_node_list() 520 prepend_node_list(struct node_list **headp, struct node_list *list) in prepend_node_list() argument 527 tmp = *headp; in prepend_node_list() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | aio_subr.c | 807 aio_req_t *headp; in aio_cleanup_portq() local 825 headp = aiop->aio_portq; in aio_cleanup_portq() 828 if ((reqp = headp) != NULL) { in aio_cleanup_portq() 837 } while ((reqp = next) != headp); in aio_cleanup_portq() 840 if (headp != NULL && exitflag == 0) { in aio_cleanup_portq() 846 aio_req_t *headprev = headp->aio_req_prev; in aio_cleanup_portq() 849 headp->aio_req_prev = newqprev; in aio_cleanup_portq() 852 newqprev->aio_req_next = headp; in aio_cleanup_portq() 854 aiop->aio_portq = headp; in aio_cleanup_portq() 1197 aio_req_t *headp; in aio_close_port() local [all …]
|
/titanic_50/usr/src/uts/common/io/pciex/ |
H A D | pciev.c | 54 pcie_domains_t **headp); 552 pcie_domains_t **headp) in pcie_faulty_list_update() argument 557 if (*headp == NULL) { in pcie_faulty_list_update() 558 *headp = pd; in pcie_faulty_list_update() 563 pd->faulty_next = *headp; in pcie_faulty_list_update() 564 (*headp)->faulty_prev = pd; in pcie_faulty_list_update() 567 *headp = pd; in pcie_faulty_list_update()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/i86pc/os/ |
H A D | pmem.c | 682 pmem_lpg_free(pmem_lpg_t **headp, pmem_lpg_t *plp) in pmem_lpg_free() argument 684 if (*headp == plp) in pmem_lpg_free() 685 *headp = plp->pl_next; /* go to next pmem_lpg_t */ in pmem_lpg_free() 687 if (*headp == plp) in pmem_lpg_free() 688 *headp = NULL; /* this list is gone */ in pmem_lpg_free()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/sun4/os/ |
H A D | intr.c | 496 intr_dist_rem_list(struct intr_dist **headp, void (*func)(void *), void *arg) in intr_dist_rem_list() argument 502 for (iptr = *headp, vect = headp; in intr_dist_rem_list()
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/sys/ib/clients/rds/ |
H A D | rdsib_buf.h | 166 void rds_free_send_buf(struct rds_ep_s *ep, rds_buf_t *headp,
|
/titanic_50/usr/src/uts/common/io/mac/ |
H A D | mac_flow.c | 284 flow_entry_t **headp, **p; in mac_flow_add() local 319 headp = &ft->ft_table[index]; in mac_flow_add() 324 for (p = headp; *p != NULL; p = &(*p)->fe_next) { in mac_flow_add() 340 err = ops->fo_insert_fe(ft, headp, flent); in mac_flow_add() 1810 flow_generic_insert_fe(flow_tab_t *ft, flow_entry_t **headp, in flow_generic_insert_fe() argument 1815 if (*headp != NULL) { in flow_generic_insert_fe() 1817 flent->fe_next = *headp; in flow_generic_insert_fe() 1819 *headp = flent; in flow_generic_insert_fe() 2180 flow_ip_insert_fe(flow_tab_t *ft, flow_entry_t **headp, in flow_ip_insert_fe() argument 2183 flow_entry_t **p = headp; in flow_ip_insert_fe()
|
/titanic_50/usr/src/lib/nsswitch/nis/common/ |
H A D | getnetgrent.c | 516 struct grouplist **headp = headp_arg; in save_triple() local 542 gl->gl_nxt = *headp; in save_triple() 543 *headp = gl; in save_triple()
|