Home
last modified time | relevance | path

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

123456

/titanic_41/usr/src/lib/libsqlite/src/
H A Dhash.c52 HashElem *elem; /* For looping over all elements of the table */ in sqliteHashClear() local
55 elem = pH->first; in sqliteHashClear()
60 while( elem ){ in sqliteHashClear()
61 HashElem *next_elem = elem->next; in sqliteHashClear()
62 if( pH->copyKey && elem->pKey ){ in sqliteHashClear()
63 sqliteFree(elem->pKey); in sqliteHashClear()
65 sqliteFree(elem); in sqliteHashClear()
66 elem = next_elem; in sqliteHashClear()
170 HashElem *elem, *next_elem; /* For looping over existing elements */ in rehash() local
181 for(elem=pH->first, pH->first=0; elem; elem = next_elem){ in rehash()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DGenLinkedList.c61 void AddToTail( GenLinkedList *pList, void *elem) in AddToTail() argument
65 ASSIGNLINK( pList->Tail, elem, pList->LinkOffset); in AddToTail()
67 pList->Head = elem; in AddToTail()
68 ASSIGNLINK( elem, NULL, pList->LinkOffset); in AddToTail()
70 pList->Tail = elem; in AddToTail()
74 void AddToHead( GenLinkedList *pList, void *elem) in AddToHead() argument
77 ASSIGNLINK( elem, pList->Head, pList->LinkOffset); in AddToHead()
79 pList->Tail = elem; in AddToHead()
81 pList->Head = elem; in AddToHead()
85 int RemoveFromList( GenLinkedList *pList, void *elem) in RemoveFromList() argument
[all …]
H A DGenLinkedList.h55 void AddToHead( GenLinkedList *pList, void *elem);
56 void AddToTail( GenLinkedList *pList, void *elem);
58 int RemoveFromList( GenLinkedList *pList, void *elem);
77 void DLLAddToHead( GenDoubleLinkedList *pList, void *elem);
79 void DLLRemoveFromList( GenDoubleLinkedList *pList, void *elem);
99 void *GetOffsetLink( GenLinkedOffsetList *pList, void *elem);
101 void OffsetAddToHead( GenLinkedOffsetList *pList, void *elem);
102 void OffsetAddToTail( GenLinkedOffsetList *pList, void *elem);
104 int OffsetRemoveFromList( GenLinkedOffsetList *pList, void *elem);
/titanic_41/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()
62 ((struct qelem *)elem)->q_forw = ((struct qelem *)pred)->q_forw; in insque()
63 ((struct qelem *)elem)->q_back = pred; in insque()
64 ((struct qelem *)pred)->q_forw->q_back = elem; in insque()
65 ((struct qelem *)pred)->q_forw = elem; in insque()
[all …]
/titanic_41/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxge-queue.c50 xge_queue_item_t *elem; in __queue_consume() local
55 elem = (xge_queue_item_t *)queue->list_head.next; in __queue_consume()
56 if (elem->data_size > data_max_size) in __queue_consume()
59 xge_list_remove(&elem->item); in __queue_consume()
60 real_size = elem->data_size + sizeof(xge_queue_item_t); in __queue_consume()
61 if (queue->head_ptr == elem) { in __queue_consume()
67 elem->event_type, in __queue_consume()
72 (u64)(ulong_t)elem, in __queue_consume()
74 } else if ((char *)queue->tail_ptr - real_size == (char*)elem) { in __queue_consume()
80 elem->event_type, in __queue_consume()
[all …]
/titanic_41/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 *
140 find_elem(elem_list *list, elem *key, int flag) in find_elem()
142 elem *e; in find_elem()
162 elem *
163 find_elem_isa(elem_list *list, elem *key, int flag) in find_elem_isa()
[all …]
/titanic_41/usr/src/uts/sun/io/dada/impl/
H A Ddcd_hba.c126 struct dcd_hba_inst *elem; in dcd_hba_attach() local
136 elem = kmem_alloc(sizeof (struct dcd_hba_inst), KM_SLEEP); in dcd_hba_attach()
138 elem->inst_dip = dip; in dcd_hba_attach()
139 elem->inst_hba_tran = hba_tran; in dcd_hba_attach()
142 elem->inst_next = NULL; in dcd_hba_attach()
143 elem->inst_prev = dcd_hba_list_tail; in dcd_hba_attach()
146 dcd_hba_list = elem; in dcd_hba_attach()
149 dcd_hba_list_tail->inst_next = 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
[all …]
/titanic_41/usr/src/cmd/svc/configd/
H A Dobject.c59 const struct tx_cmd *elem = elem_arg; in tx_cmd_compare() local
61 return (strcmp((const char *)key, elem->tx_prop)); in tx_cmd_compare()
108 struct tx_cmd *elem; in tx_process_property() local
118 elem = bsearch(prop_name, data->txc_cmds, data->txc_count, in tx_process_property()
121 if (elem == NULL) { in tx_process_property()
130 assert(!elem->tx_found); in tx_process_property()
131 elem->tx_found = 1; in tx_process_property()
135 elem->tx_orig_value_id = in tx_process_property()
137 if (elem->tx_orig_value_id == 0 || *endptr != 0 || in tx_process_property()
142 elem->tx_orig_value_id = 0; in tx_process_property()
[all …]
/titanic_41/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
166 return (ihp->ih_compute(ihp->ih_convert(elem)) % ihp->ih_nbuckets); in ipmi_hash_compute()
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()
223 void *elem = (void *)((uintptr_t)hl - ihp->ih_linkoffs); in ipmi_hash_lookup() local
225 if (ihp->ih_compare(ihp->ih_convert(elem), search) == 0) in ipmi_hash_lookup()
226 return (elem); in ipmi_hash_lookup()
244 ipmi_hash_next(ipmi_hash_t *ihp, void *elem) in ipmi_hash_next() argument
[all …]
/titanic_41/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()
67 elem->el_fault = fmd_hdl_strdup(hdl, p, FMD_SLEEP); 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()
95 if (fmd_nvl_class_match(hdl, fault, elem->el_fault)) { in fault_exception()
97 "on exception list (%s)\n", elem->el_fault); in fault_exception()
108 struct except_list *elem; in free_exception_list() local
[all …]
/titanic_41/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DStringVector.java88 public final boolean contains(String elem) { in contains() argument
89 return vector.contains(elem); in contains()
92 public final int indexOf(String elem) { in indexOf() argument
93 return vector.indexOf(elem); in indexOf()
96 public final int indexOf(String elem, int index) { in indexOf() argument
97 return vector.indexOf(elem, index); in indexOf()
100 public final int lastIndexOf(String elem) { in lastIndexOf() argument
101 return vector.lastIndexOf(elem); in lastIndexOf()
104 public final int lastIndexOf(String elem, int index) { in lastIndexOf() argument
105 return vector.lastIndexOf(elem, index); in lastIndexOf()
/titanic_41/usr/src/common/zfs/
H A Dzfs_comutil.c73 nvpair_t *elem; in zpool_get_rewind_policy() local
85 elem = NULL; in zpool_get_rewind_policy()
86 while ((elem = nvlist_next_nvpair(nvl, elem)) != NULL) { in zpool_get_rewind_policy()
87 nm = nvpair_name(elem); in zpool_get_rewind_policy()
89 if (nvpair_value_nvlist(elem, &policy) == 0) in zpool_get_rewind_policy()
93 if (nvpair_value_uint32(elem, &zrpp->zrp_request) == 0) in zpool_get_rewind_policy()
97 (void) nvpair_value_uint64(elem, &zrpp->zrp_txg); in zpool_get_rewind_policy()
99 (void) nvpair_value_uint64(elem, &zrpp->zrp_maxmeta); in zpool_get_rewind_policy()
101 (void) nvpair_value_uint64(elem, &zrpp->zrp_maxdata); in zpool_get_rewind_policy()
/titanic_41/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c217 nvpair_t *elem; in lzc_snapshot() local
225 elem = nvlist_next_nvpair(snaps, NULL); in lzc_snapshot()
226 if (elem == NULL) in lzc_snapshot()
228 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_snapshot()
269 nvpair_t *elem; in lzc_destroy_snaps() local
275 elem = nvlist_next_nvpair(snaps, NULL); in lzc_destroy_snaps()
276 if (elem == NULL) in lzc_destroy_snaps()
278 (void) strlcpy(pool, nvpair_name(elem), sizeof (pool)); in lzc_destroy_snaps()
366 nvpair_t *elem; in lzc_hold() local
370 elem = nvlist_next_nvpair(holds, NULL); in lzc_hold()
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_svc.c273 eib_event_t *elem = NULL; in eib_svc_enqueue_event() local
287 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()
427 kmem_free(elem, sizeof (eib_vnic_req_t)); 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()
431 kmem_free(elem, sizeof (eib_vnic_req_t)); in eib_vnic_creator()
[all …]
H A Deib_vnic.c423 eib_mcg_t *elem; in eib_vnic_join_data_mcg() local
517 for (elem = chan->ch_vhub_data; elem != NULL; elem = elem->mg_next) { in eib_vnic_join_data_mcg()
518 if ((elem->mg_mgid.gid_prefix == mcg_attr.mc_mgid.gid_prefix) && in eib_vnic_join_data_mcg()
519 (elem->mg_mgid.gid_guid == mcg_attr.mc_mgid.gid_guid)) { in eib_vnic_join_data_mcg()
522 tail = elem; in eib_vnic_join_data_mcg()
529 if (elem == NULL) { in eib_vnic_join_data_mcg()
551 ASSERT(elem->mg_mcginfo != NULL); in eib_vnic_join_data_mcg()
552 kmem_free(elem->mg_mcginfo, sizeof (ibt_mcg_info_t)); in eib_vnic_join_data_mcg()
553 (void) ibt_leave_mcg(elem->mg_rgid, elem->mg_mgid, in eib_vnic_join_data_mcg()
554 eib_reserved_gid, elem->mg_join_state); in eib_vnic_join_data_mcg()
[all …]
/titanic_41/usr/src/cmd/hal/hald/
H A Dproperty.c423 GSList *elem; in hal_property_strlist_remove_elem() local
431 elem = g_slist_nth (prop->v.strlist_value, index); in hal_property_strlist_remove_elem()
432 if (elem == NULL) in hal_property_strlist_remove_elem()
435 g_free (elem->data); in hal_property_strlist_remove_elem()
436 prop->v.strlist_value = g_slist_delete_link (prop->v.strlist_value, elem); 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()
[all …]
/titanic_41/usr/src/lib/hal/libhal/common/
H A Dlibhal.c3879 libhal_changeset_append (LibHalChangeSet *changeset, LibHalChangeSetElement *elem) in libhal_changeset_append() argument
3882 LIBHAL_CHECK_PARAM_VALID(elem, "*elem", ); in libhal_changeset_append()
3885 changeset->head = elem; in libhal_changeset_append()
3886 changeset->tail = elem; in libhal_changeset_append()
3887 elem->next = NULL; in libhal_changeset_append()
3888 elem->prev = NULL; in libhal_changeset_append()
3890 elem->prev = changeset->tail; in libhal_changeset_append()
3891 elem->next = NULL; in libhal_changeset_append()
3892 elem->prev->next = elem; in libhal_changeset_append()
3893 changeset->tail = elem; in libhal_changeset_append()
[all …]
/titanic_41/usr/src/cmd/fm/fminject/common/
H A Dinj_defn.c308 inj_defnmem_t *elem; in inj_defn_memcmp_intr_array() local
333 for (i = 1, elem = inj_list_next(&dfm->dfm_list); elem != NULL; in inj_defn_memcmp_intr_array()
334 elem = inj_list_next(elem), i++) { in inj_defn_memcmp_intr_array()
335 if (elem->dfm_type != DEFNMEM_IMM && in inj_defn_memcmp_intr_array()
336 elem->dfm_type != DEFNMEM_IDENT) { in inj_defn_memcmp_intr_array()
346 if (inj_strtoll(elem->dfm_str, cont->ei_width, in inj_defn_memcmp_intr_array()
372 if (inj_strtoull(elem->dfm_str, cont->ei_width, in inj_defn_memcmp_intr_array()
443 inj_defnmem_t *elem; in inj_defn_memcmp_bool_array() local
456 for (i = 0, elem = inj_list_next(&dfm->dfm_list); elem != NULL; in inj_defn_memcmp_bool_array()
457 elem = inj_list_next(elem), i++) { in inj_defn_memcmp_bool_array()
[all …]
/titanic_41/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()
/titanic_41/usr/src/lib/libpool/common/
H A Dpool_internal.c417 elem_no_set(pool_elem_t *elem, const pool_value_t *pval) in elem_no_set() argument
426 elem_set_name(pool_elem_t *elem, const pool_value_t *pval) in elem_set_name() argument
439 switch (pool_elem_class(elem)) { in elem_set_name()
443 pool = pool_get_pool(TO_CONF(elem), nm); in elem_set_name()
444 if (pool != NULL && pool != pool_elem_pool(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()
453 if (res != NULL && res != pool_elem_res(elem)) { in elem_set_name()
469 elem_set_string(pool_elem_t *elem, const pool_value_t *pval) in elem_set_string() argument
484 elem_set_bool(pool_elem_t *elem, const pool_value_t *pval) in elem_set_bool() argument
[all …]
H A Dpool_kernel.c303 load_group(pool_conf_t *conf, pool_knl_elem_t *elem, ea_object_t *ep, in load_group() argument
312 if ((elem = pool_knl_elem_wrap(conf, PEC_SYSTEM, PREC_INVALID, in load_group()
315 if (nvlist_alloc(&elem->pke_properties, NV_UNIQUE_NAME_TYPE, in load_group()
317 pool_knl_elem_free(elem, PO_FALSE); in load_group()
326 if ((old_elem = dict_get(prov->pkc_elements, elem)) != NULL) { in load_group()
328 old_elem->pke_properties = elem->pke_properties; in load_group()
329 pool_knl_elem_free(elem, PO_FALSE); in load_group()
330 elem = old_elem; in load_group()
332 if (dict_put(prov->pkc_elements, elem, elem) != NULL) { in load_group()
333 pool_knl_elem_free(elem, PO_TRUE); in load_group()
[all …]
/titanic_41/usr/src/lib/storage/liba5k/common/
H A Dlhot.c406 struct device_element *elem; in l_encl_status_page_funcs() local
452 elem = (struct device_element *)(page_buf + offset); in l_encl_status_page_funcs()
461 *code = (elem->code != S_OK) ? elem->code : 0; in l_encl_status_page_funcs()
466 *code = (elem->code != S_NOT_INSTALLED) ? in l_encl_status_page_funcs()
467 elem->code : 0; in l_encl_status_page_funcs()
474 bzero(elem, sizeof (struct device_element)); in l_encl_status_page_funcs()
475 elem->select = 1; in l_encl_status_page_funcs()
476 elem->rdy_to_ins = 1; in l_encl_status_page_funcs()
479 bzero(elem, sizeof (struct device_element)); in l_encl_status_page_funcs()
480 elem->select = 1; in l_encl_status_page_funcs()
[all …]
/titanic_41/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()
/titanic_41/usr/src/lib/libnvpair/
H A Dlibnvpair.c770 #define NVP(elem, type, vtype, ptype, format) { \ argument
773 (void) nvpair_value_##type(elem, &value); \
775 nvpair_name(elem), (ptype)value); \
778 #define NVPA(elem, type, vtype, ptype, format) { \ argument
782 (void) nvpair_value_##type(elem, &value, &count); \
785 nvpair_name(elem), i, (ptype)value[i]); \
795 nvpair_t *elem = NULL; in dump_nvlist() local
805 while ((elem = nvlist_next_nvpair(list, elem)) != NULL) { in dump_nvlist()
806 switch (nvpair_type(elem)) { in dump_nvlist()
808 (void) printf("%*s%s\n", indent, "", nvpair_name(elem)); in dump_nvlist()
[all …]

123456