Home
last modified time | relevance | path

Searched refs:itr (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/cwchash/
H A Dhashtable_itr.c15 struct hashtable_itr *itr = (struct hashtable_itr *) in hashtable_iterator() local
17 if (NULL == itr) return NULL; in hashtable_iterator()
18 itr->h = h; in hashtable_iterator()
19 itr->e = NULL; in hashtable_iterator()
20 itr->parent = NULL; in hashtable_iterator()
22 itr->index = tablelength; in hashtable_iterator()
23 if (0 == h->entrycount) return itr; in hashtable_iterator()
29 itr->e = h->table[i]; in hashtable_iterator()
30 itr->index = i; in hashtable_iterator()
34 return itr; in hashtable_iterator()
[all …]
H A Dtester.c53 struct hashtable_itr *itr; in main() local
106 itr = hashtable_iterator(h); in main()
111 kk = hashtable_iterator_key(itr); in main()
112 v = hashtable_iterator_value(itr); in main()
120 } while (hashtable_iterator_advance(itr)); in main()
135 if (0 == search_itr_some(itr,h,k)) { in main()
209 if (0 == search_itr_some(itr, h, k)) { in main()
213 if (0 == hashtable_iterator_remove(itr)) { in main()
218 free(itr); in main()
223 for (itr = hashtable_iterator(h); in main()
[all …]
H A Dhashtable_itr.h51 hashtable_iterator_advance(struct hashtable_itr *itr);
60 hashtable_iterator_remove(struct hashtable_itr *itr);
68 hashtable_iterator_search(struct hashtable_itr *itr,
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_test.c325 #define PAST_END(itr, len) \ argument
326 (((uintptr_t)(itr)->sic_pos + len) > itr->sic_end)
344 mt_snoop_iter_next(ktest_ctx_hdl_t *ctx, snoop_iter_t *itr, snoop_pkt_t *pkt, in mt_snoop_iter_next() argument
353 if ((uintptr_t)(itr->sic_pos) == itr->sic_end) { in mt_snoop_iter_next()
367 if (PAST_END(itr, sizeof (snoop_pkt_record_hdr_t))) { in mt_snoop_iter_next()
370 itr->sic_pkt_num, itr->sic_pos, in mt_snoop_iter_next()
371 sizeof (snoop_pkt_record_hdr_t), itr->sic_end); in mt_snoop_iter_next()
375 itr->sic_pkt_hdr = (snoop_pkt_record_hdr_t *)itr->sic_pos; in mt_snoop_iter_next()
376 pkt_start = itr->sic_pos + sizeof (snoop_pkt_record_hdr_t); in mt_snoop_iter_next()
382 if (PAST_END(itr, ntohl(itr->sic_pkt_hdr->spr_record_len))) { in mt_snoop_iter_next()
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dhtbl.c199 iter_free(hiter_t *itr) in iter_free() argument
205 tbl = itr->table; in iter_free()
211 free(itr); in iter_free()
215 iter_next(hiter_t *itr) in iter_next() argument
223 ret = itr->next; in iter_next()
229 hash = itr->table; in iter_next()
231 i = itr->bucket; in iter_next()
242 itr->next = tmp; in iter_next()
243 itr->bucket = i; in iter_next()
252 hiter_t *itr = iterate_hash(tbl); in elements_in_table() local
[all …]
H A Dmain.c1639 hiter_t *itr; in child_to_file() local
1655 itr = iterate_hash(fcall_tbl); in child_to_file()
1657 ntry = iter_next(itr); in child_to_file()
1678 ntry = iter_next(itr); in child_to_file()
1680 iter_free(itr); in child_to_file()
2138 hiter_t *itr = iterate_hash(fcall_tbl); in report() local
2139 hentry_t *tmp = iter_next(itr); in report()
2148 tmp = iter_next(itr); in report()
2159 iter_free(itr); in report()
2161 itr = NULL; in report()
/illumos-gate/usr/src/lib/libdtrace_jni/common/
H A Ddtrace_jni.c798 uu_list_walk_t *itr; in Java_org_opensolaris_os_dtrace_LocalConsumer__1exec() local
817 itr = uu_list_walk_start(jc.dtjj_consumer->dtjc_program_list, 0); in Java_org_opensolaris_os_dtrace_LocalConsumer__1exec()
818 for (i = 0; (p = uu_list_walk_next(itr)) != NULL; ++i) { in Java_org_opensolaris_os_dtrace_LocalConsumer__1exec()
826 uu_list_walk_end(itr); in Java_org_opensolaris_os_dtrace_LocalConsumer__1exec()
835 uu_list_walk_end(itr); in Java_org_opensolaris_os_dtrace_LocalConsumer__1exec()
840 uu_list_walk_end(itr); in Java_org_opensolaris_os_dtrace_LocalConsumer__1exec()
876 uu_list_walk_t *itr; in Java_org_opensolaris_os_dtrace_LocalConsumer__1getProgramInfo() local
895 itr = uu_list_walk_start(jc.dtjj_consumer->dtjc_program_list, 0); in Java_org_opensolaris_os_dtrace_LocalConsumer__1getProgramInfo()
896 for (i = 0; ((p = uu_list_walk_next(itr)) != NULL) && !pinfo; ++i) { in Java_org_opensolaris_os_dtrace_LocalConsumer__1getProgramInfo()
905 uu_list_walk_end(itr); in Java_org_opensolaris_os_dtrace_LocalConsumer__1getProgramInfo()
[all …]
H A Ddtj_util.c441 uu_list_walk_t *itr; in dtj_cache_jni_classes() local
485 itr = uu_list_walk_start(classes, 0); in dtj_cache_jni_classes()
486 while ((class = uu_list_walk_next(itr)) != NULL) { in dtj_cache_jni_classes()
511 uu_list_walk_end(itr); in dtj_cache_jni_classes()
669 uu_list_walk_t *itr; in dtj_cache_jni_methods() local
670 itr = uu_list_walk_start(c->djc_methods, 0); in dtj_cache_jni_methods()
671 while ((method = uu_list_walk_next(itr)) != NULL) { in dtj_cache_jni_methods()
704 uu_list_walk_end(itr); in dtj_cache_jni_methods()
713 uu_list_walk_t *itr; in dtj_cache_jni_fields() local
714 itr = uu_list_walk_start(c->djc_fields, 0); in dtj_cache_jni_fields()
[all …]
H A Ddtj_consume.c1838 uu_list_walk_t *itr; in dtj_agghandler() local
1875 itr = uu_list_walk_start(jc->dtjj_aggval_list, 0); in dtj_agghandler()
1876 while ((aggval = uu_list_walk_next(itr)) != NULL) { in dtj_agghandler()
1927 uu_list_walk_end(itr); in dtj_agghandler()
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_ibt.c57 #define EIB_PORT_ATTR_LOADED(itr) \ argument
58 (((itr) & SM_INIT_TYPE_REPLY_NO_LOAD_REPLY) == 0)
59 #define EIB_PORT_ATTR_NOT_PRESERVED(itr) \ argument
60 (((itr) & SM_INIT_TYPE_PRESERVE_CONTENT_REPLY) == 0)
61 #define EIB_PORT_PRES_NOT_PRESERVED(itr) \ argument
62 (((itr) & SM_INIT_TYPE_PRESERVE_PRESENCE_REPLY) == 0)
181 uint8_t itr; in eib_ibt_link_mod() local
201 itr = pi->p_init_type_reply; in eib_ibt_link_mod()
202 if (EIB_PORT_ATTR_LOADED(itr) && EIB_PORT_ATTR_NOT_PRESERVED(itr)) { in eib_ibt_link_mod()
250 if (EIB_PORT_PRES_NOT_PRESERVED(itr)) { in eib_ibt_link_mod()
H A Denx_hdlrs.c62 #define ENX_PORT_ATTR_LOADED(itr) \ argument
63 (((itr) & SM_INIT_TYPE_REPLY_NO_LOAD_REPLY) == 0)
64 #define ENX_PORT_ATTR_NOT_PRESERVED(itr) \ argument
65 (((itr) & SM_INIT_TYPE_PRESERVE_CONTENT_REPLY) == 0)
66 #define ENX_PORT_PRES_NOT_PRESERVED(itr) \ argument
67 (((itr) & SM_INIT_TYPE_PRESERVE_PRESENCE_REPLY) == 0)
941 uint8_t itr; in eibnx_handle_port_events() local
974 itr = pi->p_init_type_reply; in eibnx_handle_port_events()
975 if (ENX_PORT_ATTR_LOADED(itr) && ENX_PORT_ATTR_NOT_PRESERVED(itr)) { in eibnx_handle_port_events()
1002 if (ENX_PORT_PRES_NOT_PRESERVED(itr)) { in eibnx_handle_port_events()
/illumos-gate/usr/src/uts/common/sys/
H A Dpg.h133 #define PG_CPU_ITR_INIT(pgrp, itr) \ argument
135 group_iter_init(&(itr).position); \
136 (itr).pg = ((pg_t *)pgrp); \
/illumos-gate/usr/src/uts/intel/os/
H A Dcpc_subr.c204 pg_cpu_itr_t itr; in kcpc_hw_cpu_hook() local
224 PG_CPU_ITR_INIT(chip_pg, itr); in kcpc_hw_cpu_hook()
225 while ((p = pg_cpu_next(&itr)) != NULL) { in kcpc_hw_cpu_hook()
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_intr.c181 i40e_intr_set_itr(i40e_t *i40e, i40e_itr_index_t itr, uint_t val) in i40e_intr_set_itr() argument
187 VERIFY3U(itr, <, I40E_ITR_INDEX_NONE); in i40e_intr_set_itr()
193 if (itr == I40E_ITR_INDEX_OTHER || in i40e_intr_set_itr()
195 I40E_WRITE_REG(hw, I40E_PFINT_ITR0(itr), val); in i40e_intr_set_itr()
200 I40E_WRITE_REG(hw, I40E_PFINT_ITRN(itr, i), val); in i40e_intr_set_itr()
/illumos-gate/usr/src/uts/sun4/sys/
H A Dintreg.h115 uint_t itr; member
/illumos-gate/usr/src/uts/common/os/
H A Dpg.c359 pg_cpu_next(pg_cpu_itr_t *itr) in pg_cpu_next() argument
362 pg_t *pg = itr->pg; in pg_cpu_next()
364 cpu = group_iterate(&pg->pg_cpus, &itr->position); in pg_cpu_next()
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DProbeData.java288 ListIterator <Record> itr = records.listIterator(records.size()); in getLastPrinta() local
291 while (itr.hasPrevious() && (printa == null)) { in getLastPrinta()
292 record = itr.previous(); in getLastPrinta()
/illumos-gate/usr/src/cmd/dtrace/test/cmd/jdtrace/
H A DJDTrace.java246 Iterator <Record> itr = records.iterator(); in consumeProbeData() local
247 while (itr.hasNext()) { in consumeProbeData()
248 record = itr.next(); in consumeProbeData()
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_api.h54 s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr);
H A De1000_api.c1023 s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr) in e1000_set_obff_timer() argument
1026 return hw->mac.ops.set_obff_timer(hw, itr); in e1000_set_obff_timer()
H A De1000_ich8lan.c147 static s32 e1000_set_obff_timer_pch_lpt(struct e1000_hw *hw, u32 itr);
1250 static s32 e1000_set_obff_timer_pch_lpt(struct e1000_hw *hw, u32 itr) in e1000_set_obff_timer_pch_lpt() argument
1258 timer = itr & E1000_ITR_MASK; in e1000_set_obff_timer_pch_lpt()
/illumos-gate/usr/src/cmd/cxgbetool/
H A Dcudbg_view.c2318 u32 itr; in view_fw_devlog() local
2332 for (itr = 0; itr < num_entries; itr++) { in view_fw_devlog()