| /dpdk/app/test/ |
| H A D | test_reorder.c | 25 struct rte_reorder_buffer *b; member 30 .b = NULL 38 struct rte_reorder_buffer *b = NULL; in test_reorder_create() local 40 b = rte_reorder_create(NULL, rte_socket_id(), REORDER_BUFFER_SIZE); in test_reorder_create() 41 TEST_ASSERT((b == NULL) && (rte_errno == EINVAL), in test_reorder_create() 44 b = rte_reorder_create("PKT", rte_socket_id(), REORDER_BUFFER_SIZE_INVALID); in test_reorder_create() 45 TEST_ASSERT((b == NULL) && (rte_errno == EINVAL), in test_reorder_create() 48 b = rte_reorder_create("PKT_RO1", rte_socket_id(), REORDER_BUFFER_SIZE); in test_reorder_create() 49 TEST_ASSERT_EQUAL(b, test_params->b, in test_reorder_create() 58 struct rte_reorder_buffer *b = NULL; in test_reorder_init() local [all …]
|
| H A D | test_seqlock.c | 19 alignas(RTE_CACHE_LINE_SIZE) uint64_t b; member 56 data->b = new_value; in writer_run() 88 uint64_t b; in reader_run() local 100 b = data->b; in reader_run() 104 if (a != b || b != c) { in reader_run() 107 a, b, c); in reader_run()
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | lookup3.h | 59 #define mix(a, b, c) \ argument 61 (a) -= (c); (a) ^= rot((c), 4); (c) += b; \ 62 (b) -= (a); (b) ^= rot((a), 6); (a) += c; \ 63 (c) -= (b); (c) ^= rot((b), 8); (b) += a; \ 64 (a) -= (c); (a) ^= rot((c), 16); (c) += b; \ 65 (b) -= (a); (b) ^= rot((a), 19); (a) += c; \ 66 (c) -= (b); (c) ^= rot((b), 4); (b) += a; \ 93 #define final(a, b, c) \ argument 95 (c) ^= (b); (c) -= rot((b), 14); \ 97 (b) ^= (a); (b) -= rot((a), 25); \ [all …]
|
| /dpdk/lib/hash/ |
| H A D | rte_jhash.h | 48 #define __rte_jhash_mix(a, b, c) do { \ argument 49 a -= c; a ^= rot(c, 4); c += b; \ 50 b -= a; b ^= rot(a, 6); a += c; \ 51 c -= b; c ^= rot(b, 8); b += a; \ 52 a -= c; a ^= rot(c, 16); c += b; \ 53 b -= a; b 57 __rte_jhash_final(a,b,c) global() argument 84 uint32_t a, b, c; __rte_jhash_2hashes() local 313 __rte_jhash_3words(uint32_t a,uint32_t b,uint32_t c,uint32_t initval) __rte_jhash_3words() argument 340 rte_jhash_3words(uint32_t a,uint32_t b,uint32_t c,uint32_t initval) rte_jhash_3words() argument 359 rte_jhash_2words(uint32_t a,uint32_t b,uint32_t initval) rte_jhash_2words() argument [all...] |
| /dpdk/lib/reorder/ |
| H A D | rte_reorder.c | 60 rte_reorder_free_mbufs(struct rte_reorder_buffer *b); 69 rte_reorder_init(struct rte_reorder_buffer *b, unsigned int bufsize, in rte_reorder_init() argument 79 if (b == NULL) { in rte_reorder_init() 113 memset(b, 0, bufsize); in rte_reorder_init() 114 strlcpy(b->name, name, sizeof(b->name)); in rte_reorder_init() 115 b->memsize = bufsize; in rte_reorder_init() 116 b->order_buf.size = b->ready_buf.size = size; in rte_reorder_init() 117 b->order_buf.mask = b->ready_buf.mask = size - 1; in rte_reorder_init() 118 b->ready_buf.entries = (void *)&b[1]; in rte_reorder_init() 119 b->order_buf.entries = RTE_PTR_ADD(&b[1], in rte_reorder_init() [all …]
|
| H A D | rte_reorder.h | 87 rte_reorder_init(struct rte_reorder_buffer *b, unsigned int bufsize, 112 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, 193 rte_reorder_drain_up_to_seqn(struct rte_reorder_buffer *b, struct rte_mbuf **mbufs, 213 rte_reorder_min_seqn_set(struct rte_reorder_buffer *b, rte_reorder_seqn_t min_seqn);
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_hash.c | 40 #define FF(a, b, c, d, x, s, ac) \ argument 42 (a) += F((b), (c), (d)) + (x) + (uint32_t)(ac); \ 44 (a) += (b); \ 47 #define GG(a, b, c, d, x, s, ac) \ argument 49 (a) += G((b), (c), (d)) + (x) + (uint32_t)(ac); \ 51 (a) += (b); \ 54 #define HH(a, b, c, d, x, s, ac) \ argument 56 (a) += H((b), (c), (d)) + (x) + (uint32_t)(ac); \ 58 (a) += (b); \ 61 #define II(a, b, c, d, x, s, ac) \ argument [all …]
|
| /dpdk/lib/sched/ |
| H A D | rte_sched_common.h | 49 * gcd(a, b) = gcd(b, a mod b) 52 rte_get_gcd64(uint64_t a, uint64_t b) in rte_get_gcd64() argument 57 return b; in rte_get_gcd64() 58 if (b == 0) in rte_get_gcd64() 61 if (a < b) { in rte_get_gcd64() 63 a = b; in rte_get_gcd64() 64 b = c; in rte_get_gcd64() 67 while (b ! in rte_get_gcd64() 80 rte_get_gcd(uint32_t a,uint32_t b) rte_get_gcd() argument 91 rte_get_lcd(uint32_t a,uint32_t b) rte_get_lcd() argument [all...] |
| H A D | rte_approx.c | 22 less(uint32_t a, uint32_t b, uint32_t c, uint32_t d) in less() argument 24 return a*d < b*c; in less() 28 less_or_equal(uint32_t a, uint32_t b, uint32_t c, uint32_t d) in less_or_equal() argument 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() 171 less_64(uint64_t a, uint64_t b, uint64_t c, uint64_t d) in less_64() argument 173 return a*d < b*c; in less_64() 177 less_or_equal_64(uint64_t a, uint64_t b, uint64_t c, uint64_t d) in less_or_equal_64() argument [all …]
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | efx_hash.c | 95 uint32_t b; in efx_hash_dwords() local 99 a = b = c = EFX_HASH_INITIAL_VALUE + in efx_hash_dwords() 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 148 a = b = c = EFX_HASH_INITIAL_VALUE + (uint32_t)length + init; in efx_hash_bytes() 156 b += ((uint32_t)input[4]) << 24; in efx_hash_bytes() 157 b += ((uint32_t)input[5]) << 16; in efx_hash_bytes() [all …]
|
| /dpdk/lib/eal/include/ |
| H A D | rte_function_versioning.h | 47 #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
|
| H A D | rte_common.h | 551 * uint8_t b; 759 #define RTE_MIN(a, b) \ 762 typeof (b) _b = (b); \ 770 * if a or b is an expression. Yet it is guaranteed to be constant for use in 773 #define RTE_MIN_T(a, b, t) \ 774 ((t)(a) < (t)(b) ? (t)(a) : (t)(b)) 779 #define RTE_MAX(a, b) \ 782 typeof (b) _ 624 RTE_MIN(a,b) global() argument 638 RTE_MIN_T(a,b,t) global() argument 644 RTE_MAX(a,b) global() argument 658 RTE_MAX_T(a,b,t) global() argument 697 RTE_SWAP(a,b) global() argument [all...] |
| H A D | rte_uuid.h | 29 #define RTE_UUID_INIT(a, b, c, d, e) { \ argument 32 ((b) >> 8) & 0xff, (b) & 0xff, \ 71 * @param b 75 * is less than, equal, or greater than UUID b. 77 int rte_uuid_compare(const rte_uuid_t a, const rte_uuid_t b);
|
| H A D | rte_test.h | 28 #define RTE_TEST_ASSERT_EQUAL(a, b, msg, ...) \ argument 29 RTE_TEST_ASSERT(a == b, msg, ##__VA_ARGS__) 31 #define RTE_TEST_ASSERT_NOT_EQUAL(a, b, msg, ...) \ argument 32 RTE_TEST_ASSERT(a != b, msg, ##__VA_ARGS__)
|
| /dpdk/lib/eal/windows/include/ |
| H A D | sched.h | 24 #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)
|
| H A D | getopt.h | 42 #define getopt(a, b, c) usual_getopt(a, b, c) argument 43 #define getopt_long(a, b, c, d, e) usual_getopt_long(a, b, c, d, e) argument
|
| /dpdk/lib/table/ |
| H A D | rte_swx_table_learner.c | 255 table_bucket_key_get(struct table *t, struct table_bucket *b, size_t bucket_key_pos) in table_bucket_key_get() argument 257 return &b->key[bucket_key_pos << t->params.key_size_log2]; in table_bucket_key_get() 261 table_bucket_data_get(struct table *t, struct table_bucket *b, size_t bucket_key_pos) in table_bucket_data_get() argument 263 return (uint64_t *)&b->key[t->params.bucket_key_all_size + in table_bucket_data_get() 268 table_entry_id_get(struct table *t, struct table_bucket *b, size_t bucket_key_pos) in table_entry_id_get() argument 270 size_t bucket_id = ((uint8_t *)b - t->buckets) >> t->params.bucket_size_log2; in table_entry_id_get() 379 struct table_bucket *b; in rte_swx_table_learner_lookup() local 386 b = table_bucket_get(t, bucket_id); in rte_swx_table_learner_lookup() 388 rte_prefetch0(b); in rte_swx_table_learner_lookup() 389 rte_prefetch0(&b->key[0]); in rte_swx_table_learner_lookup() [all …]
|
| /dpdk/drivers/net/dpaa2/base/ |
| H A D | dpaa2_tlu_hash.c | 11 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/drivers/common/cnxk/hw/ |
| H A D | npc.h | 27 #define NPC_AF_PKINDX_CPI_DEFX(a, b) \ argument 28 (0x80020ull | (uint64_t)(a) << 6 | (uint64_t)(b) << 3) 30 #define NPC_AF_KPUX_ENTRYX_CAMX(a, b, c) \ argument 31 (0x100000ull | (uint64_t)(a) << 14 | (uint64_t)(b) << 6 | \ 33 #define NPC_AF_KPUX_ENTRYX_ACTION0(a, b) \ argument 34 (0x100020ull | (uint64_t)(a) << 14 | (uint64_t)(b) << 6) 35 #define NPC_AF_KPUX_ENTRYX_ACTION1(a, b) \ argument 36 (0x100028ull | (uint64_t)(a) << 14 | (uint64_t)(b) << 6) 37 #define NPC_AF_KPUX_ENTRY_DISX(a, b) \ argument 38 (0x180000ull | (uint64_t)(a) << 6 | (uint64_t)(b) << 3) [all …]
|
| /dpdk/lib/eal/x86/ |
| H A D | rte_cycles.c | 113 uint32_t a, b, c, d, maxleaf; in get_tsc_freq_arch() local 120 b = cpuinfo[1]; in get_tsc_freq_arch() 124 __cpuid(0, a, b, c, d); in get_tsc_freq_arch() 126 if (x86_vendor_amd(b, c, d)) in get_tsc_freq_arch() 139 b = cpuinfo[1]; in get_tsc_freq_arch() 143 __cpuid(0x15, a, b, c, d); in get_tsc_freq_arch() 147 if (b && c) in get_tsc_freq_arch() 148 return c * (b / a); in get_tsc_freq_arch() 154 b = cpuinfo[1]; in get_tsc_freq_arch() 158 __cpuid(0x1, a, b, c, d); in get_tsc_freq_arch()
|
| /dpdk/lib/eal/common/ |
| H A D | rte_reciprocal.c | 42 const uint64_t b = (1ULL << 32); /* Number base (16 bits). */ in divide_128_div_64_to_64() local 78 if (q1 >= b || q1*vn0 > b*rhat + un1) { in divide_128_div_64_to_64() 81 if (rhat < b) in divide_128_div_64_to_64() 85 un21 = un64*b + un1 - q1*v; in divide_128_div_64_to_64() 90 if (q0 >= b || q0*vn0 > b*rhat + un0) { in divide_128_div_64_to_64() 93 if (rhat < b) in divide_128_div_64_to_64() 98 *r = (un21*b + un0 - q0*v) >> s; in divide_128_div_64_to_64() 99 return q1*b + q0; in divide_128_div_64_to_64()
|
| /dpdk/examples/pipeline/examples/ |
| H A D | packet.txt | 12 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/examples/pipeline/ |
| H A D | thread.c | 76 struct block *b; in thread_init() local 78 b = calloc(1, sizeof(struct block)); in thread_init() 79 if (!b) { in thread_init() 84 t->blocks[i] = b; in thread_init() 127 block_find(void *b) in block_find() argument 139 if (t->blocks[i]->block == b) in block_find() 317 struct block *b = t->blocks[i]; in block_disable() local 319 if (block != b->block) in block_disable() 332 t->blocks[n_blocks - 1] = b; in block_disable() 371 struct block *b = t->blocks[i]; in thread_main() local [all …]
|
| /dpdk/usertools/ |
| H A D | dpdk-pmdinfo.py | 125 for b in binaries: 126 logging.debug("analyzing %s", b) 128 for s in get_elf_strings(b, ".rodata", "PMD_INFO_STRING="): 135 logging.warning("%s: %s", b, e) 138 logging.debug("%s: cannot parse ELF: %s", b, e) 171 for b in binaries: 172 for p in get_elf_strings(b, ".rodata", "DPDK_PLUGIN_PATH="): 204 for i, b in enumerate(view): 205 if start is None and b in PRINTABLE_BYTES: 210 if b in PRINTABLE_BYTES: [all …]
|
| /dpdk/doc/guides/compressdevs/ |
| H A D | octeontx.rst | 70 ./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
|