| /kernel/linux/linux-4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| D | conn.c | 35 struct nvkm_conn *conn = container_of(notify, typeof(*conn), hpd); in nvkm_conn_hpd() 42 CONN_DBG(conn, "HPD: %d", line->mask); in nvkm_conn_hpd() 44 if (!nvkm_gpio_get(gpio, 0, DCB_GPIO_UNUSED, conn->hpd.index)) in nvkm_conn_hpd() 50 nvkm_event_send(&disp->hpd, rep.mask, index, &rep, sizeof(rep)); in nvkm_conn_hpd() 57 nvkm_notify_put(&conn->hpd); in nvkm_conn_fini() 63 nvkm_notify_get(&conn->hpd); in nvkm_conn_init() 71 nvkm_notify_fini(&conn->hpd); in nvkm_conn_del() 81 static const u8 hpd[] = { 0x07, 0x08, 0x51, 0x52, 0x5e, 0x5f, 0x60 }; in nvkm_conn_ctor() local 90 CONN_DBG(conn, "type %02x loc %d hpd %02x dp %x di %x sr %x lcdid %x", in nvkm_conn_ctor() 91 info->type, info->location, info->hpd, info->dp, in nvkm_conn_ctor() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
| D | conn.c | 35 struct nvkm_conn *conn = container_of(notify, typeof(*conn), hpd); in nvkm_conn_hpd() 42 CONN_DBG(conn, "HPD: %d", line->mask); in nvkm_conn_hpd() 44 if (!nvkm_gpio_get(gpio, 0, DCB_GPIO_UNUSED, conn->hpd.index)) in nvkm_conn_hpd() 50 nvkm_event_send(&disp->hpd, rep.mask, index, &rep, sizeof(rep)); in nvkm_conn_hpd() 57 nvkm_notify_put(&conn->hpd); in nvkm_conn_fini() 63 nvkm_notify_get(&conn->hpd); in nvkm_conn_init() 71 nvkm_notify_fini(&conn->hpd); in nvkm_conn_del() 81 static const u8 hpd[] = { 0x07, 0x08, 0x51, 0x52, 0x5e, 0x5f, 0x60 }; in nvkm_conn_ctor() local 90 CONN_DBG(conn, "type %02x loc %d hpd %02x dp %x di %x sr %x lcdid %x", in nvkm_conn_ctor() 91 info->type, info->location, info->hpd, info->dp, in nvkm_conn_ctor() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/gpio/ |
| D | hw_hpd.c | 37 hpd->shifts->field_name, hpd->masks->field_name 40 hpd->base.base.ctx 42 (hpd->regs->reg) 61 struct hw_hpd *hpd) in destruct() argument 63 dal_hw_hpd_destruct(hpd); in destruct() 69 struct hw_hpd *hpd = HW_HPD_FROM_BASE(*ptr); in destroy() local 71 destruct(hpd); in destroy() 73 kfree(hpd); in destroy() 82 struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr); in get_value() local 105 struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr); in set_config() local [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/include/asm/ |
| D | hugetlb.h | 18 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument 20 BUG_ON(!hugepd_ok(hpd)); in hugepd_page() 25 return __va(hpd_val(hpd) & HUGEPD_ADDR_MASK); in hugepd_page() 28 static inline unsigned int hugepd_mmu_psize(hugepd_t hpd) in hugepd_mmu_psize() argument 30 return (hpd_val(hpd) & HUGEPD_SHIFT_MASK) >> 2; in hugepd_mmu_psize() 33 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument 35 return mmu_psize_to_shift(hugepd_mmu_psize(hpd)); in hugepd_shift() 46 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument 48 BUG_ON(!hugepd_ok(hpd)); in hugepd_page() 50 return (pte_t *)__va(hpd_val(hpd) & ~HUGEPD_SHIFT_MASK); in hugepd_page() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
| D | mtk_cec.c | 53 bool hpd; member 54 void (*hpd_event)(bool hpd, struct device *dev); 91 void (*hpd_event)(bool hpd, struct device *dev), in mtk_cec_set_hpd_event() argument 148 static void mtk_cec_hpd_event(struct mtk_cec *cec, bool hpd) in mtk_cec_hpd_event() argument 150 void (*hpd_event)(bool hpd, struct device *dev); in mtk_cec_hpd_event() 160 hpd_event(hpd, hdmi_dev); in mtk_cec_hpd_event() 167 bool hpd; in mtk_cec_htplg_isr_thread() local 170 hpd = mtk_cec_hpd_high(dev); in mtk_cec_htplg_isr_thread() 172 if (cec->hpd != hpd) { in mtk_cec_htplg_isr_thread() 173 dev_dbg(dev, "hotplug event! cur hpd = %d, hpd = %d\n", in mtk_cec_htplg_isr_thread() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/mediatek/ |
| D | mtk_cec.c | 61 bool hpd; member 62 void (*hpd_event)(bool hpd, struct device *dev); 99 void (*hpd_event)(bool hpd, struct device *dev), in mtk_cec_set_hpd_event() argument 156 static void mtk_cec_hpd_event(struct mtk_cec *cec, bool hpd) in mtk_cec_hpd_event() argument 158 void (*hpd_event)(bool hpd, struct device *dev); in mtk_cec_hpd_event() 168 hpd_event(hpd, hdmi_dev); in mtk_cec_hpd_event() 175 bool hpd; in mtk_cec_htplg_isr_thread() local 178 hpd = mtk_cec_hpd_high(dev); in mtk_cec_htplg_isr_thread() 180 if (cec->hpd != hpd) { in mtk_cec_htplg_isr_thread() 181 dev_dbg(dev, "hotplug event! cur hpd = %d, hpd = %d\n", in mtk_cec_htplg_isr_thread() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
| D | radeon_combios.c | 636 i2c.hpd = RADEON_HPD_NONE; in combios_setup_i2c_bus() 1459 struct radeon_hpd hpd; in radeon_get_legacy_connector_info_from_table() local 1546 hpd.hpd = RADEON_HPD_NONE; in radeon_get_legacy_connector_info_from_table() 1557 &hpd); in radeon_get_legacy_connector_info_from_table() 1561 hpd.hpd = RADEON_HPD_NONE; in radeon_get_legacy_connector_info_from_table() 1572 &hpd); in radeon_get_legacy_connector_info_from_table() 1576 hpd.hpd = RADEON_HPD_NONE; in radeon_get_legacy_connector_info_from_table() 1587 &hpd); in radeon_get_legacy_connector_info_from_table() 1591 hpd.hpd = RADEON_HPD_1; in radeon_get_legacy_connector_info_from_table() 1608 &hpd); in radeon_get_legacy_connector_info_from_table() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/radeon/ |
| D | radeon_combios.c | 632 i2c.hpd = RADEON_HPD_NONE; in combios_setup_i2c_bus() 1455 struct radeon_hpd hpd; in radeon_get_legacy_connector_info_from_table() local 1542 hpd.hpd = RADEON_HPD_NONE; in radeon_get_legacy_connector_info_from_table() 1553 &hpd); in radeon_get_legacy_connector_info_from_table() 1557 hpd.hpd = RADEON_HPD_NONE; in radeon_get_legacy_connector_info_from_table() 1568 &hpd); in radeon_get_legacy_connector_info_from_table() 1572 hpd.hpd = RADEON_HPD_NONE; in radeon_get_legacy_connector_info_from_table() 1583 &hpd); in radeon_get_legacy_connector_info_from_table() 1587 hpd.hpd = RADEON_HPD_1; in radeon_get_legacy_connector_info_from_table() 1604 &hpd); in radeon_get_legacy_connector_info_from_table() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/bridge/ |
| D | ti-tfp410.c | 32 struct gpio_desc *hpd; member 92 if (dvi->hpd) { in tfp410_connector_detect() 93 if (gpiod_get_value_cansleep(dvi->hpd)) in tfp410_connector_detect() 128 if (dvi->hpd) in tfp410_attach() 180 dvi->hpd = fwnode_get_named_gpiod(&connector_node->fwnode, in tfp410_get_connector_properties() 181 "hpd-gpios", 0, GPIOD_IN, "hpd"); in tfp410_get_connector_properties() 182 if (IS_ERR(dvi->hpd)) { in tfp410_get_connector_properties() 183 ret = PTR_ERR(dvi->hpd); in tfp410_get_connector_properties() 184 dvi->hpd = NULL; in tfp410_get_connector_properties() 231 if (dvi->hpd) { in tfp410_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/gpio/ |
| D | hw_hpd.c | 40 hpd->shifts->field_name, hpd->masks->field_name 43 hpd->base.base.ctx 45 (hpd->regs->reg) 58 struct hw_hpd *hpd = HW_HPD_FROM_BASE(*ptr); in dal_hw_hpd_destroy() local 60 dal_hw_hpd_destruct(hpd); in dal_hw_hpd_destroy() 62 kfree(hpd); in dal_hw_hpd_destroy() 71 struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr); in get_value() local 94 struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr); in set_config() local 100 DC_HPD_CONNECT_INT_DELAY, config_data->config.hpd.delay_on_connect / 10, in set_config() 101 DC_HPD_DISCONNECT_INT_DELAY, config_data->config.hpd.delay_on_disconnect / 10); in set_config()
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/media/ |
| D | cec-gpio.txt | 4 is hooked up to a pull-up GPIO line and - optionally - the HPD line is 7 Please note: the maximum voltage for the CEC line is 3.63V, for the HPD and 22 the following property is optional and can be used for debugging HPD changes: 24 - hpd-gpios: gpio that the HPD line is connected to. 31 pin 26 aka BCM7 aka CE1 on the GPIO pin header, the HPD line is 33 15 aka BCM22 (some level shifter is needed for the HPD and 5V lines!): 40 hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
|
| D | cec.txt | 5 - needs-hpd: if present the CEC support is only available when the HPD 6 is high. Some boards only let the CEC pin through if the HPD is high, 7 for example if there is a level converter that uses the HPD to power
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/ |
| D | cec-gpio.txt | 4 is hooked up to a pull-up GPIO line and - optionally - the HPD line is 7 Please note: the maximum voltage for the CEC line is 3.63V, for the HPD and 22 the following property is optional and can be used for debugging HPD changes: 24 - hpd-gpios: gpio that the HPD line is connected to. 31 pin 26 aka BCM7 aka CE1 on the GPIO pin header, the HPD line is 33 15 aka BCM22 (some level shifter is needed for the HPD and 5V lines!): 40 hpd-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
|
| D | cec.txt | 5 - needs-hpd: if present the CEC support is only available when the HPD 6 is high. Some boards only let the CEC pin through if the HPD is high, 7 for example if there is a level converter that uses the HPD to power
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
| D | intel_hotplug.c | 41 * handlers gather the hotplug detect (HPD) information from relevant registers 70 * callback is handled by i915_digport_work_func reenabling of hpd is not 80 * @port: the hpd port to get associated pin 111 * intel_hpd_irq_storm_detect - gather stats and detect HPD IRQ storm on a pin 114 * @long_hpd: whether the HPD IRQ was long or short 116 * Gather stats about HPD IRQs from the specified @pin, and detect IRQ 134 * The HPD threshold can be controlled through i915_hpd_storm_ctl in debugfs, 142 struct i915_hotplug *hpd = &dev_priv->hotplug; in intel_hpd_irq_storm_detect() local 143 unsigned long start = hpd->stats[pin].last_jiffies; in intel_hpd_irq_storm_detect() 146 const int threshold = hpd->hpd_storm_threshold; in intel_hpd_irq_storm_detect() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/ |
| D | hugetlb-book3e.h | 5 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument 7 if (WARN_ON(!hugepd_ok(hpd))) in hugepd_page() 10 return (pte_t *)((hpd_val(hpd) & ~HUGEPD_SHIFT_MASK) | PD_HUGE); in hugepd_page() 13 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument 15 return hpd_val(hpd) & HUGEPD_SHIFT_MASK; in hugepd_shift() 18 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument 26 return hugepd_page(hpd); in hugepte_offset()
|
| /kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/ |
| D | hugetlb.h | 68 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument 70 BUG_ON(!hugepd_ok(hpd)); in hugepd_page() 75 return __va(hpd_val(hpd) & HUGEPD_ADDR_MASK); in hugepd_page() 78 static inline unsigned int hugepd_mmu_psize(hugepd_t hpd) in hugepd_mmu_psize() argument 80 return (hpd_val(hpd) & HUGEPD_SHIFT_MASK) >> 2; in hugepd_mmu_psize() 83 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument 85 return mmu_psize_to_shift(hugepd_mmu_psize(hpd)); in hugepd_shift() 94 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument 97 unsigned long idx = (addr & ((1UL << pdshift) - 1)) >> hugepd_shift(hpd); in hugepte_offset() 99 return hugepd_page(hpd) + idx; in hugepte_offset()
|
| /kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/32/ |
| D | hugetlb-8xx.h | 7 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument 9 BUG_ON(!hugepd_ok(hpd)); in hugepd_page() 11 return (pte_t *)__va(hpd_val(hpd) & ~HUGEPD_SHIFT_MASK); in hugepd_page() 14 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument 19 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument 24 return hugepd_page(hpd) + idx; in hugepte_offset()
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/i915/ |
| D | intel_hotplug.c | 43 * handlers gather the hotplug detect (HPD) information from relevant registers 72 * callback is handled by i915_digport_work_func reenabling of hpd is not 82 * @port: the hpd port to get associated pin 117 * intel_hpd_irq_storm_detect - gather stats and detect HPD irq storm on a pin 121 * Gather stats about HPD irqs from the specified @pin, and detect irq 130 * The HPD threshold can be controlled through i915_hpd_storm_ctl in debugfs, 146 DRM_DEBUG_KMS("Received HPD interrupt on PIN %d - cnt: 0\n", pin); in intel_hpd_irq_storm_detect() 150 DRM_DEBUG_KMS("HPD interrupt storm detected on PIN %d\n", pin); in intel_hpd_irq_storm_detect() 154 DRM_DEBUG_KMS("Received HPD interrupt on PIN %d - cnt: %d\n", pin, in intel_hpd_irq_storm_detect() 188 DRM_INFO("HPD interrupt storm detected on connector %s: " in intel_hpd_irq_storm_disable() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/bridge/ |
| D | analogix_dp.txt | 24 -force-hpd: 25 Indicate driver need force hpd when hpd detect failed, this 26 is used for some eDP screen which don't have hpd signal. 27 -hpd-gpios:
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/display/bridge/ |
| D | analogix_dp.txt | 24 -force-hpd: 25 Indicate driver need force hpd when hpd detect failed, this 26 is used for some eDP screen which don't have hpd signal. 27 -hpd-gpios:
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/ti/ |
| D | ti,tpd12s015.txt | 8 - gpios: CT CP HPD, LS OE and HPD gpios 20 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, /* 60, CT CP HPD */ 22 <&gpio2 31 GPIO_ACTIVE_HIGH>; /* 63, HPD */
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/display/ti/ |
| D | ti,tpd12s015.txt | 8 - gpios: CT CP HPD, LS OE and HPD gpios 20 gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, /* 60, CT CP HPD */ 22 <&gpio2 31 GPIO_ACTIVE_HIGH>; /* 63, HPD */
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdgpu/ |
| D | dce_v10_0.c | 84 uint32_t hpd; member 90 .hpd = DISP_INTERRUPT_STATUS__DC_HPD1_INTERRUPT_MASK 95 .hpd = DISP_INTERRUPT_STATUS_CONTINUE__DC_HPD2_INTERRUPT_MASK 100 .hpd = DISP_INTERRUPT_STATUS_CONTINUE2__DC_HPD3_INTERRUPT_MASK 105 .hpd = DISP_INTERRUPT_STATUS_CONTINUE3__DC_HPD4_INTERRUPT_MASK 110 .hpd = DISP_INTERRUPT_STATUS_CONTINUE4__DC_HPD5_INTERRUPT_MASK 115 .hpd = DISP_INTERRUPT_STATUS_CONTINUE5__DC_HPD6_INTERRUPT_MASK 265 * dce_v10_0_hpd_sense - hpd sense callback. 268 * @hpd: hpd (hotplug detect) pin 274 enum amdgpu_hpd_id hpd) in dce_v10_0_hpd_sense() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_bridge_connector.c | 142 struct drm_bridge *hpd = bridge_connector->bridge_hpd; in drm_bridge_connector_enable_hpd() local 144 if (hpd) in drm_bridge_connector_enable_hpd() 145 drm_bridge_hpd_enable(hpd, drm_bridge_connector_hpd_cb, in drm_bridge_connector_enable_hpd() 162 struct drm_bridge *hpd = bridge_connector->bridge_hpd; in drm_bridge_connector_disable_hpd() local 164 if (hpd) in drm_bridge_connector_disable_hpd() 165 drm_bridge_hpd_disable(hpd); in drm_bridge_connector_disable_hpd() 208 struct drm_bridge *hpd = bridge_connector->bridge_hpd; in drm_bridge_connector_destroy() local 210 drm_bridge_hpd_disable(hpd); in drm_bridge_connector_destroy() 337 * bridges in the pipeline that support HPD and output detection. Then in drm_bridge_connector_init() 338 * initialise the connector polling mode, using HPD if available and in drm_bridge_connector_init() [all …]
|