Lines Matching full:interface
35 struct logicvc_interface *interface = in logicvc_encoder_enable() local
42 if (interface->drm_panel) { in logicvc_encoder_enable()
43 drm_panel_prepare(interface->drm_panel); in logicvc_encoder_enable()
44 drm_panel_enable(interface->drm_panel); in logicvc_encoder_enable()
50 struct logicvc_interface *interface = in logicvc_encoder_disable() local
53 if (interface->drm_panel) { in logicvc_encoder_disable()
54 drm_panel_disable(interface->drm_panel); in logicvc_encoder_disable()
55 drm_panel_unprepare(interface->drm_panel); in logicvc_encoder_disable()
70 struct logicvc_interface *interface = in logicvc_connector_get_modes() local
73 if (interface->drm_panel) in logicvc_connector_get_modes()
74 return drm_panel_get_modes(interface->drm_panel, drm_connector); in logicvc_connector_get_modes()
139 logicvc->interface->drm_encoder.possible_crtcs = possible_crtcs; in logicvc_interface_attach_crtc()
144 struct logicvc_interface *interface; in logicvc_interface_init() local
153 interface = devm_kzalloc(dev, sizeof(*interface), GFP_KERNEL); in logicvc_interface_init()
154 if (!interface) { in logicvc_interface_init()
159 ret = drm_of_find_panel_or_bridge(of_node, 0, 0, &interface->drm_panel, in logicvc_interface_init()
160 &interface->drm_bridge); in logicvc_interface_init()
164 ret = drm_encoder_init(drm_dev, &interface->drm_encoder, in logicvc_interface_init()
171 drm_encoder_helper_add(&interface->drm_encoder, in logicvc_interface_init()
174 if (native_connector || interface->drm_panel) { in logicvc_interface_init()
175 ret = drm_connector_init(drm_dev, &interface->drm_connector, in logicvc_interface_init()
183 drm_connector_helper_add(&interface->drm_connector, in logicvc_interface_init()
186 ret = drm_connector_attach_encoder(&interface->drm_connector, in logicvc_interface_init()
187 &interface->drm_encoder); in logicvc_interface_init()
195 if (interface->drm_bridge) { in logicvc_interface_init()
196 ret = drm_bridge_attach(&interface->drm_encoder, in logicvc_interface_init()
197 interface->drm_bridge, NULL, 0); in logicvc_interface_init()
205 logicvc->interface = interface; in logicvc_interface_init()
210 drm_encoder_cleanup(&interface->drm_encoder); in logicvc_interface_init()