Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1970 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, in alloc_cmd_page()
1972 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
1976 if (!((uintptr_t)cmd->cmd_alloc_buf & (MLX5_ADAPTER_PAGE_SIZE - 1))) { in alloc_cmd_page()
1977 cmd->cmd_buf = cmd->cmd_alloc_buf; in alloc_cmd_page()
1983 dma_free_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, cmd->cmd_alloc_buf, in alloc_cmd_page()
1985 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), in alloc_cmd_page()
1988 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
1991 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
1999 dma_free_coherent(mlx5_core_dma_dev(dev), cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()
/kernel/linux/linux-5.10/include/linux/mlx5/
Ddriver.h270 void *cmd_alloc_buf; member