Lines Matching refs:desc

221 	const struct panel_desc *desc;  member
250 for (i = 0; i < panel->desc->num_timings; i++) { in panel_edp_get_timings_modes()
251 const struct display_timing *dt = &panel->desc->timings[i]; in panel_edp_get_timings_modes()
266 if (panel->desc->num_timings == 1) in panel_edp_get_timings_modes()
282 for (i = 0; i < panel->desc->num_modes; i++) { in panel_edp_get_display_modes()
283 const struct drm_display_mode *m = &panel->desc->modes[i]; in panel_edp_get_display_modes()
295 if (panel->desc->num_modes == 1) in panel_edp_get_display_modes()
332 if (!panel->desc) in panel_edp_get_non_edid_modes()
347 if (num == 0 && panel->desc->num_timings) in panel_edp_get_non_edid_modes()
356 WARN_ON(panel->desc->num_timings && panel->desc->num_modes); in panel_edp_get_non_edid_modes()
360 connector->display_info.bpc = panel->desc->bpc; in panel_edp_get_non_edid_modes()
361 connector->display_info.width_mm = panel->desc->size.width; in panel_edp_get_non_edid_modes()
362 connector->display_info.height_mm = panel->desc->size.height; in panel_edp_get_non_edid_modes()
388 if (p->desc->delay.disable) in panel_edp_disable()
389 msleep(p->desc->delay.disable); in panel_edp_disable()
448 panel_edp_wait(p->unprepared_time, p->desc->delay.unprepare); in panel_edp_prepare_once()
459 delay = p->desc->delay.hpd_reliable; in panel_edp_prepare_once()
461 delay = max(delay, p->desc->delay.hpd_absent); in panel_edp_prepare_once()
466 if (p->desc->delay.hpd_absent) in panel_edp_prepare_once()
467 hpd_wait_us = p->desc->delay.hpd_absent * 1000UL; in panel_edp_prepare_once()
556 delay = p->desc->delay.enable; in panel_edp_enable()
575 if (p->desc->delay.prepare_to_enable && in panel_edp_enable()
577 delay = max(delay, p->desc->delay.prepare_to_enable); in panel_edp_enable()
582 panel_edp_wait(p->prepared_time, p->desc->delay.prepare_to_enable); in panel_edp_enable()
626 if (p->desc->num_timings || p->desc->num_modes) in panel_edp_get_modes()
647 if (p->desc->num_timings < num_timings) in panel_edp_get_timings()
648 num_timings = p->desc->num_timings; in panel_edp_get_timings()
652 timings[i] = p->desc->timings[i]; in panel_edp_get_timings()
654 return p->desc->num_timings; in panel_edp_get_timings()
704 const struct panel_desc *desc = panel->desc; in panel_edp_parse_panel_timing_node() local
708 if (WARN_ON(desc->num_modes)) { in panel_edp_parse_panel_timing_node()
712 if (WARN_ON(!desc->num_timings)) { in panel_edp_parse_panel_timing_node()
717 for (i = 0; i < panel->desc->num_timings; i++) { in panel_edp_parse_panel_timing_node()
718 const struct display_timing *dt = &panel->desc->timings[i]; in panel_edp_parse_panel_timing_node()
748 struct panel_desc *desc; in generic_edp_panel_probe() local
756 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL); in generic_edp_panel_probe()
757 if (!desc) in generic_edp_panel_probe()
759 panel->desc = desc; in generic_edp_panel_probe()
767 desc->delay.hpd_reliable = reliable_ms; in generic_edp_panel_probe()
769 desc->delay.hpd_absent = absent_ms; in generic_edp_panel_probe()
813 desc->delay.unprepare = 2000; in generic_edp_panel_probe()
814 desc->delay.enable = 200; in generic_edp_panel_probe()
822 desc->delay = *panel->detected_panel->delay; in generic_edp_panel_probe()
833 static int panel_edp_probe(struct device *dev, const struct panel_desc *desc, in panel_edp_probe() argument
847 panel->desc = desc; in panel_edp_probe()
913 desc = panel->desc; in panel_edp_probe()
914 } else if (desc->bpc != 6 && desc->bpc != 8 && desc->bpc != 10) { in panel_edp_probe()
915 dev_warn(dev, "Expected bpc in {6,8,10} but got: %u\n", desc->bpc); in panel_edp_probe()