Home
last modified time | relevance | path

Searched refs:hpd_gpio (Results 1 – 17 of 17) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/tegra/
Doutput.c55 if (output->hpd_gpio) { in tegra_output_connector_detect()
56 if (gpiod_get_value(output->hpd_gpio) == 0) in tegra_output_connector_detect()
136 output->hpd_gpio = devm_gpiod_get_from_of_node(output->dev, in tegra_output_probe()
141 if (IS_ERR(output->hpd_gpio)) { in tegra_output_probe()
142 if (PTR_ERR(output->hpd_gpio) != -ENOENT) in tegra_output_probe()
143 return PTR_ERR(output->hpd_gpio); in tegra_output_probe()
145 output->hpd_gpio = NULL; in tegra_output_probe()
148 if (output->hpd_gpio) { in tegra_output_probe()
149 err = gpiod_to_irq(output->hpd_gpio); in tegra_output_probe()
183 if (output->hpd_gpio) in tegra_output_remove()
[all …]
Ddrm.h154 struct gpio_desc *hpd_gpio; member
/linux-6.1.9/drivers/media/cec/platform/cec-gpio/
Dcec-gpio.c23 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()
204 cec->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in cec_gpio_probe()
205 if (IS_ERR(cec->hpd_gpio)) in cec_gpio_probe()
206 return PTR_ERR(cec->hpd_gpio); in cec_gpio_probe()
225 if (cec->hpd_gpio) { in cec_gpio_probe()
226 cec->hpd_irq = gpiod_to_irq(cec->hpd_gpio); in cec_gpio_probe()
/linux-6.1.9/drivers/gpu/drm/bridge/
Ddisplay-connector.c24 struct gpio_desc *hpd_gpio; member
48 if (conn->hpd_gpio) { in display_connector_detect()
49 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect()
272 conn->hpd_gpio = devm_gpiod_get_optional(&pdev->dev, "hpd", in display_connector_probe()
274 if (IS_ERR(conn->hpd_gpio)) { in display_connector_probe()
275 if (PTR_ERR(conn->hpd_gpio) != -EPROBE_DEFER) in display_connector_probe()
278 return PTR_ERR(conn->hpd_gpio); in display_connector_probe()
281 conn->hpd_irq = gpiod_to_irq(conn->hpd_gpio); in display_connector_probe()
367 if (conn->hpd_gpio) in display_connector_probe()
377 conn->hpd_gpio ? "with" : "without", in display_connector_probe()
Dti-tpd12s015.c29 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-6.1.9/drivers/video/fbdev/omap2/omapfb/displays/
Dconnector-hdmi.c44 int hpd_gpio; member
158 if (gpio_is_valid(ddata->hpd_gpio)) in hdmic_detect()
159 return gpio_get_value_cansleep(ddata->hpd_gpio); in hdmic_detect()
210 ddata->hpd_gpio = gpio; in hdmic_probe_of()
212 ddata->hpd_gpio = -ENODEV; in hdmic_probe_of()
245 if (gpio_is_valid(ddata->hpd_gpio)) { in hdmic_probe()
246 r = devm_gpio_request_one(&pdev->dev, ddata->hpd_gpio, in hdmic_probe()
Dencoder-tpd12s015.c25 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-6.1.9/drivers/gpu/drm/panel/
Dpanel-samsung-atna33xc20.c33 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()
303 panel->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in atana33xc20_probe()
304 if (IS_ERR(panel->hpd_gpio)) in atana33xc20_probe()
305 return dev_err_probe(dev, PTR_ERR(panel->hpd_gpio), in atana33xc20_probe()
Dpanel-edp.c225 struct gpio_desc *hpd_gpio; member
406 p->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in panel_edp_get_hpd_gpio()
407 if (IS_ERR(p->hpd_gpio)) in panel_edp_get_hpd_gpio()
408 return dev_err_probe(dev, PTR_ERR(p->hpd_gpio), in panel_edp_get_hpd_gpio()
416 return !p->no_hpd && (p->hpd_gpio || (p->aux && p->aux->wait_hpd_asserted)); in panel_edp_can_read_hpd()
449 if (p->hpd_gpio) { in panel_edp_prepare_once()
451 p->hpd_gpio, hpd_asserted, in panel_edp_prepare_once()
/linux-6.1.9/drivers/platform/x86/
Dasus-tf103c-dock.c107 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-6.1.9/include/linux/platform_data/media/
Ds5p_hdmi.h29 int hpd_gpio; member
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/
Ddc_link.c75 if (link->hpd_gpio) { in dc_link_destruct()
76 dal_gpio_destroy_irq(&link->hpd_gpio); in dc_link_destruct()
77 link->hpd_gpio = NULL; in dc_link_destruct()
1374 dal_gpio_lock_pin(dc_link->hpd_gpio); in dc_link_get_hpd_state()
1375 dal_gpio_get_value(dc_link->hpd_gpio, &state); in dc_link_get_hpd_state()
1376 dal_gpio_unlock_pin(dc_link->hpd_gpio); in dc_link_get_hpd_state()
1586 link->hpd_gpio = get_hpd_gpio(link->ctx->dc_bios, link->link_id, in dc_link_construct_legacy()
1589 if (link->hpd_gpio) { in dc_link_construct_legacy()
1590 dal_gpio_open(link->hpd_gpio, GPIO_MODE_INTERRUPT); in dc_link_construct_legacy()
1591 dal_gpio_unlock_pin(link->hpd_gpio); in dc_link_construct_legacy()
[all …]
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_hdmi.h149 struct gpio_desc *hpd_gpio; member
Dvc4_hdmi.c456 if (vc4_hdmi->hpd_gpio) { in vc4_hdmi_connector_detect_ctx()
457 if (gpiod_get_value_cansleep(vc4_hdmi->hpd_gpio)) in vc4_hdmi_connector_detect_ctx()
3476 vc4_hdmi->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in vc4_hdmi_bind()
3477 if (IS_ERR(vc4_hdmi->hpd_gpio)) { in vc4_hdmi_bind()
3478 return PTR_ERR(vc4_hdmi->hpd_gpio); in vc4_hdmi_bind()
/linux-6.1.9/drivers/gpu/drm/exynos/
Dexynos_hdmi.c131 struct gpio_desc *hpd_gpio; member
857 if (gpiod_get_value(hdata->hpd_gpio)) in hdmi_detect()
1788 hdata->hpd_gpio = devm_gpiod_get(dev, "hpd", GPIOD_IN); in hdmi_resources_init()
1789 if (IS_ERR(hdata->hpd_gpio)) { in hdmi_resources_init()
1791 return PTR_ERR(hdata->hpd_gpio); in hdmi_resources_init()
1794 hdata->irq = gpiod_to_irq(hdata->hpd_gpio); in hdmi_resources_init()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/
Ddc_link.h263 struct gpio *hpd_gpio; member
/linux-6.1.9/drivers/media/i2c/
Dadv7604.c171 struct gpio_desc *hpd_gpio[4]; member
527 gpiod_set_value_cansleep(state->hpd_gpio[i], hpd & BIT(i)); in adv76xx_set_hpd()
3456 state->hpd_gpio[i] = in adv76xx_probe()
3459 if (IS_ERR(state->hpd_gpio[i])) in adv76xx_probe()
3460 return PTR_ERR(state->hpd_gpio[i]); in adv76xx_probe()
3462 if (state->hpd_gpio[i]) in adv76xx_probe()