| /dpdk/lib/eal/common/ |
| H A D | eal_common_uuid.c | 29 tmp >>= 8; in uuid_pack() 31 tmp >>= 8; in uuid_pack() 33 tmp >>= 8; in uuid_pack() 38 tmp >>= 8; in uuid_pack() 43 tmp >>= 8; in uuid_pack() 60 tmp = (tmp << 8) | *ptr++; in uuid_unpack() 61 tmp = (tmp << 8) | *ptr++; in uuid_unpack() 62 tmp = (tmp << 8) | *ptr++; in uuid_unpack() 66 tmp = (tmp << 8) | *ptr++; in uuid_unpack() 70 tmp = (tmp << 8) | *ptr++; in uuid_unpack() [all …]
|
| /dpdk/lib/rib/ |
| H A D | rte_rib.c | 124 while ((tmp != NULL) && !is_valid_node(tmp)) in rte_rib_lookup_parent() 125 tmp = tmp->parent; in rte_rib_lookup_parent() 126 return tmp; in rte_rib_lookup_parent() 177 while ((tmp) && (tmp->depth < depth)) in rte_rib_get_nxt() 178 tmp = get_nxt_node(tmp, ip); in rte_rib_get_nxt() 183 tmp = tmp->parent; in rte_rib_get_nxt() 189 tmp = (tmp->parent) ? tmp->parent->right : NULL; in rte_rib_get_nxt() 199 tmp = (tmp->left) ? tmp->left : tmp->right; in rte_rib_get_nxt() 297 tmp = (ip & (1 << (31 - d))) ? &(*tmp)->right : &(*tmp)->left; in rte_rib_insert() 522 while ((tmp = rte_rib_get_nxt(rib, 0, 0, tmp, in rte_rib_free() [all …]
|
| H A D | rte_rib6.c | 160 while ((tmp != NULL) && (!is_valid_node(tmp))) in rte_rib6_lookup_parent() 161 tmp = tmp->parent; in rte_rib6_lookup_parent() 163 return tmp; in rte_rib6_lookup_parent() 223 while ((tmp) && (tmp->depth < depth)) in rte_rib6_get_nxt() 224 tmp = get_nxt_node(tmp, tmp_ip); in rte_rib6_get_nxt() 229 tmp = tmp->parent; in rte_rib6_get_nxt() 235 tmp = (tmp->parent != NULL) ? tmp->parent->right : NULL; in rte_rib6_get_nxt() 245 tmp = (tmp->left != NULL) ? tmp->left : tmp->right; in rte_rib6_get_nxt() 354 tmp = (get_dir(tmp_ip, (*tmp)->depth)) ? &(*tmp)->right : in rte_rib6_insert() 602 while ((tmp = rte_rib6_get_nxt(rib, 0, 0, tmp, in rte_rib6_free() [all …]
|
| /dpdk/app/test/ |
| H A D | test_cmdline_cirbuf.c | 29 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_misc() 70 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_misc() 106 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_misc() 140 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_add_del() 168 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_add_del() 191 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_add_del() 222 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_add_del() 258 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_add_del_reverse() 285 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_add_del_reverse() 391 memset(tmp, 0, sizeof(tmp)); in test_cirbuf_string_get_del_boundaries() [all …]
|
| H A D | test_eal_flags.c | 328 char prefix[PATH_MAX], tmp[PATH_MAX]; in test_allow_flag() local 329 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_allow_flag() 395 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_invalid_b_flag() 499 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_invalid_r_flag() 543 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_missing_c_flag() 702 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_main_lcore_flag() 759 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_invalid_n_flag() 811 char tmp[PATH_MAX]; in test_no_hpet_flag() local 812 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_no_hpet_flag() 906 if (get_current_prefix(tmp, sizeof(tmp)) == NULL) { in test_misc_flags() [all …]
|
| /dpdk/lib/eal/x86/include/ |
| H A D | rte_atomic_32.h | 87 uint64_t tmp; in rte_atomic64_init() local 100 uint64_t tmp; in rte_atomic64_read() local 106 tmp, tmp); in rte_atomic64_read() 108 return tmp; in rte_atomic64_read() 115 uint64_t tmp; in rte_atomic64_set() local 128 uint64_t tmp; in rte_atomic64_add() local 133 tmp, tmp + inc); in rte_atomic64_add() 141 uint64_t tmp; in rte_atomic64_sub() local 146 tmp, tmp - dec); in rte_atomic64_sub() 171 tmp, tmp + inc); in rte_atomic64_add_return() [all …]
|
| /dpdk/lib/eal/freebsd/include/ |
| H A D | rte_os.h | 35 cpuset_t tmp; \ 37 CPU_AND(&tmp, src2); \ 38 CPU_COPY(&tmp, dst); \ 42 cpuset_t tmp; \ 44 CPU_OR(&tmp, src2); \ 53 cpuset_t tmp; \ 54 CPU_FILL(&tmp); \ 61 cpuset_t tmp; \ 62 CPU_FILL(&tmp); \ 74 cpu_set_t tmp; \ [all …]
|
| /dpdk/lib/fib/ |
| H A D | dir24_8.h | 114 uint64_t tmp; \ 148 uint64_t tmp; in dir24_8_lookup_bulk() local 159 tmp = get_tbl8(dp, tmp, ips[i], nh_sz); in dir24_8_lookup_bulk() 161 next_hops[i] = tmp >> 1; in dir24_8_lookup_bulk() 166 tmp = get_tbl8(dp, tmp, ips[i], nh_sz); in dir24_8_lookup_bulk() 168 next_hops[i] = tmp >> 1; in dir24_8_lookup_bulk() 213 uint64_t tmp; in dir24_8_lookup_bulk_uni() local 225 tmp = get_tbl8(dp, tmp, ips[i], nh_sz); in dir24_8_lookup_bulk_uni() 227 next_hops[i] = tmp >> 1; in dir24_8_lookup_bulk_uni() 232 tmp = get_tbl8(dp, tmp, ips[i], nh_sz); in dir24_8_lookup_bulk_uni() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_stats.c | 101 struct rte_eth_stats tmp; in mlx5_stats_get() local 107 memset(&tmp, 0, sizeof(tmp)); in mlx5_stats_get() 119 tmp.q_ibytes[idx] += rxq->stats.ibytes - in mlx5_stats_get() 122 tmp.q_errors[idx] += (rxq->stats.idropped + in mlx5_stats_get() 132 tmp.rx_nombuf += rxq->stats.rx_nombuf - in mlx5_stats_get() 145 tmp.q_obytes[idx] += txq->stats.obytes - in mlx5_stats_get() 157 tmp.imissed = (tmp.imissed - stats_ctrl->imissed_base) & in mlx5_stats_get() 162 tmp.imissed |= (wrap_n) << 32; in mlx5_stats_get() 163 stats_ctrl->imissed = tmp.imissed; in mlx5_stats_get() 165 tmp.imissed = stats_ctrl->imissed; in mlx5_stats_get() [all …]
|
| /dpdk/lib/cmdline/ |
| H A D | cmdline_rdline.c | 161 char tmp; in display_right_buffer() local 179 char tmp; in rdline_redisplay() local 198 char tmp; in rdline_char_in() local 242 isblank2(tmp)) { in rdline_char_in() 261 isblank2(tmp)) { in rdline_char_in() 521 char tmp; in rdline_remove_old_history_item() local 526 if (!tmp) in rdline_remove_old_history_item() 534 char tmp; in rdline_remove_first_history_item() local 545 if (!tmp) in rdline_remove_first_history_item() 557 if (tmp == 0) in rdline_get_history_size() [all …]
|
| H A D | cmdline_parse_etheraddr.c | 29 struct rte_ether_addr tmp; in cmdline_parse_etheraddr() local 31 if (res && ressize < sizeof(tmp)) in cmdline_parse_etheraddr() 46 if (rte_ether_unformat_addr(ether_str, &tmp) < 0) in cmdline_parse_etheraddr() 50 memcpy(res, &tmp, sizeof(tmp)); in cmdline_parse_etheraddr()
|
| /dpdk/lib/eal/freebsd/ |
| H A D | eal_timer.c | 32 int tmp; in get_tsc_freq() local 35 sz = sizeof(tmp); in get_tsc_freq() 36 tmp = 0; in get_tsc_freq() 38 if (sysctlbyname("kern.timecounter.smp_tsc", &tmp, &sz, NULL, 0)) in get_tsc_freq() 40 else if (tmp != 1) in get_tsc_freq() 43 tmp = 0; in get_tsc_freq() 45 if (sysctlbyname("kern.timecounter.invariant_tsc", &tmp, &sz, NULL, 0)) in get_tsc_freq() 47 else if (tmp != 1) in get_tsc_freq()
|
| /dpdk/examples/fips_validation/ |
| H A D | fips_validation_aes.c | 129 char *tmp; in parse_test_aes_init() local 135 tmp = strstr(line, MODE_STR); in parse_test_aes_init() 136 if (tmp) { in parse_test_aes_init() 147 tmp = strstr(line, ALGO_STR); in parse_test_aes_init() 148 if (!tmp) in parse_test_aes_init() 151 tmp += strlen(ALGO_STR); in parse_test_aes_init() 164 tmp = strstr(line, OP_STR); in parse_test_aes_init() 165 if (tmp) in parse_test_aes_init() 169 if (tmp) { in parse_test_aes_init() 170 tmp += strlen(KEY_SIZE_STR); in parse_test_aes_init() [all …]
|
| H A D | fips_validation_cmac.c | 79 char *tmp; in parse_test_cmac_init() local 85 tmp = strstr(line, ALGO_STR); in parse_test_cmac_init() 86 if (!tmp) in parse_test_cmac_init() 100 tmp = strstr(line, MODE_STR); in parse_test_cmac_init() 101 if (!tmp) in parse_test_cmac_init() 104 if (strstr(tmp, GEN_STR)) in parse_test_cmac_init() 106 else if (strstr(tmp, VERIF_STR)) in parse_test_cmac_init()
|
| /dpdk/drivers/net/ipn3ke/ |
| H A D | ipn3ke_representor.c | 541 tmp, in ipn3ke_rpst_25g_nic_side_tx_stats_reset() 570 tmp, in ipn3ke_rpst_25g_nic_side_rx_stats_reset() 602 &tmp, in ipn3ke_rpst_10g_nic_side_tx_stats_reset() 608 tmp, in ipn3ke_rpst_10g_nic_side_tx_stats_reset() 627 &tmp, in ipn3ke_rpst_10g_nic_side_rx_stats_reset() 633 tmp, in ipn3ke_rpst_10g_nic_side_rx_stats_reset() 690 tmp, in ipn3ke_rpst_read_25g_lineside_stats_registers() 698 &tmp, in ipn3ke_rpst_read_25g_lineside_stats_registers() 711 tmp, in ipn3ke_rpst_read_25g_lineside_stats_registers() 766 tmp, in ipn3ke_rpst_read_25g_lineside_stats_registers() [all …]
|
| /dpdk/lib/stack/ |
| H A D | rte_stack_lf_c11.h | 106 struct rte_stack_lf_elem *tmp; in __rte_stack_lf_pop_elems() local 117 tmp = old_head.top; in __rte_stack_lf_pop_elems() 124 for (i = 0; i < num && tmp != NULL; i++) { in __rte_stack_lf_pop_elems() 125 rte_prefetch0(tmp->next); in __rte_stack_lf_pop_elems() 127 obj_table[i] = tmp->data; in __rte_stack_lf_pop_elems() 129 *last = tmp; in __rte_stack_lf_pop_elems() 130 tmp = tmp->next; in __rte_stack_lf_pop_elems() 141 new_head.top = tmp; in __rte_stack_lf_pop_elems()
|
| H A D | rte_stack_lf_generic.h | 101 struct rte_stack_lf_elem *tmp; in __rte_stack_lf_pop_elems() local 112 tmp = old_head.top; in __rte_stack_lf_pop_elems() 119 for (i = 0; i < num && tmp != NULL; i++) { in __rte_stack_lf_pop_elems() 120 rte_prefetch0(tmp->next); in __rte_stack_lf_pop_elems() 122 obj_table[i] = tmp->data; in __rte_stack_lf_pop_elems() 124 *last = tmp; in __rte_stack_lf_pop_elems() 125 tmp = tmp->next; in __rte_stack_lf_pop_elems() 136 new_head.top = tmp; in __rte_stack_lf_pop_elems()
|
| H A D | rte_stack_lf.h | 40 struct rte_stack_lf_elem *tmp, *first, *last = NULL; in __rte_stack_lf_push() local 52 for (tmp = first, i = 0; i < n; i++, tmp = tmp->next) in __rte_stack_lf_push() 53 tmp->data = obj_table[n - i - 1]; in __rte_stack_lf_push()
|
| /dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_cppcore.c | 140 int tmp, err; in nfp_cpp_area_alloc_with_name() local 173 tmp = errno; in nfp_cpp_area_alloc_with_name() 182 errno = tmp; in nfp_cpp_area_alloc_with_name() 436 sz = nfp_cpp_area_read(area, offset, &tmp, sizeof(tmp)); in nfp_cpp_area_readl() 460 sz = nfp_cpp_area_read(area, offset, &tmp, sizeof(tmp)); in nfp_cpp_area_readq() 483 uint32_t tmp; in nfp_cpp_readl() local 485 sz = nfp_cpp_read(cpp, cpp_id, address, &tmp, sizeof(tmp)); in nfp_cpp_readl() 508 uint64_t tmp; in nfp_cpp_readq() local 631 uint32_t tmp; in nfp_xpb_writelm() local 637 tmp &= ~mask; in nfp_xpb_writelm() [all …]
|
| /dpdk/lib/hash/ |
| H A D | rte_thash.c | 350 tmp = ent; in rte_thash_free_ctx() 353 rte_free(tmp); in rte_thash_free_ctx() 366 uint8_t tmp; in set_bit() local 368 tmp = ptr[byte_idx]; in set_bit() 416 uint32_t *tmp, val; in get_subvalue() local 725 uint8_t tmp; in write_unaligned_byte() local 743 uint8_t tmp; in write_unaligned_bits() local 770 uint32_t tmp; in rte_thash_adjust_tuple() local 802 tmp ^= adj_bits; in rte_thash_adjust_tuple() 816 tmp++; in rte_thash_adjust_tuple() [all …]
|
| /dpdk/lib/eal/unix/ |
| H A D | eal_filesystem.c | 26 char tmp[PATH_MAX]; in eal_create_runtime_dir() local 44 ret = snprintf(tmp, sizeof(tmp), "%s/dpdk", directory); in eal_create_runtime_dir() 45 if (ret < 0 || ret == sizeof(tmp)) { in eal_create_runtime_dir() 52 tmp, eal_get_hugefile_prefix()); in eal_create_runtime_dir() 61 ret = mkdir(tmp, 0700); in eal_create_runtime_dir() 64 tmp, strerror(errno)); in eal_create_runtime_dir()
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | sad.c | 21 void *tmp = NULL; in ipsec_sad_add() local 30 rte_ipsec_sad_lookup(sad->sad_v4, lookup_key, &tmp, 1); in ipsec_sad_add() 31 if (tmp != NULL) in ipsec_sad_add() 40 rte_ipsec_sad_lookup(sad->sad_v6, lookup_key, &tmp, 1); in ipsec_sad_add() 41 if (tmp != NULL) in ipsec_sad_add() 51 rte_ipsec_sad_lookup(sad->sad_v4, lookup_key, &tmp, 1); in ipsec_sad_add() 52 if (tmp != NULL) in ipsec_sad_add() 61 rte_ipsec_sad_lookup(sad->sad_v6, lookup_key, &tmp, 1); in ipsec_sad_add() 62 if (tmp != NULL) in ipsec_sad_add()
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_utils.c | 91 uint8_t tmp; in ulp_bs_put_msb() local 94 tmp = bs[index]; in ulp_bs_put_msb() 102 bs[index] = tmp; in ulp_bs_put_msb() 121 uint8_t tmp; in ulp_bs_put_lsb() local 125 tmp = bs[index]; in ulp_bs_put_lsb() 130 tmp &= ~mask; in ulp_bs_put_lsb() 136 tmp &= ~mask; in ulp_bs_put_lsb() 144 tmp &= ~mask; in ulp_bs_put_lsb() 207 if (!tmp) in ulp_bs_push_msb() 208 tmp = 8; in ulp_bs_push_msb() [all …]
|
| /dpdk/drivers/crypto/caam_jr/ |
| H A D | caam_jr_hw.c | 135 uint32_t tmp = 0; in hw_shutdown_job_ring() local 159 tmp = GET_JR_REG(JRCR, job_ring); in hw_shutdown_job_ring() 162 tmp = GET_JR_REG(JRINT, job_ring); in hw_shutdown_job_ring() 164 } while (((tmp & JRINT_ERR_HALT_MASK) == in hw_shutdown_job_ring() 167 CAAM_JR_INFO("JRINT is %x", tmp); in hw_shutdown_job_ring() 168 if ((tmp & JRINT_ERR_HALT_MASK) != JRINT_ERR_HALT_COMPLETE || in hw_shutdown_job_ring() 170 CAAM_JR_ERR("0x%x, %d", tmp, timeout); in hw_shutdown_job_ring() 182 tmp = GET_JR_REG(JRCR, job_ring); in hw_shutdown_job_ring() 184 } while ((tmp & JR_REG_JRCR_VAL_RESET) && --timeout); in hw_shutdown_job_ring() 186 CAAM_JR_DEBUG("JRCR is %x", tmp); in hw_shutdown_job_ring()
|
| /dpdk/drivers/net/thunderx/ |
| H A D | nicvf_ethdev.h | 109 uint16_t tmp; in nicvf_tx_range() local 113 tmp = RTE_ALIGN_CEIL(nicvf_netdev_qidx(nic, 0) + 1, in nicvf_tx_range() 116 RTE_MIN(tmp, dev->data->nb_tx_queues - 1) : 0; in nicvf_tx_range() 123 uint16_t tmp; in nicvf_rx_range() local 127 tmp = RTE_ALIGN_CEIL(nicvf_netdev_qidx(nic, 0) + 1, in nicvf_rx_range() 130 RTE_MIN(tmp, dev->data->nb_rx_queues - 1) : 0; in nicvf_rx_range()
|