Lines Matching refs:tpd
43 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_attach() local
49 ret = drm_bridge_attach(bridge->encoder, tpd->next_bridge, in tpd12s015_attach()
54 gpiod_set_value_cansleep(tpd->ls_oe_gpio, 1); in tpd12s015_attach()
64 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_detach() local
66 gpiod_set_value_cansleep(tpd->ls_oe_gpio, 0); in tpd12s015_detach()
71 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_detect() local
73 if (gpiod_get_value_cansleep(tpd->hpd_gpio)) in tpd12s015_detect()
81 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_hpd_enable() local
83 gpiod_set_value_cansleep(tpd->ct_cp_hpd_gpio, 1); in tpd12s015_hpd_enable()
88 struct tpd12s015_device *tpd = to_tpd12s015(bridge); in tpd12s015_hpd_disable() local
90 gpiod_set_value_cansleep(tpd->ct_cp_hpd_gpio, 0); in tpd12s015_hpd_disable()
103 struct tpd12s015_device *tpd = data; in tpd12s015_hpd_isr() local
104 struct drm_bridge *bridge = &tpd->bridge; in tpd12s015_hpd_isr()
113 struct tpd12s015_device *tpd; in tpd12s015_probe() local
118 tpd = devm_kzalloc(&pdev->dev, sizeof(*tpd), GFP_KERNEL); in tpd12s015_probe()
119 if (!tpd) in tpd12s015_probe()
122 platform_set_drvdata(pdev, tpd); in tpd12s015_probe()
124 tpd->bridge.funcs = &tpd12s015_bridge_funcs; in tpd12s015_probe()
125 tpd->bridge.of_node = pdev->dev.of_node; in tpd12s015_probe()
126 tpd->bridge.type = DRM_MODE_CONNECTOR_HDMIA; in tpd12s015_probe()
127 tpd->bridge.ops = DRM_BRIDGE_OP_DETECT; in tpd12s015_probe()
134 tpd->next_bridge = of_drm_find_bridge(node); in tpd12s015_probe()
137 if (!tpd->next_bridge) in tpd12s015_probe()
146 tpd->ct_cp_hpd_gpio = gpio; in tpd12s015_probe()
153 tpd->ls_oe_gpio = gpio; in tpd12s015_probe()
159 tpd->hpd_gpio = gpio; in tpd12s015_probe()
162 tpd->hpd_irq = gpiod_to_irq(tpd->hpd_gpio); in tpd12s015_probe()
163 if (tpd->hpd_irq >= 0) { in tpd12s015_probe()
164 ret = devm_request_threaded_irq(&pdev->dev, tpd->hpd_irq, NULL, in tpd12s015_probe()
169 "tpd12s015 hpd", tpd); in tpd12s015_probe()
173 tpd->bridge.ops |= DRM_BRIDGE_OP_HPD; in tpd12s015_probe()
177 drm_bridge_add(&tpd->bridge); in tpd12s015_probe()
184 struct tpd12s015_device *tpd = platform_get_drvdata(pdev); in tpd12s015_remove() local
186 drm_bridge_remove(&tpd->bridge); in tpd12s015_remove()