Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c2123 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, in alloc_cmd_page()
2125 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2129 if (!((uintptr_t)cmd->cmd_alloc_buf & (MLX5_ADAPTER_PAGE_SIZE - 1))) { in alloc_cmd_page()
2130 cmd->cmd_buf = cmd->cmd_alloc_buf; in alloc_cmd_page()
2136 dma_free_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, cmd->cmd_alloc_buf, in alloc_cmd_page()
2138 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), in alloc_cmd_page()
2141 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2144 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
2152 dma_free_coherent(mlx5_core_dma_dev(dev), cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()
/linux-6.1.9/include/linux/mlx5/
Ddriver.h286 void *cmd_alloc_buf; member