[malloc] Rename malloc_dma() to malloc_phys()
The malloc_dma() function allocates memory with specified physical alignment, and is typically (though not exclusively) used to allocate memory for DMA. Rename to malloc_phys() to more closely match the functionality, and to create name space for functions that specifically allocate and map DMA-capable buffers. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -61,7 +61,7 @@ mlx_memory_alloc_dma_priv(
|
||||
)
|
||||
{
|
||||
mlx_status status = MLX_SUCCESS;
|
||||
*ptr = malloc_dma(size, align);
|
||||
*ptr = malloc_phys(size, align);
|
||||
if (*ptr == NULL) {
|
||||
status = MLX_OUT_OF_RESOURCES;
|
||||
} else {
|
||||
@@ -78,7 +78,7 @@ mlx_memory_free_dma_priv(
|
||||
)
|
||||
{
|
||||
mlx_status status = MLX_SUCCESS;
|
||||
free_dma(ptr, size);
|
||||
free_phys(ptr, size);
|
||||
return status;
|
||||
}
|
||||
mlx_status
|
||||
|
||||
Reference in New Issue
Block a user