Lines Matching refs:crtc_state
514 struct crtc_state *crtc_state = &state->crtc_state; in display_pre_init() local
515 struct rockchip_crtc *crtc = crtc_state->crtc; in display_pre_init()
521 crtc->vps[crtc_state->crtc_id].output_type = conn_state->type; in display_pre_init()
578 struct crtc_state *crtc_state = &state->crtc_state; in display_mode_valid() local
579 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_mode_valid()
600 struct crtc_state *crtc_state = &state->crtc_state; in display_mode_fixup() local
601 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_mode_fixup()
618 struct crtc_state *crtc_state = &state->crtc_state; in display_init() local
619 struct rockchip_crtc *crtc = crtc_state->crtc; in display_init()
647 if (crtc_state->crtc->active && !crtc_state->ports_node && in display_init()
648 memcmp(&crtc_state->crtc->active_mode, &conn_state->mode, in display_init()
651 crtc_state->dev->name, in display_init()
652 crtc_state->crtc->active_mode.type, in display_init()
653 crtc_state->crtc->active_mode.hdisplay, in display_init()
654 crtc_state->crtc->active_mode.vdisplay, in display_init()
655 crtc_state->crtc->active_mode.vrefresh); in display_init()
796 crtc_state->crtc->active = true; in display_init()
797 memcpy(&crtc_state->crtc->active_mode, in display_init()
809 struct crtc_state *crtc_state = &state->crtc_state; in display_send_mcu_cmd() local
810 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_send_mcu_cmd()
828 struct crtc_state *crtc_state = &state->crtc_state; in display_set_plane() local
829 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_set_plane()
847 struct crtc_state *crtc_state = &state->crtc_state; in display_enable() local
848 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_enable()
869 if (crtc_state->soft_te) in display_enable()
879 struct crtc_state *crtc_state = &state->crtc_state; in display_disable() local
880 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_disable()
907 struct crtc_state *crtc_state = &state->crtc_state; in display_check() local
908 const struct rockchip_crtc *crtc = crtc_state->crtc; in display_check()
942 struct crtc_state *crtc_state = &state->crtc_state; in display_logo() local
953 crtc_state->format = ROCKCHIP_FMT_RGB565; in display_logo()
956 crtc_state->format = ROCKCHIP_FMT_RGB888; in display_logo()
959 crtc_state->format = ROCKCHIP_FMT_ARGB8888; in display_logo()
967 crtc_state->src_rect.w = logo->width; in display_logo()
968 crtc_state->src_rect.h = logo->height; in display_logo()
969 crtc_state->src_rect.x = 0; in display_logo()
970 crtc_state->src_rect.y = 0; in display_logo()
971 crtc_state->ymirror = logo->ymirror; in display_logo()
972 crtc_state->rb_swap = 0; in display_logo()
974 crtc_state->dma_addr = (u32)(unsigned long)logo->mem + logo->offset; in display_logo()
975 crtc_state->xvir = ALIGN(crtc_state->src_rect.w * logo->bpp, 32) >> 5; in display_logo()
978 crtc_state->crtc_rect.x = 0; in display_logo()
979 crtc_state->crtc_rect.y = 0; in display_logo()
980 crtc_state->crtc_rect.w = hdisplay; in display_logo()
981 crtc_state->crtc_rect.h = vdisplay; in display_logo()
983 if (crtc_state->src_rect.w >= hdisplay) { in display_logo()
984 crtc_state->crtc_rect.x = 0; in display_logo()
985 crtc_state->crtc_rect.w = hdisplay; in display_logo()
987 crtc_state->crtc_rect.x = (hdisplay - crtc_state->src_rect.w) / 2; in display_logo()
988 crtc_state->crtc_rect.w = crtc_state->src_rect.w; in display_logo()
991 if (crtc_state->src_rect.h >= vdisplay) { in display_logo()
992 crtc_state->crtc_rect.y = 0; in display_logo()
993 crtc_state->crtc_rect.h = vdisplay; in display_logo()
995 crtc_state->crtc_rect.y = (vdisplay - crtc_state->src_rect.h) / 2; in display_logo()
996 crtc_state->crtc_rect.h = crtc_state->src_rect.h; in display_logo()
1042 static int get_crtc_mcu_mode(struct crtc_state *crtc_state, struct device_node *port_node, in get_crtc_mcu_mode() argument
1054 mcu_node = dev_read_subnode(crtc_state->dev, "mcu-timing"); in get_crtc_mcu_mode()
1074 crtc_state->mcu_timing.mcu_pix_total = total_pixel; in get_crtc_mcu_mode()
1075 crtc_state->mcu_timing.mcu_cs_pst = cs_pst; in get_crtc_mcu_mode()
1076 crtc_state->mcu_timing.mcu_cs_pend = cs_pend; in get_crtc_mcu_mode()
1077 crtc_state->mcu_timing.mcu_rw_pst = rw_pst; in get_crtc_mcu_mode()
1078 crtc_state->mcu_timing.mcu_rw_pend = rw_pend; in get_crtc_mcu_mode()
1304 struct crtc_state *crtc_state; in rockchip_vop_dump() local
1312 crtc_state = &state->crtc_state; in rockchip_vop_dump()
1313 crtc = crtc_state->crtc; in rockchip_vop_dump()
1862 s->crtc_state.node = np_to_ofnode(vop_node); in rockchip_display_probe()
1863 s->crtc_state.dev = crtc_dev; in rockchip_display_probe()
1864 s->crtc_state.crtc = crtc; in rockchip_display_probe()
1865 s->crtc_state.crtc_id = get_crtc_id(np_to_ofnode(ep_node), is_ports_node); in rockchip_display_probe()
1872 s->crtc_state.ports_node = port_parent_node; in rockchip_display_probe()
1883 s->crtc_state.crtc->vps[vp_id].xmirror_en = in rockchip_display_probe()
1889 s->crtc_state.crtc->vps[vp_id].cursor_plane = cursor_plane; in rockchip_display_probe()
1891 s->crtc_state.crtc->vps[vp_id].plane_mask = ret; in rockchip_display_probe()
1892 s->crtc_state.crtc->assign_plane |= true; in rockchip_display_probe()
1893 s->crtc_state.crtc->vps[vp_id].primary_plane_id = in rockchip_display_probe()
1897 s->crtc_state.crtc->vps[vp_id].plane_mask, in rockchip_display_probe()
1898 s->crtc_state.crtc->vps[vp_id].primary_plane_id == U8_MAX ? -1 : in rockchip_display_probe()
1899 s->crtc_state.crtc->vps[vp_id].primary_plane_id, in rockchip_display_probe()
1907 s->crtc_state.crtc->vps[vp_id].enable = vp_enable; in rockchip_display_probe()
1913 get_crtc_mcu_mode(&s->crtc_state, port_node, is_ports_node); in rockchip_display_probe()
1915 ret = ofnode_read_u32_default(s->crtc_state.node, in rockchip_display_probe()
1917 s->crtc_state.dual_channel_swap = ret; in rockchip_display_probe()
1965 printf("VP%d fail to load kernel logo\n", s->crtc_state.crtc_id); in rockchip_display_fixup()
2008 if (s->crtc_state.crtc->funcs->fixup_dts && !s->crtc_state.crtc->assign_plane) in rockchip_display_fixup()
2009 s->crtc_state.crtc->funcs->fixup_dts(s, blob); in rockchip_display_fixup()
2028 crtc = s->crtc_state.crtc; in rockchip_display_fixup()
2101 FDT_SET_U32("cubic_lut,offset", get_cubic_lut_offset(s->crtc_state.crtc_id)); in rockchip_display_fixup()