Home
last modified time | relevance | path

Searched refs:cmd_alloc_buf (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dcmd.c2012 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, in alloc_cmd_page()
2014 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2018 if (!((uintptr_t)cmd->cmd_alloc_buf & (MLX5_ADAPTER_PAGE_SIZE - 1))) { in alloc_cmd_page()
2019 cmd->cmd_buf = cmd->cmd_alloc_buf; in alloc_cmd_page()
2025 dma_free_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, cmd->cmd_alloc_buf, in alloc_cmd_page()
2027 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), in alloc_cmd_page()
2030 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2033 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
2041 dma_free_coherent(mlx5_core_dma_dev(dev), cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()
/linux/include/linux/mlx5/
A Ddriver.h276 void *cmd_alloc_buf; member

Completed in 13 milliseconds