| /dpdk/lib/argparse/ |
| H A D | rte_argparse.c | 21 is_arg_optional(const struct rte_argparse_arg *arg) 23 return arg->name_long[0] == '-'; 27 is_arg_positional(const struct rte_argparse_arg *arg) in is_arg_optional() 29 return arg->name_long[0] != '-'; 33 arg_attr_has_val(const struct rte_argparse_arg *arg) in is_arg_positional() 35 return RTE_FIELD_GET64(RTE_ARGPARSE_HAS_VAL_BITMASK, arg->flags); 39 arg_attr_val_type(const struct rte_argparse_arg *arg) in arg_attr_has_val() 41 return RTE_FIELD_GET64(RTE_ARGPARSE_VAL_TYPE_BITMASK, arg->flags); 45 arg_attr_flag_multi(const struct rte_argparse_arg *arg) in arg_attr_val_type() 47 return RTE_FIELD_GET64(RTE_ARGPARSE_ARG_SUPPORT_MULTI, arg 24 is_arg_optional(const struct rte_argparse_arg * arg) is_arg_optional() argument 30 is_arg_positional(const struct rte_argparse_arg * arg) is_arg_positional() argument 36 arg_attr_has_val(const struct rte_argparse_arg * arg) arg_attr_has_val() argument 42 arg_attr_val_type(const struct rte_argparse_arg * arg) arg_attr_val_type() argument 48 arg_attr_flag_multi(const struct rte_argparse_arg * arg) arg_attr_flag_multi() argument 54 arg_attr_unused_bits(const struct rte_argparse_arg * arg) arg_attr_unused_bits() argument 62 verify_arg_name(const struct rte_argparse_arg * arg) verify_arg_name() argument 101 verify_arg_help(const struct rte_argparse_arg * arg) verify_arg_help() argument 112 verify_arg_has_val(const struct rte_argparse_arg * arg) verify_arg_has_val() argument 137 const struct rte_argparse_arg *arg = &obj->args[index]; verify_arg_saver() local 174 const struct rte_argparse_arg *arg = &obj->args[index]; verify_arg_flags() local 209 const struct rte_argparse_arg *arg = &self->args[index]; verify_arg_repeat() local 237 const struct rte_argparse_arg *arg = &obj->args[index]; verify_argparse_arg() local 304 const struct rte_argparse_arg *arg; calc_position_count() local 322 struct rte_argparse_arg *arg; find_position_arg() local 341 is_arg_match(struct rte_argparse_arg * arg,const char * curr_argv,uint32_t len) is_arg_match() argument 360 struct rte_argparse_arg *arg; find_option_arg() local 380 parse_arg_int(struct rte_argparse_arg * arg,const char * value) parse_arg_int() argument 405 parse_arg_u8(struct rte_argparse_arg * arg,const char * value) parse_arg_u8() argument 433 parse_arg_u16(struct rte_argparse_arg * arg,const char * value) parse_arg_u16() argument 461 parse_arg_u32(struct rte_argparse_arg * arg,const char * value) parse_arg_u32() argument 489 parse_arg_u64(struct rte_argparse_arg * arg,const char * value) parse_arg_u64() argument 517 parse_arg_autosave(struct rte_argparse_arg * arg,const char * value) parse_arg_autosave() argument 540 parse_arg_val(struct rte_argparse * obj,struct rte_argparse_arg * arg,char * value) parse_arg_val() argument 566 struct rte_argparse_arg *arg; parse_args() local 646 const struct rte_argparse_arg *arg; calc_help_align() local 667 show_oneline_help(const struct rte_argparse_arg * arg,uint32_t width) show_oneline_help() argument 686 const struct rte_argparse_arg *arg; show_args_pos_help() local 711 const struct rte_argparse_arg *arg; show_args_opt_help() local 775 struct rte_argparse_arg arg = { rte_argparse_parse_type() local [all...] |
| /dpdk/app/test-mldev/ |
| H A D | ml_options.c | 17 typedef int (*option_parser_t)(struct ml_options *opt, const char *arg); 43 ml_parse_test_name(struct ml_options *opt, const char *arg) in ml_parse_test_name() argument 45 strlcpy(opt->test_name, arg, ML_TEST_NAME_MAX_LEN); in ml_parse_test_name() 51 ml_parse_dev_id(struct ml_options *opt, const char *arg) in ml_parse_dev_id() argument 55 ret = parser_read_int16(&opt->dev_id, arg); in ml_parse_dev_id() 57 ml_err("Invalid option: dev_id = %s\n", arg); in ml_parse_dev_id() 63 ml_parse_socket_id(struct ml_options *opt, const char *arg) in ml_parse_socket_id() argument 67 ret = parser_read_int32(&opt->socket_id, arg); in ml_parse_socket_id() 69 ml_err("Invalid option: socket_id = %s\n", arg); in ml_parse_socket_id() 75 ml_parse_models(struct ml_options *opt, const char *arg) in ml_parse_models() argument [all …]
|
| /dpdk/app/test-compress-perf/ |
| H A D | comp_perf_options_parse.c | 94 parse_cperf_test_type(struct comp_test_data *test_data, const char *arg) in parse_cperf_test_type() argument 113 RTE_DIM(cperftest_namemap), arg); in parse_cperf_test_type() 125 parse_uint32_t(uint32_t *value, const char *arg) in parse_uint32_t() argument 128 unsigned long n = strtoul(arg, &end, 10); in parse_uint32_t() 142 parse_uint16_t(uint16_t *value, const char *arg) in parse_uint16_t() argument 145 int ret = parse_uint32_t(&val, arg); in parse_uint16_t() 159 parse_uint8_t(uint8_t *value, const char *arg) in parse_uint8_t() argument 162 int ret = parse_uint32_t(&val, arg); in parse_uint8_t() 176 parse_range(const char *arg, uint8_t *min, uint8_t *max, uint8_t *inc) in parse_range() argument 181 char *copy_arg = strdup(arg); in parse_range() [all …]
|
| /dpdk/lib/eal/include/ |
| H A D | rte_memory.h | 168 const struct rte_memseg *ms, void *arg); 180 const struct rte_memseg *ms, size_t len, void *arg); 191 void *arg); 204 * @param arg 212 rte_memseg_walk(rte_memseg_walk_t func, void *arg); 225 * @param arg 233 rte_memseg_contig_walk(rte_memseg_contig_walk_t func, void *arg); 246 * @param arg 254 rte_memseg_list_walk(rte_memseg_list_walk_t func, void *arg) 265 * @param arg [all...] |
| H A D | rte_lcore.h | 235 * @param arg 241 typedef int (*rte_lcore_init_cb)(unsigned int lcore_id, void *arg); 248 * @param arg 251 typedef void (*rte_lcore_uninit_cb)(unsigned int lcore_id, void *arg); 273 * @param arg 283 rte_lcore_uninit_cb uninit, void *arg); 303 * @param arg 309 typedef int (*rte_lcore_iterate_cb)(unsigned int lcore_id, void *arg); 321 * @param arg 328 rte_lcore_iterate(rte_lcore_iterate_cb cb, void *arg); [all...] |
| /dpdk/lib/eal/windows/ |
| H A D | eal_alarm.c | 34 static int intr_thread_exec_sync(void (*func)(void *arg), void *arg); 45 alarm_callback(void *arg, DWORD low __rte_unused, DWORD high __rte_unused) in alarm_callback() argument 47 struct alarm_entry *ap = arg; in alarm_callback() 80 alarm_task_exec(void *arg) in alarm_task_exec() argument 82 struct alarm_task *task = arg; in alarm_task_exec() 233 void (*func)(void *arg); in intr_thread_entry() 234 void *arg; 239 intr_thread_entry(void *arg) in intr_thread_exec_sync() 242 struct intr_task *task = arg; in intr_thread_exec_sync() 222 void *arg; global() member 227 intr_thread_entry(void * arg) intr_thread_entry() argument 236 intr_thread_exec_sync(void (* func)(void * arg),void * arg) intr_thread_exec_sync() argument [all...] |
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_ev.c | 53 sfc_ev_initialized(void *arg) in sfc_ev_initialized() argument 55 struct sfc_evq *evq = arg; in sfc_ev_initialized() 67 sfc_ev_nop_rx(void *arg, uint32_t label, uint32_t id, in sfc_ev_nop_rx() argument 70 struct sfc_evq *evq = arg; in sfc_ev_nop_rx() 79 sfc_ev_efx_rx(void *arg, __rte_unused uint32_t label, uint32_t id, in sfc_ev_efx_rx() argument 82 struct sfc_evq *evq = arg; in sfc_ev_efx_rx() 152 sfc_ev_dp_rx(void *arg, __rte_unused uint32_t label, uint32_t id, in sfc_ev_dp_rx() argument 155 struct sfc_evq *evq = arg; in sfc_ev_dp_rx() 166 sfc_ev_nop_rx_packets(void *arg, uint32_t label, unsigned int num_packets, in sfc_ev_nop_rx_packets() argument 169 struct sfc_evq *evq = arg; in sfc_ev_nop_rx_packets() [all …]
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | rhead_ev.c | 24 __in_opt void *arg); 31 __in_opt void *arg); 38 __in_opt void *arg); 45 __in_opt void *arg); 53 __in_opt void *arg); 60 __in_opt void *arg); 68 __in_opt void *arg); 75 __in_opt void *arg); 219 __in_opt void *arg) in rhead_ev_dispatch() argument 227 should_abort = eep->ee_rx(eep, eventp, eecp, arg); in rhead_ev_dispatch() [all …]
|
| H A D | ef10_ev.c | 27 __in_opt void *arg); 34 __in_opt void *arg); 41 __in_opt void *arg); 48 __in_opt void *arg); 419 __in_opt void *arg) in ef10_ev_rx_packed_stream() argument 499 should_abort = eecp->eec_rx_ps(arg, label, current_id, pkt_count, in ef10_ev_rx_packed_stream() 512 __in_opt void *arg) in ef10_ev_rx() argument 546 return (ef10_ev_rx_packed_stream(eep, eqp, eecp, arg)); in ef10_ev_rx() 738 should_abort = eecp->eec_rx(arg, label, last_used_id, size, flags); in ef10_ev_rx() 748 __in_opt void *arg) in ef10_ev_tx() argument [all …]
|
| H A D | efx_ev.c | 77 __in_opt void *arg); 493 __in_opt void *arg) in efx_ev_qcreate_check_init_done() argument 505 (void) eecp->eec_initialized(arg); in efx_ev_qcreate_check_init_done() 513 __in_opt void *arg) in efx_ev_qpoll() argument 523 eevop->eevo_qpoll(eep, countp, eecp, arg); in efx_ev_qpoll() 733 __in_opt void *arg) in siena_ev_rx() argument 877 should_abort = eecp->eec_rx(arg, label, id, size, flags); in siena_ev_rx() 887 __in_opt void *arg) in siena_ev_tx() argument 906 should_abort = eecp->eec_tx(arg, label, id); in siena_ev_tx() 934 __in_opt void *arg) in siena_ev_global() argument [all …]
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_launch.c | 34 rte_eal_remote_launch(lcore_function_t *f, void *arg, unsigned int worker_id) in rte_eal_remote_launch() argument 45 lcore_config[worker_id].arg = arg; in rte_eal_remote_launch() 55 rte_eal_trace_thread_remote_launch(f, arg, worker_id, rc); in rte_eal_remote_launch() 65 rte_eal_mp_remote_launch(int (*f)(void *), void *arg, in rte_eal_mp_remote_launch() argument 79 rte_eal_remote_launch(f, arg, lcore_id); in rte_eal_mp_remote_launch() 83 lcore_config[main_lcore].ret = f(arg); in rte_eal_mp_remote_launch()
|
| H A D | eal_common_thread.c | 169 eal_thread_loop(void *arg) in eal_thread_loop() argument 171 unsigned int lcore_id = (uintptr_t)arg; in eal_thread_loop() 211 fct_arg = lcore_config[lcore_id].arg; in eal_thread_loop() 215 lcore_config[lcore_id].arg = NULL; in eal_thread_loop() 240 void *arg; member 248 static int control_thread_init(void *arg) in control_thread_init() argument 253 struct control_thread_params *params = arg; in control_thread_init() 273 static uint32_t control_thread_start(void *arg) in control_thread_start() argument 275 struct control_thread_params *params = arg; in control_thread_start() 276 void *start_arg = params->arg; in control_thread_start() [all …]
|
| H A D | eal_common_trace_utils.c | 138 struct trace_arg *arg = malloc(sizeof(*arg)); in eal_trace_args_save() local 140 if (arg == NULL) { in eal_trace_args_save() 145 arg->val = strdup(val); in eal_trace_args_save() 146 if (arg->val == NULL) { in eal_trace_args_save() 148 free(arg); in eal_trace_args_save() 152 STAILQ_INSERT_TAIL(&trace->args, arg, next); in eal_trace_args_save() 160 struct trace_arg *arg; in eal_trace_args_free() local 163 arg = STAILQ_FIRST(&trace->args); in eal_trace_args_free() 165 free(arg->val); in eal_trace_args_free() 166 free(arg); in eal_trace_args_free() [all …]
|
| H A D | eal_common_memalloc.c | 21 void *arg; member 45 find_mem_event_callback(const char *name, void *arg) in find_mem_event_callback() argument 50 if (!strcmp(r->name, name) && r->arg == arg) in find_mem_event_callback() 149 rte_mem_event_callback_t clb, void *arg) in eal_memalloc_mem_event_callback_register() argument 167 entry = find_mem_event_callback(name, arg); in eal_memalloc_mem_event_callback_register() 183 entry->arg = arg; in eal_memalloc_mem_event_callback_register() 190 name, arg); in eal_memalloc_mem_event_callback_register() 198 eal_memalloc_mem_event_callback_unregister(const char *name, void *arg) in eal_memalloc_mem_event_callback_unregister() argument 217 entry = find_mem_event_callback(name, arg); in eal_memalloc_mem_event_callback_unregister() 229 name, arg); in eal_memalloc_mem_event_callback_unregister() [all …]
|
| H A D | eal_common_lcore.c | 240 void *arg; member 252 return callback->init(lcore_id, callback->arg); in callback_init() 262 callback->uninit(lcore_id, callback->arg); in callback_uninit() 274 rte_lcore_uninit_cb uninit, void *arg) in rte_lcore_callback_register() argument 285 if (asprintf(&callback->name, "%s-%p", name, arg) == -1) { in rte_lcore_callback_register() 291 callback->arg = arg; in rte_lcore_callback_register() 343 callback->name, callback->arg); in rte_lcore_callback_unregister() 408 rte_lcore_iterate(rte_lcore_iterate_cb cb, void *arg) in rte_lcore_iterate() argument 418 ret = cb(lcore_id, arg); in rte_lcore_iterate() 457 lcore_dump_cb(unsigned int lcore_id, void *arg) in lcore_dump_cb() argument [all …]
|
| /dpdk/drivers/bus/dpaa/base/qbman/ |
| H A D | dpaa_sys.c | 13 irqreturn_t (*isr)(int irq, void *arg); 16 void *arg; member 65 int qbman_request_irq(int irq, irqreturn_t (*isr)(int irq, void *arg), in qbman_request_irq() argument 67 void *arg __maybe_unused) in qbman_request_irq() 78 irq_node->arg = arg; in qbman_request_irq() 83 int qbman_free_irq(int irq, __maybe_unused void *arg) in qbman_free_irq() argument 102 irq_node->isr(irq, irq_node->arg); in qbman_invoke_irq()
|
| H A D | dpaa_sys.h | 23 int qbman_request_irq(int irq, irqreturn_t (*isr)(int irq, void *arg), 24 unsigned long flags, const char *name, void *arg); 25 int qbman_free_irq(int irq, void *arg);
|
| /dpdk/app/test/ |
| H A D | test_table_pipeline.c | 17 (struct rte_mbuf **pkts, uint32_t n, uint64_t *pkts_mask, void *arg); 19 (struct rte_mbuf **pkts, uint32_t n, uint64_t *pkts_mask, void *arg); 21 (struct rte_mbuf **pkts, uint32_t n, uint64_t *pkts_mask, void *arg); 27 void *arg) 31 RTE_SET_USED(arg); 40 void *arg) 44 RTE_SET_USED(arg); 53 void *arg) 58 RTE_SET_USED(arg); 67 uint64_t pkts_mask, struct rte_pipeline_table_entry **entry, void *arg); [all …]
|
| H A D | test_func_reentrancy.c | 43 typedef int (*case_func_t)(void* arg); 69 test_eal_init_once(__rte_unused void *arg) in test_eal_init_once() argument 105 ring_create_lookup(__rte_unused void *arg) in ring_create_lookup() argument 139 my_obj_init(struct rte_mempool *mp, __rte_unused void *arg, in my_obj_init() argument 166 mempool_create_lookup(__rte_unused void *arg) in mempool_create_lookup() argument 227 hash_create_free(__rte_unused void *arg) in hash_create_free() argument 294 fbk_create_free(__rte_unused void *arg) in fbk_create_free() argument 363 lpm_create_free(__rte_unused void *arg) in lpm_create_free() argument 408 void* arg; member 450 rte_eal_remote_launch(pt_case->func, pt_case->arg, lcore_id); in launch_test() [all …]
|
| /dpdk/app/test-eventdev/ |
| H A D | test_order_atq.c | 22 order_atq_worker(void *arg, const bool flow_id_cap) in order_atq_worker() argument 56 order_atq_worker_burst(void *arg, const bool flow_id_cap) in order_atq_worker_burst() argument 100 worker_wrapper(void *arg) in worker_wrapper() argument 102 struct worker_data *w = arg; in worker_wrapper() 108 return order_atq_worker_burst(arg, true); in worker_wrapper() 110 return order_atq_worker_burst(arg, false); in worker_wrapper() 113 return order_atq_worker(arg, true); in worker_wrapper() 115 return order_atq_worker(arg, false); in worker_wrapper()
|
| H A D | test_order_queue.c | 22 order_queue_worker(void *arg, const bool flow_id_cap) in order_queue_worker() argument 56 order_queue_worker_burst(void *arg, const bool flow_id_cap) in order_queue_worker_burst() argument 101 worker_wrapper(void *arg) in worker_wrapper() argument 103 struct worker_data *w = arg; in worker_wrapper() 109 return order_queue_worker_burst(arg, true); in worker_wrapper() 111 return order_queue_worker_burst(arg, false); in worker_wrapper() 114 return order_queue_worker(arg, true); in worker_wrapper() 116 return order_queue_worker(arg, false); in worker_wrapper()
|
| H A D | test_pipeline_atq.c | 18 typedef int (*pipeline_atq_worker_t)(void *arg); 21 pipeline_atq_worker_single_stage_tx(void *arg) in pipeline_atq_worker_single_stage_tx() argument 43 pipeline_atq_worker_single_stage_fwd(void *arg) in pipeline_atq_worker_single_stage_fwd() argument 68 pipeline_atq_worker_single_stage_burst_tx(void *arg) in pipeline_atq_worker_single_stage_burst_tx() argument 95 pipeline_atq_worker_single_stage_burst_fwd(void *arg) in pipeline_atq_worker_single_stage_burst_fwd() argument 125 pipeline_atq_worker_single_stage_tx_vector(void *arg) in pipeline_atq_worker_single_stage_tx_vector() argument 148 pipeline_atq_worker_single_stage_fwd_vector(void *arg) in pipeline_atq_worker_single_stage_fwd_vector() argument 176 pipeline_atq_worker_single_stage_burst_tx_vector(void *arg) in pipeline_atq_worker_single_stage_burst_tx_vector() argument 204 pipeline_atq_worker_single_stage_burst_fwd_vector(void *arg) in pipeline_atq_worker_single_stage_burst_fwd_vector() argument 237 pipeline_atq_worker_multi_stage_tx(void *arg) in pipeline_atq_worker_multi_stage_tx() argument [all …]
|
| /dpdk/drivers/net/mlx4/ |
| H A D | meson.build | 104 foreach arg:has_sym_args 105 config.set(arg[0], cc.has_header_symbol(arg[1], arg[2], 108 foreach arg:has_member_args 109 file_prefix = '#include <' + arg[1] + '>' 110 config.set(arg[0], cc.has_member(arg[2], arg[3],
|
| /dpdk/lib/timer/ |
| H A D | rte_timer.h | 105 void *arg; /**< Argument to callback function. */ member 237 rte_timer_cb_t fct, void *arg); 274 rte_timer_cb_t fct, void *arg); 411 unsigned int tim_lcore, rte_timer_cb_t fct, void *arg); 470 typedef void (*rte_timer_stop_all_cb_t)(struct rte_timer *tim, void *arg);
|
| /dpdk/drivers/common/sfc_efx/ |
| H A D | sfc_efx_mcdi.c | 119 sfc_efx_mcdi_execute(void *arg, efx_mcdi_req_t *emrp) in sfc_efx_mcdi_execute() argument 121 struct sfc_efx_mcdi *mcdi = (struct sfc_efx_mcdi *)arg; in sfc_efx_mcdi_execute() 168 sfc_efx_mcdi_ev_cpl(void *arg) in sfc_efx_mcdi_ev_cpl() argument 170 struct sfc_efx_mcdi *mcdi = (struct sfc_efx_mcdi *)arg; in sfc_efx_mcdi_ev_cpl() 180 sfc_efx_mcdi_exception(void *arg, efx_mcdi_exception_t eme) in sfc_efx_mcdi_exception() argument 182 struct sfc_efx_mcdi *mcdi = (struct sfc_efx_mcdi *)arg; in sfc_efx_mcdi_exception() 223 sfc_efx_mcdi_logger(void *arg, efx_log_msg_t type, in sfc_efx_mcdi_logger() argument 227 struct sfc_efx_mcdi *mcdi = (struct sfc_efx_mcdi *)arg; in sfc_efx_mcdi_logger() 259 sfc_efx_mcdi_ev_proxy_response(void *arg, uint32_t handle, efx_rc_t result) in sfc_efx_mcdi_ev_proxy_response() argument 261 struct sfc_efx_mcdi *mcdi = (struct sfc_efx_mcdi *)arg; in sfc_efx_mcdi_ev_proxy_response()
|