aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-08-30 09:01:27 -0400
committerAlex Deucher <alexander.deucher@amd.com>2016-10-25 14:44:03 -0400
commit585ffd65441a4aea7e762d17f7a248d07cd1c9ac (patch)
treed79454910bc7cdcb794239525ed596ed004fee22
parent1c331f75aa6ccbf64ebcc5a019183e617c9d818a (diff)
drm/ttm: fix coding style in ttm_bo_driver.h
A few 80chars issues and spaces at wrong places. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--include/drm/ttm/ttm_bo_driver.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
index 4f0a92185995..7a76663d4045 100644
--- a/include/drm/ttm/ttm_bo_driver.h
+++ b/include/drm/ttm/ttm_bo_driver.h
@@ -371,9 +371,9 @@ struct ttm_bo_driver {
371 * submission as a consequence. 371 * submission as a consequence.
372 */ 372 */
373 373
374 int (*invalidate_caches) (struct ttm_bo_device *bdev, uint32_t flags); 374 int (*invalidate_caches)(struct ttm_bo_device *bdev, uint32_t flags);
375 int (*init_mem_type) (struct ttm_bo_device *bdev, uint32_t type, 375 int (*init_mem_type)(struct ttm_bo_device *bdev, uint32_t type,
376 struct ttm_mem_type_manager *man); 376 struct ttm_mem_type_manager *man);
377 /** 377 /**
378 * struct ttm_bo_driver member evict_flags: 378 * struct ttm_bo_driver member evict_flags:
379 * 379 *
@@ -384,8 +384,9 @@ struct ttm_bo_driver {
384 * finished, they'll end up in bo->mem.flags 384 * finished, they'll end up in bo->mem.flags
385 */ 385 */
386 386
387 void(*evict_flags) (struct ttm_buffer_object *bo, 387 void (*evict_flags)(struct ttm_buffer_object *bo,
388 struct ttm_placement *placement); 388 struct ttm_placement *placement);
389
389 /** 390 /**
390 * struct ttm_bo_driver member move: 391 * struct ttm_bo_driver member move:
391 * 392 *
@@ -399,10 +400,9 @@ struct ttm_bo_driver {
399 * 400 *
400 * Move a buffer between two memory regions. 401 * Move a buffer between two memory regions.
401 */ 402 */
402 int (*move) (struct ttm_buffer_object *bo, 403 int (*move)(struct ttm_buffer_object *bo, bool evict,
403 bool evict, bool interruptible, 404 bool interruptible, bool no_wait_gpu,
404 bool no_wait_gpu, 405 struct ttm_mem_reg *new_mem);
405 struct ttm_mem_reg *new_mem);
406 406
407 /** 407 /**
408 * struct ttm_bo_driver_member verify_access 408 * struct ttm_bo_driver_member verify_access
@@ -416,8 +416,8 @@ struct ttm_bo_driver {
416 * access for all buffer objects. 416 * access for all buffer objects.
417 * This function should return 0 if access is granted, -EPERM otherwise. 417 * This function should return 0 if access is granted, -EPERM otherwise.
418 */ 418 */
419 int (*verify_access) (struct ttm_buffer_object *bo, 419 int (*verify_access)(struct ttm_buffer_object *bo,
420 struct file *filp); 420 struct file *filp);
421 421
422 /* hook to notify driver about a driver move so it 422 /* hook to notify driver about a driver move so it
423 * can do tiling things */ 423 * can do tiling things */
@@ -430,7 +430,7 @@ struct ttm_bo_driver {
430 /** 430 /**
431 * notify the driver that we're about to swap out this bo 431 * notify the driver that we're about to swap out this bo
432 */ 432 */
433 void (*swap_notify) (struct ttm_buffer_object *bo); 433 void (*swap_notify)(struct ttm_buffer_object *bo);
434 434
435 /** 435 /**
436 * Driver callback on when mapping io memory (for bo_move_memcpy 436 * Driver callback on when mapping io memory (for bo_move_memcpy
@@ -438,8 +438,10 @@ struct ttm_bo_driver {
438 * the mapping is not use anymore. io_mem_reserve & io_mem_free 438 * the mapping is not use anymore. io_mem_reserve & io_mem_free
439 * are balanced. 439 * are balanced.
440 */ 440 */
441 int (*io_mem_reserve)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); 441 int (*io_mem_reserve)(struct ttm_bo_device *bdev,
442 void (*io_mem_free)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); 442 struct ttm_mem_reg *mem);
443 void (*io_mem_free)(struct ttm_bo_device *bdev,
444 struct ttm_mem_reg *mem);
443 445
444 /** 446 /**
445 * Optional driver callback for when BO is removed from the LRU. 447 * Optional driver callback for when BO is removed from the LRU.