Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 269) sorted by relevance

1234567891011

/dpdk/app/test/
H A Dtest_reorder.c40 .b = NULL
59 TEST_ASSERT_EQUAL(b, test_params->b, in test_reorder_create()
77 b = rte_reorder_init(b, size, "PKT1", REORDER_BUFFER_SIZE); in test_reorder_init()
82 b = rte_reorder_init(b, size, "PKT1", REORDER_BUFFER_SIZE); in test_reorder_init()
85 rte_free(b); in test_reorder_init()
89 b = rte_reorder_init(b, size, "PKT1", REORDER_BUFFER_SIZE_INVALID); in test_reorder_init()
93 b = rte_reorder_init(b, size, NULL, REORDER_BUFFER_SIZE); in test_reorder_init()
96 rte_free(b); in test_reorder_init()
108 TEST_ASSERT_EQUAL(b, test_params->b, in test_reorder_find_existing()
219 rte_reorder_free(b); in test_reorder_insert()
[all …]
H A Dtest_ipfrag.c108 b->data_off = 0; in v4_allocate_packet_of()
109 char *data = rte_pktmbuf_mtod(b, char *); in v4_allocate_packet_of()
118 b->pkt_len = s + sizeof(struct rte_ipv4_hdr); in v4_allocate_packet_of()
119 b->data_len = b->pkt_len; in v4_allocate_packet_of()
152 b->data_off = 0; in v6_allocate_packet_of()
153 char *data = rte_pktmbuf_mtod(b, char *); in v6_allocate_packet_of()
159 b->data_len = b->pkt_len; in v6_allocate_packet_of()
250 RTE_TEST_ASSERT_NOT_EQUAL(b, NULL, in test_ip_frag()
257 v4_allocate_packet_of(b, 0x41414141, in test_ip_frag()
266 v6_allocate_packet_of(b, 0x41414141, in test_ip_frag()
[all …]
H A Dtest.h32 #define TEST_ASSERT_BUFFERS_ARE_EQUAL(a, b, len, msg, ...) do { \ argument
33 if (memcmp(a, b, len)) { \
42 #define TEST_ASSERT_BUFFERS_ARE_EQUAL_OFFSET(a, b, len, off, msg, ...) do { \ argument
44 const uint8_t *_b_with_off = (const uint8_t *)b + off; \
49 #define TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT(a, b, len, msg, ...) do { \ argument
52 TEST_ASSERT_BUFFERS_ARE_EQUAL(a, b, (len >> 3), msg); \
57 _last_byte_b = ((const uint8_t *)b)[len >> 3]; \
70 #define TEST_ASSERT_BUFFERS_ARE_EQUAL_BIT_OFFSET(a, b, len, off, msg, ...) do { \ argument
78 const uint8_t *_b_with_off = (const uint8_t *)b + _off_in_bytes; \
/dpdk/lib/reorder/
H A Drte_reorder.c90 strlcpy(b->name, name, sizeof(b->name)); in rte_reorder_init()
92 b->order_buf.size = b->ready_buf.size = size; in rte_reorder_init()
93 b->order_buf.mask = b->ready_buf.mask = size - 1; in rte_reorder_init()
94 b->ready_buf.entries = (void *)&b[1]; in rte_reorder_init()
95 b->order_buf.entries = RTE_PTR_ADD(&b[1], in rte_reorder_init()
98 return b; in rte_reorder_init()
155 b = NULL; in rte_reorder_create()
173 return b; in rte_reorder_create()
184 rte_reorder_init(b, b->memsize, name, b->order_buf.size); in rte_reorder_reset()
229 rte_free(b); in rte_reorder_free()
[all …]
H A Drte_reorder.h86 rte_reorder_init(struct rte_reorder_buffer *b, unsigned int bufsize,
111 rte_reorder_reset(struct rte_reorder_buffer *b);
122 rte_reorder_free(struct rte_reorder_buffer *b);
147 rte_reorder_insert(struct rte_reorder_buffer *b, struct rte_mbuf *mbuf);
167 rte_reorder_drain(struct rte_reorder_buffer *b, struct rte_mbuf **mbufs,
/dpdk/drivers/net/bnxt/tf_core/
H A Dlookup3.h62 (b) -= (a); (b) ^= rot((a), 6); (a) += c; \
63 (c) -= (b); (c) ^= rot((b), 8); (b) += a; \
65 (b) -= (a); (b) ^= rot((a), 19); (a) += c; \
66 (c) -= (b); (c) ^= rot((b), 4); (b) += a; \
95 (c) ^= (b); (c) -= rot((b), 14); \
97 (b) ^= (a); (b) -= rot((a), 25); \
98 (c) ^= (b); (c) -= rot((b), 16); \
100 (b) ^= (a); (b) -= rot((a), 14); \
101 (c) ^= (b); (c) -= rot((b), 24); \
129 b = a; in hashword()
[all …]
/dpdk/lib/hash/
H A Drte_jhash.h50 b -= a; b ^= rot(a, 6); a += c; \
51 c -= b; c ^= rot(b, 8); b += a; \
53 b -= a; b ^= rot(a, 19); a += c; \
54 c -= b; c ^= rot(b, 4); b += a; \
58 c ^= b; c -= rot(b, 14); \
60 b ^= a; b -= rot(a, 25); \
61 c ^= b; c -= rot(b, 16); \
63 b ^= a; b -= rot(a, 14); \
64 c ^= b; c -= rot(b, 24); \
141 *pb = b; in __rte_jhash_2hashes()
[all …]
/dpdk/drivers/net/failsafe/
H A Dfailsafe_args.c211 b = 0; in fs_parse_device_param()
215 b++; in fs_parse_device_param()
216 a = b; in fs_parse_device_param()
217 b += closing_paren(&param[b]); in fs_parse_device_param()
270 b = a; in fs_parse_sub_devices()
274 b++; in fs_parse_sub_devices()
286 b += closing_paren(&params[b]); in fs_parse_sub_devices()
314 b = a; in fs_remove_sub_devices_definition()
318 b++; in fs_remove_sub_devices_definition()
334 b += closing_paren(&params[b]); in fs_remove_sub_devices_definition()
[all …]
/dpdk/drivers/common/cnxk/hw/
H A Drvu.h22 (0x2000ull | (uint64_t)(a) << 4 | (uint64_t)(b) << 3)
68 (0x0ull | (uint64_t)(a) << 12 | (uint64_t)(b) << 3)
176 (0x9100000ull | (uint64_t)(a) << 12 | (uint64_t)(b))
177 #define TIM_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument
178 #define SSO_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument
179 #define NIX_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(0, b) argument
180 #define SSOW_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument
181 #define NPA_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(0, b) argument
182 #define CPT_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument
183 #define RVU_AF_BAR2_ALIASX(a, b) AF_BAR2_ALIASX(a, b) argument
[all …]
H A Dnpc.h28 (0x80020ull | (uint64_t)(a) << 6 | (uint64_t)(b) << 3)
31 (0x100000ull | (uint64_t)(a) << 14 | (uint64_t)(b) << 6 | \
34 (0x100020ull | (uint64_t)(a) << 14 | (uint64_t)(b) << 6)
36 (0x100028ull | (uint64_t)(a) << 14 | (uint64_t)(b) << 6)
38 (0x180000ull | (uint64_t)(a) << 6 | (uint64_t)(b) << 3)
41 (0x900000ull | (uint64_t)(a) << 16 | (uint64_t)(b) << 12 | \
56 (0x1800000ull | (uint64_t)(a) << 8 | (uint64_t)(b) << 4)
58 (0x1880000ull | (uint64_t)(a) << 8 | (uint64_t)(b) << 4)
62 (0x1900000ull | (uint64_t)(a) << 8 | (uint64_t)(b) << 4)
64 (0x1900008ull | (uint64_t)(a) << 8 | (uint64_t)(b) << 4)
[all …]
/dpdk/drivers/common/sfc_efx/base/
H A Defx_hash.c95 uint32_t b; in efx_hash_dwords() local
105 b += input[1]; in efx_hash_dwords()
107 EFX_HASH_MIX(a, b, c); in efx_hash_dwords()
119 b += input[1]; in efx_hash_dwords()
123 EFX_HASH_FINALISE(a, b, c); in efx_hash_dwords()
144 uint32_t b; in efx_hash_bytes() local
159 b += ((uint32_t)input[7]); in efx_hash_bytes()
164 EFX_HASH_MIX(a, b, c); in efx_hash_bytes()
184 b += ((uint32_t)input[7]); in efx_hash_bytes()
227 uint32_t b; in efx_hash_bytes() local
[all …]
/dpdk/drivers/crypto/octeontx/
H A Dotx_cryptodev_hw_access.h123 ((a) & 0x0) + 0x100000ll * (b))
125 ((a) & 0x0) + 0x100000ll * (b))
127 ((a) & 0x0) + 0x100000ll * (b))
129 ((a) & 0x0) + 0x100000ll * (b))
131 ((a) & 0x1) + 0x100000ll * (b))
133 ((a) & 0x1) + 0x100000ll * (b))
135 ((a) & 0x1) + 0x100000ll * (b))
137 ((a) & 0x1) + 0x100000ll * (b))
139 ((a) & 0x1) + 0x100000ll * (b))
141 ((a) & 0x1) + 0x100000ll * (b))
[all …]
/dpdk/lib/sched/
H A Drte_sched_common.h60 return b; in rte_get_gcd64()
61 if (b == 0) in rte_get_gcd64()
64 if (a < b) { in rte_get_gcd64()
66 a = b; in rte_get_gcd64()
67 b = c; in rte_get_gcd64()
70 while (b != 0) { in rte_get_gcd64()
71 c = a % b; in rte_get_gcd64()
72 a = b; in rte_get_gcd64()
73 b = c; in rte_get_gcd64()
85 return rte_get_gcd64(a, b); in rte_get_gcd()
[all …]
H A Drte_approx.c22 less(uint32_t a, uint32_t b, uint32_t c, uint32_t d) in less() argument
24 return a*d < b*c; in less()
30 return a*d <= b*c; in less_or_equal()
35 matches(uint32_t a, uint32_t b, in matches() argument
38 if (less_or_equal(a, b, alpha_num - d_num, denum)) in matches()
41 if (less(a ,b, alpha_num + d_num, denum)) in matches()
173 return a*d < b*c; in less_64()
179 return a*d <= b*c; in less_or_equal_64()
184 matches_64(uint64_t a, uint64_t b, in matches_64() argument
187 if (less_or_equal_64(a, b, alpha_num - d_num, denum)) in matches_64()
[all …]
/dpdk/lib/eal/include/
H A Drte_function_versioning.h47 #define VERSION_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@DPDK_" R… argument
55 #define VERSION_SYMBOL_EXPERIMENTAL(b, e) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) … argument
62 #define BIND_DEFAULT_SYMBOL(b, e, n) __asm__(".symver " RTE_STR(b) RTE_STR(e) ", " RTE_STR(b) "@@DP… argument
89 #define VERSION_SYMBOL(b, e, n) argument
90 #define VERSION_SYMBOL_EXPERIMENTAL(b, e) argument
92 #define BIND_DEFAULT_SYMBOL(b, e, n) argument
/dpdk/lib/eal/windows/include/
H A Dsched.h24 #define _NUM_SETS(b) (((b) + _BIT_SET_MASK) / _BITS_PER_SET) argument
25 #define _WHICH_SET(b) ((b) / _BITS_PER_SET) argument
26 #define _WHICH_BIT(b) ((b) & (_BITS_PER_SET - 1)) argument
33 #define CPU_SET(b, s) ((s)->_bits[_WHICH_SET(b)] |= (1LL << _WHICH_BIT(b))) argument
43 #define CPU_ISSET(b, s) (((s)->_bits[_WHICH_SET(b)] & \ argument
44 (1LL << _WHICH_BIT(b))) != 0LL)
/dpdk/drivers/net/dpaa2/base/
H A Ddpaa2_tlu_hash.c11 unsigned int a, b, c, d; in sbox() local
15 b = (x >> 1) & 0x1; in sbox()
19 oa = ((a & ~b & ~c & d) | (~a & b) | (~a & ~c & ~d) | (b & c)) & 0x1; in sbox()
20 ob = ((a & ~b & d) | (~a & c & ~d) | (b & ~c)) & 0x1; in sbox()
21 oc = ((a & ~b & c) | (a & ~b & ~d) | (~a & b & ~d) | (~a & c & ~d) | in sbox()
22 (b & c & d)) & 0x1; in sbox()
23 od = ((a & ~b & c) | (~a & b & ~c) | (a & b & ~d) | (~a & c & d)) & 0x1; in sbox()
/dpdk/lib/table/
H A Drte_swx_table_learner.c467 struct table_bucket *b; in rte_swx_table_learner_lookup() local
474 b = table_bucket_get(t, bucket_id); in rte_swx_table_learner_lookup()
476 rte_prefetch0(b); in rte_swx_table_learner_lookup()
477 rte_prefetch0(&b->key[0]); in rte_swx_table_learner_lookup()
480 m->bucket = b; in rte_swx_table_learner_lookup()
493 uint64_t time = b->time[i]; in rte_swx_table_learner_lookup()
494 uint32_t sig = b->sig[i]; in rte_swx_table_learner_lookup()
548 struct table_bucket *b = m->bucket; in rte_swx_table_learner_add() local
567 uint64_t time = b->time[i]; in rte_swx_table_learner_add()
581 b->sig[i] = m->input_sig; in rte_swx_table_learner_add()
[all …]
/dpdk/lib/eal/common/
H A Drte_reciprocal.c41 const uint64_t b = (1ULL << 32); /* Number base (16 bits). */ in divide_128_div_64_to_64() local
77 if (q1 >= b || q1*vn0 > b*rhat + un1) { in divide_128_div_64_to_64()
80 if (rhat < b) in divide_128_div_64_to_64()
84 un21 = un64*b + un1 - q1*v; in divide_128_div_64_to_64()
89 if (q0 >= b || q0*vn0 > b*rhat + un0) { in divide_128_div_64_to_64()
92 if (rhat < b) in divide_128_div_64_to_64()
97 *r = (un21*b + un0 - q0*v) >> s; in divide_128_div_64_to_64()
98 return q1*b + q0; in divide_128_div_64_to_64()
/dpdk/examples/pipeline/examples/
H A Dpacket.txt12 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
18 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
24 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
30 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
36 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
42 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
48 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
54 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
60 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
66 000030 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11
[all …]
/dpdk/drivers/raw/ifpga/base/
H A Dopae_osdep.h28 u8 b[16]; member
78 #define time_after(a, b) ((long)((b) - (a)) < 0) argument
79 #define time_before(a, b) time_after(b, a) argument
80 #define opae_memset(a, b, c) memset((a), (b), (c)) argument
/dpdk/examples/ipsec-secgw/
H A Dipsec-secgw.h17 #define __BYTES_TO_UINT64(a, b, c, d, e, f, g, h) \ argument
19 ((uint64_t)((b) & 0xff) << 48) | \
27 #define __BYTES_TO_UINT64(a, b, c, d, e, f, g, h) \ argument
34 ((uint64_t)((b) & 0xff) << 8) | \
38 #define uint32_t_to_char(ip, a, b, c, d) do {\ argument
40 *b = (uint8_t)(ip >> 16 & 0xff);\
45 #define ETHADDR(a, b, c, d, e, f) (__BYTES_TO_UINT64(a, b, c, d, e, f, 0, 0)) argument
/dpdk/drivers/raw/ifpga/base/osdep_rte/
H A Dosdep_generic.h39 #define min(a, b) RTE_MIN(a, b) argument
40 #define max(a, b) RTE_MAX(a, b) argument
54 #define opae_memcpy(a, b, c) rte_memcpy((a), (b), (c)) argument
/dpdk/lib/eal/x86/
H A Drte_cycles.c89 uint32_t a, b, c, d, maxleaf; in get_tsc_freq_arch() local
100 __cpuid(0x15, a, b, c, d); in get_tsc_freq_arch()
103 if (b && c) in get_tsc_freq_arch()
104 return c * (b / a); in get_tsc_freq_arch()
107 __cpuid(0x1, a, b, c, d); in get_tsc_freq_arch()
/dpdk/doc/guides/compressdevs/
H A Docteontx.rst70 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.1
71 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.2
72 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.3
73 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.4
74 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.5
75 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.6
76 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:00.7
77 ./usertools/dpdk-devbind.py -b vfio-pci 0001:04:01.0

1234567891011