Searched refs:elt_index (Results 1 - 14 of 14) sorted by relevance

/vpp/src/vppinfra/
H A Dtest_dlist.c31 u32 elt_index, head_index; local
42 elt_index = elt - tm->test_pool;
44 clib_dlist_init (tm->test_pool, elt_index);
46 clib_dlist_addtail (tm->test_pool, head_index, elt_index);
52 elt_index = head->next;
57 elt = pool_elt_at_index (tm->test_pool, elt_index);
59 elt_index = elt->next;
64 elt_index = head->prev;
69 elt = pool_elt_at_index (tm->test_pool, elt_index);
71 elt_index
[all...]
H A Dheap.c233 uword elt_index = e - h->elts; local
234 vec_validate (h->small_free_elt_free_index, elt_index);
235 h->small_free_elt_free_index[elt_index] = fi;
254 uword elt_index = e - h->elts; local
255 fi = vec_elt (h->small_free_elt_free_index, elt_index);
/vpp/extras/deprecated/vppinfra/
H A Dtest_slist.c134 test_compare (void *key, u32 elt_index) argument
137 u32 elt = test_main.random_pool[elt_index];
149 u32 elt_index = va_arg (*args, u32); local
150 u32 elt = test_main.random_pool[elt_index];
/vpp/src/svm/
H A Dmessage_queue.c34 svm_msg_q_ring_data (svm_msg_q_ring_t * ring, u32 elt_index) argument
36 ASSERT (elt_index < ring->nitems);
37 return (ring->data + elt_index * ring->elsize);
110 msg.elt_index = ring->tail;
154 msg.elt_index = ring->tail;
166 return svm_msg_q_ring_data (ring, msg->elt_index);
177 if (msg->elt_index == ring->head)
207 dist1 = ((ring->nitems + msg->elt_index) - head) % ring->nitems;
H A Dmessage_queue.h63 u32 elt_index; /**< index in ring */ member in struct:__anon13::__anon14
/vpp/src/plugins/nat/dslite/
H A Ddslite_cli.c250 u32 elt_index, head_index; local
263 elt_index = head->next;
264 elt = pool_elt_at_index (td->list_pool, elt_index);
270 elt_index = elt->next;
271 elt = pool_elt_at_index (td->list_pool, elt_index);
/vpp/src/plugins/nsh/nsh-md2-ioam/
H A Dnsh_md2_ioam_trace.c196 u8 elt_index = 0; local
224 elt_index =
227 elt = &trace->elts[elt_index];
284 int elt_index = 0; local
297 s = format (s, " [%d] %U\n", elt_index,
299 elt_index++;
/vpp/src/plugins/nat/
H A Dnat_affinity.c100 u32 elt_index; local
107 while ((elt_index =
112 elt = pool_elt_at_index (nam->list_pool, elt_index);
119 pool_put_index (nam->list_pool, elt_index);
H A Dnat_format.c178 u32 elt_index, head_index; local
193 elt_index = head->next;
194 elt = pool_elt_at_index (tsm->list_pool, elt_index);
203 elt_index = elt->next;
204 elt = pool_elt_at_index (tsm->list_pool, elt_index);
H A Dnat.c771 u32 elt_index, head_index, ses_index; local
780 elt_index = head->next;
781 elt = pool_elt_at_index (tsm->list_pool, elt_index);
876 u32 elt_index, head_index; local
1137 elt_index = head->next;
1138 elt = pool_elt_at_index (tsm->list_pool, elt_index);
H A Dnat_api.c1748 u32 session_index, head_index, elt_index; local
1779 elt_index = head->next;
1780 elt = pool_elt_at_index (tsm->list_pool, elt_index);
1788 elt_index = elt->next;
1789 elt = pool_elt_at_index (tsm->list_pool, elt_index);
/vpp/src/plugins/ioam/lib-vxlan-gpe/
H A Dvxlan_gpe_ioam_trace.c257 u8 elt_index = 0; local
283 elt_index =
286 elt = &trace->elts[elt_index];
383 int elt_index = 0; local
395 s = format (s, " [%d] %U\n", elt_index,
398 elt_index++;
/vpp/src/plugins/ioam/encap/
H A Dip6_ioam_trace.c260 u8 elt_index = 0; local
294 elt_index =
297 elt = &trace->trace_hdr.elts[elt_index];
357 int elt_index = 0; local
371 s = format (s, " [%d] %U\n", elt_index,
374 elt_index++;
/vpp/src/plugins/unittest/
H A Dsession_test.c1924 || msg1.ring_index != 0 || msg1.elt_index != 0);
1929 || msg2.ring_index != 1 || msg2.elt_index != 0);
1952 SESSION_TEST (msg2.ring_index == 1 && msg2.elt_index == 0,
1965 if (msg[i].ring_index != 0 || msg[i].elt_index != (i + 1) % 8)
1970 if (msg[i].ring_index != 1 || msg[i].elt_index != (i - 8) + 1)

Completed in 22 milliseconds