Lines Matching +full:dual +full:- +full:link
1 // SPDX-License-Identifier: GPL-2.0-only
27 * drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
41 if (tmp->port == port) in drm_of_crtc_port_mask()
52 * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port
85 * drm_of_component_match_add - Add a component helper OF node match rule
103 * drm_of_component_probe - Generic probe function for a component based master
123 if (!dev->of_node) in drm_of_component_probe()
124 return -EINVAL; in drm_of_component_probe()
131 port = of_parse_phandle(dev->of_node, "ports", i); in drm_of_component_probe()
135 if (of_device_is_available(port->parent)) in drm_of_component_probe()
144 return -ENODEV; in drm_of_component_probe()
149 return -ENODEV; in drm_of_component_probe()
156 port = of_parse_phandle(dev->of_node, "ports", i); in drm_of_component_probe()
160 if (!of_device_is_available(port->parent)) { in drm_of_component_probe()
170 } else if (!of_device_is_available(remote->parent)) { in drm_of_component_probe()
189 * drm_of_encoder_active_endpoint - return the active encoder endpoint
201 struct drm_crtc *crtc = encoder->crtc; in drm_of_encoder_active_endpoint()
206 return -EINVAL; in drm_of_encoder_active_endpoint()
211 if (port == crtc->port) { in drm_of_encoder_active_endpoint()
218 return -EINVAL; in drm_of_encoder_active_endpoint()
223 * drm_of_find_panel_or_bridge - return connected panel or bridge device
241 int ret = -EPROBE_DEFER; in drm_of_find_panel_or_bridge()
245 return -EINVAL; in drm_of_find_panel_or_bridge()
253 * device-tree node. in drm_of_find_panel_or_bridge()
256 return -ENODEV; in drm_of_find_panel_or_bridge()
260 return -ENODEV; in drm_of_find_panel_or_bridge()
295 of_property_read_bool(port_node, "dual-lvds-even-pixels"); in drm_of_lvds_get_port_pixels_type()
297 of_property_read_bool(port_node, "dual-lvds-odd-pixels"); in drm_of_lvds_get_port_pixels_type()
307 int pixels_type = -EPIPE; in drm_of_lvds_get_remote_pixels_type()
319 return -EPIPE; in drm_of_lvds_get_remote_pixels_type()
330 * support multiple sinks with different dual-link in drm_of_lvds_get_remote_pixels_type()
336 return -EINVAL; in drm_of_lvds_get_remote_pixels_type()
344 * drm_of_lvds_get_dual_link_pixel_order - Get LVDS dual-link pixel order
345 * @port1: First DT port node of the Dual-link LVDS source
346 * @port2: Second DT port node of the Dual-link LVDS source
348 * An LVDS dual-link connection is made of two links, with even pixels
349 * transitting on one link, and odd pixels on the other link. This function
350 * returns, for two ports of an LVDS dual-link source, which port shall transmit
353 * The pixel order is determined from the dual-lvds-even-pixels and
354 * dual-lvds-odd-pixels properties in the sink's DT port nodes. If those
356 * returns -EINVAL.
358 * If either port is not connected, this function returns -EPIPE.
365 * * DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS - @port1 carries even pixels and @port2
367 * * DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS - @port1 carries odd pixels and @port2
369 * * -EINVAL - @port1 and @port2 are not connected to a dual-link LVDS sink, or
371 * * -EPIPE - when @port1 or @port2 are not connected
379 return -EINVAL; in drm_of_lvds_get_dual_link_pixel_order()
390 * A valid dual-lVDS bus is found when one remote port is marked with in drm_of_lvds_get_dual_link_pixel_order()
391 * "dual-lvds-even-pixels", and the other remote port is marked with in drm_of_lvds_get_dual_link_pixel_order()
392 * "dual-lvds-odd-pixels", bail out if the markers are not right. in drm_of_lvds_get_dual_link_pixel_order()
395 return -EINVAL; in drm_of_lvds_get_dual_link_pixel_order()