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