Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c2394 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, in alloc_cmd_page()
2396 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2400 if (!((uintptr_t)cmd->cmd_alloc_buf & (MLX5_ADAPTER_PAGE_SIZE - 1))) { in alloc_cmd_page()
2401 cmd->cmd_buf = cmd->cmd_alloc_buf; in alloc_cmd_page()
2407 dma_free_coherent(mlx5_core_dma_dev(dev), MLX5_ADAPTER_PAGE_SIZE, cmd->cmd_alloc_buf, in alloc_cmd_page()
2409 cmd->cmd_alloc_buf = dma_alloc_coherent(mlx5_core_dma_dev(dev), in alloc_cmd_page()
2412 if (!cmd->cmd_alloc_buf) in alloc_cmd_page()
2415 cmd->cmd_buf = PTR_ALIGN(cmd->cmd_alloc_buf, MLX5_ADAPTER_PAGE_SIZE); in alloc_cmd_page()
2423 dma_free_coherent(mlx5_core_dma_dev(dev), cmd->alloc_size, cmd->cmd_alloc_buf, in free_cmd_page()