/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | conn.c | 56 static const u8 hpd[] = { 0x07, 0x08, 0x51, 0x52, 0x5e, 0x5f, 0x60 }; in nvkm_conn_ctor() local 64 conn->info.hpd = DCB_GPIO_UNUSED; in nvkm_conn_ctor() 67 info->type, info->location, info->hpd, info->dp, in nvkm_conn_ctor() 70 if ((info->hpd = ffs(info->hpd))) { in nvkm_conn_ctor() 71 if (--info->hpd >= ARRAY_SIZE(hpd)) { in nvkm_conn_ctor() 72 CONN_ERR(conn, "hpd %02x unknown", info->hpd); in nvkm_conn_ctor() 75 info->hpd = hpd[info->hpd]; in nvkm_conn_ctor() 77 ret = nvkm_gpio_find(gpio, 0, info->hpd, DCB_GPIO_UNUSED, &func); in nvkm_conn_ctor() 79 CONN_ERR(conn, "func %02x lookup failed, %d", info->hpd, ret); in nvkm_conn_ctor() 83 conn->info.hpd = func.line; in nvkm_conn_ctor()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/ |
D | link_hpd.c | 65 struct gpio *hpd; in link_enable_hpd_filter() local 73 hpd = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service); in link_enable_hpd_filter() 75 if (!hpd) in link_enable_hpd_filter() 79 if (dal_gpio_open(hpd, GPIO_MODE_INTERRUPT) == GPIO_RESULT_OK) { in link_enable_hpd_filter() 85 dal_irq_setup_hpd_filter(hpd, &config); in link_enable_hpd_filter() 87 dal_gpio_close(hpd); in link_enable_hpd_filter() 92 dal_gpio_destroy_irq(&hpd); in link_enable_hpd_filter() 137 struct gpio *hpd; in get_hpd_line() local 142 hpd = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in get_hpd_line() 145 if (hpd) { in get_hpd_line() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/ |
D | hw_hpd.c | 38 hpd->shifts->field_name, hpd->masks->field_name 41 hpd->base.base.ctx 43 (hpd->regs->reg) 56 struct hw_hpd *hpd = HW_HPD_FROM_BASE(*ptr); in dal_hw_hpd_destroy() local 58 dal_hw_hpd_destruct(hpd); in dal_hw_hpd_destroy() 60 kfree(hpd); in dal_hw_hpd_destroy() 69 struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr); in get_value() local 92 struct hw_hpd *hpd = HW_HPD_FROM_BASE(ptr); in set_config() local 98 DC_HPD_CONNECT_INT_DELAY, config_data->config.hpd.delay_on_connect / 10, in set_config() 99 DC_HPD_DISCONNECT_INT_DELAY, config_data->config.hpd.delay_on_disconnect / 10); in set_config()
|
/linux-6.6.21/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 …]
|
D | rs600.c | 360 bool rs600_hpd_sense(struct radeon_device *rdev, enum radeon_hpd_id hpd) in rs600_hpd_sense() argument 365 switch (hpd) { in rs600_hpd_sense() 383 enum radeon_hpd_id hpd) in rs600_hpd_set_polarity() argument 386 bool connected = rs600_hpd_sense(rdev, hpd); in rs600_hpd_set_polarity() 388 switch (hpd) { in rs600_hpd_set_polarity() 418 switch (radeon_connector->hpd.hpd) { in rs600_hpd_init() 430 if (radeon_connector->hpd.hpd != RADEON_HPD_NONE) in rs600_hpd_init() 431 enable |= 1 << radeon_connector->hpd.hpd; in rs600_hpd_init() 432 radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); in rs600_hpd_init() 445 switch (radeon_connector->hpd.hpd) { in rs600_hpd_fini() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/ |
D | hugetlb.h | 67 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument 69 BUG_ON(!hugepd_ok(hpd)); in hugepd_page() 74 return __va(hpd_val(hpd) & HUGEPD_ADDR_MASK); in hugepd_page() 77 static inline unsigned int hugepd_mmu_psize(hugepd_t hpd) in hugepd_mmu_psize() argument 79 return (hpd_val(hpd) & HUGEPD_SHIFT_MASK) >> 2; in hugepd_mmu_psize() 82 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument 84 return mmu_psize_to_shift(hugepd_mmu_psize(hpd)); in hugepd_shift() 93 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument 96 unsigned long idx = (addr & ((1UL << pdshift) - 1)) >> hugepd_shift(hpd); in hugepte_offset() 98 return hugepd_page(hpd) + idx; in hugepte_offset()
|
D | pgtable-4k.h | 34 static inline int hugepd_ok(hugepd_t hpd) in hugepd_ok() argument 38 return hash__hugepd_ok(hpd); in hugepd_ok() 40 #define is_hugepd(hpd) (hugepd_ok(hpd)) argument
|
/linux-6.6.21/arch/powerpc/include/asm/nohash/ |
D | hugetlb-e500.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()
|
D | pgtable.h | 249 static inline int hugepd_ok(hugepd_t hpd) in hugepd_ok() argument 252 return ((hpd_val(hpd) & _PMD_PAGE_MASK) == _PMD_PAGE_8M); in hugepd_ok() 255 return (hpd_val(hpd) && (hpd_val(hpd) & PD_HUGE) == 0); in hugepd_ok() 269 #define is_hugepd(hpd) (hugepd_ok(hpd)) argument
|
/linux-6.6.21/drivers/gpu/drm/mediatek/ |
D | mtk_cec.c | 56 bool hpd; member 57 void (*hpd_event)(bool hpd, struct device *dev); 94 void (*hpd_event)(bool hpd, struct device *dev), in mtk_cec_set_hpd_event() argument 151 static void mtk_cec_hpd_event(struct mtk_cec *cec, bool hpd) in mtk_cec_hpd_event() argument 153 void (*hpd_event)(bool hpd, struct device *dev); in mtk_cec_hpd_event() 163 hpd_event(hpd, hdmi_dev); in mtk_cec_hpd_event() 170 bool hpd; in mtk_cec_htplg_isr_thread() local 173 hpd = mtk_cec_hpd_high(dev); in mtk_cec_htplg_isr_thread() 175 if (cec->hpd != hpd) { in mtk_cec_htplg_isr_thread() 177 cec->hpd, hpd); in mtk_cec_htplg_isr_thread() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_hotplug_irq.c | 136 struct intel_hotplug *hpd = &dev_priv->display.hotplug; in intel_hpd_init_pins() local 141 hpd->hpd = hpd_status_g4x; in intel_hpd_init_pins() 143 hpd->hpd = hpd_status_i915; in intel_hpd_init_pins() 148 hpd->hpd = hpd_xelpdp; in intel_hpd_init_pins() 150 hpd->hpd = hpd_gen11; in intel_hpd_init_pins() 152 hpd->hpd = hpd_bxt; in intel_hpd_init_pins() 154 hpd->hpd = NULL; /* no north HPD on SKL */ in intel_hpd_init_pins() 156 hpd->hpd = hpd_bdw; in intel_hpd_init_pins() 158 hpd->hpd = hpd_ivb; in intel_hpd_init_pins() 160 hpd->hpd = hpd_ilk; in intel_hpd_init_pins() [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/Documentation/devicetree/bindings/display/bridge/ |
D | analogix,dp.yaml | 28 force-hpd: 31 Indicate driver need force hpd when hpd detect failed, this 32 is used for some eDP screen which don not have a hpd signal. 34 hpd-gpios:
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_bridge_connector.c | 135 struct drm_bridge *hpd = bridge_connector->bridge_hpd; in drm_bridge_connector_enable_hpd() local 137 if (hpd) in drm_bridge_connector_enable_hpd() 138 drm_bridge_hpd_enable(hpd, drm_bridge_connector_hpd_cb, in drm_bridge_connector_enable_hpd() 146 struct drm_bridge *hpd = bridge_connector->bridge_hpd; in drm_bridge_connector_disable_hpd() local 148 if (hpd) in drm_bridge_connector_disable_hpd() 149 drm_bridge_hpd_disable(hpd); in drm_bridge_connector_disable_hpd() 191 struct drm_bridge *hpd = bridge_connector->bridge_hpd; in drm_bridge_connector_destroy() local 193 drm_bridge_hpd_disable(hpd); in drm_bridge_connector_destroy()
|
/linux-6.6.21/drivers/usb/typec/altmodes/ |
D | displayport.c | 62 bool hpd; member 137 bool hpd = !!(dp->data.status & DP_STATUS_HPD_STATE); in dp_altmode_status_update() local 150 if (dp->hpd != hpd) { in dp_altmode_status_update() 151 dp->hpd = hpd; in dp_altmode_status_update() 156 if (dp->hpd != hpd) { in dp_altmode_status_update() 158 dp->hpd = hpd; in dp_altmode_status_update() 307 if (dp->hpd) { in dp_altmode_vdm() 309 dp->hpd = false; in dp_altmode_vdm() 553 return sysfs_emit(buf, "%d\n", dp->hpd); in hpd_show() 555 static DEVICE_ATTR_RO(hpd); [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dce110/ |
D | hw_factory_dce110.c | 139 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 141 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 142 hpd->shifts = &hpd_shift; in define_hpd_registers() 143 hpd->masks = &hpd_mask; in define_hpd_registers() 144 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dce60/ |
D | hw_factory_dce60.c | 143 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 145 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 146 hpd->shifts = &hpd_shift; in define_hpd_registers() 147 hpd->masks = &hpd_mask; in define_hpd_registers() 148 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dce80/ |
D | hw_factory_dce80.c | 143 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 145 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 146 hpd->shifts = &hpd_shift; in define_hpd_registers() 147 hpd->masks = &hpd_mask; in define_hpd_registers() 148 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dce120/ |
D | hw_factory_dce120.c | 156 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 158 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 159 hpd->shifts = &hpd_shift; in define_hpd_registers() 160 hpd->masks = &hpd_mask; in define_hpd_registers() 161 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dcn10/ |
D | hw_factory_dcn10.c | 188 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 190 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 191 hpd->shifts = &hpd_shift; in define_hpd_registers() 192 hpd->masks = &hpd_mask; in define_hpd_registers() 193 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_dp.c | 109 int ret = NOUVEAU_DP_NONE, hpd; in nouveau_dp_detect() local 141 hpd = nvif_conn_hpd_status(&nv_connector->conn); in nouveau_dp_detect() 142 if (hpd == NVIF_CONN_HPD_STATUS_NOT_PRESENT) { in nouveau_dp_detect() 234 u64 hpd = 0; in nouveau_dp_irq() local 247 hpd |= NVIF_CONN_EVENT_V0_UNPLUG; in nouveau_dp_irq() 254 hpd |= NVIF_CONN_EVENT_V0_PLUG; in nouveau_dp_irq() 262 nouveau_connector_hpd(nv_connector, NVIF_CONN_EVENT_V0_IRQ | hpd); in nouveau_dp_irq()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dcn21/ |
D | hw_factory_dcn21.c | 196 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 198 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 199 hpd->shifts = &hpd_shift; in define_hpd_registers() 200 hpd->masks = &hpd_mask; in define_hpd_registers() 201 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/linux-6.6.21/Documentation/devicetree/bindings/display/panel/ |
D | panel-edp.yaml | 91 hpd-reliable-delay-ms: 99 hpd-absent-delay-ms: 105 include the hpd-reliable-delay, so if hpd-reliable-delay was 80 ms 106 and hpd-absent-delay was 200 ms then we'd do a fixed 80 ms delay and 115 no-hpd: true 116 hpd-gpios: true 151 no-hpd; 177 hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>; 178 hpd-reliable-delay-ms = <15>;
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | dce_v10_0.c | 88 uint32_t hpd; member 94 .hpd = DISP_INTERRUPT_STATUS__DC_HPD1_INTERRUPT_MASK 99 .hpd = DISP_INTERRUPT_STATUS_CONTINUE__DC_HPD2_INTERRUPT_MASK 104 .hpd = DISP_INTERRUPT_STATUS_CONTINUE2__DC_HPD3_INTERRUPT_MASK 109 .hpd = DISP_INTERRUPT_STATUS_CONTINUE3__DC_HPD4_INTERRUPT_MASK 114 .hpd = DISP_INTERRUPT_STATUS_CONTINUE4__DC_HPD5_INTERRUPT_MASK 119 .hpd = DISP_INTERRUPT_STATUS_CONTINUE5__DC_HPD6_INTERRUPT_MASK 279 enum amdgpu_hpd_id hpd) in dce_v10_0_hpd_sense() argument 283 if (hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_sense() 286 if (RREG32(mmDC_HPD_INT_STATUS + hpd_offsets[hpd]) & in dce_v10_0_hpd_sense() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/gpio/dcn32/ |
D | hw_factory_dcn32.c | 229 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 231 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 232 hpd->shifts = &hpd_shift; in define_hpd_registers() 233 hpd->masks = &hpd_mask; in define_hpd_registers() 234 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|