/Linux-v5.15/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() 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 91 info->type, info->location, info->hpd, info->dp, in nvkm_conn_ctor() 94 if ((info->hpd = ffs(info->hpd))) { in nvkm_conn_ctor() 95 if (--info->hpd >= ARRAY_SIZE(hpd)) { in nvkm_conn_ctor() [all …]
|
D | base.c | 102 container_of(notify->event, typeof(*disp), hpd); in nvkm_disp_hpd_ctor() 113 if (ret = -ENODEV, outp->conn->hpd.event) { in nvkm_disp_hpd_ctor() 140 *event = &disp->hpd; in nvkm_disp_ntfy() 281 u8 hpd = 0, ver, hdr; in nvkm_disp_oneinit() local 330 hpd = max(hpd, (u8)(dcbE.connector + 1)); in nvkm_disp_oneinit() 393 ret = nvkm_event_init(&nvkm_disp_hpd_func, 3, hpd, &disp->hpd); in nvkm_disp_oneinit() 435 nvkm_event_fini(&disp->hpd); in nvkm_disp_dtor()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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 | 359 bool rs600_hpd_sense(struct radeon_device *rdev, enum radeon_hpd_id hpd) in rs600_hpd_sense() argument 364 switch (hpd) { in rs600_hpd_sense() 382 enum radeon_hpd_id hpd) in rs600_hpd_set_polarity() argument 385 bool connected = rs600_hpd_sense(rdev, hpd); in rs600_hpd_set_polarity() 387 switch (hpd) { in rs600_hpd_set_polarity() 417 switch (radeon_connector->hpd.hpd) { in rs600_hpd_init() 429 if (radeon_connector->hpd.hpd != RADEON_HPD_NONE) in rs600_hpd_init() 430 enable |= 1 << radeon_connector->hpd.hpd; in rs600_hpd_init() 431 radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); in rs600_hpd_init() 444 switch (radeon_connector->hpd.hpd) { in rs600_hpd_fini() [all …]
|
D | radeon_connectors.c | 70 if (radeon_connector->hpd.hpd == RADEON_HPD_NONE) in radeon_connector_hotplug() 73 radeon_hpd_set_polarity(rdev, radeon_connector->hpd.hpd); in radeon_connector_hotplug() 95 radeon_hpd_sense(rdev, radeon_connector->hpd.hpd) && in radeon_connector_hotplug() 1219 && radeon_connector->hpd.hpd != RADEON_HPD_NONE) { in radeon_check_hpd_status_unchanged() 1220 if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) in radeon_check_hpd_status_unchanged() 1339 if (!radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) { in radeon_dvi_detect() 1726 if (radeon_hpd_sense(rdev, radeon_connector->hpd.hpd)) { in radeon_dp_detect() 1865 struct radeon_hpd *hpd, in radeon_add_atom_connector() argument 1935 radeon_connector->hpd = *hpd; in radeon_add_atom_connector() 2080 radeon_connector->hpd.hpd = RADEON_HPD_NONE; in radeon_add_atom_connector() [all …]
|
/Linux-v5.15/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()
|
D | pgtable.h | 260 static inline int hugepd_ok(hugepd_t hpd) in hugepd_ok() argument 263 return ((hpd_val(hpd) & _PMD_PAGE_MASK) == _PMD_PAGE_8M); in hugepd_ok() 266 return (hpd_val(hpd) && (hpd_val(hpd) & PD_HUGE) == 0); in hugepd_ok() 286 #define is_hugepd(hpd) (hugepd_ok(hpd)) argument
|
/Linux-v5.15/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()
|
D | pgtable-4k.h | 44 static inline int hugepd_ok(hugepd_t hpd) in hugepd_ok() argument 48 return hash__hugepd_ok(hpd); in hugepd_ok() 50 #define is_hugepd(hpd) (hugepd_ok(hpd)) argument
|
/Linux-v5.15/drivers/gpu/drm/mediatek/ |
D | mtk_cec.c | 54 bool hpd; member 55 void (*hpd_event)(bool hpd, struct device *dev); 92 void (*hpd_event)(bool hpd, struct device *dev), in mtk_cec_set_hpd_event() argument 149 static void mtk_cec_hpd_event(struct mtk_cec *cec, bool hpd) in mtk_cec_hpd_event() argument 151 void (*hpd_event)(bool hpd, struct device *dev); in mtk_cec_hpd_event() 161 hpd_event(hpd, hdmi_dev); in mtk_cec_hpd_event() 168 bool hpd; in mtk_cec_htplg_isr_thread() local 171 hpd = mtk_cec_hpd_high(dev); in mtk_cec_htplg_isr_thread() 173 if (cec->hpd != hpd) { in mtk_cec_htplg_isr_thread() 175 cec->hpd, hpd); in mtk_cec_htplg_isr_thread() [all …]
|
/Linux-v5.15/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-v5.15/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()
|
/Linux-v5.15/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:
|
/Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/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-v5.15/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-v5.15/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-v5.15/drivers/gpu/drm/msm/dp/ |
D | dp_hpd.c | 27 int dp_hpd_connect(struct dp_usbpd *dp_usbpd, bool hpd) in dp_hpd_connect() argument 35 dp_usbpd->hpd_high = hpd; in dp_hpd_connect() 42 if (hpd) in dp_hpd_connect()
|
/Linux-v5.15/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 283 enum amdgpu_hpd_id hpd) in dce_v10_0_hpd_sense() argument 287 if (hpd >= adev->mode_info.num_hpd) in dce_v10_0_hpd_sense() 290 if (RREG32(mmDC_HPD_INT_STATUS + hpd_offsets[hpd]) & in dce_v10_0_hpd_sense() [all …]
|
D | dce_v11_0.c | 90 uint32_t hpd; member 96 .hpd = DISP_INTERRUPT_STATUS__DC_HPD1_INTERRUPT_MASK 101 .hpd = DISP_INTERRUPT_STATUS_CONTINUE__DC_HPD2_INTERRUPT_MASK 106 .hpd = DISP_INTERRUPT_STATUS_CONTINUE2__DC_HPD3_INTERRUPT_MASK 111 .hpd = DISP_INTERRUPT_STATUS_CONTINUE3__DC_HPD4_INTERRUPT_MASK 116 .hpd = DISP_INTERRUPT_STATUS_CONTINUE4__DC_HPD5_INTERRUPT_MASK 121 .hpd = DISP_INTERRUPT_STATUS_CONTINUE5__DC_HPD6_INTERRUPT_MASK 301 enum amdgpu_hpd_id hpd) in dce_v11_0_hpd_sense() argument 305 if (hpd >= adev->mode_info.num_hpd) in dce_v11_0_hpd_sense() 308 if (RREG32(mmDC_HPD_INT_STATUS + hpd_offsets[hpd]) & in dce_v11_0_hpd_sense() [all …]
|
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/gpio/dcn20/ |
D | hw_factory_dcn20.c | 206 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 208 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 209 hpd->shifts = &hpd_shift; in define_hpd_registers() 210 hpd->masks = &hpd_mask; in define_hpd_registers() 211 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/gpio/dcn30/ |
D | hw_factory_dcn30.c | 224 struct hw_hpd *hpd = HW_HPD_FROM_BASE(pin); in define_hpd_registers() local 226 hpd->regs = &hpd_regs[en]; in define_hpd_registers() 227 hpd->shifts = &hpd_shift; in define_hpd_registers() 228 hpd->masks = &hpd_mask; in define_hpd_registers() 229 hpd->base.regs = &hpd_regs[en].gpio; in define_hpd_registers()
|