Lines Matching refs:crtc_lut
4441 struct drm_mode_crtc_lut *crtc_lut = data; in drm_mode_gamma_set_ioctl() local
4451 crtc = drm_crtc_find(dev, crtc_lut->crtc_id); in drm_mode_gamma_set_ioctl()
4463 if (crtc_lut->gamma_size != crtc->gamma_size) { in drm_mode_gamma_set_ioctl()
4468 size = crtc_lut->gamma_size * (sizeof(uint16_t)); in drm_mode_gamma_set_ioctl()
4470 if (copy_from_user(r_base, (void __user *)(unsigned long)crtc_lut->red, size)) { in drm_mode_gamma_set_ioctl()
4476 if (copy_from_user(g_base, (void __user *)(unsigned long)crtc_lut->green, size)) { in drm_mode_gamma_set_ioctl()
4482 if (copy_from_user(b_base, (void __user *)(unsigned long)crtc_lut->blue, size)) { in drm_mode_gamma_set_ioctl()
4513 struct drm_mode_crtc_lut *crtc_lut = data; in drm_mode_gamma_get_ioctl() local
4523 crtc = drm_crtc_find(dev, crtc_lut->crtc_id); in drm_mode_gamma_get_ioctl()
4530 if (crtc_lut->gamma_size != crtc->gamma_size) { in drm_mode_gamma_get_ioctl()
4535 size = crtc_lut->gamma_size * (sizeof(uint16_t)); in drm_mode_gamma_get_ioctl()
4537 if (copy_to_user((void __user *)(unsigned long)crtc_lut->red, r_base, size)) { in drm_mode_gamma_get_ioctl()
4543 if (copy_to_user((void __user *)(unsigned long)crtc_lut->green, g_base, size)) { in drm_mode_gamma_get_ioctl()
4549 if (copy_to_user((void __user *)(unsigned long)crtc_lut->blue, b_base, size)) { in drm_mode_gamma_get_ioctl()