Lines Matching refs:crtc
311 struct drm_crtc crtc; member
763 struct drm_crtc *new_crtc = new_plane_state->crtc; in ofdrm_primary_plane_helper_atomic_check()
769 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_plane_state->crtc); in ofdrm_primary_plane_helper_atomic_check()
780 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_plane_state->crtc); in ofdrm_primary_plane_helper_atomic_check()
876 static enum drm_mode_status ofdrm_crtc_helper_mode_valid(struct drm_crtc *crtc, in ofdrm_crtc_helper_mode_valid() argument
879 struct ofdrm_device *odev = ofdrm_device_of_dev(crtc->dev); in ofdrm_crtc_helper_mode_valid()
881 return drm_crtc_helper_mode_valid_fixed(crtc, mode, &odev->mode); in ofdrm_crtc_helper_mode_valid()
884 static int ofdrm_crtc_helper_atomic_check(struct drm_crtc *crtc, in ofdrm_crtc_helper_atomic_check() argument
889 struct drm_device *dev = crtc->dev; in ofdrm_crtc_helper_atomic_check()
890 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in ofdrm_crtc_helper_atomic_check()
912 static void ofdrm_crtc_helper_atomic_flush(struct drm_crtc *crtc, struct drm_atomic_state *state) in ofdrm_crtc_helper_atomic_flush() argument
914 struct ofdrm_device *odev = ofdrm_device_of_dev(crtc->dev); in ofdrm_crtc_helper_atomic_flush()
915 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ofdrm_crtc_helper_atomic_flush()
939 static void ofdrm_crtc_reset(struct drm_crtc *crtc) in ofdrm_crtc_reset() argument
944 if (crtc->state) in ofdrm_crtc_reset()
945 ofdrm_crtc_state_destroy(to_ofdrm_crtc_state(crtc->state)); in ofdrm_crtc_reset()
948 __drm_atomic_helper_crtc_reset(crtc, &ofdrm_crtc_state->base); in ofdrm_crtc_reset()
950 __drm_atomic_helper_crtc_reset(crtc, NULL); in ofdrm_crtc_reset()
953 static struct drm_crtc_state *ofdrm_crtc_atomic_duplicate_state(struct drm_crtc *crtc) in ofdrm_crtc_atomic_duplicate_state() argument
955 struct drm_device *dev = crtc->dev; in ofdrm_crtc_atomic_duplicate_state()
956 struct drm_crtc_state *crtc_state = crtc->state; in ofdrm_crtc_atomic_duplicate_state()
969 __drm_atomic_helper_crtc_duplicate_state(crtc, &new_ofdrm_crtc_state->base); in ofdrm_crtc_atomic_duplicate_state()
975 static void ofdrm_crtc_atomic_destroy_state(struct drm_crtc *crtc, in ofdrm_crtc_atomic_destroy_state() argument
1092 struct drm_crtc *crtc; in ofdrm_device_create() local
1285 crtc = &odev->crtc; in ofdrm_device_create()
1286 ret = drm_crtc_init_with_planes(dev, crtc, primary_plane, NULL, in ofdrm_device_create()
1290 drm_crtc_helper_add(crtc, &ofdrm_crtc_helper_funcs); in ofdrm_device_create()
1293 drm_mode_crtc_set_gamma_size(crtc, OFDRM_GAMMA_LUT_SIZE); in ofdrm_device_create()
1294 drm_crtc_enable_color_mgmt(crtc, 0, false, OFDRM_GAMMA_LUT_SIZE); in ofdrm_device_create()
1303 encoder->possible_crtcs = drm_crtc_mask(crtc); in ofdrm_device_create()