Home
last modified time | relevance | path

Searched refs:cirbuf (Results 1 – 4 of 4) sorted by relevance

/f-stack/dpdk/lib/librte_cmdline/
H A Dcmdline_cirbuf.h19 struct cirbuf { struct
44 #define CIRBUF_IS_FULL(cirbuf) ((cirbuf)->maxlen == (cirbuf)->len) argument
49 #define CIRBUF_IS_EMPTY(cirbuf) ((cirbuf)->len == 0) argument
54 #define CIRBUF_GET_LEN(cirbuf) ((cirbuf)->len) argument
59 #define CIRBUF_GET_MAXLEN(cirbuf) ((cirbuf)->maxlen) argument
64 #define CIRBUF_GET_FREELEN(cirbuf) ((cirbuf)->maxlen - (cirbuf)->len) argument
112 void cirbuf_del_head(struct cirbuf *cbuf);
124 void cirbuf_del_tail(struct cirbuf *cbuf);
130 char cirbuf_get_head(struct cirbuf *cbuf);
136 char cirbuf_get_tail(struct cirbuf *cbuf);
[all …]
H A Dcmdline_cirbuf.c150 __cirbuf_shift_left(struct cirbuf *cbuf) in __cirbuf_shift_left()
167 __cirbuf_shift_right(struct cirbuf *cbuf) in __cirbuf_shift_right()
185 cirbuf_align_left(struct cirbuf * cbuf) in cirbuf_align_left()
206 cirbuf_align_right(struct cirbuf * cbuf) in cirbuf_align_right()
268 __cirbuf_del_head(struct cirbuf * cbuf) in __cirbuf_del_head()
278 cirbuf_del_head_safe(struct cirbuf * cbuf) in cirbuf_del_head_safe()
288 cirbuf_del_head(struct cirbuf * cbuf) in cirbuf_del_head()
296 __cirbuf_del_tail(struct cirbuf * cbuf) in __cirbuf_del_tail()
316 cirbuf_del_tail(struct cirbuf * cbuf) in cirbuf_del_tail()
401 cirbuf_get_head(struct cirbuf * cbuf) in cirbuf_get_head()
[all …]
H A Dcmdline_rdline.h66 struct cirbuf left;
67 struct cirbuf right;
78 struct cirbuf history;
/f-stack/dpdk/app/test/
H A Dtest_cmdline_cirbuf.c23 struct cirbuf cb; in test_cirbuf_string_misc()
134 struct cirbuf cb; in test_cirbuf_string_add_del()
252 struct cirbuf cb; in test_cirbuf_string_add_del_reverse()
320 struct cirbuf cb; in test_cirbuf_string_add_boundaries()
385 struct cirbuf cb; in test_cirbuf_string_get_del_boundaries()
476 struct cirbuf cb; in test_cirbuf_string_get_del_partial()
576 struct cirbuf cb; in test_cirbuf_char_add_del()
670 struct cirbuf cb; in test_cirbuf_char_fill()
789 struct cirbuf cb; in test_cirbuf_align_left()
993 struct cirbuf cb; in test_cirbuf_align_right()
[all …]