/linux/drivers/gpu/drm/tegra/ |
A D | output.c | 55 if (output->hpd_gpio) { in tegra_output_connector_detect() 56 if (gpiod_get_value(output->hpd_gpio) == 0) in tegra_output_connector_detect() 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() 198 if (output->hpd_gpio) in tegra_output_init() [all …]
|
A D | drm.h | 143 struct gpio_desc *hpd_gpio; member
|
/linux/drivers/gpu/drm/bridge/ |
A D | display-connector.c | 22 struct gpio_desc *hpd_gpio; member 45 if (conn->hpd_gpio) { in display_connector_detect() 46 if (gpiod_get_value_cansleep(conn->hpd_gpio)) in display_connector_detect() 184 conn->hpd_gpio = devm_gpiod_get_optional(&pdev->dev, "hpd", in display_connector_probe() 186 if (IS_ERR(conn->hpd_gpio)) { in display_connector_probe() 187 if (PTR_ERR(conn->hpd_gpio) != -EPROBE_DEFER) in display_connector_probe() 190 return PTR_ERR(conn->hpd_gpio); in display_connector_probe() 193 conn->hpd_irq = gpiod_to_irq(conn->hpd_gpio); in display_connector_probe() 268 if (conn->hpd_gpio) in display_connector_probe() 278 conn->hpd_gpio ? "with" : "without", in display_connector_probe()
|
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/media/cec/platform/cec-gpio/ |
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() 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/drivers/video/fbdev/omap2/omapfb/displays/ |
A D | connector-hdmi.c | 44 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()
|
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/panel/ |
A D | panel-samsung-atna33xc20.c | 29 struct gpio_desc *hpd_gpio; member 102 } else if (p->hpd_gpio) { in atana33xc20_resume() 103 ret = readx_poll_timeout(gpiod_get_value_cansleep, p->hpd_gpio, in atana33xc20_resume() 278 panel->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in atana33xc20_probe() 279 if (IS_ERR(panel->hpd_gpio)) in atana33xc20_probe() 280 return dev_err_probe(dev, PTR_ERR(panel->hpd_gpio), in atana33xc20_probe()
|
A D | panel-edp.c | 223 struct gpio_desc *hpd_gpio; member 404 p->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in panel_edp_get_hpd_gpio() 405 if (IS_ERR(p->hpd_gpio)) { in panel_edp_get_hpd_gpio() 406 err = PTR_ERR(p->hpd_gpio); in panel_edp_get_hpd_gpio() 441 if (p->hpd_gpio) { in panel_edp_prepare_once() 447 err = readx_poll_timeout(gpiod_get_value_cansleep, p->hpd_gpio, in panel_edp_prepare_once() 543 if (p->desc->delay.prepare_to_enable && !p->hpd_gpio && !p->no_hpd) in panel_edp_enable()
|
/linux/drivers/gpu/drm/msm/hdmi/ |
A D | hdmi_connector.c | 289 struct hdmi_gpio_data hpd_gpio = config->gpios[HPD_GPIO_INDEX]; in detect_gpio() local 291 return gpiod_get_value(hpd_gpio.gpiod) ? in detect_gpio() 302 struct hdmi_gpio_data hpd_gpio = config->gpios[HPD_GPIO_INDEX]; in hdmi_connector_detect() local 310 if (!hpd_gpio.gpiod) in hdmi_connector_detect()
|
/linux/include/linux/platform_data/media/ |
A D | s5p_hdmi.h | 29 int hpd_gpio; member
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_link.c | 98 if (link->hpd_gpio) { in dc_link_destruct() 99 dal_gpio_destroy_irq(&link->hpd_gpio); in dc_link_destruct() 100 link->hpd_gpio = NULL; in dc_link_destruct() 1292 dal_gpio_lock_pin(dc_link->hpd_gpio); in dc_link_get_hpd_state() 1294 dal_gpio_unlock_pin(dc_link->hpd_gpio); in dc_link_get_hpd_state() 1503 if (link->hpd_gpio) { in dc_link_construct_legacy() 1505 dal_gpio_unlock_pin(link->hpd_gpio); in dc_link_construct_legacy() 1528 if (link->hpd_gpio) in dc_link_construct_legacy() 1536 if (link->hpd_gpio) { in dc_link_construct_legacy() 1717 if (link->hpd_gpio) { in dc_link_construct_legacy() [all …]
|
/linux/drivers/gpu/drm/vc4/ |
A D | vc4_hdmi.h | 148 struct gpio_desc *hpd_gpio; member
|
A D | vc4_hdmi.c | 170 if (vc4_hdmi->hpd_gpio && in vc4_hdmi_connector_detect() 171 gpiod_get_value_cansleep(vc4_hdmi->hpd_gpio)) { in vc4_hdmi_connector_detect() 2148 vc4_hdmi->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); in vc4_hdmi_bind() 2149 if (IS_ERR(vc4_hdmi->hpd_gpio)) { in vc4_hdmi_bind() 2150 ret = PTR_ERR(vc4_hdmi->hpd_gpio); in vc4_hdmi_bind()
|
/linux/drivers/gpu/drm/exynos/ |
A D | exynos_hdmi.c | 131 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/Documentation/devicetree/bindings/pinctrl/ |
A D | samsung-pinctrl.txt | 369 int hpd_gpio, ret; 375 hpd_gpio = of_get_named_gpio(dp_node, "samsung,hpd-gpio", 0); 379 ret = devm_gpio_request_one(&pdev->dev, hpd_gpio, GPIOF_IN, 380 "hpd_gpio");
|
/linux/drivers/gpu/drm/amd/display/dc/ |
A D | dc_link.h | 202 struct gpio *hpd_gpio; member
|
/linux/drivers/media/i2c/ |
A D | adv7604.c | 171 struct gpio_desc *hpd_gpio[4]; member 527 gpiod_set_value_cansleep(state->hpd_gpio[i], hpd & BIT(i)); in adv76xx_set_hpd() 3457 state->hpd_gpio[i] = in adv76xx_probe() 3460 if (IS_ERR(state->hpd_gpio[i])) in adv76xx_probe() 3461 return PTR_ERR(state->hpd_gpio[i]); in adv76xx_probe() 3463 if (state->hpd_gpio[i]) in adv76xx_probe()
|