Home
last modified time | relevance | path

Searched refs:headp (Results 1 – 25 of 44) sorted by relevance

12

/titanic_41/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_queue.c116 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 Dghd_queue.h71 #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_41/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_queue.h71 #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_41/usr/src/lib/libfsmgt/common/
H A Dfs_shares.c61 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 Dfs_mounts.c67 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 Dfs_mount_defaults.c71 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 Dfs_dfstab.c133 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_41/usr/src/lib/libdiskmgt/common/
H A Dinuse_mnt.c206 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_41/usr/src/lib/libc/amd64/unwind/
H A Dthrp_unwind.c52 __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_41/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_util.c189 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_41/usr/src/cmd/sendmail/db/db/
H A Ddb_shash.c120 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 Ddb_dispatch.c183 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_41/usr/src/cmd/sgs/gprof/common/
H A Darcs.c359 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_41/usr/src/lib/libdevinfo/
H A Ddevinfo.c488 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_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_svc.c117 cachefsd_caches_id *headp, *idp; in cachefsd_caches_1_svc() local
130 headp = NULL; in cachefsd_caches_1_svc()
136 headp = idp = cfsd_calloc(sizeof (cachefsd_caches_id) * cnt); in cachefsd_caches_1_svc()
153 outp->ccr_ids.ccr_ids_val = headp; in cachefsd_caches_1_svc()
300 struct cachefsd_mount *headp, *idp; in cachefsd_mounts_1_svc() local
339 headp = NULL; in cachefsd_mounts_1_svc()
345 headp = idp = cfsd_calloc(sizeof (cachefsd_mount) * cnt); in cachefsd_mounts_1_svc()
363 outp->cmr_names.cmr_names_val = headp; in cachefsd_mounts_1_svc()
/titanic_41/usr/src/uts/common/os/
H A Daio_subr.c807 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_41/usr/src/uts/common/io/pciex/
H A Dpciev.c54 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_41/usr/src/uts/common/disp/
H A Dsysdc.c673 sysdc_t *volatile *headp = &SYSDC_LIST(sdc)->sdl_list; in sysdc_activate() local
683 head = *headp; in sysdc_activate()
685 } while (atomic_cas_ptr(headp, head, sdc) != head); in sysdc_activate()
732 sysdc_t *volatile *headp = &sdl->sdl_list; in sysdc_update() local
736 if (*headp == &sysdc_dummy) in sysdc_update()
751 head = atomic_swap_ptr(headp, &sysdc_dummy); in sysdc_update()
804 tail = *headp; in sysdc_update()
806 } while (atomic_cas_ptr(headp, tail, head) != tail); in sysdc_update()
/titanic_41/usr/src/uts/i86pc/os/
H A Dpmem.c682 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_41/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_utils.c691 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 Dibcm_impl.c1175 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_41/usr/src/uts/sun4/os/
H A Dintr.c496 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_41/usr/src/cmd/ndmpd/tlm/
H A Dtlm_bitmap.c1080 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_41/usr/src/uts/common/sys/ib/clients/rds/
H A Drdsib_buf.h166 void rds_free_send_buf(struct rds_ep_s *ep, rds_buf_t *headp,
/titanic_41/usr/src/uts/common/io/mac/
H A Dmac_flow.c284 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()

12