| /dpdk/app/test/ |
| H A D | test_memzone.c | 71 if (mz != NULL) { in test_memzone_invalid_alignment() 78 if (mz != NULL) { in test_memzone_invalid_alignment() 91 if (mz != NULL) { in test_memzone_invalid_flags() 98 if (mz != NULL) { in test_memzone_invalid_flags() 112 if (mz != NULL) { in test_memzone_reserving_zone_size_bigger_than_the_maximum() 120 if (mz != NULL) { in test_memzone_reserving_zone_size_bigger_than_the_maximum() 599 if (mz->addr != RTE_PTR_ALIGN(mz->addr, align)) { in test_memzone_reserve_max_aligned() 607 if (mz->len < minlen || mz->len > maxlen) { in test_memzone_reserve_max_aligned() 808 ((mz->iova + mz->len - 1) & bmask)) { in check_memzone_bounded() 883 if (mz[0] > mz[1]) in test_memzone_free() [all …]
|
| H A D | test_timer_secondary.c | 124 const struct rte_memzone *mz; in test_timer_secondary() local 135 mz = rte_memzone_reserve(TEST_INFO_MZ_NAME, sizeof(*test_info), in test_timer_secondary() 137 TEST_ASSERT_NOT_NULL(mz, "Couldn't allocate memory for " in test_timer_secondary() 139 test_info = mz->addr; in test_timer_secondary() 182 mz = rte_memzone_lookup(TEST_INFO_MZ_NAME); in test_timer_secondary() 183 TEST_ASSERT_NOT_NULL(mz, "Couldn't lookup memzone for " in test_timer_secondary() 185 test_info = mz->addr; in test_timer_secondary()
|
| /dpdk/lib/mbuf/ |
| H A D | rte_mbuf_pool_ops.c | 14 const struct rte_memzone *mz; in rte_mbuf_set_platform_mempool_ops() local 23 if (mz == NULL) { in rte_mbuf_set_platform_mempool_ops() 26 if (mz == NULL) in rte_mbuf_set_platform_mempool_ops() 28 strcpy(mz->addr, ops_name); in rte_mbuf_set_platform_mempool_ops() 36 (char *)mz->addr); in rte_mbuf_set_platform_mempool_ops() 46 if (mz == NULL) in rte_mbuf_platform_mempool_ops() 48 return mz->addr; in rte_mbuf_platform_mempool_ops() 63 if (mz == NULL) { in rte_mbuf_set_user_mempool_ops() 66 if (mz == NULL) in rte_mbuf_set_user_mempool_ops() 81 if (mz == NULL) in rte_mbuf_user_mempool_ops() [all …]
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_memzone.c | 46 return mz; in memzone_lookup_thread_unsafe() 177 mz = NULL; in memzone_reserve_aligned_thread_unsafe() 190 strlcpy(mz->name, name, sizeof(mz->name)); in memzone_reserve_aligned_thread_unsafe() 198 mz->flags = 0; in memzone_reserve_aligned_thread_unsafe() 200 return mz; in memzone_reserve_aligned_thread_unsafe() 219 bound, mz); in rte_memzone_reserve_thread_safe() 223 return mz; in rte_memzone_reserve_thread_safe() 342 mz->name, in dump_memzone() 343 mz->len, in dump_memzone() 344 mz->addr, in dump_memzone() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_ae_fpm_tables.c | 1087 const struct plt_memzone *mz; in roc_ae_fpm_get() local 1099 mz = plt_memzone_lookup(name); in roc_ae_fpm_get() 1100 if (mz == NULL) { in roc_ae_fpm_get() 1102 mz = plt_memzone_reserve_cache_align( in roc_ae_fpm_get() 1104 if (mz == NULL) in roc_ae_fpm_get() 1108 fpm = (struct ae_fpm_tbl *)mz->addr; in roc_ae_fpm_get() 1129 const struct plt_memzone *mz; in roc_ae_fpm_put() local 1132 mz = plt_memzone_lookup(name); in roc_ae_fpm_put() 1133 if (mz == NULL) in roc_ae_fpm_put() 1136 fpm = (struct ae_fpm_tbl *)mz->addr; in roc_ae_fpm_put() [all …]
|
| H A D | roc_ae.c | 159 const struct plt_memzone *mz; in roc_ae_ec_grp_get() local 168 mz = plt_memzone_lookup(name); in roc_ae_ec_grp_get() 169 if (mz == NULL) { in roc_ae_ec_grp_get() 171 mz = plt_memzone_reserve_cache_align( in roc_ae_ec_grp_get() 173 if (mz == NULL) in roc_ae_ec_grp_get() 177 ec_grp = mz->addr; in roc_ae_ec_grp_get() 197 const struct plt_memzone *mz; in roc_ae_ec_grp_put() local 200 mz = plt_memzone_lookup(name); in roc_ae_ec_grp_put() 201 if (mz == NULL) in roc_ae_ec_grp_put() 204 ec_grp = mz->addr; in roc_ae_ec_grp_put() [all …]
|
| H A D | roc_platform.c | 27 const struct rte_memzone *mz; in roc_plt_init() local 30 mz = rte_memzone_lookup(PLT_MODEL_MZ_NAME); in roc_plt_init() 32 if (mz == NULL) { in roc_plt_init() 33 mz = rte_memzone_reserve(PLT_MODEL_MZ_NAME, in roc_plt_init() 36 if (mz == NULL) { in roc_plt_init() 40 roc_model_init(mz->addr); in roc_plt_init() 43 if (mz == NULL) { in roc_plt_init() 47 roc_model = mz->addr; in roc_plt_init()
|
| H A D | roc_bphy_irq.c | 207 const struct plt_memzone *mz; in roc_bphy_intr_handler() local 209 mz = plt_memzone_lookup(ROC_BPHY_MEMZONE_NAME); in roc_bphy_intr_handler() 210 if (mz == NULL) in roc_bphy_intr_handler() 231 const struct plt_memzone *mz; in roc_bphy_irq_handler_set() local 235 mz = plt_memzone_lookup(chip->mz_name); in roc_bphy_irq_handler_set() 236 if (mz == NULL) { in roc_bphy_irq_handler_set() 240 if (mz == NULL) in roc_bphy_irq_handler_set() 331 const struct plt_memzone *mz; in roc_bphy_intr_clear() local 342 mz = plt_memzone_lookup(chip->mz_name); in roc_bphy_intr_clear() 343 if (mz == NULL) in roc_bphy_intr_clear() [all …]
|
| H A D | roc_idev.c | 12 const struct plt_memzone *mz; in idev_get_cfg() local 15 mz = plt_memzone_lookup(name); in idev_get_cfg() 16 if (mz != NULL) in idev_get_cfg() 17 return mz->addr; in idev_get_cfg() 20 mz = plt_memzone_reserve_cache_align(name, sizeof(struct idev_cfg)); in idev_get_cfg() 21 if (mz != NULL) { in idev_get_cfg() 22 idev = mz->addr; in idev_get_cfg()
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_nic_dma.c | 271 sfc_nic_dma_mz_map(struct sfc_adapter *sa, const struct rte_memzone *mz, in sfc_nic_dma_mz_map() argument 287 rc = efx_nic_dma_map(sa->nic, addr_type, mz->iova, mz->len, dma_addr); in sfc_nic_dma_mz_map() 294 mz->addr, (uint64_t)mz->iova, mz->len, in sfc_nic_dma_mz_map() 299 rc = efx_nic_dma_config_add(sa->nic, mz->iova, mz->len, in sfc_nic_dma_mz_map() 304 mz->addr, (uint64_t)mz->iova, mz->len, in sfc_nic_dma_mz_map() 314 mz->addr, (uint64_t)mz->iova, mz->len, in sfc_nic_dma_mz_map() 325 rc = efx_nic_dma_map(sa->nic, addr_type, mz->iova, mz->len, dma_addr); in sfc_nic_dma_mz_map() 329 mz->addr, (uint64_t)mz->iova, mz->len, in sfc_nic_dma_mz_map()
|
| /dpdk/drivers/net/qede/base/ |
| H A D | bcm_osal.c | 130 const struct rte_memzone *mz; in osal_dma_alloc_coherent() local 150 if (!mz) { in osal_dma_alloc_coherent() 157 *phys = mz->iova; in osal_dma_alloc_coherent() 158 ecore_mz_mapping[ecore_mz_count++] = mz; in osal_dma_alloc_coherent() 162 mz->len, (unsigned long)mz->iova, mz->addr, core_id); in osal_dma_alloc_coherent() 163 return mz->addr; in osal_dma_alloc_coherent() 169 const struct rte_memzone *mz; in osal_dma_alloc_coherent_aligned() local 189 if (!mz) { in osal_dma_alloc_coherent_aligned() 196 *phys = mz->iova; in osal_dma_alloc_coherent_aligned() 201 mz->len, (unsigned long)mz->iova, mz->addr, core_id); in osal_dma_alloc_coherent_aligned() [all …]
|
| /dpdk/drivers/mempool/cnxk/ |
| H A D | cnxk_mempool.c | 89 const struct rte_memzone *mz; in npa_init() local 93 mz = rte_memzone_reserve_aligned(npa_dev_to_name(pci_dev, name), in npa_init() 96 if (mz == NULL) in npa_init() 99 dev = mz->addr; in npa_init() 109 rte_memzone_free(mz); in npa_init() 119 const struct rte_memzone *mz; in npa_fini() local 122 mz = rte_memzone_lookup(npa_dev_to_name(pci_dev, name)); in npa_fini() 123 if (mz == NULL) in npa_fini() 126 rc = roc_npa_dev_fini(mz->addr); in npa_fini() 132 rte_memzone_free(mz); in npa_fini()
|
| /dpdk/examples/l2fwd-event/ |
| H A D | l2fwd_common.h | 117 const struct rte_memzone *mz; in l2fwd_get_rsrc() local 119 mz = rte_memzone_lookup(name); in l2fwd_get_rsrc() 120 if (mz != NULL) in l2fwd_get_rsrc() 121 return mz->addr; in l2fwd_get_rsrc() 123 mz = rte_memzone_reserve(name, sizeof(struct l2fwd_resources), 0, 0); in l2fwd_get_rsrc() 124 if (mz != NULL) { in l2fwd_get_rsrc() 125 struct l2fwd_resources *rsrc = mz->addr; in l2fwd_get_rsrc() 134 return mz->addr; in l2fwd_get_rsrc()
|
| /dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_qp.c | 20 const struct rte_memzone *mz; in nitrox_setup_cmdq() local 25 mz = rte_memzone_reserve_aligned(mz_name, cmdq_size, socket_id, in nitrox_setup_cmdq() 29 if (!mz) { in nitrox_setup_cmdq() 35 qp->cmdq.mz = mz; in nitrox_setup_cmdq() 38 qp->cmdq.ring = mz->addr; in nitrox_setup_cmdq() 40 setup_nps_pkt_input_ring(bar_addr, qp->qno, qp->count, mz->iova); in nitrox_setup_cmdq() 67 return rte_memzone_free(qp->cmdq.mz); in nitrox_release_cmdq()
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_ring.c | 113 const struct rte_memzone *mz = NULL; in bnxt_alloc_rings() local 207 mz = rte_memzone_lookup(mz_name); in bnxt_alloc_rings() 208 if (!mz) { in bnxt_alloc_rings() 215 if (mz == NULL) in bnxt_alloc_rings() 218 memset(mz->addr, 0, mz->len); in bnxt_alloc_rings() 219 mz_phys_addr = mz->iova; in bnxt_alloc_rings() 222 txq->mz = mz; in bnxt_alloc_rings() 229 tx_ring->mem_zone = (const void *)mz; in bnxt_alloc_rings() 242 rxq->mz = mz; in bnxt_alloc_rings() 297 cp_ring->mem_zone = (const void *)mz; in bnxt_alloc_rings() [all …]
|
| /dpdk/drivers/common/iavf/ |
| H A D | iavf_impl.c | 22 const struct rte_memzone *mz = NULL; in iavf_allocate_dma_mem_d() local 30 mz = rte_memzone_reserve_bounded(z_name, size, SOCKET_ID_ANY, in iavf_allocate_dma_mem_d() 33 if (!mz) in iavf_allocate_dma_mem_d() 37 mem->va = mz->addr; in iavf_allocate_dma_mem_d() 38 mem->pa = mz->iova; in iavf_allocate_dma_mem_d() 39 mem->zone = (const void *)mz; in iavf_allocate_dma_mem_d()
|
| /dpdk/drivers/raw/ioat/ |
| H A D | ioat_common.c | 190 const struct rte_memzone *mz = NULL; in idxd_rawdev_create() local 218 mz = rte_memzone_lookup(mz_name); in idxd_rawdev_create() 219 if (mz == NULL) { in idxd_rawdev_create() 224 rawdev->dev_private = mz->addr; in idxd_rawdev_create() 229 mz = rte_memzone_reserve(mz_name, sizeof(struct idxd_rawdev), in idxd_rawdev_create() 231 if (mz == NULL) { in idxd_rawdev_create() 236 rawdev->dev_private = mz->addr; in idxd_rawdev_create() 244 idxd->mz = mz; in idxd_rawdev_create() 265 if (mz) in idxd_rawdev_create() 266 rte_memzone_free(mz); in idxd_rawdev_create()
|
| H A D | ioat_rawdev.c | 148 const struct rte_memzone *mz = NULL; in ioat_rawdev_create() local 173 mz = rte_memzone_lookup(mz_name); in ioat_rawdev_create() 174 if (mz == NULL) { in ioat_rawdev_create() 179 rawdev->dev_private = mz->addr; in ioat_rawdev_create() 185 mz = rte_memzone_reserve(mz_name, sizeof(struct rte_ioat_rawdev), in ioat_rawdev_create() 187 if (mz == NULL) { in ioat_rawdev_create() 193 rawdev->dev_private = mz->addr; in ioat_rawdev_create() 201 ioat->mz = mz; in ioat_rawdev_create() 206 ioat->status_addr = ioat->mz->iova + in ioat_rawdev_create() 268 rte_memzone_free(ioat->mz); in ioat_rawdev_destroy()
|
| /dpdk/lib/latencystats/ |
| H A D | rte_latencystats.c | 219 const struct rte_memzone *mz = NULL; in rte_latencystats_init() local 229 if (mz == NULL) { in rte_latencystats_init() 235 glob_stats = mz->addr; in rte_latencystats_init() 302 const struct rte_memzone *mz = NULL; in rte_latencystats_uninit() local 336 mz = rte_memzone_lookup(MZ_RTE_LATENCY_STATS); in rte_latencystats_uninit() 337 if (mz) in rte_latencystats_uninit() 338 rte_memzone_free(mz); in rte_latencystats_uninit() 365 const struct rte_memzone *mz; in rte_latencystats_get() local 366 mz = rte_memzone_lookup(MZ_RTE_LATENCY_STATS); in rte_latencystats_get() 367 if (mz == NULL) { in rte_latencystats_get() [all …]
|
| /dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_qp.c | 40 const struct rte_memzone *mz; in bcmfs_queue_delete() local 50 mz = rte_memzone_lookup(queue->memz_name); in bcmfs_queue_delete() 51 if (mz != NULL) { in bcmfs_queue_delete() 54 status = rte_memzone_free(mz); in bcmfs_queue_delete() 68 const struct rte_memzone *mz; in queue_dma_zone_reserve() local 70 mz = rte_memzone_lookup(queue_name); in queue_dma_zone_reserve() 71 if (mz != NULL) { in queue_dma_zone_reserve() 72 if (((size_t)queue_size <= mz->len) && in queue_dma_zone_reserve() 74 socket_id == mz->socket_id)) { in queue_dma_zone_reserve() 77 return mz; in queue_dma_zone_reserve() [all …]
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_ethdev_sec.c | 235 const struct rte_memzone *mz; in cnxk_nix_inl_dev_remove() local 242 mz = rte_memzone_lookup(nix_inl_dev_to_name(pci_dev, name)); in cnxk_nix_inl_dev_remove() 243 if (!mz) in cnxk_nix_inl_dev_remove() 246 dev = mz->addr; in cnxk_nix_inl_dev_remove() 256 rte_memzone_free(mz); in cnxk_nix_inl_dev_remove() 266 const struct rte_memzone *mz; in cnxk_nix_inl_dev_probe() local 280 mz = rte_memzone_reserve_aligned(nix_inl_dev_to_name(pci_dev, name), in cnxk_nix_inl_dev_probe() 283 if (mz == NULL) in cnxk_nix_inl_dev_probe() 286 inl_dev = mz->addr; in cnxk_nix_inl_dev_probe() 309 rte_memzone_free(mz); in cnxk_nix_inl_dev_probe()
|
| /dpdk/drivers/common/qat/ |
| H A D | qat_device.c | 75 if (qat_pci_devs[i].mz && in qat_pci_get_named_dev() 77 qat_pci_devs[i].mz->addr)->name, name) in qat_pci_get_named_dev() 80 qat_pci_devs[i].mz->addr; in qat_pci_get_named_dev() 93 if (qat_pci_devs[dev_id].mz == NULL) in qat_pci_find_free_device_index() 207 const struct rte_memzone *mz = rte_memzone_lookup(name); in qat_pci_device_allocate() local 209 if (mz == NULL) { in qat_pci_device_allocate() 215 qat_dev = mz->addr; in qat_pci_device_allocate() 216 qat_pci_devs[qat_dev->qat_dev_id].mz = mz; in qat_pci_device_allocate() 291 qat_pci_devs[qat_dev_id].mz = qat_dev_mz; in qat_pci_device_allocate() 339 rte_memzone_free(inst->mz); in qat_pci_device_release()
|
| /dpdk/lib/stack/ |
| H A D | rte_stack.c | 52 const struct rte_memzone *mz; in rte_stack_create() local 92 mz = rte_memzone_reserve_aligned(mz_name, sz, socket_id, in rte_stack_create() 94 if (mz == NULL) { in rte_stack_create() 101 s = mz->addr; in rte_stack_create() 112 rte_memzone_free(mz); in rte_stack_create() 116 s->memzone = mz; in rte_stack_create()
|
| /dpdk/lib/mempool/ |
| H A D | rte_mempool.c | 270 rte_memzone_free(mz); in rte_mempool_memchunk_mz_free() 589 if (mz == NULL) { in rte_mempool_populate_default() 595 iova = mz->iova; in rte_mempool_populate_default() 601 iova, mz->len, in rte_mempool_populate_default() 606 mz->len, pg_sz, in rte_mempool_populate_default() 612 rte_memzone_free(mz); in rte_mempool_populate_default() 889 if (mz == NULL) in rte_mempool_create_empty() 893 mp = mz->addr; in rte_mempool_create_empty() 900 mp->mz = mz; in rte_mempool_create_empty() 1527 mz = mp->mz; in mempool_info_cb() [all …]
|
| /dpdk/drivers/event/dlb2/pf/ |
| H A D | dlb2_pf.c | 245 *mz = rte_memzone_reserve_aligned(mz_name, size, socket_id, in dlb2_alloc_coherent_aligned() 247 if (*mz == NULL) { in dlb2_alloc_coherent_aligned() 253 *phys = (*mz)->iova; in dlb2_alloc_coherent_aligned() 254 return (*mz)->addr; in dlb2_alloc_coherent_aligned() 267 const struct rte_memzone *mz; in dlb2_pf_ldb_port_create() local 287 port_base = dlb2_alloc_coherent_aligned(&mz, &cq_base, alloc_sz, in dlb2_pf_ldb_port_create() 316 dlb2_port[response.id][DLB2_LDB_PORT].mz = mz; in dlb2_pf_ldb_port_create() 326 rte_memzone_free(mz); in dlb2_pf_ldb_port_create() 343 const struct rte_memzone *mz; in dlb2_pf_dir_port_create() local 392 dlb2_port[response.id][DLB2_DIR_PORT].mz = mz; in dlb2_pf_dir_port_create() [all …]
|