Searched refs:result (Results 1 - 25 of 144) sorted by relevance

123456

/vpp/src/vppinfra/
H A Dunix.h44 clib_error_t *clib_file_n_bytes (char *file, uword * result);
47 clib_error_t *clib_file_read_contents (char *file, u8 * result,
51 clib_error_t *clib_file_contents (char *file, u8 ** result);
54 clib_error_t *unix_proc_file_contents (char *file, u8 ** result);
H A Dunix-misc.c52 clib_file_n_bytes (char *file, uword * result) argument
60 *result = s.st_size;
62 *result = 0;
68 clib_file_read_contents (char *file, u8 * result, uword n_bytes) argument
73 u8 *v = result;
112 clib_file_contents (char *file, u8 ** result) argument
129 *result = v;
135 unix_proc_file_contents (char *file, u8 ** result) argument
167 *result = rv;
H A Dtest_ptclosure.c93 u32 *result = 0; local
156 vec_add1 (result, i);
169 if (vec_len (result) != n)
177 for (i = vec_len (result) - 1; i >= 0; i--)
179 fformat (stdout, "%s\n", items[result[i]]);
182 vec_free (result);
H A Delf_clib.h131 uword clib_elf_symbol_by_name (char *name, clib_elf_symbol_t * result);
132 uword clib_elf_symbol_by_address (uword address, clib_elf_symbol_t * result);
/vpp/test/
H A Dtest_vapi.py33 self.logger.info("Worker result is `%s'" % worker.result)
35 if worker.result is None:
48 self.assert_equal(worker.result, 0, "Binary test return code")
63 self.logger.info("Worker result is `%s'" % worker.result)
65 if worker.result is None:
77 self.assert_equal(worker.result, 0, "Binary test return code")
H A Dtest_vom.py35 self.logger.info("Worker result is `%s'" % worker.result)
37 if worker.result is None:
49 self.assert_equal(worker.result, 0, "Binary test return code")
H A Drun_tests.py79 def process_result(self, test_id, result):
80 self[result].append(test_id)
130 result = VppTestRunner(keep_alive_pipe=keep_alive_pipe,
136 finished_pipe.send(result.wasSuccessful())
174 self.result = TestResult(testcase_suite, self.testcases_by_id)
217 return self.result.was_successful()
310 results.append(wrapped_testcase_suite.result)
359 wrapped_testcase_suite.result.process_result(
426 wrapped_testcase_suite.result.crashed = True
427 wrapped_testcase_suite.result
839 result = VppTestRunner(verbosity=verbose, variable
[all...]
/vpp/src/vnet/policer/
H A Dpolice.h96 policer_result_e result; local
145 result = POLICE_CONFORM;
152 result = POLICE_EXCEED;
158 result = POLICE_VIOLATE;
187 result = POLICE_VIOLATE;
194 result = POLICE_EXCEED;
200 result = POLICE_CONFORM;
203 return result;
/vpp/src/vnet/ethernet/
H A Dformat.c188 u8 *result = va_arg (*args, u8 *); local
201 result[i] = a[i];
210 u8 *result = va_arg (*args, u8 *); local
221 result[0] = (a[0] >> 8) & 0xff;
222 result[1] = (a[0] >> 0) & 0xff;
223 result[2] = (a[1] >> 8) & 0xff;
224 result[3] = (a[1] >> 0) & 0xff;
225 result[4] = (a[2] >> 8) & 0xff;
226 result[5] = (a[2] >> 0) & 0xff;
235 u8 *result local
252 u16 *result = va_arg (*args, u16 *); local
281 u16 *result = va_arg (*args, u16 *); local
292 u8 **result = va_arg (*args, u8 **); local
[all...]
/vpp/extras/vom/vom/
H A Ddump_cmd.hpp96 std::future<rc_t> result; local
98 result = m_promise.get_future();
99 status = result.wait_for(std::chrono::seconds(5));
105 return (result.get());
H A Drpc_cmd.hpp85 std::future<HWITEM> result; local
87 result = m_promise.get_future();
88 status = result.wait_for(std::chrono::seconds(5));
93 m_hw_item = result.get();
/vpp/src/vlib/
H A Dformat.c118 int *result = va_arg (*args, int *); local
128 *result = enable;
136 int *result = va_arg (*args, int *); local
138 *result = VLIB_RX;
140 *result = VLIB_TX;
150 int *result = va_arg (*args, int *); local
152 return (unformat (input, "0x%x", result) || unformat (input, "%d", result));
160 int *result = va_arg (*args, int *); local
186 *result
[all...]
/vpp/src/vat/
H A Dplugin_api.c22 u32 *result = va_arg (*args, u32 *); local
32 *result = p[0];
40 u8 *result = va_arg (*args, u8 *); local
49 result[0] = a[0];
50 result[1] = a[1];
51 result[2] = a[2];
52 result[3] = a[3];
60 u8 *result = va_arg (*args, u8 *); local
73 result[i] = a[i];
83 u16 *result local
101 ip6_address_t *result = va_arg (*args, ip6_address_t *); local
[all...]
/vpp/src/vnet/ip/
H A Dformat.c59 u8 *result = va_arg (*args, u8 *); local
69 *result = pi->protocol;
92 u16 *result = va_arg (*args, u16 *); local
111 *result = port;
H A Dip4_format.c78 u8 *result = va_arg (*args, u8 *); local
87 result[0] = a[0];
88 result[1] = a[1];
89 result[2] = a[2];
90 result[3] = a[3];
210 u8 **result = va_arg (*args, u8 **); local
218 old_length = vec_len (*result);
219 vec_add2 (*result, p, sizeof (ip4_header_t));
279 if (!unformat_user (input, pi->unformat_header, result))
283 ip = (void *) *result
[all...]
H A Dip4_packet.h90 uword result = 0; local
97 result += 8;
100 result += 7;
103 result += 6;
106 result += 5;
109 result += 4;
112 result += 3;
115 result += 2;
118 result += 1;
121 result
[all...]
/vpp/src/plugins/map/
H A Dlpm.c38 uword * hash, * result; local
43 result = hash_get (hash, key);
44 if (result) /* Entry exists */
46 format_ip4_address, addr, pfxlen, result[0]);
62 uword * hash, * result; local
67 result = hash_get (hash, key);
68 if (result)
76 uword * hash, * result; local
84 result = hash_get (hash, key);
85 if (result !
[all...]
/vpp/src/plugins/nsim/
H A Dnsim_test.c138 f64 *result = va_arg (*args, f64 *); local
142 *result = tmp * 1e-6;
144 *result = tmp * 1e-3;
146 *result = tmp;
156 f64 *result = va_arg (*args, f64 *); local
160 *result = tmp * 1e9;
162 *result = tmp * 8e9;
/vpp/src/vnet/classify/
H A Dvnet_classify.h372 } result __attribute__ ((aligned (sizeof (u32x4)))); local
404 result.as_u32x4 = (data[0 + t->skip_n_vectors] & mask[0]) ^ key[0];
408 result.as_u32x4 |= (data[4 + t->skip_n_vectors] & mask[4]) ^ key[4];
411 result.as_u32x4 |= (data[3 + t->skip_n_vectors] & mask[3]) ^ key[3];
414 result.as_u32x4 |= (data[2 + t->skip_n_vectors] & mask[2]) ^ key[2];
417 result.as_u32x4 |= (data[1 + t->skip_n_vectors] & mask[1]) ^ key[1];
425 if (u32x4_zero_byte_mask (result.as_u32x4) == 0xffff)
443 result.as_u64[0] =
445 result.as_u64[1] =
450 result
[all...]
/vpp/src/vnet/l2/
H A Dl2_fib.c118 l2fib_entry_result_t result; local
122 result.raw = kvp->value;
127 vec_add1 (ctx->l2fe_res, result);
168 l2fib_entry_result_t result; local
182 result.raw = kvp->value;
190 if (ctx->learn && l2fib_entry_result_is_set_AGE_NOT (&result))
193 if (ctx->add && !l2fib_entry_result_is_set_AGE_NOT (&result))
199 if (l2fib_entry_result_is_set_AGE_NOT (&result))
205 i16 delta = ctx->now - result.fields.timestamp;
214 result
409 l2fib_entry_result_t result; local
691 l2fib_entry_result_t result; local
1055 l2fib_entry_result_t result = {.raw = v->kvp[k].value }; local
[all...]
/vpp/src/vpp-api/client/
H A Dstat_client.c197 stat_segment_data_t result = { 0 }; local
205 result.type = ep->type;
206 result.name = strdup (ep->name);
210 result.scalar_value = ep->value;
215 return result;
217 result.simple_counter_vec = vec_dup (simple_c);
224 result.simple_counter_vec[i] = vec_dup (cb);
230 return result;
232 result.combined_counter_vec = vec_dup (combined_c);
239 result
[all...]
/vpp/src/vnet/mfib/
H A Dip4_mfib.c221 uword * hash, * result; local
227 result = hash_get(hash, key);
229 if (NULL != result) {
230 return (result[0]);
246 uword * hash, * result; local
257 result = hash_get (hash, key);
259 if (NULL != result) {
260 return (result[0]);
269 result = hash_get (hash, key);
271 if (NULL != result) {
317 uword * hash, * result; local
347 uword * hash, * result; local
[all...]
/vpp/src/examples/vlib/
H A Dmain_stub.c265 f64 *result = va_arg (*args, f64 *);
284 result[0] = tmp[0] + tmp[1];
287 result[0] = tmp[0] - tmp[1];
290 result[0] = tmp[0] / tmp[1];
293 result[0] = tmp[0] * tmp[1];
296 result[0] = pow (tmp[0], tmp[1]);
304 result[0] = tmp[0];
310 result[0] = -tmp[0];
316 result[0] = tmp[0];
320 else if (unformat (i, "%f", result))
[all...]
/vpp/src/vnet/hdlc/
H A Dhdlc.c109 u16 *result = va_arg (*args, u16 *); local
118 *result = p;
127 *result = pi->protocol;
138 u16 *result = va_arg (*args, u16 *); local
139 if (!unformat_user (input, unformat_hdlc_protocol_host_byte_order, result))
141 *result = clib_host_to_net_u16 ((u16) * result);
148 u8 **result = va_arg (*args, u8 **); local
159 /* Add header to result. */
164 vec_add2 (*result,
[all...]
/vpp/src/vnet/ppp/
H A Dppp.c109 u16 *result = va_arg (*args, u16 *); local
118 *result = p;
127 *result = pi->protocol;
138 u16 *result = va_arg (*args, u16 *); local
139 if (!unformat_user (input, unformat_ppp_protocol_host_byte_order, result))
141 *result = clib_host_to_net_u16 ((u16) * result);
148 u8 **result = va_arg (*args, u8 **); local
159 /* Add header to result. */
164 vec_add2 (*result,
[all...]

Completed in 19 milliseconds

123456