| /dpdk/app/test/ |
| H A D | test_hash.c | 50 if (handle) rte_hash_free(handle); \ 58 if (handle) rte_fbk_hash_free(handle); \ 306 rte_hash_free(handle); in test_add_delete() 344 rte_hash_free(handle); in test_add_delete() 409 rte_hash_free(handle); in test_add_update_delete() 487 rte_hash_free(handle); in test_add_update_delete_free() 541 rte_hash_free(handle); in test_add_delete_free_lf() 1677 if (handle == NULL) in test_hash_add_delete_2_jhash2() 1741 if (handle == NULL) in test_hash_add_delete_jhash_1word() 1775 if (handle == NULL) in test_hash_add_delete_jhash_2word() [all …]
|
| H A D | test_efd.c | 154 rte_efd_free(handle); in test_add_delete() 205 rte_efd_free(handle); in test_add_update_delete() 238 rte_efd_free(handle); in test_efd_find_existing() 323 rte_efd_free(handle); in test_five_keys() 347 if (handle == NULL) { in test_average_table_utilization() 376 rte_efd_free(handle); in test_average_table_utilization() 403 if (handle != NULL) { in test_efd_creation_with_bad_parameters() 412 if (handle != NULL) { in test_efd_creation_with_bad_parameters() 422 if (handle != NULL) { in test_efd_creation_with_bad_parameters() 433 if (handle == NULL) { in test_efd_creation_with_bad_parameters() [all …]
|
| H A D | test_func_reentrancy.c | 210 struct rte_hash *handle; in hash_clean() local 214 rte_hash_free(handle); in hash_clean() 220 rte_hash_free(handle); in hash_clean() 228 struct rte_hash *handle; in hash_create_free() local 246 if (handle != NULL) in hash_create_free() 256 if (NULL == handle) in hash_create_free() 263 rte_hash_free(handle); in hash_create_free() 281 if (handle != NULL) in fbk_clean() 282 rte_fbk_hash_free(handle); in fbk_clean() 314 if (handle != NULL) in fbk_create_free() [all …]
|
| H A D | test_lcores.c | 150 void *handle; in test_lcores_callback() local 157 if (handle != NULL) { in test_lcores_callback() 181 if (handle == NULL) { in test_lcores_callback() 190 rte_lcore_callback_unregister(handle); in test_lcores_callback() 191 handle = NULL; in test_lcores_callback() 206 if (handle != NULL) in test_lcores_callback() 220 void *handle[2] = {}; in test_non_eal_lcores_callback() local 238 if (handle[0] == NULL) { in test_non_eal_lcores_callback() 245 if (handle[1] == NULL) { in test_non_eal_lcores_callback() 336 if (handle[1] != NULL) in test_non_eal_lcores_callback() [all …]
|
| H A D | test_hash_multiwriter.c | 27 if (handle) \ 28 rte_hash_free(handle); \ 124 struct rte_hash *handle; in test_hash_multiwriter() local 138 handle = rte_hash_create(&hash_params); in test_hash_multiwriter() 139 RETURN_IF_ERROR(handle == NULL, "hash creation failed"); in test_hash_multiwriter() 141 tbl_multiwriter_test_params.h = handle; in test_hash_multiwriter() 197 count = rte_hash_count(handle); in test_hash_multiwriter() 204 while (rte_hash_iterate(handle, &next_key, &next_data, &iter) >= 0) { in test_hash_multiwriter() 245 rte_hash_free(handle); in test_hash_multiwriter() 253 rte_hash_free(handle); in test_hash_multiwriter()
|
| /dpdk/drivers/net/ark/ |
| H A D | ark_pktgen.c | 93 rte_free(handle); in ark_pktgen_uninit() 97 ark_pktgen_run(ark_pkt_gen_t handle) in ark_pktgen_run() argument 138 !ark_pktgen_paused(handle)) { in ark_pktgen_reset() 146 !ark_pktgen_paused(handle)) { in ark_pktgen_reset() 150 ark_pktgen_pause(handle); in ark_pktgen_reset() 413 ark_pktgen_set_eth_type(handle, in ark_pktgen_setup() 434 ark_pktgen_set_num_pkts(handle, in ark_pktgen_setup() 446 ark_pktgen_set_pkt_ctrl(handle, in ark_pktgen_setup() 458 ark_pktgen_pause(handle); in ark_pktgen_setup() 461 ark_pktgen_reset(handle); in ark_pktgen_setup() [all …]
|
| H A D | ark_pktchkr.c | 98 rte_free(handle); in ark_pktchkr_uninit() 102 ark_pktchkr_run(ark_pkt_chkr_t handle) in ark_pktchkr_run() argument 120 ark_pktchkr_stop(ark_pkt_chkr_t handle) in ark_pktchkr_stop() argument 391 ark_pktchkr_set_payload_byte(handle, in ark_pktchkr_setup() 393 ark_pktchkr_set_src_mac_addr(handle, in ark_pktchkr_setup() 395 ark_pktchkr_set_dst_mac_addr(handle, in ark_pktchkr_setup() 398 ark_pktchkr_set_eth_type(handle, in ark_pktchkr_setup() 418 ark_pktchkr_set_num_pkts(handle, in ark_pktchkr_setup() 426 ark_pktchkr_set_pkt_ctrl(handle, in ark_pktchkr_setup() 439 ark_pktchkr_stop(handle); in ark_pktchkr_setup() [all …]
|
| H A D | ark_pktgen.h | 55 void ark_pktgen_uninit(ark_pkt_gen_t handle); 56 void ark_pktgen_run(ark_pkt_gen_t handle); 57 void ark_pktgen_pause(ark_pkt_gen_t handle); 58 uint32_t ark_pktgen_paused(ark_pkt_gen_t handle); 59 uint32_t ark_pktgen_is_gen_forever(ark_pkt_gen_t handle); 60 uint32_t ark_pktgen_is_running(ark_pkt_gen_t handle); 61 uint32_t ark_pktgen_tx_done(ark_pkt_gen_t handle); 62 void ark_pktgen_reset(ark_pkt_gen_t handle); 63 void ark_pktgen_wait_done(ark_pkt_gen_t handle); 64 uint32_t ark_pktgen_get_pkts_sent(ark_pkt_gen_t handle); [all …]
|
| H A D | ark_pktchkr.h | 68 void ark_pktchkr_uninit(ark_pkt_chkr_t handle); 69 void ark_pktchkr_run(ark_pkt_chkr_t handle); 70 int ark_pktchkr_stopped(ark_pkt_chkr_t handle); 71 void ark_pktchkr_stop(ark_pkt_chkr_t handle); 72 int ark_pktchkr_is_running(ark_pkt_chkr_t handle); 73 int ark_pktchkr_get_pkts_sent(ark_pkt_chkr_t handle); 78 void ark_pktchkr_set_num_pkts(ark_pkt_chkr_t handle, uint32_t x); 81 void ark_pktchkr_set_eth_type(ark_pkt_chkr_t handle, uint32_t x); 84 void ark_pktchkr_setup(ark_pkt_chkr_t handle); 85 void ark_pktchkr_dump_stats(ark_pkt_chkr_t handle); [all …]
|
| H A D | ark_pktdir.c | 30 ark_pktdir_uninit(ark_pkt_dir_t handle) in ark_pktdir_uninit() argument 32 struct ark_pkt_dir_inst *inst = (struct ark_pkt_dir_inst *)handle; in ark_pktdir_uninit() 38 ark_pktdir_setup(ark_pkt_dir_t handle, uint32_t v) in ark_pktdir_setup() argument 40 struct ark_pkt_dir_inst *inst = (struct ark_pkt_dir_inst *)handle; in ark_pktdir_setup() 45 ark_pktdir_status(ark_pkt_dir_t handle) in ark_pktdir_status() argument 47 struct ark_pkt_dir_inst *inst = (struct ark_pkt_dir_inst *)handle; in ark_pktdir_status() 52 ark_pktdir_stall_cnt(ark_pkt_dir_t handle) in ark_pktdir_stall_cnt() argument 54 struct ark_pkt_dir_inst *inst = (struct ark_pkt_dir_inst *)handle; in ark_pktdir_stall_cnt()
|
| H A D | ark_pktdir.h | 36 void ark_pktdir_uninit(ark_pkt_dir_t handle); 37 void ark_pktdir_setup(ark_pkt_dir_t handle, uint32_t v); 38 uint32_t ark_pktdir_stall_cnt(ark_pkt_dir_t handle); 39 uint32_t ark_pktdir_status(ark_pkt_dir_t handle);
|
| /dpdk/drivers/event/dlb2/ |
| H A D | dlb2_iface.c | 19 int (*dlb2_iface_get_device_version)(struct dlb2_hw_dev *handle, 22 void (*dlb2_iface_hardware_init)(struct dlb2_hw_dev *handle); 24 int (*dlb2_iface_get_cq_poll_mode)(struct dlb2_hw_dev *handle, 27 int (*dlb2_iface_get_num_resources)(struct dlb2_hw_dev *handle, 35 int (*dlb2_iface_ldb_queue_create)(struct dlb2_hw_dev *handle, 38 int (*dlb2_iface_get_sn_allocation)(struct dlb2_hw_dev *handle, 44 int (*dlb2_iface_get_sn_occupancy)(struct dlb2_hw_dev *handle, 47 int (*dlb2_iface_ldb_port_create)(struct dlb2_hw_dev *handle, 51 int (*dlb2_iface_dir_port_create)(struct dlb2_hw_dev *handle, 58 int (*dlb2_iface_map_qid)(struct dlb2_hw_dev *handle, [all …]
|
| H A D | dlb2_iface.h | 18 extern int (*dlb2_iface_get_device_version)(struct dlb2_hw_dev *handle, 21 extern void (*dlb2_iface_hardware_init)(struct dlb2_hw_dev *handle); 23 extern int (*dlb2_iface_get_cq_poll_mode)(struct dlb2_hw_dev *handle, 26 extern int (*dlb2_iface_get_num_resources)(struct dlb2_hw_dev *handle, 34 extern int (*dlb2_iface_ldb_queue_create)(struct dlb2_hw_dev *handle, 37 extern int (*dlb2_iface_get_sn_allocation)(struct dlb2_hw_dev *handle, 43 extern int (*dlb2_iface_get_sn_occupancy)(struct dlb2_hw_dev *handle, 46 extern int (*dlb2_iface_ldb_port_create)(struct dlb2_hw_dev *handle, 50 extern int (*dlb2_iface_dir_port_create)(struct dlb2_hw_dev *handle, 57 extern int (*dlb2_iface_map_qid)(struct dlb2_hw_dev *handle, [all …]
|
| /dpdk/lib/cmdline/ |
| H A D | cmdline_os_windows.c | 21 HANDLE handle; in terminal_adjust() local 27 handle = GetStdHandle(STD_INPUT_HANDLE); in terminal_adjust() 28 if (GetConsoleMode(handle, &mode)) { in terminal_adjust() 39 SetConsoleMode(handle, mode); in terminal_adjust() 44 if (GetConsoleMode(handle, &mode)) { in terminal_adjust() 50 SetConsoleMode(handle, mode); in terminal_adjust() 76 cmdline_poll_char_console(HANDLE handle) in cmdline_poll_char_console() argument 95 DWORD type = GetFileType(handle); in cmdline_poll_char_file() 139 cmdline_poll_char_console(handle) : in cmdline_poll_char() 140 cmdline_poll_char_file(cl, handle); in cmdline_poll_char() [all …]
|
| /dpdk/lib/eal/include/ |
| H A D | rte_eal_trace.h | 154 rte_trace_point_emit_int(handle->dev_fd); 155 rte_trace_point_emit_int(handle->fd); 156 rte_trace_point_emit_int(handle->type); 158 rte_trace_point_emit_u32(handle->nb_efd); 167 rte_trace_point_emit_int(handle->dev_fd); 168 rte_trace_point_emit_int(handle->fd); 169 rte_trace_point_emit_int(handle->type); 180 rte_trace_point_emit_int(handle->fd); 181 rte_trace_point_emit_int(handle->type); 190 rte_trace_point_emit_int(handle->fd); [all …]
|
| /dpdk/drivers/event/dlb2/pf/ |
| H A D | dlb2_pf.c | 66 RTE_SET_USED(handle); in dlb2_pf_open() 105 RTE_SET_USED(handle); in dlb2_pf_get_cq_poll_mode() 165 handle->domain_id, in dlb2_pf_ldb_queue_create() 302 handle->domain_id, in dlb2_pf_ldb_port_create() 377 handle->domain_id, in dlb2_pf_dir_port_create() 444 handle->domain_id, in dlb2_pf_map_qid() 469 handle->domain_id, in dlb2_pf_unmap_qid() 494 handle->domain_id, in dlb2_pf_pending_port_unmaps() 519 handle->domain_id, in dlb2_pf_sched_domain_start() 542 handle->domain_id, in dlb2_pf_get_ldb_queue_depth() [all …]
|
| /dpdk/lib/eal/windows/ |
| H A D | eal_file.c | 47 HANDLE handle; in eal_file_truncate() local 52 handle = (HANDLE)_get_osfhandle(fd); in eal_file_truncate() 53 if (handle == INVALID_HANDLE_VALUE) { in eal_file_truncate() 58 ret = SetFilePointer(handle, low, &high, FILE_BEGIN); in eal_file_truncate() 80 if (!LockFileEx(handle, sys_flags, 0, 0, 0, &overlapped)) { in lock_file() 95 unlock_file(HANDLE handle) in unlock_file() argument 97 if (!UnlockFileEx(handle, 0, 0, 0, NULL)) { in unlock_file() 108 HANDLE handle = (HANDLE)_get_osfhandle(fd); in eal_file_lock() local 110 if (handle == INVALID_HANDLE_VALUE) { in eal_file_lock() 118 return lock_file(handle, op, mode); in eal_file_lock() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_sso_irq.c | 25 sso_hwgrp_register_irq(struct plt_intr_handle *handle, uint16_t ggrp_msixoff, in sso_hwgrp_register_irq() argument 35 rc = dev_irq_register(handle, sso_hwgrp_irq, (void *)rsrc, vec); in sso_hwgrp_register_irq() 59 sso_hws_register_irq(struct plt_intr_handle *handle, uint16_t hws_msixoff, in sso_hws_register_irq() argument 69 rc = dev_irq_register(handle, sso_hws_irq, (void *)rsrc, vec); in sso_hws_register_irq() 106 rc = sso_hws_register_irq(handle, sso->hws_msix_offset[i], in sso_register_irqs_priv() 116 rc = sso_hwgrp_register_irq(handle, sso->hwgrp_msix_offset[i], in sso_register_irqs_priv() 133 dev_irq_unregister(handle, sso_hwgrp_irq, (void *)rsrc, vec); in sso_hwgrp_unregister_irq() 146 dev_irq_unregister(handle, sso_hws_irq, (void *)rsrc, vec); in sso_hws_unregister_irq() 151 struct plt_intr_handle *handle, uint16_t nb_hws, in sso_unregister_irqs_priv() argument 158 sso_hwgrp_unregister_irq(handle, sso->hwgrp_msix_offset[i], in sso_unregister_irqs_priv() [all …]
|
| H A D | roc_tim_irq.c | 28 tim_lf_register_irq(uintptr_t base, struct plt_intr_handle *handle, in tim_lf_register_irq() argument 39 rc = dev_irq_register(handle, tim_lf_irq, (void *)base, vec); in tim_lf_register_irq() 48 rc = dev_irq_register(handle, tim_lf_irq, (void *)base, vec); in tim_lf_register_irq() 56 tim_register_irq_priv(struct roc_tim *roc_tim, struct plt_intr_handle *handle, in tim_register_irq_priv() argument 68 return tim_lf_register_irq(base, handle, msix_offset); in tim_register_irq_priv() 72 tim_lf_unregister_irq(uintptr_t base, struct plt_intr_handle *handle, in tim_lf_unregister_irq() argument 81 dev_irq_unregister(handle, tim_lf_irq, (void *)base, vec); in tim_lf_unregister_irq() 87 dev_irq_unregister(handle, tim_lf_irq, (void *)base, vec); in tim_lf_unregister_irq() 91 tim_unregister_irq_priv(struct roc_tim *roc_tim, struct plt_intr_handle *handle, in tim_unregister_irq_priv() argument 103 tim_lf_unregister_irq(base, handle, msix_offset); in tim_unregister_irq_priv()
|
| H A D | roc_nix_irq.c | 330 struct plt_intr_handle *handle; in roc_nix_register_queue_irqs() local 334 handle = nix->pci_dev->intr_handle; in roc_nix_register_queue_irqs() 381 struct plt_intr_handle *handle; in roc_nix_unregister_queue_irqs() local 386 handle = nix->pci_dev->intr_handle; in roc_nix_unregister_queue_irqs() 411 struct plt_intr_handle *handle; in roc_nix_register_cq_irqs() local 416 handle = nix->pci_dev->intr_handle; in roc_nix_register_cq_irqs() 448 rc = plt_intr_vec_list_alloc(handle, "cnxk", in roc_nix_register_cq_irqs() 458 if (plt_intr_vec_list_index_set(handle, q, in roc_nix_register_cq_irqs() 479 struct plt_intr_handle *handle; in roc_nix_unregister_cq_irqs() local 484 handle = nix->pci_dev->intr_handle; in roc_nix_unregister_cq_irqs() [all …]
|
| H A D | roc_npa_irq.c | 27 struct plt_intr_handle *handle = lf->intr_handle; in npa_register_err_irq() local 35 rc = dev_irq_register(handle, npa_err_irq, lf, vec); in npa_register_err_irq() 46 struct plt_intr_handle *handle = lf->intr_handle; in npa_unregister_err_irq() local 53 dev_irq_unregister(handle, npa_err_irq, lf, vec); in npa_unregister_err_irq() 75 struct plt_intr_handle *handle = lf->intr_handle; in npa_register_ras_irq() local 83 rc = dev_irq_register(handle, npa_ras_irq, lf, vec); in npa_register_ras_irq() 94 struct plt_intr_handle *handle = lf->intr_handle; in npa_unregister_ras_irq() local 100 dev_irq_unregister(handle, npa_ras_irq, lf, vec); in npa_unregister_ras_irq() 201 struct plt_intr_handle *handle = lf->intr_handle; in npa_register_queue_irqs() local 243 struct plt_intr_handle *handle = lf->intr_handle; in npa_unregister_queue_irqs() local [all …]
|
| H A D | roc_nix_inl_dev_irq.c | 107 struct plt_intr_handle *handle = inl_dev->pci_dev->intr_handle; in nix_inl_sso_register_irqs() local 129 rc = dev_irq_register(handle, nix_inl_sso_hws_irq, inl_dev, in nix_inl_sso_register_irqs() 157 struct plt_intr_handle *handle = inl_dev->pci_dev->intr_handle; in nix_inl_sso_unregister_irqs() local 173 dev_irq_unregister(handle, nix_inl_sso_hws_irq, (void *)inl_dev, in nix_inl_sso_unregister_irqs() 305 struct plt_intr_handle *handle = inl_dev->pci_dev->intr_handle; in nix_inl_nix_register_irqs() local 324 rc = dev_irq_register(handle, nix_inl_nix_err_irq, inl_dev, in nix_inl_nix_register_irqs() 326 rc |= dev_irq_register(handle, nix_inl_nix_ras_irq, inl_dev, in nix_inl_nix_register_irqs() 373 struct plt_intr_handle *handle = inl_dev->pci_dev->intr_handle; in nix_inl_nix_unregister_irqs() local 385 dev_irq_unregister(handle, nix_inl_nix_err_irq, inl_dev, in nix_inl_nix_unregister_irqs() 387 dev_irq_unregister(handle, nix_inl_nix_ras_irq, inl_dev, in nix_inl_nix_unregister_irqs() [all …]
|
| /dpdk/drivers/mempool/octeontx/ |
| H A D | octeontx_fpavf.h | 93 octeontx_fpavf_pool_set_range(uintptr_t handle, unsigned long memsz, 96 octeontx_fpa_bufpool_destroy(uintptr_t handle, int node); 98 octeontx_fpa_bufpool_block_size(uintptr_t handle); 100 octeontx_fpa_bufpool_free_count(uintptr_t handle); 103 octeontx_fpa_bufpool_gpool(uintptr_t handle) in octeontx_fpa_bufpool_gpool() argument 105 return (uint8_t)handle & FPA_GPOOL_MASK; in octeontx_fpa_bufpool_gpool() 109 octeontx_fpa_bufpool_gaura(uintptr_t handle) in octeontx_fpa_bufpool_gaura() argument 111 return octeontx_fpa_bufpool_gpool(handle) << FPA_GAURA_SHIFT; in octeontx_fpa_bufpool_gaura()
|
| H A D | octeontx_fpavf.c | 180 octeontx_fpa_handle_valid(uintptr_t handle) in octeontx_fpa_handle_valid() argument 187 if (unlikely(!handle)) in octeontx_fpa_handle_valid() 191 gpool = octeontx_fpa_bufpool_gpool(handle); in octeontx_fpa_handle_valid() 194 handle &= ~(uint64_t)FPA_GPOOL_MASK; in octeontx_fpa_handle_valid() 399 if (unlikely(!handle)) in octeontx_fpavf_pool_set_range() 407 (void *)((uintptr_t)handle + in octeontx_fpavf_pool_set_range() 410 (void *)((uintptr_t)handle + in octeontx_fpavf_pool_set_range() 486 gpool = octeontx_fpa_bufpool_gpool(handle); in octeontx_fpa_bufpool_block_size() 503 gpool = octeontx_fpa_bufpool_gpool(handle); in octeontx_fpa_bufpool_free_count() 505 gaura = octeontx_fpa_bufpool_gaura(handle); in octeontx_fpa_bufpool_free_count() [all …]
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_trace.c | 133 trace_mode_set(tp->handle, mode); in rte_trace_mode_set() 193 rc = rte_trace_point_enable(tp->handle); in rte_trace_pattern() 195 rc = rte_trace_point_disable(tp->handle); in rte_trace_pattern() 218 rc = rte_trace_point_enable(tp->handle); in rte_trace_regexp() 220 rc = rte_trace_point_disable(tp->handle); in rte_trace_regexp() 241 return tp->handle; in rte_trace_point_lookup() 249 rte_trace_point_t *handle = tp->handle; in trace_point_dump() local 252 trace_id_get(handle), tp->name, in trace_point_dump() 253 (uint16_t)(*handle & __RTE_TRACE_FIELD_SIZE_MASK), in trace_point_dump() 512 *handle = sz; in __rte_trace_point_register() [all …]
|