Searched refs:buffer (Results 1 - 25 of 80) sorted by relevance

1234

/vpp/src/vppinfra/
H A Drandom_buffer.h54 /* Random buffer. */
55 uword *buffer; member in struct:__anon1
72 vec_free (b->buffer);
75 /* Fill random buffer. */
78 /* Initialize random buffer. */
81 /* Returns word aligned random data, possibly filling buffer. */
99 if (PREDICT_FALSE (n_words > vec_len (b->buffer)))
102 i = vec_len (b->buffer) - n_words;
103 _vec_len (b->buffer) = i;
107 b->cached_word = b->buffer[
[all...]
H A Drandom_buffer.c40 /* Fill random buffer. */
51 vec_add2 (b->buffer, w, n);
H A Dunformat.c40 /* Call user's function to fill input buffer. */
49 first_mark = l = vec_len (i->buffer);
53 /* Re-use buffer when no marks. */
55 vec_delete (i->buffer, first_mark, 0);
57 i->index = vec_len (i->buffer);
61 /* Call user's function to fill the buffer. */
65 /* If input pointer is still beyond end of buffer even after
67 if (i->index >= vec_len (i->buffer))
94 uword l = vec_len (i->buffer);
96 /* Only show so much of the input buffer (i
[all...]
H A Dformat.h129 /* Input buffer (vector). */
130 u8 *buffer; member in struct:_unformat_input_t
132 /* Current index in input buffer. */
135 /* Vector of buffer marks. Used to delineate pieces of the buffer
139 /* User's function to fill the buffer when its empty
143 /* Return values for fill buffer function which indicate whether not
148 /* User controlled argument to fill buffer function. */
165 vec_free (i->buffer);
176 if (i->index >= vec_len (i->buffer)
[all...]
H A Dserialize.c707 /* Prepend overflow buffer if present. */
713 clib_memcpy_fast (s->buffer + cur_bi, s->overflow_buffer, n);
723 /* Call data function when buffer is complete. Data function should
724 dispatch with current buffer and give us a new one to write more
745 return s->buffer + cur_bi;
771 /* Reset overflow buffer. */
783 /* If we don't have enough data between overflow and normal buffer
787 /* Save any left over buffer in overflow vector. */
790 vec_add (s->overflow_buffer, s->buffer + cur_bi, n_left_b);
793 /* Advance buffer t
[all...]
/vpp/src/vnet/pg/
H A Doutput.c71 clib_memcpy_fast (&t->buffer, b,
73 clib_memcpy_fast (t->buffer.pre_data, b->data + b->current_data,
74 sizeof (t->buffer.pre_data));
/vpp/src/vnet/ip/
H A Dip_frag.h20 * buffer attributes to be set:
68 _(MEMORY, "could not allocate buffer") \
85 u16 encapsize, u32 ** buffer);
89 u16 encapsize, u32 ** buffer);
H A Dip_frag.c87 * Limitation: Does follow buffer chains in the packet to fragment,
88 * but does not generate buffer chains. I.e. a fragment is always
89 * contained with in a single buffer and limited to the max buffer
95 u16 l2unfragmentablesize, u32 ** buffer)
165 vec_add1 (*buffer, to_bi);
187 /* Spin through from buffers filling up the to buffer */
204 /* Move buffer */
257 u32 *buffer = 0; local
281 error0 = ip6_frag_do_fragment (vm, pi0, mtu, 0, &buffer);
94 ip4_frag_do_fragment(vlib_main_t * vm, u32 from_bi, u16 mtu, u16 l2unfragmentablesize, u32 ** buffer) argument
382 ip6_frag_do_fragment(vlib_main_t * vm, u32 from_bi, u16 mtu, u16 l2unfragmentablesize, u32 ** buffer) argument
[all...]
/vpp/src/vcl/
H A Dvcl_locked.h34 ssize_t vls_recvfrom (vls_handle_t vlsh, void *buffer, uint32_t buflen,
40 int vls_attr (vls_handle_t vlsh, uint32_t op, void *buffer,
H A Dvppcom.c3055 void *buffer, uint32_t * buflen)
3060 u32 *flags = buffer, tmp_flags = 0;
3061 vppcom_endpt_t *ep = buffer;
3082 if (PREDICT_TRUE (buffer && buflen && (*buflen >= sizeof (*flags))))
3096 if (PREDICT_TRUE (buffer && buflen && (*buflen == sizeof (*flags))))
3112 if (PREDICT_TRUE (buffer && buflen &&
3135 if (PREDICT_TRUE (buffer && buflen &&
3158 if (PREDICT_TRUE (buffer && buflen &&
3181 if (PREDICT_TRUE (buffer && buflen &&
3184 session->libc_epfd = *(int *) buffer;
3054 vppcom_session_attr(uint32_t session_handle, uint32_t op, void *buffer, uint32_t * buflen) argument
3616 vppcom_session_recvfrom(uint32_t session_handle, void *buffer, uint32_t buflen, int flags, vppcom_endpt_t * ep) argument
3650 vppcom_session_sendto(uint32_t session_handle, void *buffer, uint32_t buflen, int flags, vppcom_endpt_t * ep) argument
[all...]
H A Dvppcom.h188 void *buffer, uint32_t * buflen);
189 extern int vppcom_session_recvfrom (uint32_t session_handle, void *buffer,
192 extern int vppcom_session_sendto (uint32_t session_handle, void *buffer,
/vpp/src/vpp-api/python/vpp_papi/
H A Dvpp_transport_shmem.py37 vpp_object.msg_handler_sync(ffi.buffer(data, len))
42 vpp_object.msg_handler_async(ffi.buffer(data, len))
130 msg = bytes(ffi.buffer(mem[0], size[0]))
/vpp/src/vnet/
H A Dvnet.h46 #include <vnet/buffer.h>
H A Dbuffer.c17 #include <vnet/buffer.h>
/vpp/src/vlib/
H A Dvlib.h56 #include <vlib/buffer.h>
/vpp/extras/deprecated/vlib/
H A Di2c.h30 u8 *buffer; member in struct:__anon1
H A Di2c.c182 i2c_read_byte (bus, &msg->buffer[i], /* ack */ i + 1 != msg->len);
190 i2c_write_byte (bus, msg->buffer[i]);
212 msg[0].buffer = (u8 *) & start_address;
217 msg[1].buffer = data;
/vpp/src/plugins/dpdk/device/
H A Ddevice.c21 #include <dpdk/buffer.h>
92 vlib_buffer_t * buffer)
98 mb = rte_mbuf_from_vlib_buffer (buffer);
100 t0 = vlib_add_trace (vm, node, buffer, sizeof (t0[0]));
103 t0->buffer_index = vlib_get_buffer_index (vm, buffer);
105 clib_memcpy_fast (&t0->buffer, buffer,
106 sizeof (buffer[0]) - sizeof (buffer->pre_data));
107 clib_memcpy_fast (t0->buffer
90 dpdk_tx_trace_buffer(dpdk_main_t * dm, vlib_node_runtime_t * node, dpdk_device_t * xd, u16 queue_id, vlib_buffer_t * buffer) argument
[all...]
/vpp/src/vppinfra/linux/
H A Dsysfs.c92 char *p, buffer[64]; local
97 r = readlink (link, buffer, sizeof (buffer) - 1);
102 buffer[r] = 0;
103 p = strrchr (buffer, '/');
/vpp/src/plugins/hs_apps/vcl/
H A Dsock_test_server.c245 uint8_t buffer[256]; local
267 memset (buffer, 0, sizeof (buffer));
269 rv = read (af_unix_client_fd, buffer, nbytes);
279 /* Make the buffer is NULL-terminated. */
280 buffer[sizeof (buffer) - 1] = 0;
281 printf ("SERVER (AF_UNIX): RX (%d bytes) - '%s'\n", rv, buffer);
283 if (!strncmp (SOCK_TEST_MIXED_EPOLL_DATA, (const char *) buffer, nbytes))
285 rv = write (af_unix_client_fd, buffer, nbyte
[all...]
H A Dsock_test_client.c116 uint8_t buffer[256]; local
149 strncpy ((char *) buffer, SOCK_TEST_MIXED_EPOLL_DATA, sizeof (buffer));
153 rv = write (fd, buffer, nbytes);
159 "failed (errno = %d)!\n", fd, buffer, nbytes, errno_val);
165 "returned %d!\n", fd, buffer, nbytes, rv);
169 printf ("CLIENT (AF_UNIX): TX (%d bytes) - '%s'\n", rv, buffer);
170 memset (buffer, 0, sizeof (buffer));
171 rv = read (fd, buffer, nbyte
[all...]
/vpp/extras/libmemif/examples/icmp_responder-mt_3-1/
H A Dmain.c450 char buffer[ICMPR_BUFFER_LENGTH]; local
518 memset (buffer, 0, ICMPR_BUFFER_LENGTH);
519 if (fgets (buffer, ICMPR_BUFFER_LENGTH, stdin) != buffer)
525 if (strncmp (buffer, "exit", 4) == 0)
527 else if (strncmp (buffer, "help", 4) == 0)
529 else if (strncmp (buffer, "show", 4) == 0)
/vpp/src/plugins/dhcp/
H A Ddhcp6_pd_client_dp.c71 if (client_state->buffer)
73 bi0 = vlib_get_buffer_index (vm, client_state->buffer);
75 client_state->buffer = 0;
262 p0 = client_state->buffer;
398 client_state->buffer =
401 if (client_state->buffer)
H A Ddhcp6_ia_na_client_dp.c71 if (client_state->buffer)
73 bi0 = vlib_get_buffer_index (vm, client_state->buffer);
75 client_state->buffer = 0;
256 p0 = client_state->buffer;
390 client_state->buffer =
393 if (!client_state->buffer)
/vpp/src/vnet/bier/
H A Dbier_drop.c16 #include <vnet/buffer.h>

Completed in 24 milliseconds

1234