| /dpdk/drivers/net/qede/base/ |
| H A D | bcm_osal.c | 131 char mz_name[RTE_MEMZONE_NAMESIZE]; in osal_dma_alloc_coherent() local 142 OSAL_MEM_ZERO(mz_name, sizeof(*mz_name)); in osal_dma_alloc_coherent() 143 snprintf(mz_name, sizeof(mz_name), "%lx", in osal_dma_alloc_coherent() 148 mz = rte_memzone_reserve_aligned(mz_name, size, socket_id, in osal_dma_alloc_coherent() 170 char mz_name[RTE_MEMZONE_NAMESIZE]; in osal_dma_alloc_coherent_aligned() local 181 OSAL_MEM_ZERO(mz_name, sizeof(*mz_name)); in osal_dma_alloc_coherent_aligned() 182 snprintf(mz_name, sizeof(mz_name), "%lx", in osal_dma_alloc_coherent_aligned() 187 mz = rte_memzone_reserve_aligned(mz_name, size, socket_id, in osal_dma_alloc_coherent_aligned()
|
| /dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_qp.c | 19 char mz_name[RTE_MEMZONE_NAMESIZE]; in nitrox_setup_cmdq() local 24 snprintf(mz_name, sizeof(mz_name), "%s_cmdq_%d", dev_name, qp->qno); in nitrox_setup_cmdq() 25 mz = rte_memzone_reserve_aligned(mz_name, cmdq_size, socket_id, in nitrox_setup_cmdq() 31 mz_name); in nitrox_setup_cmdq()
|
| /dpdk/drivers/raw/ioat/ |
| H A D | ioat_rawdev.c | 42 char mz_name[RTE_MEMZONE_NAMESIZE]; in ioat_dev_configure() local 66 snprintf(mz_name, sizeof(mz_name), "rawdev%u_desc_ring", dev->dev_id); in ioat_dev_configure() 67 ioat->desc_mz = rte_memzone_reserve(mz_name, in ioat_dev_configure() 149 char mz_name[RTE_MEMZONE_NAMESIZE]; in ioat_rawdev_create() local 171 snprintf(mz_name, sizeof(mz_name), "rawdev%u_private", rawdev->dev_id); in ioat_rawdev_create() 173 mz = rte_memzone_lookup(mz_name); in ioat_rawdev_create() 185 mz = rte_memzone_reserve(mz_name, sizeof(struct rte_ioat_rawdev), in ioat_rawdev_create()
|
| H A D | ioat_common.c | 191 char mz_name[RTE_MEMZONE_NAMESIZE]; in idxd_rawdev_create() local 216 snprintf(mz_name, sizeof(mz_name), "rawdev%u_private", rawdev->dev_id); in idxd_rawdev_create() 218 mz = rte_memzone_lookup(mz_name); in idxd_rawdev_create() 229 mz = rte_memzone_reserve(mz_name, sizeof(struct idxd_rawdev), in idxd_rawdev_create()
|
| /dpdk/lib/stack/ |
| H A D | rte_stack.c | 50 char mz_name[RTE_MEMZONE_NAMESIZE]; in rte_stack_create() local 76 ret = snprintf(mz_name, sizeof(mz_name), "%s%s", in rte_stack_create() 78 if (ret < 0 || ret >= (int)sizeof(mz_name)) { in rte_stack_create() 92 mz = rte_memzone_reserve_aligned(mz_name, sz, socket_id, in rte_stack_create()
|
| /dpdk/lib/kni/ |
| H A D | rte_kni.c | 143 char mz_name[RTE_MEMZONE_NAMESIZE]; in kni_reserve_mz() local 145 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, KNI_TX_Q_MZ_NAME_FMT, kni->name); in kni_reserve_mz() 146 kni->m_tx_q = rte_memzone_reserve(mz_name, KNI_FIFO_SIZE, SOCKET_ID_ANY, in kni_reserve_mz() 150 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, KNI_RX_Q_MZ_NAME_FMT, kni->name); in kni_reserve_mz() 151 kni->m_rx_q = rte_memzone_reserve(mz_name, KNI_FIFO_SIZE, SOCKET_ID_ANY, in kni_reserve_mz() 156 kni->m_alloc_q = rte_memzone_reserve(mz_name, KNI_FIFO_SIZE, SOCKET_ID_ANY, in kni_reserve_mz() 160 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, KNI_FREE_Q_MZ_NAME_FMT, kni->name); in kni_reserve_mz() 161 kni->m_free_q = rte_memzone_reserve(mz_name, KNI_FIFO_SIZE, SOCKET_ID_ANY, in kni_reserve_mz() 165 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, KNI_REQ_Q_MZ_NAME_FMT, kni->name); in kni_reserve_mz() 166 kni->m_req_q = rte_memzone_reserve(mz_name, KNI_FIFO_SIZE, SOCKET_ID_ANY, in kni_reserve_mz() [all …]
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_bphy_irq.c | 87 irq_chip->mz_name = plt_zmalloc(strlen(ROC_BPHY_MEMZONE_NAME) + 1, 0); in roc_bphy_intr_init() 88 if (irq_chip->mz_name == NULL) { in roc_bphy_intr_init() 92 plt_strlcpy(irq_chip->mz_name, ROC_BPHY_MEMZONE_NAME, in roc_bphy_intr_init() 121 plt_free(irq_chip->mz_name); in roc_bphy_intr_fini() 235 mz = plt_memzone_lookup(chip->mz_name); in roc_bphy_irq_handler_set() 238 mz = plt_memzone_reserve_cache_align(chip->mz_name, in roc_bphy_irq_handler_set() 342 mz = plt_memzone_lookup(chip->mz_name); in roc_bphy_intr_clear()
|
| H A D | roc_bphy_irq.h | 21 char *mz_name; member
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_vnic.c | 115 char mz_name[RTE_MEMZONE_NAMESIZE]; in bnxt_alloc_vnic_attributes() local 134 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, in bnxt_alloc_vnic_attributes() 137 mz_name[RTE_MEMZONE_NAMESIZE - 1] = 0; in bnxt_alloc_vnic_attributes() 138 mz = rte_memzone_lookup(mz_name); in bnxt_alloc_vnic_attributes() 140 mz = rte_memzone_reserve(mz_name, in bnxt_alloc_vnic_attributes()
|
| H A D | bnxt_ring.c | 114 char mz_name[RTE_MEMZONE_NAMESIZE]; in bnxt_alloc_rings() local 202 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, in bnxt_alloc_rings() 206 mz_name[RTE_MEMZONE_NAMESIZE - 1] = 0; in bnxt_alloc_rings() 207 mz = rte_memzone_lookup(mz_name); in bnxt_alloc_rings() 209 mz = rte_memzone_reserve_aligned(mz_name, total_alloc_len, in bnxt_alloc_rings()
|
| /dpdk/lib/ring/ |
| H A D | rte_ring.c | 243 char mz_name[RTE_MEMZONE_NAMESIZE]; in rte_ring_create_elem() local 265 ret = snprintf(mz_name, sizeof(mz_name), "%s%s", in rte_ring_create_elem() 267 if (ret < 0 || ret >= (int)sizeof(mz_name)) { in rte_ring_create_elem() 284 mz = rte_memzone_reserve_aligned(mz_name, ring_size, socket_id, in rte_ring_create_elem()
|
| /dpdk/drivers/vdpa/sfc/ |
| H A D | sfc_vdpa_hw.c | 28 char mz_name[RTE_MEMZONE_NAMESIZE]; in sfc_vdpa_dma_alloc() local 34 ret = snprintf(mz_name, RTE_MEMZONE_NAMESIZE, "%s_%s", in sfc_vdpa_dma_alloc() 42 sfc_vdpa_log_init(sva, "name=%s, len=%zu", mz_name, len); in sfc_vdpa_dma_alloc() 44 mz = rte_memzone_reserve_aligned(mz_name, mcdi_buff_size, in sfc_vdpa_dma_alloc() 50 mz_name, (unsigned int)len, in sfc_vdpa_dma_alloc()
|
| /dpdk/drivers/event/opdl/ |
| H A D | opdl_ring.c | 899 char mz_name[RTE_MEMZONE_NAMESIZE]; in opdl_ring_create() local 933 snprintf(mz_name, sizeof(mz_name), "%s%s", LIB_NAME, name); in opdl_ring_create() 936 mz = rte_memzone_reserve(mz_name, alloc_size, socket, mz_flags); in opdl_ring_create() 1227 char mz_name[RTE_MEMZONE_NAMESIZE]; in opdl_ring_free() local 1243 snprintf(mz_name, sizeof(mz_name), "%s%s", LIB_NAME, t->name); in opdl_ring_free() 1244 mz = rte_memzone_lookup(mz_name); in opdl_ring_free() 1254 char mz_name[RTE_MEMZONE_NAMESIZE]; in opdl_ring_lookup() local 1256 snprintf(mz_name, sizeof(mz_name), "%s%s", LIB_NAME, name); in opdl_ring_lookup() 1258 mz = rte_memzone_lookup(mz_name); in opdl_ring_lookup()
|
| /dpdk/drivers/crypto/ipsec_mb/ |
| H A D | ipsec_mb_ops.c | 244 char mz_name[IPSEC_MB_MAX_MZ_NAME]; in ipsec_mb_qp_setup() local 245 snprintf(mz_name, sizeof(mz_name), "IMB_MGR_DEV_%d_QP_%d", in ipsec_mb_qp_setup() 248 mz_name); in ipsec_mb_qp_setup()
|
| /dpdk/drivers/compress/qat/ |
| H A D | qat_comp_pmd.c | 368 char mz_name[RTE_MEMZONE_NAMESIZE]; in qat_comp_stream_init() local 373 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, "%s_%u_rambanks", in qat_comp_stream_init() 375 memzone = rte_memzone_lookup(mz_name); in qat_comp_stream_init() 378 memzone = rte_memzone_reserve_aligned(mz_name, in qat_comp_stream_init() 481 char mz_name[RTE_MEMZONE_NAMESIZE]; in _qat_comp_dev_config_clear() local 486 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, in _qat_comp_dev_config_clear() 489 rte_memzone_free(rte_memzone_lookup(mz_name)); in _qat_comp_dev_config_clear()
|
| /dpdk/lib/compressdev/ |
| H A D | rte_compressdev.c | 184 char mz_name[RTE_COMPRESSDEV_NAME_MAX_LEN]; in rte_compressdev_data_alloc() local 189 n = snprintf(mz_name, sizeof(mz_name), in rte_compressdev_data_alloc() 191 if (n >= (int)sizeof(mz_name)) in rte_compressdev_data_alloc() 195 mz = rte_memzone_reserve(mz_name, in rte_compressdev_data_alloc() 199 mz = rte_memzone_lookup(mz_name); in rte_compressdev_data_alloc()
|
| /dpdk/lib/distributor/ |
| H A D | rte_distributor_single.c | 383 char mz_name[RTE_MEMZONE_NAMESIZE]; in rte_distributor_create_single() local 397 snprintf(mz_name, sizeof(mz_name), RTE_DISTRIB_PREFIX"%s", name); in rte_distributor_create_single() 398 mz = rte_memzone_reserve(mz_name, sizeof(*d), socket_id, NO_FLAGS); in rte_distributor_create_single()
|
| H A D | rte_distributor.c | 717 char mz_name[RTE_MEMZONE_NAMESIZE]; in rte_distributor_create() local 750 snprintf(mz_name, sizeof(mz_name), RTE_DISTRIB_PREFIX"%s", name); in rte_distributor_create() 751 mz = rte_memzone_reserve(mz_name, sizeof(*d), socket_id, NO_FLAGS); in rte_distributor_create()
|
| /dpdk/app/test-compress-perf/ |
| H A D | comp_perf_test_common.c | 127 char mz_name[RTE_MEMZONE_NAMESIZE]; in comp_perf_make_memzone() local 130 snprintf(mz_name, RTE_MEMZONE_NAMESIZE, "%s_s%u_d%u_q%u_%d", name, in comp_perf_make_memzone() 132 memzone = rte_memzone_lookup(mz_name); in comp_perf_make_memzone() 138 memzone = rte_memzone_reserve_aligned(mz_name, size, socket_id, in comp_perf_make_memzone() 142 mz_name); in comp_perf_make_memzone()
|
| /dpdk/lib/cryptodev/ |
| H A D | rte_cryptodev.c | 783 n = snprintf(mz_name, sizeof(mz_name), "rte_cryptodev_data_%u", dev_id); in rte_cryptodev_data_alloc() 784 if (n >= (int)sizeof(mz_name)) in rte_cryptodev_data_alloc() 788 mz = rte_memzone_reserve(mz_name, in rte_cryptodev_data_alloc() 792 mz_name, mz); in rte_cryptodev_data_alloc() 794 mz = rte_memzone_lookup(mz_name); in rte_cryptodev_data_alloc() 796 mz_name, mz); in rte_cryptodev_data_alloc() 817 n = snprintf(mz_name, sizeof(mz_name), "rte_cryptodev_data_%u", dev_id); in rte_cryptodev_data_free() 818 if (n >= (int)sizeof(mz_name)) in rte_cryptodev_data_free() 821 mz = rte_memzone_lookup(mz_name); in rte_cryptodev_data_free() 830 mz_name, mz); in rte_cryptodev_data_free() [all …]
|
| /dpdk/lib/eventdev/ |
| H A D | rte_eventdev.c | 1373 char mz_name[RTE_EVENTDEV_NAME_MAX_LEN]; in eventdev_data_alloc() local 1378 n = snprintf(mz_name, sizeof(mz_name), "rte_eventdev_data_%u", dev_id); in eventdev_data_alloc() 1379 if (n >= (int)sizeof(mz_name)) in eventdev_data_alloc() 1383 mz = rte_memzone_reserve(mz_name, in eventdev_data_alloc() 1387 mz = rte_memzone_lookup(mz_name); in eventdev_data_alloc() 1470 char mz_name[RTE_EVENTDEV_NAME_MAX_LEN]; in rte_event_pmd_release() local 1484 ret = snprintf(mz_name, sizeof(mz_name), "rte_eventdev_data_%u", in rte_event_pmd_release() 1486 if (ret >= (int)sizeof(mz_name)) in rte_event_pmd_release() 1489 mz = rte_memzone_lookup(mz_name); in rte_event_pmd_release()
|
| /dpdk/lib/mempool/ |
| H A D | rte_mempool.c | 488 char mz_name[RTE_MEMZONE_NAMESIZE]; in rte_mempool_populate_default() local 563 ret = snprintf(mz_name, sizeof(mz_name), in rte_mempool_populate_default() 565 if (ret < 0 || ret >= (int)sizeof(mz_name)) { in rte_mempool_populate_default() 578 mz = rte_memzone_reserve_aligned(mz_name, in rte_mempool_populate_default() 801 char mz_name[RTE_MEMZONE_NAMESIZE]; in rte_mempool_create_empty() local 882 ret = snprintf(mz_name, sizeof(mz_name), RTE_MEMPOOL_MZ_FORMAT, name); in rte_mempool_create_empty() 883 if (ret < 0 || ret >= (int)sizeof(mz_name)) { in rte_mempool_create_empty() 888 mz = rte_memzone_reserve(mz_name, mempool_size, socket_id, mz_flags); in rte_mempool_create_empty()
|
| /dpdk/drivers/event/dlb2/pf/ |
| H A D | dlb2_pf.c | 236 char mz_name[RTE_MEMZONE_NAMESIZE]; in dlb2_alloc_coherent_aligned() local 240 snprintf(mz_name, sizeof(mz_name) - 1, "event_dlb2_pf_%lx", in dlb2_alloc_coherent_aligned() 245 *mz = rte_memzone_reserve_aligned(mz_name, size, socket_id, in dlb2_alloc_coherent_aligned()
|
| /dpdk/drivers/net/qede/ |
| H A D | qede_filter.c | 200 char mz_name[RTE_MEMZONE_NAMESIZE] = {0}; in qede_config_arfs_filter() local 218 snprintf(mz_name, sizeof(mz_name), "%lx", in qede_config_arfs_filter() 220 mz = rte_memzone_reserve_aligned(mz_name, QEDE_MAX_FDIR_PKT_LEN, in qede_config_arfs_filter() 237 DP_INFO(edev, "pkt_len = %u memzone = %s\n", pkt_len, mz_name); in qede_config_arfs_filter()
|
| /dpdk/drivers/dma/hisilicon/ |
| H A D | hisi_dmadev.c | 279 char mz_name[RTE_MEMZONE_NAMESIZE]; in hisi_dma_alloc_iomem() local 288 (void)snprintf(mz_name, sizeof(mz_name), "hisi_dma:%s", dev_name); in hisi_dma_alloc_iomem() 289 iomz = rte_memzone_reserve(mz_name, total_size, hw->data->numa_node, in hisi_dma_alloc_iomem() 292 HISI_DMA_ERR(hw, "malloc %s iomem fail!", mz_name); in hisi_dma_alloc_iomem()
|