Lines Matching refs:crtc_lut
5091 struct drm_mode_crtc_lut *crtc_lut = data; in drm_mode_gamma_set_ioctl() local
5101 crtc = drm_crtc_find(dev, crtc_lut->crtc_id); in drm_mode_gamma_set_ioctl()
5113 if (crtc_lut->gamma_size != crtc->gamma_size) { in drm_mode_gamma_set_ioctl()
5118 size = crtc_lut->gamma_size * (sizeof(uint16_t)); in drm_mode_gamma_set_ioctl()
5120 if (copy_from_user(r_base, (void __user *)(unsigned long)crtc_lut->red, size)) { in drm_mode_gamma_set_ioctl()
5126 if (copy_from_user(g_base, (void __user *)(unsigned long)crtc_lut->green, size)) { in drm_mode_gamma_set_ioctl()
5132 if (copy_from_user(b_base, (void __user *)(unsigned long)crtc_lut->blue, size)) { in drm_mode_gamma_set_ioctl()
5163 struct drm_mode_crtc_lut *crtc_lut = data; in drm_mode_gamma_get_ioctl() local
5173 crtc = drm_crtc_find(dev, crtc_lut->crtc_id); in drm_mode_gamma_get_ioctl()
5180 if (crtc_lut->gamma_size != crtc->gamma_size) { in drm_mode_gamma_get_ioctl()
5185 size = crtc_lut->gamma_size * (sizeof(uint16_t)); in drm_mode_gamma_get_ioctl()
5187 if (copy_to_user((void __user *)(unsigned long)crtc_lut->red, r_base, size)) { in drm_mode_gamma_get_ioctl()
5193 if (copy_to_user((void __user *)(unsigned long)crtc_lut->green, g_base, size)) { in drm_mode_gamma_get_ioctl()
5199 if (copy_to_user((void __user *)(unsigned long)crtc_lut->blue, b_base, size)) { in drm_mode_gamma_get_ioctl()