/drivers/gpu/drm/rcar-du/ |
D | rcar_du_lvdsenc.c | 36 static void rcar_lvds_write(struct rcar_du_lvdsenc *lvds, u32 reg, u32 data) in rcar_lvds_write() argument 38 iowrite32(data, lvds->mmio + reg); in rcar_lvds_write() 41 static int rcar_du_lvdsenc_start(struct rcar_du_lvdsenc *lvds, in rcar_du_lvdsenc_start() argument 51 if (lvds->enabled) in rcar_du_lvdsenc_start() 54 ret = clk_prepare_enable(lvds->clock); in rcar_du_lvdsenc_start() 68 rcar_lvds_write(lvds, LVDPLLCR, pllcr); in rcar_du_lvdsenc_start() 77 rcar_lvds_write(lvds, LVDCTRCR, LVDCTRCR_CTR3SEL_ZERO | in rcar_du_lvdsenc_start() 81 if (rcar_du_needs(lvds->dev, RCAR_DU_QUIRK_LVDS_LANES)) in rcar_du_lvdsenc_start() 88 rcar_lvds_write(lvds, LVDCHCR, lvdhcr); in rcar_du_lvdsenc_start() 96 rcar_lvds_write(lvds, LVDCR0, lvdcr0); in rcar_du_lvdsenc_start() [all …]
|
D | rcar_du_encoder.c | 49 if (renc->lvds) in rcar_du_encoder_disable() 50 rcar_du_lvdsenc_enable(renc->lvds, encoder->crtc, false); in rcar_du_encoder_disable() 57 if (renc->lvds) in rcar_du_encoder_enable() 58 rcar_du_lvdsenc_enable(renc->lvds, encoder->crtc, true); in rcar_du_encoder_enable() 95 if (renc->lvds) in rcar_du_encoder_atomic_check() 142 renc->lvds = rcdu->lvds[0]; in rcar_du_encoder_init() 146 renc->lvds = rcdu->lvds[1]; in rcar_du_encoder_init()
|
D | rcar_du_hdmienc.c | 43 if (hdmienc->renc->lvds) in rcar_du_hdmienc_disable() 44 rcar_du_lvdsenc_enable(hdmienc->renc->lvds, encoder->crtc, in rcar_du_hdmienc_disable() 55 if (hdmienc->renc->lvds) in rcar_du_hdmienc_enable() 56 rcar_du_lvdsenc_enable(hdmienc->renc->lvds, encoder->crtc, in rcar_du_hdmienc_enable() 77 if (hdmienc->renc->lvds) in rcar_du_hdmienc_atomic_check()
|
D | rcar_du_lvdsenc.h | 31 int rcar_du_lvdsenc_enable(struct rcar_du_lvdsenc *lvds, 38 static inline int rcar_du_lvdsenc_enable(struct rcar_du_lvdsenc *lvds, in rcar_du_lvdsenc_enable() argument
|
D | rcar_du_encoder.h | 36 struct rcar_du_lvdsenc *lvds; member
|
/drivers/gpu/drm/radeon/ |
D | radeon_combios.c | 1104 struct radeon_encoder_lvds *lvds = NULL; in radeon_legacy_get_lvds_info_from_regs() local 1109 lvds = kzalloc(sizeof(struct radeon_encoder_lvds), GFP_KERNEL); in radeon_legacy_get_lvds_info_from_regs() 1111 if (!lvds) in radeon_legacy_get_lvds_info_from_regs() 1118 lvds->panel_pwr_delay = 200; in radeon_legacy_get_lvds_info_from_regs() 1119 lvds->panel_vcc_delay = 2000; in radeon_legacy_get_lvds_info_from_regs() 1121 lvds->lvds_gen_cntl = RREG32(RADEON_LVDS_GEN_CNTL); in radeon_legacy_get_lvds_info_from_regs() 1122 lvds->panel_digon_delay = (lvds_ss_gen_cntl >> RADEON_LVDS_PWRSEQ_DELAY1_SHIFT) & 0xf; in radeon_legacy_get_lvds_info_from_regs() 1123 lvds->panel_blon_delay = (lvds_ss_gen_cntl >> RADEON_LVDS_PWRSEQ_DELAY2_SHIFT) & 0xf; in radeon_legacy_get_lvds_info_from_regs() 1126 lvds->native_mode.vdisplay = in radeon_legacy_get_lvds_info_from_regs() 1130 lvds->native_mode.vdisplay = in radeon_legacy_get_lvds_info_from_regs() [all …]
|
D | radeon_legacy_encoders.c | 62 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_update() local 63 panel_pwr_delay = lvds->panel_pwr_delay; in radeon_legacy_lvds_update() 64 if (lvds->bl_dev) in radeon_legacy_lvds_update() 65 backlight_level = lvds->backlight_level; in radeon_legacy_lvds_update() 67 struct radeon_encoder_lvds *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_update() local 68 panel_pwr_delay = lvds->panel_pwr_delay; in radeon_legacy_lvds_update() 69 if (lvds->bl_dev) in radeon_legacy_lvds_update() 70 backlight_level = lvds->backlight_level; in radeon_legacy_lvds_update() 143 struct radeon_encoder_atom_dig *lvds = radeon_encoder->enc_priv; in radeon_legacy_lvds_dpms() local 144 lvds->dpms_mode = mode; in radeon_legacy_lvds_dpms() [all …]
|
D | radeon_atombios.c | 1636 struct radeon_encoder_atom_dig *lvds = NULL; in radeon_atombios_get_lvds_info() local 1643 lvds = in radeon_atombios_get_lvds_info() 1646 if (!lvds) in radeon_atombios_get_lvds_info() 1649 lvds->native_mode.clock = in radeon_atombios_get_lvds_info() 1651 lvds->native_mode.hdisplay = in radeon_atombios_get_lvds_info() 1653 lvds->native_mode.vdisplay = in radeon_atombios_get_lvds_info() 1655 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info() 1657 lvds->native_mode.hsync_start = lvds->native_mode.hdisplay + in radeon_atombios_get_lvds_info() 1659 lvds->native_mode.hsync_end = lvds->native_mode.hsync_start + in radeon_atombios_get_lvds_info() 1661 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in radeon_atombios_get_lvds_info() [all …]
|
D | radeon_legacy_crtc.c | 801 struct radeon_encoder_lvds *lvds = (struct radeon_encoder_lvds *)radeon_encoder->enc_priv; in radeon_set_pll() local 802 if (lvds) { in radeon_set_pll() 803 if (lvds->use_bios_dividers) { in radeon_set_pll() 804 pll_ref_div = lvds->panel_ref_divider; in radeon_set_pll() 805 pll_fb_post_div = (lvds->panel_fb_divider | in radeon_set_pll() 806 (lvds->panel_post_divider << 16)); in radeon_set_pll()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_encoders.c | 1920 struct amdgpu_encoder_atom_dig *lvds = NULL; in amdgpu_atombios_encoder_get_lcd_info() local 1927 lvds = in amdgpu_atombios_encoder_get_lcd_info() 1930 if (!lvds) in amdgpu_atombios_encoder_get_lcd_info() 1933 lvds->native_mode.clock = in amdgpu_atombios_encoder_get_lcd_info() 1935 lvds->native_mode.hdisplay = in amdgpu_atombios_encoder_get_lcd_info() 1937 lvds->native_mode.vdisplay = in amdgpu_atombios_encoder_get_lcd_info() 1939 lvds->native_mode.htotal = lvds->native_mode.hdisplay + in amdgpu_atombios_encoder_get_lcd_info() 1941 lvds->native_mode.hsync_start = lvds->native_mode.hdisplay + in amdgpu_atombios_encoder_get_lcd_info() 1943 lvds->native_mode.hsync_end = lvds->native_mode.hsync_start + in amdgpu_atombios_encoder_get_lcd_info() 1945 lvds->native_mode.vtotal = lvds->native_mode.vdisplay + in amdgpu_atombios_encoder_get_lcd_info() [all …]
|
/drivers/staging/xgifb/ |
D | vb_init.c | 874 struct XGI21_LVDSCapStruct *lvds; in xgifb_read_vbios() local 912 lvds = &xgifb_info->lvds_data; in xgifb_read_vbios() 915 lvds->LVDS_Capability = vbios[i] | (vbios[i + 1] << 8); in xgifb_read_vbios() 916 lvds->LVDSHT = vbios[i + 2] | (vbios[i + 3] << 8); in xgifb_read_vbios() 917 lvds->LVDSVT = vbios[i + 4] | (vbios[i + 5] << 8); in xgifb_read_vbios() 918 lvds->LVDSHDE = vbios[i + 6] | (vbios[i + 7] << 8); in xgifb_read_vbios() 919 lvds->LVDSVDE = vbios[i + 8] | (vbios[i + 9] << 8); in xgifb_read_vbios() 920 lvds->LVDSHFP = vbios[i + 10] | (vbios[i + 11] << 8); in xgifb_read_vbios() 921 lvds->LVDSVFP = vbios[i + 12] | (vbios[i + 13] << 8); in xgifb_read_vbios() 922 lvds->LVDSHSYNC = vbios[i + 14] | (vbios[i + 15] << 8); in xgifb_read_vbios() [all …]
|
/drivers/gpu/drm/gma500/ |
D | psb_intel_display.c | 235 u32 lvds = REG_READ(LVDS); in psb_intel_crtc_mode_set() local 237 lvds &= ~LVDS_PIPEB_SELECT; in psb_intel_crtc_mode_set() 239 lvds |= LVDS_PIPEB_SELECT; in psb_intel_crtc_mode_set() 241 lvds |= LVDS_PORT_EN | LVDS_A0A2_CLKA_POWER_UP; in psb_intel_crtc_mode_set() 246 lvds &= ~(LVDS_B0B3_POWER_UP | LVDS_CLKB_POWER_UP); in psb_intel_crtc_mode_set() 248 lvds |= LVDS_B0B3_POWER_UP | LVDS_CLKB_POWER_UP; in psb_intel_crtc_mode_set() 255 REG_WRITE(LVDS, lvds); in psb_intel_crtc_mode_set()
|
D | cdv_intel_lvds.c | 619 u32 lvds; in cdv_intel_lvds_init() local 744 lvds = REG_READ(LVDS); in cdv_intel_lvds_init() 745 pipe = (lvds & LVDS_PIPEB_SELECT) ? 1 : 0; in cdv_intel_lvds_init() 748 if (crtc && (lvds & LVDS_PORT_EN)) { in cdv_intel_lvds_init()
|
D | cdv_intel_display.c | 751 u32 lvds = REG_READ(LVDS); in cdv_intel_crtc_mode_set() local 753 lvds |= in cdv_intel_crtc_mode_set() 761 lvds |= LVDS_B0B3_POWER_UP | LVDS_CLKB_POWER_UP; in cdv_intel_crtc_mode_set() 763 lvds &= ~(LVDS_B0B3_POWER_UP | LVDS_CLKB_POWER_UP); in cdv_intel_crtc_mode_set() 770 REG_WRITE(LVDS, lvds); in cdv_intel_crtc_mode_set()
|
D | psb_intel_lvds.c | 694 u32 lvds; in psb_intel_lvds_init() local 809 lvds = REG_READ(LVDS); in psb_intel_lvds_init() 810 pipe = (lvds & LVDS_PIPEB_SELECT) ? 1 : 0; in psb_intel_lvds_init() 813 if (crtc && (lvds & LVDS_PORT_EN)) { in psb_intel_lvds_init()
|
/drivers/gpu/drm/nouveau/ |
D | nv50_display.c | 1940 struct nv50_disp_sor_lvds_script_v0 lvds; in nv50_sor_mode_set() member 1941 } lvds = { in nv50_sor_mode_set() local 1979 lvds.lvds.script |= 0x0100; in nv50_sor_mode_set() 1981 lvds.lvds.script |= 0x0200; in nv50_sor_mode_set() 1985 lvds.lvds.script |= 0x0100; in nv50_sor_mode_set() 1988 lvds.lvds.script |= 0x0100; in nv50_sor_mode_set() 1991 if (lvds.lvds.script & 0x0100) { in nv50_sor_mode_set() 1993 lvds.lvds.script |= 0x0200; in nv50_sor_mode_set() 1996 lvds.lvds.script |= 0x0200; in nv50_sor_mode_set() 2000 lvds.lvds.script |= 0x0200; in nv50_sor_mode_set() [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_lvds.c | 951 u32 lvds; in intel_lvds_init() local 978 lvds = I915_READ(lvds_reg); in intel_lvds_init() 981 if ((lvds & LVDS_DETECTED) == 0) in intel_lvds_init() 991 if ((lvds & LVDS_PORT_EN) == 0) { in intel_lvds_init() 1149 pipe = (lvds & LVDS_PIPEB_SELECT) ? 1 : 0; in intel_lvds_init() 1152 if (crtc && (lvds & LVDS_PORT_EN)) { in intel_lvds_init()
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gk104.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | gm107.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | gk110.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | g84.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | gt200.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | gm204.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | g94.c | 38 .outp.internal.lvds = nv50_sor_output_new,
|
D | priv.h | 20 int (*lvds)(struct nvkm_disp *, int index, struct dcb_output *, member
|