/linux/drivers/gpu/drm/tegra/ |
H A D | output.c | 58 if (output->hpd_gpio) { in tegra_output_connector_detect() 59 if (gpiod_get_value(output->hpd_gpio) == 0) in tegra_output_connector_detect() 141 output->hpd_gpio = devm_fwnode_gpiod_get(output->dev, in tegra_output_probe() 146 if (IS_ERR(output->hpd_gpio)) { in tegra_output_probe() 147 if (PTR_ERR(output->hpd_gpio) != -ENOENT) { in tegra_output_probe() 148 err = PTR_ERR(output->hpd_gpio); in tegra_output_probe() 152 output->hpd_gpio = NULL; in tegra_output_probe() 155 if (output->hpd_gpio) { in tegra_output_probe() 156 err = gpiod_to_irq(output->hpd_gpio); in tegra_output_probe() 198 if (output->hpd_gpio) in tegra_output_remove() [all …]
|
H A D | drm.h | 139 struct gpio_desc *hpd_gpio; member
|
/linux/drivers/media/cec/platform/cec-gpio/ |
H A D | cec-gpio.c | 23 struct gpio_desc *hpd_gpio; member 95 int val = gpiod_get_value(cec->hpd_gpio); in cec_hpd_gpio_irq_handler() 136 if (cec->hpd_gpio) in cec_gpio_status() 148 if (!cec->hpd_gpio) in cec_gpio_read_hpd() 150 return gpiod_get_value(cec->hpd_gpio); in cec_gpio_read_hpd() 198 cec->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in cec_gpio_probe() 199 if (IS_ERR(cec->hpd_gpio)) in cec_gpio_probe() 200 return PTR_ERR(cec->hpd_gpio); in cec_gpio_probe() 217 if (cec->hpd_gpio) { in cec_gpio_probe() 218 cec->hpd_irq = gpiod_to_irq(cec->hpd_gpio); in cec_gpio_probe()
|
/linux/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_factory.c | 377 if (link->hpd_gpio) { in link_destruct() 378 dal_gpio_destroy_irq(&link->hpd_gpio); in link_destruct() 379 link->hpd_gpio = NULL; in link_destruct() 501 link->hpd_gpio = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in construct_phy() 504 if (link->hpd_gpio) { in construct_phy() 505 dal_gpio_open(link->hpd_gpio, GPIO_MODE_INTERRUPT); in construct_phy() 506 dal_gpio_unlock_pin(link->hpd_gpio); in construct_phy() 507 link->irq_source_hpd = dal_irq_get_source(link->hpd_gpio); in construct_phy() 509 DC_LOG_DC("BIOS object table - hpd_gpio id: %d", link->hpd_gpio->id); in construct_phy() 510 DC_LOG_DC("BIOS object table - hpd_gpio en: %d", link->hpd_gpio->en); in construct_phy() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | display-connector.c | 23 struct gpio_desc *hpd_gpio; member 47 if (conn->hpd_gpio) { in display_connector_detect() 48 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect() 283 conn->hpd_gpio = devm_gpiod_get_optional(&pdev->dev, "hpd", in display_connector_probe() 285 if (IS_ERR(conn->hpd_gpio)) in display_connector_probe() 286 return dev_err_probe(&pdev->dev, PTR_ERR(conn->hpd_gpio), in display_connector_probe() 289 conn->hpd_irq = gpiod_to_irq(conn->hpd_gpio); in display_connector_probe() 366 if (conn->hpd_gpio) in display_connector_probe() 376 conn->hpd_gpio ? "with" : "without", in display_connector_probe()
|
H A D | ti-tpd12s015.c | 29 struct gpio_desc *hpd_gpio; member 73 if (gpiod_get_value_cansleep(tpd->hpd_gpio)) in tpd12s015_detect() 159 tpd->hpd_gpio = gpio; in tpd12s015_probe() 162 tpd->hpd_irq = gpiod_to_irq(tpd->hpd_gpio); in tpd12s015_probe()
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-samsung-atna33xc20.c | 31 struct gpio_desc *hpd_gpio; member 103 if (p->hpd_gpio) { in atana33xc20_resume() 104 ret = readx_poll_timeout(gpiod_get_value_cansleep, p->hpd_gpio, in atana33xc20_resume() 288 panel->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in atana33xc20_probe() 289 if (IS_ERR(panel->hpd_gpio)) in atana33xc20_probe() 290 return dev_err_probe(dev, PTR_ERR(panel->hpd_gpio), in atana33xc20_probe()
|
H A D | panel-edp.c | 238 struct gpio_desc *hpd_gpio; member 426 p->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in panel_edp_get_hpd_gpio() 427 if (IS_ERR(p->hpd_gpio)) in panel_edp_get_hpd_gpio() 428 return dev_err_probe(dev, PTR_ERR(p->hpd_gpio), in panel_edp_get_hpd_gpio() 436 return !p->no_hpd && (p->hpd_gpio || (p->aux && p->aux->wait_hpd_asserted)); in panel_edp_can_read_hpd() 472 if (p->hpd_gpio) { in panel_edp_prepare_once() 474 p->hpd_gpio, hpd_asserted, in panel_edp_prepare_once()
|
/linux/drivers/video/fbdev/omap2/omapfb/displays/ |
H A D | connector-hdmi.c | 45 struct gpio_desc *hpd_gpio; member 159 if (ddata->hpd_gpio) in hdmic_detect() 160 return gpiod_get_value_cansleep(ddata->hpd_gpio); in hdmic_detect() 217 ddata->hpd_gpio = devm_gpiod_get_optional(&pdev->dev, "hpd", GPIOD_IN); in hdmic_probe() 218 r = PTR_ERR_OR_ZERO(ddata->hpd_gpio); in hdmic_probe() 222 gpiod_set_consumer_name(ddata->hpd_gpio, "hdmi_hpd"); in hdmic_probe()
|
H A D | encoder-tpd12s015.c | 25 struct gpio_desc *hpd_gpio; member 146 if (!gpiod_get_value_cansleep(ddata->hpd_gpio)) in tpd_read_edid() 162 return gpiod_get_value_cansleep(ddata->hpd_gpio); in tpd_detect() 263 ddata->hpd_gpio = gpio; in tpd_probe()
|
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_hpd.c | 40 dal_gpio_lock_pin(link->hpd_gpio); in link_get_hpd_state() 41 dal_gpio_get_value(link->hpd_gpio, &state); in link_get_hpd_state() 42 dal_gpio_unlock_pin(link->hpd_gpio); in link_get_hpd_state()
|
/linux/drivers/platform/x86/ |
H A D | asus-tf103c-dock.c | 107 struct gpio_desc *hpd_gpio; member 662 if (gpiod_get_value(dock->hpd_gpio)) in tf103c_dock_hpd_work() 778 dock->hpd_gpio = devm_gpiod_get(dev, "dock_hpd", GPIOD_IN); in tf103c_dock_probe() 779 if (IS_ERR(dock->hpd_gpio)) in tf103c_dock_probe() 780 return dev_err_probe(dev, PTR_ERR(dock->hpd_gpio), "requesting HPD GPIO\n"); in tf103c_dock_probe() 782 dock->hpd_irq = gpiod_to_irq(dock->hpd_gpio); in tf103c_dock_probe() 914 if (gpiod_get_value(dock->hpd_gpio)) in tf103c_dock_resume()
|
/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_hdmi.h | 141 struct gpio_desc *hpd_gpio; member
|
H A D | vc4_hdmi.c | 452 if (vc4_hdmi->hpd_gpio) { in vc4_hdmi_connector_detect_ctx() 453 if (gpiod_get_value_cansleep(vc4_hdmi->hpd_gpio)) in vc4_hdmi_connector_detect_ctx() 3242 vc4_hdmi->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in vc4_hdmi_bind() 3243 if (IS_ERR(vc4_hdmi->hpd_gpio)) { in vc4_hdmi_bind() 3244 return PTR_ERR(vc4_hdmi->hpd_gpio); in vc4_hdmi_bind()
|
/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dc.h | 1780 struct gpio *hpd_gpio; member
|