Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c2183 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, in alloc_cmd_page()
2185 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2189 if (!((uintptr_t)cmd->cmd_alloc_buf & (MLX5_ADAPTER_PAGE_SIZE - 1))) { in alloc_cmd_page()
2190 cmd->cmd_buf = cmd->cmd_alloc_buf; in alloc_cmd_page()
2196 dma_free_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, cmd->cmd_alloc_buf, in alloc_cmd_page()
2198 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), in alloc_cmd_page()
2201 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2204 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
2212 dma_free_coherent(mlx5_core_dma_dev(dev), cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()
/openbmc/linux/include/linux/mlx5/
H A Ddriver.h303 void *cmd_alloc_buf; member