Searched refs:elem (Results 1 - 25 of 145) sorted by relevance

123456

/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dkill-casts.c4 int elem:3; member in struct:s
10 if (x->elem == 0) {
11 if (x->elem != 0 && x->elem != 1)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinsque.c49 insque(void *elem, void *pred) argument
52 ((struct qelem *)elem)->q_forw = NULL;
53 ((struct qelem *)elem)->q_back = NULL;
57 ((struct qelem *)elem)->q_forw = NULL;
58 ((struct qelem *)elem)->q_back = pred;
59 ((struct qelem *)pred)->q_forw = elem;
62 ((struct qelem *)elem)->q_forw = ((struct qelem *)pred)->q_forw;
63 ((struct qelem *)elem)->q_back = pred;
64 ((struct qelem *)pred)->q_forw->q_back = elem;
65 ((struct qelem *)pred)->q_forw = elem;
70 remque(void *elem) argument
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_list.h41 #define dt_list_prev(elem) ((void *)(((dt_list_t *)(elem))->dl_prev))
42 #define dt_list_next(elem) ((void *)(((dt_list_t *)(elem))->dl_next))
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_list.h52 #define mdb_list_prev(elem) ((void *)(((mdb_list_t *)(elem))->ml_prev))
53 #define mdb_list_next(elem) ((void *)(((mdb_list_t *)(elem))->ml_next))
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_list.h41 #define fmd_list_prev(elem) ((void *)(((fmd_list_t *)(elem))->l_prev))
42 #define fmd_list_next(elem) ((void *)(((fmd_list_t *)(elem))->l_next))
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_list.h50 #define inj_list_prev(elem) ((void *)(((inj_list_t *)(elem))->ml_prev))
51 #define inj_list_next(elem) ((void *)(((inj_list_t *)(elem))->ml_next))
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_list.h41 #define cmd_list_prev(elem) ((void *)(((cmd_list_t *)(elem))->l_prev))
42 #define cmd_list_next(elem) ((void *)(((cmd_list_t *)(elem))->l_next))
/illumos-gate/usr/src/tools/protocmp/
H A Dlist.h112 typedef struct elem { struct
120 struct elem *next;
121 struct elem *link_parent;
122 struct elem *link_sib;
129 } elem; typedef in typeref:struct:elem
134 elem **list;
145 extern void add_elem(elem_list*, elem *);
147 extern elem *find_elem(elem_list *, elem *, int);
148 extern elem *find_elem_mac
[all...]
H A Dlist.c47 list->list = (elem**)malloc(sizeof (elem *) * hsize);
58 elem *cur;
80 elem *cur;
98 elem *cur;
121 name_compare(elem *i, elem *j)
139 elem *
140 find_elem(elem_list *list, elem *key, int flag)
142 elem *
[all...]
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_list.h37 #define topo_list_prev(elem) ((void *)(((topo_list_t *)(elem))->l_prev))
38 #define topo_list_next(elem) ((void *)(((topo_list_t *)(elem))->l_next))
/illumos-gate/usr/src/lib/libproc/common/
H A DPutil.h51 #define list_next(elem) (void *)(((plist_t *)(elem))->list_forw)
52 #define list_prev(elem) (void *)(((plist_t *)(elem))->list_back)
/illumos-gate/usr/src/lib/libsqlite/src/
H A Dhash.c52 HashElem *elem; /* For looping over all elements of the table */ local
55 elem = pH->first;
60 while( elem ){
61 HashElem *next_elem = elem->next;
62 if( pH->copyKey && elem->pKey ){
63 sqliteFree(elem->pKey);
65 sqliteFree(elem);
66 elem = next_elem;
170 HashElem *elem, *next_elem; /* For looping over existing elements */ local
181 for(elem
212 HashElem *elem; /* Used to loop thru the element list */ local
233 removeElementGivenHash( Hash *pH, HashElem* elem, int h ) argument
266 HashElem *elem; /* The element that matches key */ local
296 HashElem *elem; /* Used to loop thru the element list */ local
[all...]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DGenLinkedList.c39 void AddToTail( GenLinkedList *pList, void *elem) argument
43 ASSIGNLINK( pList->Tail, elem, pList->LinkOffset);
45 pList->Head = elem;
46 ASSIGNLINK( elem, NULL, pList->LinkOffset);
48 pList->Tail = elem;
52 void AddToHead( GenLinkedList *pList, void *elem) argument
55 ASSIGNLINK( elem, pList->Head, pList->LinkOffset);
57 pList->Tail = elem;
59 pList->Head = elem;
63 int RemoveFromList( GenLinkedList *pList, void *elem) argument
133 DLLAddToHead( GenDoubleLinkedList *pList, void *elem) argument
153 DLLRemoveFromList( GenDoubleLinkedList *pList, void *elem) argument
187 AssignOffsetLink( void *elem, void *link, size_t linkOffset) argument
208 GetOffsetLink( GenLinkedOffsetList *pList, void *elem) argument
228 OffsetAddToTail( GenLinkedOffsetList *pList, void *elem) argument
232 AssignOffsetLink( GetTailPtr( pList), elem, pList->LinkOffset); local
241 OffsetAddToHead( GenLinkedOffsetList *pList, void *elem) argument
252 OffsetRemoveFromList( GenLinkedOffsetList *pList, void *elem) argument
[all...]
H A DGenLinkedList.h36 void AddToHead( GenLinkedList *pList, void *elem);
37 void AddToTail( GenLinkedList *pList, void *elem);
39 int RemoveFromList( GenLinkedList *pList, void *elem);
58 void DLLAddToHead( GenDoubleLinkedList *pList, void *elem);
60 void DLLRemoveFromList( GenDoubleLinkedList *pList, void *elem);
80 void *GetOffsetLink( GenLinkedOffsetList *pList, void *elem);
82 void OffsetAddToHead( GenLinkedOffsetList *pList, void *elem);
83 void OffsetAddToTail( GenLinkedOffsetList *pList, void *elem);
85 int OffsetRemoveFromList( GenLinkedOffsetList *pList, void *elem);
/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_getpropstr.c38 mde_cookie_t elem; local
51 elem = md_find_node_prop(mdp, node, prop_name, MDET_PROP_STR);
53 if (elem != MDE_INVAL_ELEM_COOKIE) {
55 mdep = &(mdp->mdep[(int)elem]);
H A Dmdesc_getpropdata.c39 mde_cookie_t elem; local
52 elem = md_find_node_prop(mdp, node, prop_name, MDET_PROP_DAT);
54 if (elem != MDE_INVAL_ELEM_COOKIE) {
56 mdep = &(mdp->mdep[(int)elem]);
H A Dmdesc_getpropval.c45 mde_cookie_t elem; local
58 elem = md_find_node_prop(mdp, node, prop_name, MDET_PROP_VAL);
60 if (elem != MDE_INVAL_ELEM_COOKIE) {
62 mdep = &(mdp->mdep[(int)elem]);
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/
H A Dgmem_util.h43 #define gmem_list_prev(elem) ((void *)(((gmem_list_t *)(elem))->l_prev))
44 #define gmem_list_next(elem) ((void *)(((gmem_list_t *)(elem))->l_next))
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/
H A DPropertyWalk.java45 * @param elem The element to whom the property belongs.
51 public int walk(Element elem, Value val, Object user) argument
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_hba.c126 struct dcd_hba_inst *elem; local
136 elem = kmem_alloc(sizeof (struct dcd_hba_inst), KM_SLEEP);
138 elem->inst_dip = dip;
139 elem->inst_hba_tran = hba_tran;
142 elem->inst_next = NULL;
143 elem->inst_prev = dcd_hba_list_tail;
146 dcd_hba_list = elem;
149 dcd_hba_list_tail->inst_next = elem;
151 dcd_hba_list_tail = elem;
211 struct dcd_hba_inst *elem; local
[all...]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_comutil.c73 nvpair_t *elem; local
85 elem = NULL;
86 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) {
87 nm = nvpair_name(elem);
89 if (nvpair_value_nvlist(elem, &policy) == 0)
93 if (nvpair_value_uint32(elem, &zlpp->zlp_rewind) == 0)
97 (void) nvpair_value_uint64(elem, &zlpp->zlp_txg);
99 (void) nvpair_value_uint64(elem, &zlpp->zlp_maxmeta);
101 (void) nvpair_value_uint64(elem,
[all...]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dobject.c59 const struct tx_cmd *elem = elem_arg; local
61 return (strcmp((const char *)key, elem->tx_prop));
108 struct tx_cmd *elem; local
118 elem = bsearch(prop_name, data->txc_cmds, data->txc_count,
121 if (elem == NULL) {
130 assert(!elem->tx_found);
131 elem->tx_found = 1;
135 elem->tx_orig_value_id =
137 if (elem->tx_orig_value_id == 0 || *endptr != 0 ||
142 elem
191 struct tx_cmd *elem; local
[all...]
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxge-queue.c50 xge_queue_item_t *elem; local
55 elem = (xge_queue_item_t *)queue->list_head.next;
56 if (elem->data_size > data_max_size)
59 xge_list_remove(&elem->item);
60 real_size = elem->data_size + sizeof(xge_queue_item_t);
61 if (queue->head_ptr == elem) {
66 ":0x"XGE_OS_LLXFMT" elem 0x"XGE_OS_LLXFMT" length %d",
67 elem->event_type,
72 (u64)(ulong_t)elem,
74 } else if ((char *)queue->tail_ptr - real_size == (char*)elem) {
144 xge_queue_item_t *elem; local
326 xge_queue_item_t *elem; local
[all...]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_hash.c90 const void *(*convert)(const void *elem),
164 ipmi_hash_compute(ipmi_hash_t *ihp, const void *elem) argument
166 return (ihp->ih_compute(ihp->ih_convert(elem)) % ihp->ih_nbuckets);
196 void *elem; local
204 elem = (void *)((uintptr_t)link - ihp->ih_linkoffs);
205 nidx = ipmi_hash_compute(ihp, elem);
223 void *elem = (void *)((uintptr_t)hl - ihp->ih_linkoffs); local
225 if (ihp->ih_compare(ihp->ih_convert(elem), search) == 0)
226 return (elem);
244 ipmi_hash_next(ipmi_hash_t *ihp, void *elem) argument
89 ipmi_hash_create(ipmi_handle_t *hp, size_t linkoffs, const void *(*convert)(const void *elem), ulong_t (*compute)(const void *key), int (*compare)(const void *lkey, const void *rkey)) argument
255 ipmi_hash_insert(ipmi_hash_t *ihp, void *elem) argument
272 ipmi_hash_remove(ipmi_hash_t *ihp, void *elem) argument
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/io-retire/
H A Drio_main.c48 struct except_list *elem; local
65 elem = fmd_hdl_alloc(hdl,
67 elem->el_fault = fmd_hdl_strdup(hdl, p, FMD_SLEEP);
68 elem->el_next = except_list;
69 except_list = elem;
92 struct except_list *elem; local
94 for (elem = except_list; elem; elem = elem
108 struct except_list *elem; local
[all...]

Completed in 153 milliseconds

123456