Commit 585ffd65 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/ttm: fix coding style in ttm_bo_driver.h

A few 80chars issues and spaces at wrong places.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1c331f75
...@@ -371,9 +371,9 @@ struct ttm_bo_driver { ...@@ -371,9 +371,9 @@ struct ttm_bo_driver {
* submission as a consequence. * submission as a consequence.
*/ */
int (*invalidate_caches) (struct ttm_bo_device *bdev, uint32_t flags); int (*invalidate_caches)(struct ttm_bo_device *bdev, uint32_t flags);
int (*init_mem_type) (struct ttm_bo_device *bdev, uint32_t type, int (*init_mem_type)(struct ttm_bo_device *bdev, uint32_t type,
struct ttm_mem_type_manager *man); struct ttm_mem_type_manager *man);
/** /**
* struct ttm_bo_driver member evict_flags: * struct ttm_bo_driver member evict_flags:
* *
...@@ -384,8 +384,9 @@ struct ttm_bo_driver { ...@@ -384,8 +384,9 @@ struct ttm_bo_driver {
* finished, they'll end up in bo->mem.flags * finished, they'll end up in bo->mem.flags
*/ */
void(*evict_flags) (struct ttm_buffer_object *bo, void (*evict_flags)(struct ttm_buffer_object *bo,
struct ttm_placement *placement); struct ttm_placement *placement);
/** /**
* struct ttm_bo_driver member move: * struct ttm_bo_driver member move:
* *
...@@ -399,10 +400,9 @@ struct ttm_bo_driver { ...@@ -399,10 +400,9 @@ struct ttm_bo_driver {
* *
* Move a buffer between two memory regions. * Move a buffer between two memory regions.
*/ */
int (*move) (struct ttm_buffer_object *bo, int (*move)(struct ttm_buffer_object *bo, bool evict,
bool evict, bool interruptible, bool interruptible, bool no_wait_gpu,
bool no_wait_gpu, struct ttm_mem_reg *new_mem);
struct ttm_mem_reg *new_mem);
/** /**
* struct ttm_bo_driver_member verify_access * struct ttm_bo_driver_member verify_access
...@@ -416,8 +416,8 @@ struct ttm_bo_driver { ...@@ -416,8 +416,8 @@ struct ttm_bo_driver {
* access for all buffer objects. * access for all buffer objects.
* This function should return 0 if access is granted, -EPERM otherwise. * This function should return 0 if access is granted, -EPERM otherwise.
*/ */
int (*verify_access) (struct ttm_buffer_object *bo, int (*verify_access)(struct ttm_buffer_object *bo,
struct file *filp); struct file *filp);
/* hook to notify driver about a driver move so it /* hook to notify driver about a driver move so it
* can do tiling things */ * can do tiling things */
...@@ -430,7 +430,7 @@ struct ttm_bo_driver { ...@@ -430,7 +430,7 @@ struct ttm_bo_driver {
/** /**
* notify the driver that we're about to swap out this bo * notify the driver that we're about to swap out this bo
*/ */
void (*swap_notify) (struct ttm_buffer_object *bo); void (*swap_notify)(struct ttm_buffer_object *bo);
/** /**
* Driver callback on when mapping io memory (for bo_move_memcpy * Driver callback on when mapping io memory (for bo_move_memcpy
...@@ -438,8 +438,10 @@ struct ttm_bo_driver { ...@@ -438,8 +438,10 @@ struct ttm_bo_driver {
* the mapping is not use anymore. io_mem_reserve & io_mem_free * the mapping is not use anymore. io_mem_reserve & io_mem_free
* are balanced. * are balanced.
*/ */
int (*io_mem_reserve)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); int (*io_mem_reserve)(struct ttm_bo_device *bdev,
void (*io_mem_free)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); struct ttm_mem_reg *mem);
void (*io_mem_free)(struct ttm_bo_device *bdev,
struct ttm_mem_reg *mem);
/** /**
* Optional driver callback for when BO is removed from the LRU. * Optional driver callback for when BO is removed from the LRU.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment