| /dpdk/drivers/bus/fslmc/qbman/ |
| H A D | qbman_sys.h | 116 static inline void u64_to_le32_copy(void *d, const uint64_t *s, in u64_to_le32_copy() argument 120 const uint32_t *ss = (const uint32_t *)s; in u64_to_le32_copy() 139 static inline void u64_from_le32_copy(uint64_t *d, const void *s, in u64_from_le32_copy() argument 142 const uint32_t *ss = s; in u64_from_le32_copy() 183 static inline void qbman_cinh_write(struct qbman_swp_sys *s, uint32_t offset, in qbman_cinh_write() argument 186 __raw_writel(val, s->addr_cinh + offset); in qbman_cinh_write() 189 s->addr_cinh, s->idx, offset, val); in qbman_cinh_write() 193 static inline void *qbman_cinh_write_start_wo_shadow(struct qbman_swp_sys *s, in qbman_cinh_write_start_wo_shadow() argument 198 s->addr_cinh, s->idx, offset); in qbman_cinh_write_start_wo_shadow() 201 return (s->addr_cinh + offset); in qbman_cinh_write_start_wo_shadow() [all …]
|
| /dpdk/lib/pipeline/ |
| H A D | rte_swx_pipeline_spec.c | 46 extobj_spec_free(struct extobj_spec *s) in extobj_spec_free() argument 48 if (!s) in extobj_spec_free() 51 free(s->name); in extobj_spec_free() 52 s->name = NULL; in extobj_spec_free() 54 free(s->extern_type_name); in extobj_spec_free() 55 s->extern_type_name = NULL; in extobj_spec_free() 57 free(s->pragma); in extobj_spec_free() 58 s->pragma = NULL; in extobj_spec_free() 62 extobj_statement_parse(struct extobj_spec *s, in extobj_statement_parse() argument 82 s->name = strdup(tokens[1]); in extobj_statement_parse() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | cnxk_telemetry.h | 8 #define CNXK_TEL_STR(s) #s argument 9 #define CNXK_TEL_STR_PREFIX(s, p) CNXK_TEL_STR(p##s) argument 10 #define CNXK_TEL_DICT_INT(d, p, s, ...) \ argument 11 plt_tel_data_add_dict_int(d, CNXK_TEL_STR_PREFIX(s, __VA_ARGS__), \ 12 (p)->s) 13 #define CNXK_TEL_DICT_PTR(d, p, s, ...) \ argument 14 plt_tel_data_add_dict_ptr(d, CNXK_TEL_STR_PREFIX(s, __VA_ARGS__), \ 15 (void *)(p)->s) 16 #define CNXK_TEL_DICT_BF_PTR(d, p, s, ...) \ argument 17 plt_tel_data_add_dict_ptr(d, CNXK_TEL_STR_PREFIX(s, __VA_ARGS__), \ [all …]
|
| H A D | roc_se.c | 301 pctx->w0.s.state_conf = ROC_SE_PDCP_CHAIN_CTX_KEY_IV; in roc_se_auth_key_set() 302 pctx->w0.s.auth_type = ROC_SE_PDCP_CHAIN_ALG_TYPE_SNOW3G; in roc_se_auth_key_set() 303 pctx->w0.s.mac_len = mac_len; in roc_se_auth_key_set() 304 pctx->w0.s.auth_key_len = key_len; in roc_se_auth_key_set() 328 pctx->w0.s.auth_key_len = key_type; in roc_se_auth_key_set() 329 pctx->w0.s.state_conf = ROC_SE_PDCP_CHAIN_CTX_KEY_IV; in roc_se_auth_key_set() 330 pctx->w0.s.auth_type = ROC_SE_PDCP_CHAIN_ALG_TYPE_ZUC; in roc_se_auth_key_set() 331 pctx->w0.s.mac_len = mac_len; in roc_se_auth_key_set() 347 pctx->w0.s.auth_key_len = key_type; in roc_se_auth_key_set() 348 pctx->w0.s.state_conf = ROC_SE_PDCP_CHAIN_CTX_KEY_IV; in roc_se_auth_key_set() [all …]
|
| /dpdk/app/test/ |
| H A D | test_stack.c | 18 test_stack_push_pop(struct rte_stack *s, void **obj_table, unsigned int bulk_sz) in test_stack_push_pop() argument 31 ret = rte_stack_push(s, &obj_table[i], bulk_sz); in test_stack_push_pop() 40 if (rte_stack_count(s) != i + bulk_sz) { in test_stack_push_pop() 42 __func__, __LINE__, rte_stack_count(s), in test_stack_push_pop() 48 if (rte_stack_free_count(s) != STACK_SIZE - i - bulk_sz) { in test_stack_push_pop() 50 __func__, __LINE__, rte_stack_count(s), in test_stack_push_pop() 58 ret = rte_stack_pop(s, &popped_objs[i], bulk_sz); in test_stack_push_pop() 67 if (rte_stack_count(s) != STACK_SIZE - i - bulk_sz) { in test_stack_push_pop() 69 __func__, __LINE__, rte_stack_count(s), in test_stack_push_pop() 75 if (rte_stack_free_count(s) != i + bulk_sz) { in test_stack_push_pop() [all …]
|
| H A D | test_stack_perf.c | 110 test_empty_pop(struct rte_stack *s) in test_empty_pop() argument 119 rte_stack_pop(s, objs, bulk_sizes[0]); in test_empty_pop() 128 struct rte_stack *s; member 141 struct rte_stack *s; in bulk_push_pop() local 143 s = args->s; in bulk_push_pop() 152 rte_stack_push(s, objs, size); in bulk_push_pop() 153 rte_stack_pop(s, objs, size); in bulk_push_pop() 169 run_on_core_pair(struct lcore_pair *cores, struct rte_stack *s, in run_on_core_pair() argument 179 args[0].s = args[1].s = s; in run_on_core_pair() 199 run_on_n_cores(struct rte_stack *s, lcore_function_t fn, int n) in run_on_n_cores() argument [all …]
|
| /dpdk/drivers/net/bnx2x/ |
| H A D | bnx2x_stats.h | 450 #define UPDATE_STAT64(s, t) \ argument 452 DIFF_64(diff.hi, new->s##_hi, pstats->mac_stx[0].t##_hi, \ 453 diff.lo, new->s##_lo, pstats->mac_stx[0].t##_lo); \ 454 pstats->mac_stx[0].t##_hi = new->s##_hi; \ 455 pstats->mac_stx[0].t##_lo = new->s##_lo; \ 460 #define UPDATE_STAT64_NIG(s, t) \ argument 462 DIFF_64(diff.hi, new->s##_hi, old->s##_hi, \ 463 diff.lo, new->s##_lo, old->s##_lo); \ 481 #define UPDATE_EXTEND_STAT(s) \ argument 483 ADD_EXTEND_64(pstats->mac_stx[1].s##_hi, \ [all …]
|
| /dpdk/lib/stack/ |
| H A D | rte_stack.h | 101 * @param s 111 rte_stack_push(struct rte_stack *s, void * const *obj_table, unsigned int n) in rte_stack_push() argument 113 RTE_ASSERT(s != NULL); in rte_stack_push() 116 if (s->flags & RTE_STACK_F_LF) in rte_stack_push() 117 return __rte_stack_lf_push(s, obj_table, n); in rte_stack_push() 119 return __rte_stack_std_push(s, obj_table, n); in rte_stack_push() 125 * @param s 135 rte_stack_pop(struct rte_stack *s, void **obj_table, unsigned int n) in rte_stack_pop() argument 137 RTE_ASSERT(s != NULL); in rte_stack_pop() 140 if (s in rte_stack_pop() 155 rte_stack_count(struct rte_stack * s) rte_stack_count() argument 174 rte_stack_free_count(struct rte_stack * s) rte_stack_free_count() argument [all...] |
| H A D | rte_stack.c | 28 rte_stack_init(struct rte_stack *s, unsigned int count, uint32_t flags) in EAL_REGISTER_TAILQ() 30 memset(s, 0, sizeof(*s)); in EAL_REGISTER_TAILQ() 33 rte_stack_lf_init(s, count); in EAL_REGISTER_TAILQ() 35 rte_stack_std_init(s); in EAL_REGISTER_TAILQ() 55 struct rte_stack *s; in rte_stack_create() local 94 0, alignof(typeof(*s))); in rte_stack_create() 102 s = mz->addr; in rte_stack_create() 104 rte_stack_init(s, count, flags); in rte_stack_create() 107 ret = strlcpy(s->name, name, sizeof(s->name)); in rte_stack_create() 108 if (ret < 0 || ret >= (int)sizeof(s->name)) { in rte_stack_create() [all …]
|
| H A D | rte_stack_std.h | 23 __rte_stack_std_push(struct rte_stack *s, void * const *obj_table, in __rte_stack_std_push() argument 26 struct rte_stack_std *stack = &s->stack_std; in __rte_stack_std_push() 34 if ((stack->len + n) > s->capacity) { in __rte_stack_std_push() 62 __rte_stack_std_pop(struct rte_stack *s, void **obj_table, unsigned int n) in __rte_stack_std_pop() argument 64 struct rte_stack_std *stack = &s->stack_std; in __rte_stack_std_pop() 96 __rte_stack_std_count(struct rte_stack *s) in __rte_stack_std_count() argument 98 return (unsigned int)s->stack_std.len; in __rte_stack_std_count() 108 rte_stack_std_init(struct rte_stack *s);
|
| /dpdk/lib/net/ |
| H A D | rte_ether.c | 44 const char *s = s0; in get_ether_addr6() local 50 x = get_xdigit(*s++); in get_ether_addr6() 55 if (*s != sep && *s != '\0') { in get_ether_addr6() 56 x = get_xdigit(*s++); in get_ether_addr6() 64 *s++ != sep) in get_ether_addr6() 69 return *s == '\0'; in get_ether_addr6() 73 static bool get_ether_addr3(const char *s, struct rte_ether_addr *ea, in get_ether_addr3() argument 84 x = get_xdigit(*s++); in get_ether_addr3() 94 *s++ != sep) in get_ether_addr3() 98 return *s == '\0'; in get_ether_addr3() [all …]
|
| /dpdk/drivers/net/cxgbe/ |
| H A D | smt.c | 13 struct smt_data *s = adap->smt; in cxgbe_do_smt_write_rpl() local 16 struct smt_entry *e = &s->smtab[smtidx]; in cxgbe_do_smt_write_rpl() 32 struct smt_data *s = adap->smt; in write_smt_entry() local 65 rte_memcpy(req->src_mac0, s->smtab[e->idx - 1].src_mac, in write_smt_entry() 76 rte_memcpy(req->src_mac1, s->smtab[e->idx + 1].src_mac, in write_smt_entry() 90 rte_memcpy(t6req->src_mac0, s->smtab[e->idx].src_mac, in write_smt_entry() 117 static struct smt_entry *find_or_alloc_smte(struct smt_data *s, u8 *smac) in find_or_alloc_smte() argument 121 for (e = &s->smtab[0], end = &s->smtab[s->smt_size]; e != end; ++e) { in find_or_alloc_smte() 151 struct smt_data *s = adap->smt; in t4_smt_alloc_switching() local 155 t4_os_write_lock(&s->lock); in t4_smt_alloc_switching() [all …]
|
| /dpdk/lib/cmdline/ |
| H A D | cmdline_parse_string.c | 27 get_token_len(const char *s) in get_token_len() argument 32 c = s[i]; in get_token_len() 35 c = s[i]; in get_token_len() 41 get_next_token(const char *s) in get_next_token() argument 44 i = get_token_len(s); in get_next_token() 45 if (s[i] == '#') in get_next_token() 46 return s+i+1; in get_next_token() 163 const char *s; in cmdline_complete_get_elt_string() local 172 s = sd->str; in cmdline_complete_get_elt_string() 174 while (idx-- && s) in cmdline_complete_get_elt_string() [all …]
|
| /dpdk/lib/hash/ |
| H A D | rte_jhash.h | 32 * These are the credits from Bob's sources: 39 * if SELF_TEST is defined. You can use this free for any purpose. It's in 96 const uint32_t s = 0; in __rte_jhash_2hashes() local 99 const uint32_t s = ((uintptr_t)key & 3) * CHAR_BIT; in __rte_jhash_2hashes() local 101 if (!check_align || s == 0) { in __rte_jhash_2hashes() 147 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes() 148 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes() 149 c += BIT_SHIFT(k[2], k[3], s); in __rte_jhash_2hashes() 159 a += BIT_SHIFT(k[0], k[1], s); in __rte_jhash_2hashes() 160 b += BIT_SHIFT(k[1], k[2], s); in __rte_jhash_2hashes() [all...] |
| /dpdk/drivers/event/opdl/ |
| H A D | opdl_ring.h | 192 opdl_stage_set_deps(struct opdl_stage *s, struct opdl_stage *deps[], 205 opdl_stage_get_opdl_ring(const struct opdl_stage *s); 254 opdl_ring_copy_from_burst(struct opdl_ring *t, struct opdl_stage *s, 280 opdl_ring_copy_to_burst(struct opdl_ring *t, struct opdl_stage *s, 311 opdl_stage_claim(struct opdl_stage *s, void *entries, 315 opdl_stage_deps_add(struct opdl_ring *t, struct opdl_stage *s, 367 opdl_stage_claim_check(struct opdl_stage *s, void **entries, 403 opdl_stage_claim_copy(struct opdl_stage *s, void *entries, 433 opdl_stage_disclaim(struct opdl_stage *s, uint32_t num_entries, 463 opdl_stage_disclaim_n(struct opdl_stage *s, uint32_t num_entries, [all …]
|
| /dpdk/drivers/mempool/stack/ |
| H A D | rte_mempool_stack.c | 13 struct rte_stack *s; in __stack_alloc() local 23 s = rte_stack_create(name, mp->size, mp->socket_id, flags); in __stack_alloc() 24 if (s == NULL) in __stack_alloc() 27 mp->pool_data = s; in __stack_alloc() 48 struct rte_stack *s = mp->pool_data; in stack_enqueue() local 50 return rte_stack_push(s, obj_table, n) == 0 ? -ENOBUFS : 0; in stack_enqueue() 57 struct rte_stack *s = mp->pool_data; in stack_dequeue() local 59 return rte_stack_pop(s, obj_table, n) == 0 ? -ENOBUFS : 0; in stack_dequeue() 65 struct rte_stack *s = mp->pool_data; in stack_get_count() local 67 return rte_stack_count(s); in stack_get_count() [all …]
|
| /dpdk/lib/eal/common/ |
| H A D | rte_service.c | 172 service_mt_safe(struct rte_service_spec_impl *s) 174 return !!(s->spec.capabilities & RTE_SERVICE_CAP_MT_SAFE); in service_stats_enabled() 180 struct rte_service_spec_impl *s; in service_mt_safe() 181 SERVICE_VALID_GET_OR_ERR_RET(id, s, 0); in service_mt_safe() 184 s->internal_flags |= SERVICE_F_STATS_ENABLED; 186 s->internal_flags &= ~(SERVICE_F_STATS_ENABLED); in rte_service_set_stats_enable() 194 struct rte_service_spec_impl *s; in rte_service_set_stats_enable() 195 SERVICE_VALID_GET_OR_ERR_RET(id, s, 0); in rte_service_set_stats_enable() 198 s->internal_flags |= SERVICE_F_START_CHECK; 200 s in rte_service_set_runstate_mapped_check() 179 service_mt_safe(struct rte_service_spec_impl * s) service_mt_safe() argument 187 struct rte_service_spec_impl *s; rte_service_set_stats_enable() local 201 struct rte_service_spec_impl *s; rte_service_set_runstate_mapped_check() local 239 struct rte_service_spec_impl *s; rte_service_get_name() local 247 struct rte_service_spec_impl *s; rte_service_probe_capability() local 272 struct rte_service_spec_impl *s = &rte_services[free_slot]; rte_service_component_register() local 290 struct rte_service_spec_impl *s; rte_service_component_unregister() local 309 struct rte_service_spec_impl *s; rte_service_component_runstate_set() local 329 struct rte_service_spec_impl *s; rte_service_runstate_set() local 350 struct rte_service_spec_impl *s; rte_service_runstate_get() local 373 service_runner_do_callback(struct rte_service_spec_impl * s,struct core_state * cs,uint32_t service_idx) service_runner_do_callback() argument 414 service_run(uint32_t i,struct core_state * cs,uint64_t service_mask,struct rte_service_spec_impl * s,uint32_t serialize_mt_unsafe) service_run() argument 468 struct rte_service_spec_impl *s; rte_service_run_iter_on_app_lcore() local 991 struct rte_service_spec_impl *s; service_dump_one() local 1033 struct rte_service_spec_impl *s; rte_service_dump() local [all...] |
| /dpdk/lib/eal/windows/include/ |
| H A D | sched.h | 33 #define CPU_SET(b, s) ((s)->_bits[_WHICH_SET(b)] |= (1LL << _WHICH_BIT(b))) argument 35 #define CPU_ZERO(s) \ argument 40 (s)->_bits[_i] = 0LL; \ 43 #define CPU_ISSET(b, s) (((s)->_bits[_WHICH_SET(b)] & \ argument 47 count_cpu(const rte_cpuset_t *s) in count_cpu() argument 53 if (CPU_ISSET(_i, s) != 0LL) in count_cpu() 57 #define CPU_COUNT(s) count_cpu(s) argument 75 #define CPU_FILL(s) \ argument 79 (s)->_bits[_i] = -1LL; \
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cn10k_tls_ops.h | 42 if (write_sa->w2.s.iv_at_cptr == ROC_IE_OT_TLS_IV_SRC_FROM_SA) { in process_tls_write() 46 if (write_sa->w2.s.cipher_select == ROC_IE_OT_TLS_CIPHER_AES_GCM) { in process_tls_write() 62 } else if (write_sa->w2.s.cipher_select == ROC_IE_OT_TLS_CIPHER_AES_CBC) { in process_tls_write() 70 } else if (write_sa->w2.s.cipher_select == ROC_IE_OT_TLS_CIPHER_3DES) { in process_tls_write() 99 w4.s.param1 = m_src->data_len; in process_tls_write() 100 w4.s.dlen = m_src->data_len; in process_tls_write() 102 w4.s.param2 = cop->param1.tls_record.content_type; in process_tls_write() 103 w4.s.opcode_minor = pad_len; in process_tls_write() 153 w4.s.dlen = dlen; in process_tls_write() 154 w4.s.param1 = rte_pktmbuf_pkt_len(m_src); in process_tls_write() [all …]
|
| H A D | cnxk_sg.h | 16 to->u.s.len[i % 4] = rte_cpu_to_be_16(size); in fill_sg_comp() 26 to->u.s.len[i % 4] = rte_cpu_to_be_16(from->size); in fill_sg_comp_from_buf() 40 to->u.s.len[i % 4] = rte_cpu_to_be_16(e_len); in fill_sg_comp_from_buf_min() 79 to->u.s.len[i % 4] = rte_cpu_to_be_16(e_len); in fill_sg_comp_from_iov() 92 to->u.s.len[i % 4] = rte_cpu_to_be_16(e_len); in fill_sg_comp_from_iov() 100 to->u.s.len[i % 4] = rte_cpu_to_be_16(extra_len); in fill_sg_comp_from_iov() 110 to->u.s.len[i % 4] = rte_cpu_to_be_16(next_len); in fill_sg_comp_from_iov() 142 to->u.s.len[i % 4] = rte_cpu_to_be_16(buf_sz); in fill_sg_comp_from_pkt() 163 to->u.s.len[i % 3] = buf_sz; in fill_sg2_comp_from_pkt() 165 to->u.s.valid_segs = (i % 3) + 1; in fill_sg2_comp_from_pkt() [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | bitalloc.h | 21 #define BA_L0(s) (((s) + 31) / 32) argument 22 #define BA_L1(s) ((BA_L0(s) + 31) / 32) argument 23 #define BA_L2(s) ((BA_L1(s) + 31) / 32) argument 24 #define BA_L3(s) ((BA_L2(s) + 31) / 32) argument 25 #define BA_L4(s) ((BA_L3(s) + 31) / 32) argument
|
| /dpdk/lib/bpf/ |
| H A D | bpf_validate.c | 24 } s; member 153 rv->s.max = mask >> 1; in eval_smax_bound() 154 rv->s.min = rv->s.max ^ UINT64_MAX; in eval_smax_bound() 176 rv->s.min = val; in eval_fill_imm64() 177 rv->s.max = val; in eval_fill_imm64() 233 rv->s.max = RTE_MIN(rt.s.max, rv->s.max); in eval_apply_mask() 234 rv->s.min = RTE_MAX(rt.s.min, rv->s.min); in eval_apply_mask() 246 rv.s.min = (rd->s.min + rs->s.min) & msk; in eval_add() 247 rv.s.max = (rd->s.max + rs->s.max) & msk; in eval_add() 257 if ((rd->s.min != rd->s.max || rs->s.min != rs->s.max) && in eval_add() [all …]
|
| /dpdk/lib/eal/x86/ |
| H A D | rte_power_intrinsics.c | 30 * Intel(R) 64 and IA-32 Architectures Software Developer's Manual. in intel_umonitor() 66 * AMD64 Architecture Programmer’s Manual. in amd_monitorx() 153 * Intel(R) 64 and IA-32 Architectures Software Developer's Manual. in rte_power_monitor() 160 struct power_wait_status *s; in rte_power_monitor() 163 /* prevent user from running this instruction if it's not supported */ in rte_power_monitor() 180 s = RTE_LCORE_VAR_LCORE(lcore_id, wait_status); in rte_power_monitor() 183 rte_spinlock_lock(&s->lock); in rte_power_monitor() 184 s->monitor_addr = pmc->addr; in rte_power_monitor() 190 rte_spinlock_unlock(&s->lock); in rte_power_monitor() 203 rte_spinlock_lock(&s in rte_power_monitor() 155 struct power_wait_status *s; rte_power_monitor() local 257 struct power_wait_status *s; rte_power_monitor_wakeup() local 307 struct power_wait_status *s = &wait_status[lcore_id]; rte_power_monitor_multi() local [all...] |
| /dpdk/drivers/bus/fslmc/qbman/include/ |
| H A D | fsl_qbman_portal.h | 263 int qbman_swp_dequeue_thresh(struct qbman_swp *s, unsigned int thresh); 264 int qbman_swp_dequeue_set_timeout(struct qbman_swp *s, unsigned int timeout); 265 int qbman_swp_dequeue_get_timeout(struct qbman_swp *s, unsigned int *timeout); 284 void qbman_swp_push_get(struct qbman_swp *s, uint8_t channel_idx, int *enabled); 298 void qbman_swp_push_set(struct qbman_swp *s, uint8_t channel_idx, int enable); 424 int qbman_swp_pull(struct qbman_swp *s, struct qbman_pull_desc *d); 446 void qbman_swp_prefetch_dqrr_next(struct qbman_swp *s); 455 void qbman_swp_dqrr_consume(struct qbman_swp *s, const struct qbman_result *dq); 463 void qbman_swp_dqrr_idx_consume(struct qbman_swp *s, uint8_t dqrr_index); 483 struct qbman_result *qbman_get_dqrr_from_idx(struct qbman_swp *s, uint8_t idx); [all …]
|
| /dpdk/drivers/net/thunderx/base/ |
| H A D | nicvf_plat.h | 14 #define nicvf_log_error(s, ...) PMD_DRV_LOG(ERR, s, ##__VA_ARGS__) argument 16 #define nicvf_log_debug(s, ...) PMD_DRV_LOG(DEBUG, s, ##__VA_ARGS__) argument 18 #define nicvf_mbox_log(s, ...) PMD_MBOX_LOG(DEBUG, s, ##__VA_ARGS__) argument 20 #define nicvf_log(s, ...) fprintf(stderr, s, ##__VA_ARGS__) argument
|