FreeBSD/sys/dev/mlx5/mlx5_core/mlx5_alloc.c
/* Handling for queue buffers -- we allocate a bunch of memory and
 * register it in a memory region at HCA virtual address 0.  If the
 * requested size is > max_direct, we split the allocation into
 * multiple pages, so we don't require too much contiguous memory.
 */
Handling for queue buffers -- we allocate a bunch of memory and
register it in a memory region at HCA virtual address 0.  If the
requested size is > max_direct, we split the allocation into
multiple pages, so we don't require too much contiguous memory.
Handling for queue buffers -- we allocate a bunch of memory and register it in a memory region at HCA virtual address 0 . If the requested size is > max_direct we split the allocation into multiple pages so we don ' t require too much contiguous memory .
static void *mlx5_dma_zalloc_coherent_node(struct mlx5_core_dev *dev,
					   size_t size, dma_addr_t *dma_handle,
					   int node)
{
	void *cpu_handle;
	cpu_handle = dma_zalloc_coherent(&dev->pdev->dev, size,
					 dma_handle, GFP_KERNEL);
	return cpu_handle;
}
static void * mlx5_dma_zalloc_coherent_node ( struct mlx5_core_dev * dev , size_t size , dma_addr_t * dma_handle , int node ) { void * cpu_handle ; cpu_handle = dma_zalloc_coherent ( & dev -> pdev -> dev , size , dma_handle , GFP_KERNEL ) ; return cpu_handle ; }
Handling for queue buffers -- we allocate a bunch of memory and
 register it in a memory region at HCA virtual address 0.
Handling for queue buffers -- we allocate a bunch of memory and register it in a memory region at HCA virtual address 0 .