Lines Matching full:interface

34 	struct logicvc_interface *interface =  in logicvc_encoder_enable()  local
41 if (interface->drm_panel) { in logicvc_encoder_enable()
42 drm_panel_prepare(interface->drm_panel); in logicvc_encoder_enable()
43 drm_panel_enable(interface->drm_panel); in logicvc_encoder_enable()
49 struct logicvc_interface *interface = in logicvc_encoder_disable() local
52 if (interface->drm_panel) { in logicvc_encoder_disable()
53 drm_panel_disable(interface->drm_panel); in logicvc_encoder_disable()
54 drm_panel_unprepare(interface->drm_panel); in logicvc_encoder_disable()
69 struct logicvc_interface *interface = in logicvc_connector_get_modes() local
72 if (interface->drm_panel) in logicvc_connector_get_modes()
73 return drm_panel_get_modes(interface->drm_panel, drm_connector); in logicvc_connector_get_modes()
138 logicvc->interface->drm_encoder.possible_crtcs = possible_crtcs; in logicvc_interface_attach_crtc()
143 struct logicvc_interface *interface; in logicvc_interface_init() local
152 interface = devm_kzalloc(dev, sizeof(*interface), GFP_KERNEL); in logicvc_interface_init()
153 if (!interface) { in logicvc_interface_init()
158 ret = drm_of_find_panel_or_bridge(of_node, 0, 0, &interface->drm_panel, in logicvc_interface_init()
159 &interface->drm_bridge); in logicvc_interface_init()
163 ret = drm_encoder_init(drm_dev, &interface->drm_encoder, in logicvc_interface_init()
170 drm_encoder_helper_add(&interface->drm_encoder, in logicvc_interface_init()
173 if (native_connector || interface->drm_panel) { in logicvc_interface_init()
174 ret = drm_connector_init(drm_dev, &interface->drm_connector, in logicvc_interface_init()
182 drm_connector_helper_add(&interface->drm_connector, in logicvc_interface_init()
185 ret = drm_connector_attach_encoder(&interface->drm_connector, in logicvc_interface_init()
186 &interface->drm_encoder); in logicvc_interface_init()
194 if (interface->drm_bridge) { in logicvc_interface_init()
195 ret = drm_bridge_attach(&interface->drm_encoder, in logicvc_interface_init()
196 interface->drm_bridge, NULL, 0); in logicvc_interface_init()
204 logicvc->interface = interface; in logicvc_interface_init()
209 drm_encoder_cleanup(&interface->drm_encoder); in logicvc_interface_init()