Searched refs:ret (Results 1 - 25 of 276) sorted by relevance

1234567891011>>

/deb_dpdk/app/test/
H A Dtest_power_acpi_cpufreq.c62 int ret = -1; local
76 ret = (freqs[idx] == cur_freq ? 0 : -1);
81 return ret;
88 uint32_t ret; local
94 ret = rte_power_freqs(TEST_POWER_LCORE_INVALID, freqs,
96 if (ret > 0) {
103 ret = rte_power_freqs(TEST_POWER_LCORE_ID, NULL,
105 if (ret > 0) {
112 ret = rte_power_freqs(TEST_POWER_LCORE_ID, freqs, 0);
113 if (ret >
138 int ret; local
168 int ret; local
218 int ret; local
273 int ret; local
328 int ret; local
356 int ret; local
383 int ret = -1; local
[all...]
H A Dtest_power_kvm_vm.c51 int ret; local
54 ret = rte_power_set_env(PM_ENV_KVM_VM);
55 if (ret != 0) {
106 ret = rte_power_init(TEST_POWER_VM_LCORE_OUT_OF_BOUNDS);
107 if (ret != -1) {
115 ret = rte_power_init(TEST_POWER_VM_LCORE_ID);
116 if (ret < 0) {
126 ret = rte_power_init(TEST_POWER_VM_LCORE_ID);
127 if (ret == 0) {
134 ret
[all...]
H A Dtest_cmdline_portlist.c136 int ret; local
142 ret = cmdline_parse_portlist(NULL, NULL, NULL, 0);
143 if (ret != -1) {
149 ret = cmdline_parse_portlist(NULL, NULL, (void*)&result,
151 if (ret != -1) {
157 ret = cmdline_parse_portlist(NULL, portlist_valid_strs[0].str, NULL, 0);
158 if (ret == -1) {
169 ret = cmdline_get_help_portlist(NULL, buf, sizeof(buf));
170 if (ret < 0) {
182 int ret local
207 int ret = 0; local
[all...]
H A Dtest_cmdline_etheraddr.c130 int ret = 0; local
133 ret = cmdline_parse_etheraddr(NULL, NULL, NULL, 0);
134 if (ret != -1) {
140 ret = cmdline_parse_etheraddr(NULL, NULL, (void*)&result,
142 if (ret != -1) {
153 ret = cmdline_parse_etheraddr(NULL, buf, NULL, 0);
154 if (ret == -1) {
166 ret = cmdline_get_help_etheraddr(NULL, buf, sizeof(buf));
167 if (ret < 0) {
179 int ret local
204 int ret = 0; local
[all...]
H A Dtest_ring.c126 int i, ret; local
137 ret = 0;
139 if (ret != 0)
141 ret = rte_ring_enqueue_bulk(r, obj_table, count);
144 if (ret != -EDQUOT) {
146 "reached (ret=%d)\n", ret);
162 ret = rte_ring_dequeue_bulk(r, obj_table, count);
163 if (ret != 0) {
164 printf("Cannot dequeue (ret
282 int ret; local
486 int ret; local
1242 int ret = -1; local
[all...]
H A Dresource.c85 int ret; local
93 ret = resource_fwrite(r, f);
95 return ret;
111 int ret; local
114 ret = archive_read_data_block(r, &buf, &len, &off);
115 if (ret == ARCHIVE_RETRY)
118 if (ret == ARCHIVE_EOF)
121 if (ret != ARCHIVE_OK)
122 return ret;
125 ret
139 int ret; local
217 int ret; local
[all...]
H A Dtest_memcpy.c81 void * ret; local
90 ret = rte_memcpy(dest + off_dst, src + off_src, size);
91 if (ret != (dest + off_dst)) {
93 ret, dest + off_dst);
136 int ret; local
141 ret = test_single_memcpy(off_src, off_dst,
143 if (ret != 0)
154 int ret; local
156 ret = func_test();
157 if (ret !
[all...]
/deb_dpdk/lib/librte_mbuf/
H A Drte_mbuf_ptype.c140 int ret; local
147 ret = snprintf(buf, buflen, "UNKNOWN");
148 if (ret < 0)
150 if ((size_t)ret >= buflen)
156 ret = snprintf(buf, buflen, "%s ",
158 if (ret < 0)
160 if ((size_t)ret >= buflen)
162 buf += ret;
163 buflen -= ret;
166 ret
[all...]
/deb_dpdk/lib/librte_eal/common/
H A Deal_common_cpuflags.c51 int ret; local
54 ret = rte_cpu_get_flag_enabled(compile_time_flags[i]);
56 if (ret < 0) {
59 ret);
62 if (!ret) {
H A Deal_common_proc.c57 int ret = lockf(config_fd, F_TEST, 0); local
60 return !!ret;
/deb_dpdk/lib/librte_eal/common/include/arch/ppc_64/
H A Drte_atomic.h134 unsigned int ret = 0; local
138 "1:\tlwarx %[ret], 0, %[dst]\n"
139 "cmplw %[exp], %[ret]\n"
143 "li %[ret], 1\n"
146 "stwcx. %[ret], 0, %[dst]\n"
147 "li %[ret], 0\n"
150 : [ret] "=&r" (ret), "=m" (*dst)
157 return ret;
197 int ret; local
215 int ret; local
235 unsigned int ret = 0; local
269 long ret; local
349 long ret; local
368 long ret; local
386 long ret; local
404 long ret; local
[all...]
/deb_dpdk/examples/vm_power_manager/
H A Dpower_manager.c54 #define POWER_SCALE_CORE(DIRECTION, core_num , ret) do { \
60 ret = rte_power_freq_##DIRECTION(core_num); \
64 #define POWER_SCALE_MASK(DIRECTION, core_mask, ret) do { \
72 ret = -1; \
113 int ret = 0; local
131 ret = -1;
137 return ret;
169 int ret = 0; local
175 ret = -1;
179 return ret;
185 int ret = 0; local
194 int ret = 0; local
203 int ret = 0; local
212 int ret = 0; local
221 int ret = 0; local
230 int ret = 0; local
239 int ret = 0; local
248 int ret = 0; local
[all...]
/deb_dpdk/lib/librte_eal/common/include/arch/x86/
H A Drte_byteorder_32.h52 uint64_t ret = 0; local
53 ret |= ((uint64_t)rte_arch_bswap32(x & 0xffffffffUL) << 32);
54 ret |= ((uint64_t)rte_arch_bswap32((x >> 32) & 0xffffffffUL));
55 return ret;
H A Drte_atomic.h154 uint8_t ret; local
159 "sete %[ret]"
161 [ret] "=qm" (ret)
163 return ret != 0;
168 uint8_t ret; local
172 "sete %[ret]"
174 [ret] "=qm" (ret)
176 return ret !
228 uint8_t ret; local
242 uint8_t ret; local
[all...]
H A Drte_rtm.h42 unsigned int ret = RTE_XBEGIN_STARTED; local
44 asm volatile(".byte 0xc7,0xf8 ; .long 0" : "+a" (ret) :: "memory");
45 return ret;
/deb_dpdk/examples/l2fwd-cat/
H A Dcat.c398 int ret = 0; local
404 ret = pqos_cpu_check_core(m_cpu, cpu_id);
405 if (ret != PQOS_RETVAL_OK) {
408 ret = -ENODEV;
413 ret = pqos_l3ca_assoc_get(cpu_id, &cos_id);
415 ret = pqos_alloc_assoc_get(cpu_id, &cos_id);
417 if (ret != PQOS_RETVAL_OK) {
421 ret = -EFAULT;
434 ret = -EBUSY;
442 return ret;
473 int ret = 0; local
511 int ret = 0; local
603 int ret = 0; local
760 int ret = PQOS_RETVAL_OK; local
846 int ret = 0; local
870 int ret = 0; local
889 int ret = 0; local
918 int ret = 0; local
965 int ret = 0; local
[all...]
/deb_dpdk/examples/qos_meter/
H A Dmain.c140 int ret; local
144 ret = FUNC_CONFIG(&app_flows[i], &PARAMS[j]);
145 if (ret)
146 return ret;
311 int ret; local
314 ret = rte_eal_init(argc, argv);
315 if (ret < 0)
317 argc -= ret;
318 argv += ret;
325 ret
[all...]
/deb_dpdk/examples/quota_watermark/qw/
H A Dinit.c78 int ret; local
82 ret = rte_eth_dev_configure(port_id, 1, 1, &port_conf);
83 if (ret < 0)
85 (unsigned) port_id, ret);
88 ret = rte_eth_rx_queue_setup(port_id, 0, RX_DESC_PER_QUEUE,
92 if (ret < 0)
94 "port %u (error %d)\n", (unsigned) port_id, ret);
97 ret = rte_eth_tx_queue_setup(port_id, 0, TX_DESC_PER_QUEUE,
100 if (ret < 0)
102 "port %u (error %d)\n", (unsigned) port_id, ret);
[all...]
/deb_dpdk/examples/qos_sched/
H A Dargs.c192 int ret; local
195 ret = app_parse_opt_vals(conf_str, ',', 3, vals);
196 if (ret != 3)
197 return ret;
209 int ret; local
212 ret = app_parse_opt_vals(conf_str, ',', 3, vals);
213 if (ret != 3)
214 return ret;
226 int ret; local
229 ret
243 int ret; local
314 int ret; local
336 int opt, ret; local
[all...]
/deb_dpdk/drivers/net/mlx5/
H A Dmlx5_rxmode.c244 int ret; local
251 ret = hash_rxq_special_flow_enable_vlan(hash_rxq, flow_type, i);
252 if (ret) {
258 return ret;
304 int ret; local
306 ret = hash_rxq_special_flow_enable(hash_rxq, flow_type);
307 if (!ret)
314 return ret;
353 int ret; local
355 ret
393 int ret; local
417 int ret; local
441 int ret; local
465 int ret; local
[all...]
/deb_dpdk/examples/load_balancer/
H A Dmain.c79 int ret; local
82 ret = rte_eal_init(argc, argv);
83 if (ret < 0)
85 argc -= ret;
86 argv += ret;
89 ret = app_parse_args(argc, argv);
90 if (ret < 0) {
/deb_dpdk/lib/librte_pdump/
H A Drte_pdump.c261 int ret; local
270 ret = rte_eth_remove_rx_callback(port, qid, cbs->cb);
271 if (ret < 0) {
274 -ret);
275 return ret;
316 int ret; local
325 ret = rte_eth_remove_tx_callback(port, qid, cbs->cb);
326 if (ret < 0) {
329 -ret);
330 return ret;
344 int ret = 0; local
431 int ret = 0; local
480 int ret, socket_fd; local
530 int ret = 0; local
565 int ret = 0; local
602 int ret; local
644 int ret, socket_fd; local
772 int ret = 0; local
801 int ret; local
840 int ret = 0; local
866 int ret = 0; local
884 int ret = 0; local
904 int ret = 0; local
919 int ret, count; local
[all...]
/deb_dpdk/examples/cmdline/
H A Dmain.c82 int ret; local
85 ret = rte_eal_init(argc, argv);
86 if (ret < 0)
/deb_dpdk/examples/helloworld/
H A Dmain.c60 int ret; local
63 ret = rte_eal_init(argc, argv);
64 if (ret < 0)
/deb_dpdk/examples/vm_power_manager/guest_cli/
H A Dmain.c69 int ret; local
72 ret = rte_eal_init(argc, argv);
73 if (ret < 0)

Completed in 46 milliseconds

1234567891011>>