Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 149) sorted by relevance

123456

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dhash.c60 while( elem ){ in sqliteHashClear()
181 for(elem=pH->first, pH->first=0; elem; elem = next_elem){ in rehash()
182 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1); in rehash()
221 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in findElementGivenHash()
224 elem = elem->next; in findElementGivenHash()
239 elem->prev->next = elem->next; in removeElementGivenHash()
244 elem->next->prev = elem->prev; in removeElementGivenHash()
275 return elem ? elem->data : 0; in sqliteHashFind()
307 if( elem ){ in sqliteHashInsert()
343 if( elem ){ in sqliteHashInsert()
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A DGenLinkedList.c44 pList->Head = elem; in AddToTail()
47 pList->Tail = elem; in AddToTail()
56 pList->Tail = elem; in AddToHead()
58 pList->Head = elem; in AddToHead()
69 if ( iElem == elem) { in RemoveFromList()
75 if ( pList->Tail == elem) in RemoveFromList()
141 pList->Head = elem; in DLLAddToHead()
147 pList->Tail = elem; in DLLAddToHead()
189 GETOFFSET( elem, linkOffset) = link ? (size_t) link - (size_t) elem : 0; in AssignOffsetLink()
257 if (elem == NULL) { in OffsetRemoveFromList()
[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/lib/libc/port/gen/
H A Dinsque.c49 insque(void *elem, void *pred) in insque() argument
52 ((struct qelem *)elem)->q_forw = NULL; in insque()
53 ((struct qelem *)elem)->q_back = NULL; in insque()
57 ((struct qelem *)elem)->q_forw = NULL; in insque()
58 ((struct qelem *)elem)->q_back = pred; in insque()
59 ((struct qelem *)pred)->q_forw = elem; in insque()
63 ((struct qelem *)elem)->q_back = pred; in insque()
65 ((struct qelem *)pred)->q_forw = elem; in insque()
70 remque(void *elem) in remque() argument
83 ((struct qelem *)elem)->q_forw; in remque()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxge-queue.c50 xge_queue_item_t *elem; in __queue_consume() local
67 elem->event_type, in __queue_consume()
72 (u64)(ulong_t)elem, in __queue_consume()
80 elem->event_type, in __queue_consume()
85 (u64)(ulong_t)elem, in __queue_consume()
92 elem->event_type, in __queue_consume()
97 (u64)(ulong_t)elem, in __queue_consume()
107 elem->data_size); in __queue_consume()
177 (u64)(ulong_t)elem, in xge_queue_produce()
357 elem->item.next = in __io_queue_grow()
[all …]
/illumos-gate/usr/src/tools/protocmp/
H A Dlist.h112 typedef struct elem { struct
120 struct elem *next; argument
121 struct elem *link_parent; argument
122 struct elem *link_sib; argument
129 } elem; argument
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_mach(elem_list *, elem *, int);
149 extern elem *find_elem_isa(elem_list *, elem *, int);
H A Dlist.c47 list->list = (elem**)malloc(sizeof (elem *) * hsize); in init_list()
58 elem *cur; in examine_list()
80 elem *cur; in print_list()
98 elem *cur; in print_type_list()
121 name_compare(elem *i, elem *j) in name_compare()
139 elem *
142 elem *e; in find_elem()
162 elem *
166 elem *e; in find_elem_isa()
180 elem *
[all …]
/illumos-gate/usr/src/uts/sun/io/dada/impl/
H A Ddcd_hba.c126 struct dcd_hba_inst *elem; in dcd_hba_attach() local
138 elem->inst_dip = dip; in dcd_hba_attach()
142 elem->inst_next = NULL; in dcd_hba_attach()
146 dcd_hba_list = elem; in dcd_hba_attach()
151 dcd_hba_list_tail = elem; in dcd_hba_attach()
211 struct dcd_hba_inst *elem; in dcd_hba_detach() local
229 for (elem = dcd_hba_list; elem != (struct dcd_hba_inst *)NULL; in dcd_hba_detach()
230 elem = elem->inst_next) { in dcd_hba_detach()
231 if (elem->inst_dip == dip) in dcd_hba_detach()
247 elem->inst_prev->inst_next = elem->inst_next; in dcd_hba_detach()
[all …]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dobject.c108 struct tx_cmd *elem; in tx_process_property() local
121 if (elem == NULL) { in tx_process_property()
131 elem->tx_found = 1; in tx_process_property()
147 elem->tx_bad = 1; in tx_process_property()
155 elem->tx_bad = 1; in tx_process_property()
191 struct tx_cmd *elem; in tx_process_cmds() local
230 if (elem->tx_bad) in tx_process_cmds()
238 elem->tx_bad = 1; in tx_process_cmds()
261 elem->tx_orig_value_id, elem->tx_orig_value_id); in tx_process_cmds()
299 v = elem->tx_values; in tx_process_cmds()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/io-retire/
H A Drio_main.c48 struct except_list *elem; in parse_exception_string() local
65 elem = fmd_hdl_alloc(hdl, in parse_exception_string()
68 elem->el_next = except_list; in parse_exception_string()
69 except_list = elem; in parse_exception_string()
92 struct except_list *elem; in fault_exception() local
94 for (elem = except_list; elem; elem = elem->el_next) { in fault_exception()
108 struct except_list *elem; in free_exception_list() local
111 elem = except_list; in free_exception_list()
112 except_list = elem->el_next; in free_exception_list()
113 fmd_hdl_strfree(hdl, elem->el_fault); in free_exception_list()
[all …]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_hash.c90 const void *(*convert)(const void *elem), in ipmi_hash_create() argument
164 ipmi_hash_compute(ipmi_hash_t *ihp, const void *elem) in ipmi_hash_compute() argument
196 void *elem; in ipmi_hash_resize() local
204 elem = (void *)((uintptr_t)link - ihp->ih_linkoffs); in ipmi_hash_resize()
205 nidx = ipmi_hash_compute(ihp, elem); in ipmi_hash_resize()
226 return (elem); in ipmi_hash_lookup()
244 ipmi_hash_next(ipmi_hash_t *ihp, void *elem) in ipmi_hash_next() argument
255 ipmi_hash_insert(ipmi_hash_t *ihp, void *elem) in ipmi_hash_insert() argument
258 ulong_t idx = ipmi_hash_compute(ihp, elem); in ipmi_hash_insert()
272 ipmi_hash_remove(ipmi_hash_t *ihp, void *elem) in ipmi_hash_remove() argument
[all …]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_comutil.c73 nvpair_t *elem; in zpool_get_load_policy() local
85 elem = NULL; in zpool_get_load_policy()
86 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) { in zpool_get_load_policy()
87 nm = nvpair_name(elem); in zpool_get_load_policy()
89 if (nvpair_value_nvlist(elem, &policy) == 0) in zpool_get_load_policy()
93 if (nvpair_value_uint32(elem, &zlpp->zlp_rewind) == 0) in zpool_get_load_policy()
97 (void) nvpair_value_uint64(elem, &zlpp->zlp_txg); in zpool_get_load_policy()
99 (void) nvpair_value_uint64(elem, &zlpp->zlp_maxmeta); in zpool_get_load_policy()
101 (void) nvpair_value_uint64(elem, &zlpp->zlp_maxdata); in zpool_get_load_policy()
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_svc.c287 for (elem = ss->ei_event; elem; elem = elem->ev_next) in eib_svc_enqueue_event()
288 tail = elem; in eib_svc_enqueue_event()
383 eib_vnic_req_t *elem; in eib_vnic_creator() local
425 for (elem = ss->ei_vnic_req; elem; elem = nxt) { in eib_vnic_creator()
426 nxt = elem->vr_next; in eib_vnic_creator()
429 for (elem = ss->ei_failed_vnic_req; elem; elem = nxt) { in eib_vnic_creator()
430 nxt = elem->vr_next; in eib_vnic_creator()
729 eib_ka_vnics_t *elem; in eib_manage_keepalives() local
762 for (elem = ss->ei_ka_vnics; elem; elem = nxt) { in eib_manage_keepalives()
808 for (elem = ss->ei_ka_vnics; elem; elem = nxt) { in eib_manage_keepalives()
[all …]
H A Deib_vnic.c517 for (elem = chan->ch_vhub_data; elem != NULL; elem = elem->mg_next) { in eib_vnic_join_data_mcg()
553 (void) ibt_leave_mcg(elem->mg_rgid, elem->mg_mgid, in eib_vnic_join_data_mcg()
725 for (elem = upd->up_vnic_entry; elem != NULL; elem = nxt) { in eib_vnic_fini_tables()
769 for (elem = tbl->tb_mcast_entry[i]; elem != NULL; in eib_vnic_fini_tables()
779 for (elem = tbl->tb_vnic_entry[i]; elem != NULL; elem = nxt) { in eib_vnic_fini_tables()
916 for (elem = ss->ei_vnic_req; elem; elem = elem->vr_next) { in eib_vnic_enqueue_req()
997 for (elem = ss->ei_failed_vnic_req; elem; elem = elem->vr_next) { in eib_vnic_update_failed_macs()
1751 for (elem = ss->ei_ka_vnics; elem; elem = elem->ka_next) { in eib_vnic_start_keepalives()
1793 for (elem = tbl->tb_vnic_entry[bkt]; elem != NULL; in eib_vnic_lookup_dest()
1794 elem = elem->mp_next) { in eib_vnic_lookup_dest()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Dproperty.c423 GSList *elem; in hal_property_strlist_remove_elem() local
432 if (elem == NULL) in hal_property_strlist_remove_elem()
435 g_free (elem->data); in hal_property_strlist_remove_elem()
444 GSList *elem; in hal_property_strlist_add() local
449 for (elem = prop->v.strlist_value; elem != NULL; elem = g_slist_next (elem)) { in hal_property_strlist_add()
450 if (strcmp (elem->data, value) == 0) { in hal_property_strlist_add()
462 GSList *elem; in hal_property_strlist_remove() local
467 for (elem = prop->v.strlist_value, i = 0; elem != NULL; elem = g_slist_next (elem), i++) { in hal_property_strlist_remove()
479 GSList *elem; in hal_property_strlist_clear() local
484 for (elem = prop->v.strlist_value; elem != NULL; elem = g_slist_next (elem)) { in hal_property_strlist_clear()
[all …]
/illumos-gate/usr/src/lib/hal/libhal/common/
H A Dlibhal.c3892 elem->prev->next = elem; in libhal_changeset_append()
3922 free (elem); in libhal_changeset_set_property_string()
3923 elem = NULL; in libhal_changeset_set_property_string()
3931 free (elem); in libhal_changeset_set_property_string()
3932 elem = NULL; in libhal_changeset_set_property_string()
3964 free (elem); in libhal_changeset_set_property_int()
3965 elem = NULL; in libhal_changeset_set_property_int()
4000 free (elem); in libhal_changeset_set_property_uint64()
4001 elem = NULL; in libhal_changeset_set_property_uint64()
4201 for (elem = changeset->head; elem != NULL; elem = elem->next) { in libhal_device_commit_changeset()
[all …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_defn.c305 inj_defnmem_t *elem; in inj_defn_memcmp_intr_array() local
330 for (i = 1, elem = inj_list_next(&dfm->dfm_list); elem != NULL; in inj_defn_memcmp_intr_array()
331 elem = inj_list_next(elem), i++) { in inj_defn_memcmp_intr_array()
440 inj_defnmem_t *elem; in inj_defn_memcmp_bool_array() local
453 for (i = 0, elem = inj_list_next(&dfm->dfm_list); elem != NULL; in inj_defn_memcmp_bool_array()
454 elem = inj_list_next(elem), i++) { in inj_defn_memcmp_bool_array()
503 inj_defnmem_t *elem; in inj_defn_memcmp_strenum_array() local
516 for (i = 0, elem = inj_list_next(&dfm->dfm_list); elem != NULL; in inj_defn_memcmp_strenum_array()
517 elem = inj_list_next(elem), i++) { in inj_defn_memcmp_strenum_array()
648 for (i = 0, elem = inj_list_next(&dfm->dfm_list); elem != NULL; in inj_defn_memcmp_sub_array()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dfm.c77 errorq_elem_t elem; in ereportq_pend_walk_step() local
82 if (mdb_vread(&elem, sizeof (elem), addr) != sizeof (elem) || in ereportq_pend_walk_step()
83 mdb_vread(&eqnp, sizeof (eqnp), (uintptr_t)elem.eqe_data) in ereportq_pend_walk_step()
90 wsp->walk_addr = (uintptr_t)elem.eqe_prev; in ereportq_pend_walk_step()
129 errorq_elem_t elem; in ereportq_dump_walk_step() local
134 if (mdb_vread(&elem, sizeof (elem), addr) != sizeof (elem) || in ereportq_dump_walk_step()
135 mdb_vread(&eqnp, sizeof (eqnp), (uintptr_t)elem.eqe_data) in ereportq_dump_walk_step()
142 wsp->walk_addr = (uintptr_t)elem.eqe_dump; in ereportq_dump_walk_step()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_list.c194 void *elem; in topo_list_deepcopy() local
200 for (elem = topo_list_next(src); elem != NULL; in topo_list_deepcopy()
201 elem = topo_list_next(elem)) { in topo_list_deepcopy()
207 (void) memcpy(elem_copy, elem, elem_sz); in topo_list_deepcopy()
217 elem = topo_list_next(dest); in topo_list_deepcopy()
218 while (elem != NULL) { in topo_list_deepcopy()
219 void *tmp = elem; in topo_list_deepcopy()
221 elem = topo_list_next(elem); in topo_list_deepcopy()
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_internal.c439 switch (pool_elem_class(elem)) { in elem_set_name()
451 res = pool_get_resource(TO_CONF(elem), in elem_set_name()
452 pool_elem_class_string(elem), nm); in elem_set_name()
831 [pool_resource_elem_class(elem)]; in provider_get_props()
835 [pool_component_elem_class(elem)]; in provider_get_props()
1118 elem_get_sysid(const pool_elem_t *elem) in elem_get_sysid() argument
1128 elem_get_name(const pool_elem_t *elem) in elem_get_name() argument
1148 elem_is_tmp(const pool_elem_t *elem) in elem_is_tmp() argument
1626 return (elem->pe_class); in pool_elem_class()
1636 return (elem->pe_resource_class); in pool_resource_elem_class()
[all …]
H A Dpool_kernel.c330 elem = old_elem; in load_group()
332 if (dict_put(prov->pkc_elements, elem, elem) != NULL) { in load_group()
410 elem = old_elem; in load_group()
412 if (dict_put(prov->pkc_elements, elem, elem) != in load_group()
450 elem = old_elem; in load_group()
452 if (dict_put(prov->pkc_elements, elem, elem) != in load_group()
484 elem = old_elem; in load_group()
486 if (dict_put(prov->pkc_elements, elem, elem) != in load_group()
1663 elem, elem) != NULL) in pool_knl_elem_wrap()
1667 return (elem); in pool_knl_elem_wrap()
[all …]
/illumos-gate/usr/src/lib/libnvpair/
H A Dlibnvpair.c775 nvpair_name(elem), (ptype)value); \
795 nvpair_t *elem = NULL; in dump_nvlist() local
806 while ((elem = nvlist_next_nvpair(list, elem)) != NULL) { in dump_nvlist()
807 switch (nvpair_type(elem)) { in dump_nvlist()
819 NVP(elem, byte, uchar_t, int, "%u"); in dump_nvlist()
823 NVP(elem, int8, int8_t, int, "%d"); in dump_nvlist()
827 NVP(elem, uint8, uint8_t, int, "%u"); in dump_nvlist()
863 nvpair_name(elem), i, in dump_nvlist()
912 nvpair_name(elem)); in dump_nvlist()
921 nvpair_name(elem), i); in dump_nvlist()
[all …]
/illumos-gate/usr/src/lib/storage/liba5k/common/
H A Dlhot.c460 *code = (elem->code != S_OK) ? elem->code : 0; in l_encl_status_page_funcs()
466 elem->code : 0; in l_encl_status_page_funcs()
474 elem->select = 1; in l_encl_status_page_funcs()
475 elem->rdy_to_ins = 1; in l_encl_status_page_funcs()
479 elem->select = 1; in l_encl_status_page_funcs()
480 elem->rmv = 1; in l_encl_status_page_funcs()
481 elem->dev_off = 1; in l_encl_status_page_funcs()
487 elem->select = 1; in l_encl_status_page_funcs()
488 elem->fault_req = 1; in l_encl_status_page_funcs()
489 elem->dev_off = 1; in l_encl_status_page_funcs()
[all …]
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Dsnmp.c73 GList *elem; in scan_for_devices_using_snmp() local
123 for (elem = new_addrs; elem != NULL; elem = g_list_next(elem)) { in scan_for_devices_using_snmp()
124 add_snmp_device(ctx, parent, (char *)elem->data, community); in scan_for_devices_using_snmp()
125 free(elem->data); in scan_for_devices_using_snmp()
/illumos-gate/usr/src/tools/smatch/src/validation/optim/
H A Dkill-casts.c4 int elem:3; member
10 if (x->elem == 0) { in foo()
11 if (x->elem != 0 && x->elem != 1) in foo()

123456