aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@amd.com>2014-12-29 08:24:25 -0500
committerOded Gabbay <oded.gabbay@amd.com>2015-01-06 12:44:36 -0500
commitb81c55db1053805866a242cd0bfbfb0c60c499b3 (patch)
tree5136174fed0de5316dcb5a9bfeecb74b617bdef7 /drivers/gpu
parent524a640444ae19593dd4e9e80075041c1ed831bd (diff)
drm/amdkfd: reformat IOCTL definitions to drm-style
This patch reformats the ioctl definitions in kfd_ioctl.h to be similar to the drm ioctls definition style. v2: Renamed KFD_COMMAND_(START|END) to AMDKFD_... Signed-off-by: Oded Gabbay <oded.gabbay@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_chardev.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
index 249f4921f4a8..6fbde9e411e0 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
@@ -523,35 +523,36 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
523 523
524 524
525 switch (cmd) { 525 switch (cmd) {
526 case KFD_IOC_GET_VERSION: 526 case AMDKFD_IOC_GET_VERSION:
527 retcode = kfd_ioctl_get_version(filep, process, kdata); 527 retcode = kfd_ioctl_get_version(filep, process, kdata);
528 break; 528 break;
529 case KFD_IOC_CREATE_QUEUE: 529
530 case AMDKFD_IOC_CREATE_QUEUE:
530 retcode = kfd_ioctl_create_queue(filep, process, 531 retcode = kfd_ioctl_create_queue(filep, process,
531 kdata); 532 kdata);
532 break; 533 break;
533 534
534 case KFD_IOC_DESTROY_QUEUE: 535 case AMDKFD_IOC_DESTROY_QUEUE:
535 retcode = kfd_ioctl_destroy_queue(filep, process, 536 retcode = kfd_ioctl_destroy_queue(filep, process,
536 kdata); 537 kdata);
537 break; 538 break;
538 539
539 case KFD_IOC_SET_MEMORY_POLICY: 540 case AMDKFD_IOC_SET_MEMORY_POLICY:
540 retcode = kfd_ioctl_set_memory_policy(filep, process, 541 retcode = kfd_ioctl_set_memory_policy(filep, process,
541 kdata); 542 kdata);
542 break; 543 break;
543 544
544 case KFD_IOC_GET_CLOCK_COUNTERS: 545 case AMDKFD_IOC_GET_CLOCK_COUNTERS:
545 retcode = kfd_ioctl_get_clock_counters(filep, process, 546 retcode = kfd_ioctl_get_clock_counters(filep, process,
546 kdata); 547 kdata);
547 break; 548 break;
548 549
549 case KFD_IOC_GET_PROCESS_APERTURES: 550 case AMDKFD_IOC_GET_PROCESS_APERTURES:
550 retcode = kfd_ioctl_get_process_apertures(filep, process, 551 retcode = kfd_ioctl_get_process_apertures(filep, process,
551 kdata); 552 kdata);
552 break; 553 break;
553 554
554 case KFD_IOC_UPDATE_QUEUE: 555 case AMDKFD_IOC_UPDATE_QUEUE:
555 retcode = kfd_ioctl_update_queue(filep, process, 556 retcode = kfd_ioctl_update_queue(filep, process,
556 kdata); 557 kdata);
557 break; 558 break;