Lines Matching full:aux
99 struct drm_dp_aux aux; member
151 static inline struct ps8640 *aux_to_ps8640(struct drm_dp_aux *aux) in aux_to_ps8640() argument
153 return container_of(aux, struct ps8640, aux); in aux_to_ps8640()
160 bus = of_get_child_by_name(dev->of_node, "aux-bus"); in ps8640_of_panel_on_aux_bus()
204 static int ps8640_wait_hpd_asserted(struct drm_dp_aux *aux, unsigned long wait_us) in ps8640_wait_hpd_asserted() argument
206 struct ps8640 *ps_bridge = aux_to_ps8640(aux); in ps8640_wait_hpd_asserted()
223 static ssize_t ps8640_aux_transfer_msg(struct drm_dp_aux *aux, in ps8640_aux_transfer_msg() argument
226 struct ps8640 *ps_bridge = aux_to_ps8640(aux); in ps8640_aux_transfer_msg()
349 static ssize_t ps8640_aux_transfer(struct drm_dp_aux *aux, in ps8640_aux_transfer() argument
352 struct ps8640 *ps_bridge = aux_to_ps8640(aux); in ps8640_aux_transfer()
357 ret = ps8640_aux_transfer_msg(aux, msg); in ps8640_aux_transfer()
492 ps_bridge->aux.drm_dev = bridge->dev; in ps8640_bridge_attach()
493 ret = drm_dp_aux_register(&ps_bridge->aux); in ps8640_bridge_attach()
495 dev_err(dev, "failed to register DP AUX channel: %d\n", ret); in ps8640_bridge_attach()
517 drm_dp_aux_unregister(&ps_bridge->aux); in ps8640_bridge_attach()
526 drm_dp_aux_unregister(&ps_bridge->aux); in ps8640_bridge_detach()
621 static int ps8640_bridge_link_panel(struct drm_dp_aux *aux) in ps8640_bridge_link_panel() argument
623 struct ps8640 *ps_bridge = aux_to_ps8640(aux); in ps8640_bridge_link_panel()
624 struct device *dev = aux->dev; in ps8640_bridge_link_panel()
632 * panel isn't under the "aux-bus" node). That should be fine because in ps8640_bridge_link_panel()
633 * if the panel is under "aux-bus" it's guaranteed to have probed by in ps8640_bridge_link_panel()
685 * In the device tree, if panel is listed under aux-bus of the bridge in ps8640_probe()
687 * aux-bus. So let's not set DRM_BRIDGE_OP_EDID here. in ps8640_probe()
721 ps_bridge->aux.name = "parade-ps8640-aux"; in ps8640_probe()
722 ps_bridge->aux.dev = dev; in ps8640_probe()
723 ps_bridge->aux.transfer = ps8640_aux_transfer; in ps8640_probe()
724 ps_bridge->aux.wait_hpd_asserted = ps8640_wait_hpd_asserted; in ps8640_probe()
725 drm_dp_aux_init(&ps_bridge->aux); in ps8640_probe()
743 ret = devm_of_dp_aux_populate_bus(&ps_bridge->aux, ps8640_bridge_link_panel); in ps8640_probe()
751 return ps8640_bridge_link_panel(&ps_bridge->aux); in ps8640_probe()