| /dpdk/app/test/ |
| H A D | test_graph_perf.c | 296 ename[edges] = malloc(sizeof(char) * RTE_NODE_NAMESIZE); in graph_node_count_edges() 349 malloc(sizeof(struct test_node_data) * in graph_init() 356 node_patterns = malloc(sizeof(char *) * in graph_init() 363 src_nodes = malloc(sizeof(rte_node_t) * nb_srcs); in graph_init() 369 snk_nodes = malloc(sizeof(rte_node_t) * nb_sinks); in graph_init() 375 node_map = malloc(sizeof(rte_node_t *) * stages + in graph_init() 393 malloc(RTE_NODE_NAMESIZE); in graph_init() 454 node_patterns[graph_data->nb_nodes] = malloc(RTE_NODE_NAMESIZE); in graph_init() 481 ename[edges] = malloc(sizeof(char) * RTE_NODE_NAMESIZE); in graph_init() 513 node_patterns[graph_data->nb_nodes] = malloc(RTE_NODE_NAMESIZE); in graph_init() [all …]
|
| H A D | resource.c | 112 p = malloc(resource_size(res)); in resource_untar() 190 p = malloc(resource_size(res)); in resource_rm_by_tar()
|
| /dpdk/drivers/net/dpaa/fmlib/ |
| H A D | fm_lib.c | 49 p_dev = (t_device *)malloc(sizeof(t_device)); in fm_open() 123 p_dev = (t_device *)malloc(sizeof(t_device)); in fm_pcd_open() 210 p_dev = (t_device *)malloc(sizeof(t_device)); in fm_pcd_net_env_characteristics_set() 283 p_dev = (t_device *)malloc(sizeof(t_device)); in fm_pcd_kg_scheme_set() 340 p_dev = (t_device *)malloc(sizeof(t_device)); in fm_port_open() 346 p_fm_port = (t_fm_port *)malloc(sizeof(t_fm_port)); in fm_port_open() 540 p_dev = (t_device *)malloc(sizeof(t_device)); in create_device()
|
| /dpdk/lib/metrics/ |
| H A D | rte_metrics_telemetry.c | 45 xstats_names = malloc(sizeof(*xstats_names) * num_xstats); in rte_metrics_tel_reg_port_ethdev_to_metrics() 46 eth_xstats_names = malloc(sizeof(struct rte_eth_xstat_name) in rte_metrics_tel_reg_port_ethdev_to_metrics() 127 eth_xstats = malloc(sizeof(struct rte_eth_xstat) * num_xstats); in rte_metrics_tel_update_metrics_ethdev() 171 metrics = malloc(sizeof(struct rte_metric_value) * num_metrics); in rte_metrics_tel_format_port() 172 names = malloc(sizeof(struct rte_metric_name) * num_metrics); in rte_metrics_tel_format_port() 346 names = malloc(sizeof(struct rte_metric_name) * num_metrics); in rte_metrics_tel_stat_names_to_ids()
|
| /dpdk/examples/l3fwd/ |
| H A D | l3fwd_event_internal_port.c | 97 evt_rsrc->evp.event_p_id = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_event_port_setup_internal_port() 175 evt_rsrc->evq.event_q_id = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_event_queue_setup_internal_port() 212 evt_rsrc->rx_adptr.rx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_rx_tx_adapter_setup_internal_port() 273 evt_rsrc->tx_adptr.tx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_rx_tx_adapter_setup_internal_port()
|
| H A D | l3fwd_event_generic.c | 98 evt_rsrc->evp.event_p_id = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_event_port_setup_generic() 164 evt_rsrc->evq.event_q_id = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_event_queue_setup_generic() 211 evt_rsrc->rx_adptr.rx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_rx_tx_adapter_setup_generic() 254 evt_rsrc->tx_adptr.tx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l3fwd_rx_tx_adapter_setup_generic()
|
| /dpdk/examples/l2fwd-event/ |
| H A D | l2fwd_event_internal_port.c | 107 evt_rsrc->evp.event_p_id = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_event_port_setup_internal_port() 184 evt_rsrc->evq.event_q_id = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_event_queue_setup_internal_port() 221 evt_rsrc->rx_adptr.rx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_rx_tx_adapter_setup_internal_port() 280 evt_rsrc->tx_adptr.tx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_rx_tx_adapter_setup_internal_port()
|
| H A D | l2fwd_event_generic.c | 112 evt_rsrc->evp.event_p_id = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_event_port_setup_generic() 181 evt_rsrc->evq.event_q_id = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_event_queue_setup_generic() 229 evt_rsrc->rx_adptr.rx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_rx_tx_adapter_setup_generic() 293 evt_rsrc->tx_adptr.tx_adptr = (uint8_t *)malloc(sizeof(uint8_t) * in l2fwd_rx_tx_adapter_setup_generic()
|
| /dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_nsp_cmds.c | 35 ni = malloc(sizeof(*ni)); in __nfp_nsp_identify() 47 nspi = malloc(sizeof(*nspi)); in __nfp_nsp_identify()
|
| H A D | nfp_rtsym.c | 140 rtsymtab = malloc(symtab_size); in __nfp_rtsym_table_read() 147 cache = malloc(size); in __nfp_rtsym_table_read()
|
| H A D | nfp_nsp_eth.c | 270 entries = malloc(NSP_ETH_TABLE_SIZE); in __nfp_eth_read_ports() 296 table = malloc(table_sz); in __nfp_eth_read_ports() 352 entries = malloc(NSP_ETH_TABLE_SIZE); in nfp_eth_config_start()
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.c | 84 if (!cfg || (!cfg->malloc ^ !cfg->free) || in mlx5_ipool_create() 97 if (!cfg->malloc && !cfg->free) { in mlx5_ipool_create() 98 pool->cfg.malloc = mlx5_malloc; in mlx5_ipool_create() 141 p = pool->cfg.malloc(0, (pool->n_trunk_valid + n_grow) * in mlx5_ipool_grow() 171 trunk = pool->cfg.malloc(0, trunk_size, in mlx5_ipool_grow() 283 p = pool->cfg.malloc(0, ((trunk_idx + n_grow) * in mlx5_ipool_allocate_from_global() 305 trunk = pool->cfg.malloc(0, trunk_size, in mlx5_ipool_allocate_from_global() 369 pool->cache[cidx] = pool->cfg.malloc(MLX5_MEM_ZERO, in _mlx5_ipool_get_cache() 410 pool->cache[cidx] = pool->cfg.malloc(MLX5_MEM_ZERO, in _mlx5_ipool_malloc_cache() 460 pool->cache[cidx] = pool->cfg.malloc(MLX5_MEM_ZERO, in _mlx5_ipool_free_cache() [all …]
|
| H A D | mlx5.c | 191 .malloc = mlx5_malloc, 202 .malloc = mlx5_malloc, 214 .malloc = mlx5_malloc, 225 .malloc = mlx5_malloc, 236 .malloc = mlx5_malloc, 247 .malloc = mlx5_malloc, 258 .malloc = mlx5_malloc, 285 .malloc = mlx5_malloc, 296 .malloc = mlx5_malloc, 307 .malloc = mlx5_malloc, [all …]
|
| /dpdk/examples/ntb/ |
| H A D | ntb_fwd.c | 259 malloc(sizeof(struct rte_rawdev_buf)); in cmd_sendfile_parsed() 364 malloc(sizeof(struct rte_rawdev_buf)); in start_polling_recv_file() 431 malloc(sizeof(struct rte_rawdev_buf)); in start_iofwd_per_lcore() 502 malloc(sizeof(struct rte_rawdev_buf)); in start_rxonly_per_lcore() 543 malloc(sizeof(struct rte_rawdev_buf)); in start_txonly_per_lcore() 872 ids = malloc(sizeof(uint32_t) * nb_ids); in ntb_stats_clear() 930 xstats_names = malloc(sizeof(struct rte_rawdev_xstats_name) * nb_ids); in ntb_stats_display() 941 ids = malloc(sizeof(uint32_t) * nb_ids); in ntb_stats_display() 944 values = malloc(sizeof(uint64_t) * nb_ids); in ntb_stats_display()
|
| /dpdk/lib/eal/windows/include/ |
| H A D | dirent.h | 168 dirp = (_WDIR *)malloc(sizeof(struct _WDIR)); in _wopendir() 191 dirp->patt = (wchar_t *)malloc(sizeof(wchar_t) * n + 16); in _wopendir() 389 dirp = (DIR *)malloc(sizeof(struct DIR)); in opendir()
|
| /dpdk/drivers/net/virtio/virtio_user/ |
| H A D | vhost_kernel.c | 225 vm = malloc(sizeof(struct vhost_memory_kernel) + in vhost_kernel_set_memory_table() 403 data = malloc(sizeof(*data)); in vhost_kernel_setup() 409 data->vhostfds = malloc(dev->max_queue_pairs * sizeof(int)); in vhost_kernel_setup() 414 data->tapfds = malloc(dev->max_queue_pairs * sizeof(int)); in vhost_kernel_setup()
|
| H A D | vhost_vdpa.c | 458 config = malloc(sizeof(*config) + len); in vhost_vdpa_get_config() 488 config = malloc(sizeof(*config) + len); in vhost_vdpa_set_config() 523 data = malloc(sizeof(*data)); in vhost_vdpa_setup()
|
| /dpdk/lib/eal/windows/ |
| H A D | eal_lcore.c | 75 infos = malloc(infos_size); in eal_query_group_affinity() 174 infos = malloc(infos_size); in eal_create_cpu_map()
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | env_abstraction_layer.rst | 183 that any allocation from the malloc heap not span across allocations 341 Using a set of malloc heap API's is the recommended way to use externally 351 to a DPDK malloc heap. 828 The EAL provides a malloc API to allocate any-sized memory. 830 The objective of this API is to provide malloc-like functions to allow 859 This API is meant to be used by an application that requires malloc-like 871 There are two data structure types used internally in the malloc library: 896 this malloc heap. 906 Example of a malloc heap and malloc elements within the malloc library 979 value passed back to the application on a malloc. [all …]
|
| /dpdk/drivers/raw/ifpga/base/ |
| H A D | ifpga_compat.h | 30 #define malloc(size) opae_malloc(size) macro
|
| /dpdk/lib/eal/unix/ |
| H A D | rte_thread.c | 36 *key = malloc(sizeof(**key)); in rte_thread_key_create()
|
| /dpdk/lib/eal/common/ |
| H A D | eal_common_memalloc.c | 173 entry = malloc(sizeof(*entry)); in eal_memalloc_mem_event_callback_register() 279 entry = malloc(sizeof(*entry)); in eal_memalloc_mem_alloc_validator_register()
|
| /dpdk/drivers/net/pcap/ |
| H A D | pcap_osdep_windows.c | 83 info = (IP_ADAPTER_ADDRESSES *)malloc(size); in osdep_iface_mac_get()
|
| /dpdk/drivers/common/mlx5/linux/ |
| H A D | mlx5_glue.c | 688 action = malloc(sizeof(*action)); in mlx5_glue_dv_create_flow_action_counter() 712 action = malloc(sizeof(*action)); in mlx5_glue_dv_create_flow_action_dest_ibv_qp() 757 action = malloc(sizeof(*action)); in mlx5_glue_dv_create_flow_action_modify_header() 797 action = malloc(sizeof(*action)); in mlx5_glue_dv_create_flow_action_packet_reformat() 827 action = malloc(sizeof(*action)); in mlx5_glue_dv_create_flow_action_tag()
|
| /dpdk/drivers/common/mlx5/windows/ |
| H A D | mlx5_glue.c | 73 mlx5_ctx = malloc((sizeof(struct mlx5_context))); in mlx5_glue_devx_open_device() 136 devx_obj = malloc((sizeof(*devx_obj))); in mlx5_glue_devx_obj_create()
|