scrtc              60 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_setup_geometry(struct shmob_drm_crtc *scrtc)
scrtc              62 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_crtc *crtc = &scrtc->crtc;
scrtc             118 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_start_stop(struct shmob_drm_crtc *scrtc, bool start)
scrtc             120 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_device *sdev = scrtc->crtc.dev->dev_private;
scrtc             151 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc)
scrtc             153 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_crtc *crtc = &scrtc->crtc;
scrtc             162 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (scrtc->started)
scrtc             180 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_start_stop(scrtc, false);
scrtc             207 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_setup_geometry(scrtc);
scrtc             211 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDMLSR, scrtc->line_size);
scrtc             212 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write(sdev, LDSA1R, scrtc->dma[0]);
scrtc             214 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write(sdev, LDSA2R, scrtc->dma[1]);
scrtc             247 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_start_stop(scrtc, true);
scrtc             249 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->started = true;
scrtc             252 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_stop(struct shmob_drm_crtc *scrtc)
scrtc             254 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_crtc *crtc = &scrtc->crtc;
scrtc             257 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (!scrtc->started)
scrtc             261 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_start_stop(scrtc, false);
scrtc             269 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->started = false;
scrtc             272 drivers/gpu/drm/shmobile/shmob_drm_crtc.c void shmob_drm_crtc_suspend(struct shmob_drm_crtc *scrtc)
scrtc             274 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_stop(scrtc);
scrtc             277 drivers/gpu/drm/shmobile/shmob_drm_crtc.c void shmob_drm_crtc_resume(struct shmob_drm_crtc *scrtc)
scrtc             279 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (scrtc->dpms != DRM_MODE_DPMS_ON)
scrtc             282 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_start(scrtc);
scrtc             285 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_compute_base(struct shmob_drm_crtc *scrtc,
scrtc             288 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_crtc *crtc = &scrtc->crtc;
scrtc             293 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	bpp = scrtc->format->yuv ? 8 : scrtc->format->bpp;
scrtc             295 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->dma[0] = gem->paddr + fb->offsets[0]
scrtc             298 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (scrtc->format->yuv) {
scrtc             299 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		bpp = scrtc->format->bpp - 8;
scrtc             301 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		scrtc->dma[1] = gem->paddr + fb->offsets[1]
scrtc             307 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_update_base(struct shmob_drm_crtc *scrtc)
scrtc             309 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_crtc *crtc = &scrtc->crtc;
scrtc             312 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_compute_base(scrtc, crtc->x, crtc->y);
scrtc             314 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	lcdc_write_mirror(sdev, LDSA1R, scrtc->dma[0]);
scrtc             315 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (scrtc->format->yuv)
scrtc             316 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		lcdc_write_mirror(sdev, LDSA2R, scrtc->dma[1]);
scrtc             325 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_crtc *scrtc = to_shmob_crtc(crtc);
scrtc             327 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (scrtc->dpms == mode)
scrtc             331 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		shmob_drm_crtc_start(scrtc);
scrtc             333 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		shmob_drm_crtc_stop(scrtc);
scrtc             335 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->dpms = mode;
scrtc             349 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_crtc *scrtc = to_shmob_crtc(crtc);
scrtc             360 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->format = format;
scrtc             361 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->line_size = crtc->primary->fb->pitches[0];
scrtc             363 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_compute_base(scrtc, x, y);
scrtc             389 drivers/gpu/drm/shmobile/shmob_drm_crtc.c void shmob_drm_crtc_finish_page_flip(struct shmob_drm_crtc *scrtc)
scrtc             392 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_device *dev = scrtc->crtc.dev;
scrtc             396 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	event = scrtc->event;
scrtc             397 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	scrtc->event = NULL;
scrtc             399 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		drm_crtc_send_vblank_event(&scrtc->crtc, event);
scrtc             400 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		drm_crtc_vblank_put(&scrtc->crtc);
scrtc             411 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct shmob_drm_crtc *scrtc = to_shmob_crtc(crtc);
scrtc             412 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	struct drm_device *dev = scrtc->crtc.dev;
scrtc             416 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	if (scrtc->event != NULL) {
scrtc             423 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 	shmob_drm_crtc_update_base(scrtc);
scrtc             427 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		drm_crtc_vblank_get(&scrtc->crtc);
scrtc             429 drivers/gpu/drm/shmobile/shmob_drm_crtc.c 		scrtc->event = event;
scrtc              47 drivers/gpu/drm/shmobile/shmob_drm_crtc.h void shmob_drm_crtc_finish_page_flip(struct shmob_drm_crtc *scrtc);
scrtc              48 drivers/gpu/drm/shmobile/shmob_drm_crtc.h void shmob_drm_crtc_suspend(struct shmob_drm_crtc *scrtc);
scrtc              49 drivers/gpu/drm/shmobile/shmob_drm_crtc.h void shmob_drm_crtc_resume(struct shmob_drm_crtc *scrtc);
scrtc              50 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc              51 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sunxi_engine *engine = scrtc->engine;
scrtc              63 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc              65 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sunxi_engine *engine = scrtc->engine;
scrtc              72 drivers/gpu/drm/sun4i/sun4i_crtc.c 		scrtc->event = crtc->state->event;
scrtc              84 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc              89 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sunxi_engine_commit(scrtc->engine);
scrtc             107 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc             113 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_set_status(scrtc->tcon, encoder, false);
scrtc             128 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc             132 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_set_status(scrtc->tcon, encoder, true);
scrtc             141 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc             143 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_mode_set(scrtc->tcon, encoder, mode);
scrtc             157 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc             161 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_enable_vblank(scrtc->tcon, true);
scrtc             168 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);
scrtc             172 drivers/gpu/drm/sun4i/sun4i_crtc.c 	sun4i_tcon_enable_vblank(scrtc->tcon, false);
scrtc             190 drivers/gpu/drm/sun4i/sun4i_crtc.c 	struct sun4i_crtc *scrtc;
scrtc             195 drivers/gpu/drm/sun4i/sun4i_crtc.c 	scrtc = devm_kzalloc(drm->dev, sizeof(*scrtc), GFP_KERNEL);
scrtc             196 drivers/gpu/drm/sun4i/sun4i_crtc.c 	if (!scrtc)
scrtc             198 drivers/gpu/drm/sun4i/sun4i_crtc.c 	scrtc->engine = engine;
scrtc             199 drivers/gpu/drm/sun4i/sun4i_crtc.c 	scrtc->tcon = tcon;
scrtc             224 drivers/gpu/drm/sun4i/sun4i_crtc.c 	ret = drm_crtc_init_with_planes(drm, &scrtc->crtc,
scrtc             234 drivers/gpu/drm/sun4i/sun4i_crtc.c 	drm_crtc_helper_add(&scrtc->crtc, &sun4i_crtc_helper_funcs);
scrtc             237 drivers/gpu/drm/sun4i/sun4i_crtc.c 	scrtc->crtc.port = of_graph_get_port_by_id(scrtc->tcon->dev->of_node,
scrtc             242 drivers/gpu/drm/sun4i/sun4i_crtc.c 		uint32_t possible_crtcs = drm_crtc_mask(&scrtc->crtc);
scrtc             249 drivers/gpu/drm/sun4i/sun4i_crtc.c 	return scrtc;
scrtc             702 drivers/gpu/drm/sun4i/sun4i_tcon.c 					struct sun4i_crtc *scrtc)
scrtc             707 drivers/gpu/drm/sun4i/sun4i_tcon.c 	if (scrtc->event) {
scrtc             708 drivers/gpu/drm/sun4i/sun4i_tcon.c 		drm_crtc_send_vblank_event(&scrtc->crtc, scrtc->event);
scrtc             709 drivers/gpu/drm/sun4i/sun4i_tcon.c 		drm_crtc_vblank_put(&scrtc->crtc);
scrtc             710 drivers/gpu/drm/sun4i/sun4i_tcon.c 		scrtc->event = NULL;
scrtc             719 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sun4i_crtc *scrtc = tcon->crtc;
scrtc             720 drivers/gpu/drm/sun4i/sun4i_tcon.c 	struct sunxi_engine *engine = scrtc->engine;
scrtc             730 drivers/gpu/drm/sun4i/sun4i_tcon.c 	drm_crtc_handle_vblank(&scrtc->crtc);
scrtc             731 drivers/gpu/drm/sun4i/sun4i_tcon.c 	sun4i_tcon_finish_page_flip(drm, scrtc);