Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 118) sorted by relevance

12345

/dpdk/lib/ring/
H A Drte_ring_elem_pvt.h22 ring[idx] = obj[i]; in __rte_ring_enqueue_elems_32()
49 ring[idx] = obj[i]; in __rte_ring_enqueue_elems_32()
52 ring[idx] = obj[i]; in __rte_ring_enqueue_elems_32()
67 ring[idx] = obj[i]; in __rte_ring_enqueue_elems_64()
82 ring[idx] = obj[i]; in __rte_ring_enqueue_elems_64()
85 ring[idx] = obj[i]; in __rte_ring_enqueue_elems_64()
156 obj[i] = ring[idx]; in __rte_ring_dequeue_elems_32()
183 obj[i] = ring[idx]; in __rte_ring_dequeue_elems_32()
186 obj[i] = ring[idx]; in __rte_ring_dequeue_elems_32()
201 obj[i] = ring[idx]; in __rte_ring_dequeue_elems_64()
[all …]
/dpdk/examples/pipeline/
H A Dobj.h22 struct obj;
45 mempool_create(struct obj *obj,
50 mempool_find(struct obj *obj,
94 link_create(struct obj *obj,
99 link_is_up(struct obj *obj, const char *name);
102 link_find(struct obj *obj, const char *name);
121 ring_create(struct obj *obj,
126 ring_find(struct obj *obj, const char *name);
138 tap_find(struct obj *obj, const char *name);
141 tap_next(struct obj *obj, struct tap *tap);
[all …]
H A Dobj.c52 struct obj { struct
110 mempool_find(struct obj *obj, const char *name) in mempool_find() argument
336 link_is_up(struct obj *obj, const char *name) in link_is_up() argument
357 link_find(struct obj *obj, const char *name) in link_find() argument
372 link_next(struct obj *obj, struct link *link) in link_next() argument
420 ring_find(struct obj *obj, const char *name) in ring_find() argument
440 tap_find(struct obj *obj, const char *name) in tap_find() argument
455 tap_next(struct obj *obj, struct tap *tap) in tap_next() argument
472 tap_create(struct obj *obj, const char *name) in tap_create() argument
581 struct obj *obj; in obj_init() local
[all …]
H A Dcli.c168 void *obj) in cmd_mempool() argument
241 void *obj) in cmd_link() argument
455 void *obj) in cmd_ring() argument
503 void *obj) in cmd_tap() argument
529 void *obj) in cmd_pipeline_create() argument
566 void *obj) in cmd_pipeline_port_in() argument
3131 obj); in cli_process()
3139 obj); in cli_process()
3147 obj); in cli_process()
3154 obj); in cli_process()
[all …]
H A Dthread.h14 struct obj *obj,
19 struct obj *obj,
H A Dmain.c137 struct obj *obj; in main() local
153 obj = obj_init(); in main()
154 if (!obj) { in main()
176 obj); in main()
179 app.conn.msg_handle_arg = obj; in main()
/dpdk/app/test/
H A Dtest_ring.h108 return rte_ring_enqueue(r, *obj); in test_ring_enqueue()
110 return rte_ring_sp_enqueue(r, *obj); in test_ring_enqueue()
112 return rte_ring_mp_enqueue(r, *obj); in test_ring_enqueue()
114 return rte_ring_enqueue_bulk(r, obj, n, NULL); in test_ring_enqueue()
120 return rte_ring_enqueue_burst(r, obj, n, NULL); in test_ring_enqueue()
132 return rte_ring_enqueue_elem(r, obj, esize); in test_ring_enqueue()
169 return rte_ring_dequeue(r, obj); in test_ring_dequeue()
171 return rte_ring_sc_dequeue(r, obj); in test_ring_dequeue()
173 return rte_ring_mc_dequeue(r, obj); in test_ring_dequeue()
175 return rte_ring_dequeue_bulk(r, obj, n, NULL); in test_ring_dequeue()
[all …]
H A Dtest_mempool.c69 uint32_t *objnum = obj; in my_obj_init()
81 void *obj, *obj2; in test_mempool_basic() local
121 if (rte_mempool_virt2iova(obj) != rte_mem_virt2iova(obj)) in test_mempool_basic()
161 obj = objtable[i]; in test_mempool_basic()
162 obj_data = obj; in test_mempool_basic()
163 objnum = obj; in test_mempool_basic()
238 void *obj = NULL; in test_mempool_single_producer() local
278 void * obj; in test_mempool_single_consumer() local
384 void **obj; in test_mempool_basic_ex() local
393 if (obj == NULL) { in test_mempool_basic_ex()
[all …]
H A Dtest_ring_mpmc_stress.c8 _st_ring_dequeue_bulk(struct rte_ring *r, void **obj, uint32_t n, in _st_ring_dequeue_bulk() argument
11 return rte_ring_mc_dequeue_bulk(r, obj, n, avail); in _st_ring_dequeue_bulk()
15 _st_ring_enqueue_bulk(struct rte_ring *r, void * const *obj, uint32_t n, in _st_ring_enqueue_bulk() argument
18 return rte_ring_mp_enqueue_bulk(r, obj, n, free); in _st_ring_enqueue_bulk()
H A Dtest_ring_rts_stress.c8 _st_ring_dequeue_bulk(struct rte_ring *r, void **obj, uint32_t n, in _st_ring_dequeue_bulk() argument
11 return rte_ring_mc_rts_dequeue_bulk(r, obj, n, avail); in _st_ring_dequeue_bulk()
15 _st_ring_enqueue_bulk(struct rte_ring *r, void * const *obj, uint32_t n, in _st_ring_enqueue_bulk() argument
18 return rte_ring_mp_rts_enqueue_bulk(r, obj, n, free); in _st_ring_enqueue_bulk()
H A Dtest_ring_hts_stress.c8 _st_ring_dequeue_bulk(struct rte_ring *r, void **obj, uint32_t n, in _st_ring_dequeue_bulk() argument
11 return rte_ring_mc_hts_dequeue_bulk(r, obj, n, avail); in _st_ring_dequeue_bulk()
15 _st_ring_enqueue_bulk(struct rte_ring *r, void * const *obj, uint32_t n, in _st_ring_enqueue_bulk() argument
18 return rte_ring_mp_hts_enqueue_bulk(r, obj, n, free); in _st_ring_enqueue_bulk()
/dpdk/drivers/bus/dpaa/include/
H A Ddpaa_rbtree.h55 obj->node_field.prev = obj->node_field.next = NULL; \
64 tree->head = &obj->node_field; \
67 obj->node_field.prev = node->prev; \
68 obj->node_field.next = node; \
69 node->prev = &obj->node_field; \
74 obj->node_field.prev = tree->tail; \
75 obj->node_field.next = NULL; \
76 tree->tail->next = &obj->node_field; \
77 tree->tail = &obj->node_field; \
98 obj->node_field.prev->next = obj->node_field.next; \
[all …]
/dpdk/lib/dmadev/
H A Drte_dmadev.h863 RTE_FUNC_PTR_OR_ERR_RET(*obj->copy, -ENOTSUP); in rte_dma_copy()
866 return (*obj->copy)(obj->dev_private, vchan, src, dst, length, flags); in rte_dma_copy()
917 return (*obj->copy_sg)(obj->dev_private, vchan, src, dst, nb_src, in rte_dma_copy_sg()
960 RTE_FUNC_PTR_OR_ERR_RET(*obj->fill, -ENOTSUP); in rte_dma_fill()
963 return (*obj->fill)(obj->dev_private, vchan, pattern, dst, length, in rte_dma_fill()
993 RTE_FUNC_PTR_OR_ERR_RET(*obj->submit, -ENOTSUP); in rte_dma_submit()
996 return (*obj->submit)(obj->dev_private, vchan); in rte_dma_submit()
1034 RTE_FUNC_PTR_OR_ERR_RET(*obj->completed, 0); in rte_dma_completed()
1051 return (*obj->completed)(obj->dev_private, vchan, nb_cpls, last_idx, in rte_dma_completed()
1100 return (*obj->completed_status)(obj->dev_private, vchan, nb_cpls, in rte_dma_completed_status()
[all …]
/dpdk/drivers/common/mlx5/windows/
H A Dmlx5_common_os.c67 mlx5_devx_cmd_destroy(pd->obj); in mlx5_os_pd_release()
90 if (!obj) { in mlx5_os_pd_prepare()
94 pd->obj = obj; in mlx5_os_pd_prepare()
95 pd->pdn = obj->id; in mlx5_os_pd_prepare()
353 void *obj; in mlx5_os_reg_mr() local
363 if (!obj) in mlx5_os_reg_mr()
376 claim_zero(mlx5_os_umem_dereg(obj)); in mlx5_os_reg_mr()
381 pmd_mr->obj = obj; in mlx5_os_reg_mr()
400 if (pmd_mr->obj) in mlx5_os_dereg_mr()
438 wpmd_mr->obj = pmd_mr.obj; in mlx5_os_wrapped_mkey_create()
[all …]
H A Dmlx5_win_ext.h19 struct devx_obj_handle *obj; member
29 void *obj; member
41 #define GET_OBJ_CTX(obj) (((mlx5_devx_obj_st *)obj)->devx_ctx) argument
H A Dmlx5_glue.c143 devx_obj->obj = devx_obj_create(devx_obj->devx_ctx, in mlx5_glue_devx_obj_create()
145 if (DEVX_IS_ERR(devx_obj->obj)) { in mlx5_glue_devx_obj_create()
146 errno = -DEVX_PTR_ERR(devx_obj->obj); in mlx5_glue_devx_obj_create()
154 mlx5_glue_devx_obj_destroy(void *obj) in mlx5_glue_devx_obj_destroy() argument
158 if (!obj) in mlx5_glue_devx_obj_destroy()
160 devx_obj = obj; in mlx5_glue_devx_obj_destroy()
161 int rc = devx_obj_destroy(devx_obj->obj); in mlx5_glue_devx_obj_destroy()
177 mlx5_glue_devx_obj_query(void *obj, in mlx5_glue_devx_obj_query() argument
181 return devx_cmd(GET_OBJ_CTX(obj), in, inlen, out, outlen); in mlx5_glue_devx_obj_query()
185 mlx5_glue_devx_obj_modify(void *obj, in mlx5_glue_devx_obj_modify() argument
[all …]
/dpdk/drivers/net/i40e/base/
H A Di40e_lan_hmc.c107 obj->cnt = txq_num; in i40e_init_lan_hmc()
108 obj->base = 0; in i40e_init_lan_hmc()
122 full_obj->cnt += obj->cnt; in i40e_init_lan_hmc()
127 obj->cnt = rxq_num; in i40e_init_lan_hmc()
131 obj->base = i40e_align_l2obj_base(obj->base); in i40e_init_lan_hmc()
145 full_obj->cnt += obj->cnt; in i40e_init_lan_hmc()
150 obj->cnt = fcoe_cntx_num; in i40e_init_lan_hmc()
154 obj->base = i40e_align_l2obj_base(obj->base); in i40e_init_lan_hmc()
168 full_obj->cnt += obj->cnt; in i40e_init_lan_hmc()
173 obj->cnt = fcoe_filt_num; in i40e_init_lan_hmc()
[all …]
/dpdk/drivers/net/af_xdp/
H A Dcompat.h64 static int load_program(const char *prog_path, struct bpf_object **obj) in load_program() argument
69 *obj = bpf_object__open_file(prog_path, NULL); in load_program()
70 err = libbpf_get_error(*obj); in load_program()
74 err = bpf_object__load(*obj); in load_program()
78 prog = bpf_object__next_program(*obj, NULL); in load_program()
85 bpf_object__close(*obj); in load_program()
89 static int load_program(const char *prog_path, struct bpf_object **obj) in load_program() argument
93 ret = bpf_prog_load(prog_path, BPF_PROG_TYPE_XDP, obj, &prog_fd); in load_program()
/dpdk/app/test-crypto-perf/
H A Dcperf_test_common.c21 void *obj, uint32_t mbuf_offset, uint16_t segment_sz, in fill_single_seg_mbuf() argument
29 m->buf_iova = rte_mempool_virt2iova(obj) + in fill_single_seg_mbuf()
48 void *obj, uint32_t mbuf_offset, uint16_t segment_sz, in fill_multi_seg_mbuf() argument
87 void *obj, __rte_unused unsigned int i) in mempool_asym_obj_init() argument
89 struct rte_crypto_op *op = obj; in mempool_asym_obj_init()
95 op->phys_addr = rte_mem_virt2iova(obj); in mempool_asym_obj_init()
102 void *obj, in mempool_obj_init() argument
106 struct rte_crypto_op *op = obj; in mempool_obj_init()
113 op->phys_addr = rte_mem_virt2iova(obj); in mempool_obj_init()
123 fill_multi_seg_mbuf(m, mp, obj, params->src_buf_offset, in mempool_obj_init()
[all …]
/dpdk/examples/cmdline/
H A Dcommands.c63 struct object *obj; member
73 if (res->obj->ip.family == AF_INET) in cmd_obj_del_show_parsed()
75 NIPQUAD(res->obj->ip.addr.ipv4)); in cmd_obj_del_show_parsed()
78 NIP6(res->obj->ip.addr.ipv6)); in cmd_obj_del_show_parsed()
81 SLIST_REMOVE(&global_obj_list, res->obj, object, next); in cmd_obj_del_show_parsed()
83 res->obj->name, ip_str); in cmd_obj_del_show_parsed()
84 free(res->obj); in cmd_obj_del_show_parsed()
88 res->obj->name, ip_str); in cmd_obj_del_show_parsed()
96 TOKEN_OBJ_LIST_INITIALIZER(struct cmd_obj_del_show_result, obj,
/dpdk/lib/jobstats/
H A Drte_jobstats.c16 #define ADD_TIME_MIN_MAX(obj, type, value) do { \ argument
18 (obj)->type ## _time += tmp; \
19 if (tmp < (obj)->min_ ## type ## _time) \
20 (obj)->min_ ## type ## _time = tmp; \
21 if (tmp > (obj)->max_ ## type ## _time) \
22 (obj)->max_ ## type ## _time = tmp; \
25 #define RESET_TIME_MIN_MAX(obj, type) do { \ argument
26 (obj)->type ## _time = 0; \
27 (obj)->min_ ## type ## _time = UINT64_MAX; \
28 (obj)->max_ ## type ## _time = 0; \
/dpdk/lib/mempool/
H A Drte_mempool_ops_default.c79 check_obj_bounds(char *obj, size_t pg_sz, size_t elt_sz) in check_obj_bounds() argument
85 if (RTE_PTR_ALIGN(obj, pg_sz) != RTE_PTR_ALIGN(obj + elt_sz - 1, pg_sz)) in check_obj_bounds()
100 void *obj; in rte_mempool_op_populate_helper() local
127 obj = va + off; in rte_mempool_op_populate_helper()
128 obj_cb(mp, obj_cb_arg, obj, in rte_mempool_op_populate_helper()
130 rte_mempool_ops_enqueue_bulk(mp, &obj, 1); in rte_mempool_op_populate_helper()
/dpdk/drivers/net/mlx5/
H A Dmlx5_trigger.c67 if (!txq_ctrl->obj) { in mlx5_txq_start()
77 txq_ctrl->obj = NULL; in mlx5_txq_start()
186 if (!rxq_ctrl->obj) { in mlx5_rxq_ctrl_prepare()
237 rxq_ctrl->obj = NULL; in mlx5_rxq_start()
307 if (!txq_ctrl->obj) { in mlx5_hairpin_auto_bind()
422 if (txq_ctrl->obj == NULL || txq_ctrl->obj->sq == NULL) { in mlx5_hairpin_queue_peer_update()
453 if (rxq_ctrl->obj == NULL || rxq_ctrl->obj->rq == NULL) { in mlx5_hairpin_queue_peer_update()
520 if (txq_ctrl->obj == NULL || txq_ctrl->obj->sq == NULL) { in mlx5_hairpin_queue_peer_bind()
579 if (rxq_ctrl->obj == NULL || rxq_ctrl->obj->rq == NULL) { in mlx5_hairpin_queue_peer_bind()
661 if (!txq_ctrl->obj || !txq_ctrl->obj->sq) { in mlx5_hairpin_queue_peer_unbind()
[all …]
/dpdk/buildtools/
H A Dbinutils-avx512-check.py10 with tempfile.NamedTemporaryFile() as obj:
12 obj.close()
16 subprocess.run(cc + ['-c', '-xc', '-o', obj.name, '-'], input=src, check=True)
17 asm = subprocess.run([objdump, '-d', '--no-show-raw-insn', obj.name],
/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_verbs.c328 struct mlx5dv_obj obj; in mlx5_rxq_ibv_obj_new() local
352 obj.cq.in = tmpl->ibv_cq; in mlx5_rxq_ibv_obj_new()
353 obj.cq.out = &cq_info; in mlx5_rxq_ibv_obj_new()
393 obj.rwq.in = tmpl->wq; in mlx5_rxq_ibv_obj_new()
394 obj.rwq.out = &rwq; in mlx5_rxq_ibv_obj_new()
722 rxq_ctrl->obj = rxq_obj; in mlx5_rxq_ibv_obj_drop_create()
961 struct mlx5dv_obj obj; in mlx5_txq_ibv_obj_new() local
1003 obj.cq.in = txq_obj->cq; in mlx5_txq_ibv_obj_new()
1004 obj.cq.out = &cq_info; in mlx5_txq_ibv_obj_new()
1005 obj.qp.in = txq_obj->qp; in mlx5_txq_ibv_obj_new()
[all …]

12345