Home
last modified time | relevance | path

Searched refs:dstbuf (Results 1 – 18 of 18) sorted by relevance

/dpdk/lib/cmdline/
H A Dcmdline_parse_ipaddr.c93 int cmdline_get_help_ipaddr(cmdline_parse_token_hdr_t *tk, char *dstbuf, in cmdline_get_help_ipaddr() argument
98 if (!tk || !dstbuf) in cmdline_get_help_ipaddr()
105 snprintf(dstbuf, size, "IPv4"); in cmdline_get_help_ipaddr()
108 snprintf(dstbuf, size, "IPv6"); in cmdline_get_help_ipaddr()
111 snprintf(dstbuf, size, "IPv4/IPv6"); in cmdline_get_help_ipaddr()
114 snprintf(dstbuf, size, "IPv4 network"); in cmdline_get_help_ipaddr()
117 snprintf(dstbuf, size, "IPv6 network"); in cmdline_get_help_ipaddr()
120 snprintf(dstbuf, size, "IPv4/IPv6 network"); in cmdline_get_help_ipaddr()
123 snprintf(dstbuf, size, "IPaddr (bad flags)"); in cmdline_get_help_ipaddr()
H A Dcmdline_parse_string.c159 char *dstbuf, unsigned int size) in cmdline_complete_get_elt_string() argument
166 if (!tk || !dstbuf || idx < 0) in cmdline_complete_get_elt_string()
184 memcpy(dstbuf, s, len); in cmdline_complete_get_elt_string()
185 dstbuf[len] = '\0'; in cmdline_complete_get_elt_string()
190 int cmdline_get_help_string(cmdline_parse_token_hdr_t *tk, char *dstbuf, in cmdline_get_help_string() argument
197 if (!tk || !dstbuf) in cmdline_get_help_string()
207 snprintf(dstbuf, size, ANYSTRINGS_HELP); in cmdline_get_help_string()
209 snprintf(dstbuf, size, CHOICESTRING_HELP); in cmdline_get_help_string()
211 snprintf(dstbuf, size, FIXEDSTRING_HELP); in cmdline_get_help_string()
213 snprintf(dstbuf, size, ANYSTRING_HELP); in cmdline_get_help_string()
H A Dcmdline_parse_string.h42 char *dstbuf, unsigned int size);
43 int cmdline_get_help_string(cmdline_parse_token_hdr_t *tk, char *dstbuf,
H A Dcmdline_parse_etheraddr.c56 char *dstbuf, unsigned int size) in cmdline_get_help_etheraddr() argument
60 ret = snprintf(dstbuf, size, "Ethernet address"); in cmdline_get_help_etheraddr()
H A Dcmdline_parse_portlist.c109 char *dstbuf, unsigned int size) in cmdline_get_help_portlist() argument
112 ret = snprintf(dstbuf, size, "range of ports as 3,4-6,8-19,20"); in cmdline_get_help_portlist()
H A Dcmdline_parse_num.c320 cmdline_get_help_num(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size) in cmdline_get_help_num() argument
334 ret = strlcpy(dstbuf, num_help[nd.type], size); in cmdline_get_help_num()
337 dstbuf[size-1] = '\0'; in cmdline_get_help_num()
H A Dcmdline.c35 char *dstbuf, unsigned int dstsize, in cmdline_complete_buffer() argument
39 return cmdline_complete(cl, buf, state, dstbuf, dstsize); in cmdline_complete_buffer()
H A Dcmdline_parse_etheraddr.h25 int cmdline_get_help_etheraddr(cmdline_parse_token_hdr_t *tk, char *dstbuf,
H A Dcmdline_parse_portlist.h35 char *dstbuf, unsigned int size);
H A Dcmdline_parse_num.h42 char *dstbuf, unsigned int size);
H A Dcmdline_rdline.h46 char *dstbuf, unsigned int dstsize,
H A Dcmdline_parse_ipaddr.h45 int cmdline_get_help_ipaddr(cmdline_parse_token_hdr_t *tk, char *dstbuf,
/dpdk/examples/cmdline/
H A Dparse_obj_list.c79 int idx, char *dstbuf, unsigned int size) in complete_get_elt_obj_list() argument
98 if (dstbuf) in complete_get_elt_obj_list()
99 strlcpy(dstbuf, o->name, size); in complete_get_elt_obj_list()
106 char *dstbuf, unsigned int size) in get_help_obj_list() argument
108 snprintf(dstbuf, size, "Obj-List"); in get_help_obj_list()
H A Dparse_obj_list.h44 char *dstbuf, unsigned int size);
45 int get_help_obj_list(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size);
/dpdk/examples/l3fwd/
H A Dl3fwd_em.c360 char dstbuf[INET6_ADDRSTRLEN]; in populate_ipv4_flow_into_table() local
393 inet_ntop(AF_INET, &dst, dstbuf, sizeof(dstbuf)), in populate_ipv4_flow_into_table()
412 char dstbuf[INET6_ADDRSTRLEN]; in populate_ipv6_flow_into_table() local
444 dstbuf, sizeof(dstbuf)), in populate_ipv6_flow_into_table()
/dpdk/drivers/bus/pci/linux/
H A Dpci_uio.c136 pci_get_uio_dev(struct rte_pci_device *dev, char *dstbuf, in pci_get_uio_dev() argument
181 snprintf(dstbuf, buflen, "%s/uio%u", dirname, uio_num); in pci_get_uio_dev()
189 snprintf(dstbuf, buflen, "%s/uio:uio%u", dirname, uio_num); in pci_get_uio_dev()
201 pci_mknod_uio_dev(dstbuf, uio_num) < 0) in pci_get_uio_dev()
/dpdk/drivers/bus/vmbus/linux/
H A Dvmbus_bus.c117 char *dstbuf, size_t buflen) in vmbus_get_uio_dev() argument
144 snprintf(dstbuf, buflen, "%s/uio%u", dirname, uio_num); in vmbus_get_uio_dev()
/dpdk/app/test/
H A Dtest_cmdline_lib.c42 __rte_unused char *dstbuf, in complete_buffer() argument