/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_tmds_clk.c | 69 struct sun4i_tmds *tmds = hw_to_tmds(hw); in sun4i_tmds_determine_rate() local 88 for (j = tmds->div_offset ?: 1; in sun4i_tmds_determine_rate() 89 j < (16 + tmds->div_offset); j++) { in sun4i_tmds_determine_rate() 128 struct sun4i_tmds *tmds = hw_to_tmds(hw); in sun4i_tmds_recalc_rate() local 131 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_recalc_rate() 135 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_recalc_rate() 136 reg = ((reg >> 4) & 0xf) + tmds->div_offset; in sun4i_tmds_recalc_rate() 146 struct sun4i_tmds *tmds = hw_to_tmds(hw); in sun4i_tmds_set_rate() local 151 sun4i_tmds_calc_divider(rate, parent_rate, tmds->div_offset, in sun4i_tmds_set_rate() 154 reg = readl(tmds in sun4i_tmds_set_rate() 170 struct sun4i_tmds *tmds = hw_to_tmds(hw); sun4i_tmds_get_parent() local 180 struct sun4i_tmds *tmds = hw_to_tmds(hw); sun4i_tmds_set_parent() local 206 struct sun4i_tmds *tmds; sun4i_tmds_create() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_tmds_clk.c | 69 struct sun4i_tmds *tmds = hw_to_tmds(hw); in sun4i_tmds_determine_rate() local 88 for (j = tmds->div_offset ?: 1; in sun4i_tmds_determine_rate() 89 j < (16 + tmds->div_offset); j++) { in sun4i_tmds_determine_rate() 128 struct sun4i_tmds *tmds = hw_to_tmds(hw); in sun4i_tmds_recalc_rate() local 131 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG); in sun4i_tmds_recalc_rate() 135 reg = readl(tmds->hdmi->base + SUN4I_HDMI_PLL_CTRL_REG); in sun4i_tmds_recalc_rate() 136 reg = ((reg >> 4) & 0xf) + tmds->div_offset; in sun4i_tmds_recalc_rate() 146 struct sun4i_tmds *tmds = hw_to_tmds(hw); in sun4i_tmds_set_rate() local 151 sun4i_tmds_calc_divider(rate, parent_rate, tmds->div_offset, in sun4i_tmds_set_rate() 154 reg = readl(tmds in sun4i_tmds_set_rate() 170 struct sun4i_tmds *tmds = hw_to_tmds(hw); sun4i_tmds_get_parent() local 180 struct sun4i_tmds *tmds = hw_to_tmds(hw); sun4i_tmds_set_parent() local 206 struct sun4i_tmds *tmds; sun4i_tmds_create() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/ |
H A D | outp.c | 172 args.tmds.head = head; in nvif_outp_acquire_tmds() 173 args.tmds.hdmi = hdmi; in nvif_outp_acquire_tmds() 174 args.tmds.hdmi_max_ac_packet = max_ac_packet; in nvif_outp_acquire_tmds() 175 args.tmds.hdmi_rekey = rekey; in nvif_outp_acquire_tmds() 176 args.tmds.hdmi_scdc = scdc; in nvif_outp_acquire_tmds() 177 args.tmds.hdmi_hda = hda; in nvif_outp_acquire_tmds() 182 " or:%d link:%d", args.tmds.head, args.tmds.hdmi, args.tmds.hdmi_max_ac_packet, in nvif_outp_acquire_tmds() 183 args.tmds in nvif_outp_acquire_tmds() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_combios.c | 97 COMBIOS_TMDS_POWER_ON_TABLE, /* offset from tmds power */ 98 COMBIOS_TMDS_POWER_OFF_TABLE, /* offset from tmds power */ 342 case COMBIOS_TMDS_POWER_ON_TABLE: /* offset from tmds power */ in combios_get_table_offset() 351 case COMBIOS_TMDS_POWER_OFF_TABLE: /* offset from tmds power */ in combios_get_table_offset() 1319 struct radeon_encoder_int_tmds *tmds) in radeon_legacy_get_tmds_info_from_table() 1326 tmds->tmds_pll[i].value = in radeon_legacy_get_tmds_info_from_table() 1328 tmds->tmds_pll[i].freq = default_tmds_pll[rdev->family][i].freq; in radeon_legacy_get_tmds_info_from_table() 1335 struct radeon_encoder_int_tmds *tmds) in radeon_legacy_get_tmds_info_from_combios() 1353 tmds->tmds_pll[i].value = in radeon_legacy_get_tmds_info_from_combios() 1355 tmds in radeon_legacy_get_tmds_info_from_combios() 1318 radeon_legacy_get_tmds_info_from_table(struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds) radeon_legacy_get_tmds_info_from_table() argument 1334 radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds) radeon_legacy_get_tmds_info_from_combios() argument 1387 radeon_legacy_get_ext_tmds_info_from_table(struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds) radeon_legacy_get_ext_tmds_info_from_table() argument 1411 radeon_legacy_get_ext_tmds_info_from_combios(struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds) radeon_legacy_get_ext_tmds_info_from_combios() argument 2840 struct radeon_encoder_ext_tmds *tmds = radeon_encoder->enc_priv; radeon_external_tmds_setup() local 2893 struct radeon_encoder_ext_tmds *tmds = radeon_encoder->enc_priv; radeon_combios_external_tmds_setup() local [all...] |
H A D | radeon_legacy_encoders.c | 803 struct radeon_encoder_int_tmds *tmds = (struct radeon_encoder_int_tmds *)radeon_encoder->enc_priv; in radeon_legacy_tmds_int_mode_set() local 806 if (tmds->tmds_pll[i].freq == 0) in radeon_legacy_tmds_int_mode_set() 808 if ((uint32_t)(mode->clock / 10) < tmds->tmds_pll[i].freq) { in radeon_legacy_tmds_int_mode_set() 809 tmp = tmds->tmds_pll[i].value ; in radeon_legacy_tmds_int_mode_set() 1702 struct radeon_encoder_int_tmds *tmds = NULL; in radeon_legacy_get_tmds_info() local 1705 tmds = kzalloc(sizeof(struct radeon_encoder_int_tmds), GFP_KERNEL); in radeon_legacy_get_tmds_info() 1707 if (!tmds) in radeon_legacy_get_tmds_info() 1711 ret = radeon_atombios_get_tmds_info(encoder, tmds); in radeon_legacy_get_tmds_info() 1713 ret = radeon_legacy_get_tmds_info_from_combios(encoder, tmds); in radeon_legacy_get_tmds_info() 1716 radeon_legacy_get_tmds_info_from_table(encoder, tmds); in radeon_legacy_get_tmds_info() 1725 struct radeon_encoder_ext_tmds *tmds = NULL; radeon_legacy_get_ext_tmds_info() local [all...] |
H A D | radeon_mode.h | 414 /* legacy int tmds */ 419 /* tmds over dvo */ 897 struct radeon_encoder_int_tmds *tmds); 899 struct radeon_encoder_int_tmds *tmds); 901 struct radeon_encoder_int_tmds *tmds); 903 struct radeon_encoder_ext_tmds *tmds); 905 struct radeon_encoder_ext_tmds *tmds);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_combios.c | 93 COMBIOS_TMDS_POWER_ON_TABLE, /* offset from tmds power */ 94 COMBIOS_TMDS_POWER_OFF_TABLE, /* offset from tmds power */ 338 case COMBIOS_TMDS_POWER_ON_TABLE: /* offset from tmds power */ in combios_get_table_offset() 347 case COMBIOS_TMDS_POWER_OFF_TABLE: /* offset from tmds power */ in combios_get_table_offset() 1315 struct radeon_encoder_int_tmds *tmds) in radeon_legacy_get_tmds_info_from_table() 1322 tmds->tmds_pll[i].value = in radeon_legacy_get_tmds_info_from_table() 1324 tmds->tmds_pll[i].freq = default_tmds_pll[rdev->family][i].freq; in radeon_legacy_get_tmds_info_from_table() 1331 struct radeon_encoder_int_tmds *tmds) in radeon_legacy_get_tmds_info_from_combios() 1349 tmds->tmds_pll[i].value = in radeon_legacy_get_tmds_info_from_combios() 1351 tmds in radeon_legacy_get_tmds_info_from_combios() 1314 radeon_legacy_get_tmds_info_from_table(struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds) radeon_legacy_get_tmds_info_from_table() argument 1330 radeon_legacy_get_tmds_info_from_combios(struct radeon_encoder *encoder, struct radeon_encoder_int_tmds *tmds) radeon_legacy_get_tmds_info_from_combios() argument 1383 radeon_legacy_get_ext_tmds_info_from_table(struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds) radeon_legacy_get_ext_tmds_info_from_table() argument 1407 radeon_legacy_get_ext_tmds_info_from_combios(struct radeon_encoder *encoder, struct radeon_encoder_ext_tmds *tmds) radeon_legacy_get_ext_tmds_info_from_combios() argument 2839 struct radeon_encoder_ext_tmds *tmds = radeon_encoder->enc_priv; radeon_external_tmds_setup() local 2892 struct radeon_encoder_ext_tmds *tmds = radeon_encoder->enc_priv; radeon_combios_external_tmds_setup() local [all...] |
H A D | radeon_legacy_encoders.c | 796 struct radeon_encoder_int_tmds *tmds = (struct radeon_encoder_int_tmds *)radeon_encoder->enc_priv; in radeon_legacy_tmds_int_mode_set() local 799 if (tmds->tmds_pll[i].freq == 0) in radeon_legacy_tmds_int_mode_set() 801 if ((uint32_t)(mode->clock / 10) < tmds->tmds_pll[i].freq) { in radeon_legacy_tmds_int_mode_set() 802 tmp = tmds->tmds_pll[i].value ; in radeon_legacy_tmds_int_mode_set() 1695 struct radeon_encoder_int_tmds *tmds; in radeon_legacy_get_tmds_info() local 1698 tmds = kzalloc(sizeof(struct radeon_encoder_int_tmds), GFP_KERNEL); in radeon_legacy_get_tmds_info() 1700 if (!tmds) in radeon_legacy_get_tmds_info() 1704 ret = radeon_atombios_get_tmds_info(encoder, tmds); in radeon_legacy_get_tmds_info() 1706 ret = radeon_legacy_get_tmds_info_from_combios(encoder, tmds); in radeon_legacy_get_tmds_info() 1709 radeon_legacy_get_tmds_info_from_table(encoder, tmds); in radeon_legacy_get_tmds_info() 1718 struct radeon_encoder_ext_tmds *tmds; radeon_legacy_get_ext_tmds_info() local [all...] |
H A D | radeon_mode.h | 405 /* legacy int tmds */ 410 /* tmds over dvo */ 858 struct radeon_encoder_int_tmds *tmds); 860 struct radeon_encoder_int_tmds *tmds); 862 struct radeon_encoder_int_tmds *tmds); 864 struct radeon_encoder_ext_tmds *tmds); 866 struct radeon_encoder_ext_tmds *tmds);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | uoutp.c | 225 ret = nvkm_uoutp_mthd_acquire_tmds(outp, args->v0.tmds.head, in nvkm_uoutp_mthd_acquire() 226 args->v0.tmds.hdmi, in nvkm_uoutp_mthd_acquire() 227 args->v0.tmds.hdmi_max_ac_packet, in nvkm_uoutp_mthd_acquire() 228 args->v0.tmds.hdmi_rekey, in nvkm_uoutp_mthd_acquire() 229 args->v0.tmds.hdmi_scdc, in nvkm_uoutp_mthd_acquire() 230 args->v0.tmds.hdmi_hda); in nvkm_uoutp_mthd_acquire()
|
H A D | ga102.c | 91 if (sor->tmds.high_speed) in ga102_sor_clock()
|
H A D | gm200.c | 79 ior->tmds.high_speed = !!(scdc & 0x2); in gm200_sor_hdmi_scdc()
|
H A D | ior.h | 49 } tmds; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | hdmigm200.c | 35 ior->tmds.high_speed = !!(scdc & 0x2); in gm200_hdmi_scdc()
|
H A D | sorgf119.c | 127 const u32 speed = sor->tmds.high_speed ? 0x14 : 0x0a; in gf119_sor_clock() 129 if (sor->tmds.high_speed) in gf119_sor_clock()
|
H A D | ior.h | 48 } tmds; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 44 const struct tmds_config *tmds; member 812 const struct tmds_config *tmds) in tegra_hdmi_setup_tmds() 816 tegra_hdmi_writel(hdmi, tmds->pll0, HDMI_NV_PDISP_SOR_PLL0); in tegra_hdmi_setup_tmds() 817 tegra_hdmi_writel(hdmi, tmds->pll1, HDMI_NV_PDISP_SOR_PLL1); in tegra_hdmi_setup_tmds() 818 tegra_hdmi_writel(hdmi, tmds->pe_current, HDMI_NV_PDISP_PE_CURRENT); in tegra_hdmi_setup_tmds() 820 tegra_hdmi_writel(hdmi, tmds->drive_current, in tegra_hdmi_setup_tmds() 828 tegra_hdmi_writel(hdmi, tmds->peak_current, in tegra_hdmi_setup_tmds() 1293 if (hdmi->pixel_clock <= hdmi->config->tmds[i].pclk) { in tegra_hdmi_encoder_enable() 1294 tegra_hdmi_setup_tmds(hdmi, &hdmi->config->tmds[i]); in tegra_hdmi_encoder_enable() 1550 .tmds 811 tegra_hdmi_setup_tmds(struct tegra_hdmi *hdmi, const struct tmds_config *tmds) tegra_hdmi_setup_tmds() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 50 const struct tmds_config *tmds; member 833 const struct tmds_config *tmds) in tegra_hdmi_setup_tmds() 837 tegra_hdmi_writel(hdmi, tmds->pll0, HDMI_NV_PDISP_SOR_PLL0); in tegra_hdmi_setup_tmds() 838 tegra_hdmi_writel(hdmi, tmds->pll1, HDMI_NV_PDISP_SOR_PLL1); in tegra_hdmi_setup_tmds() 839 tegra_hdmi_writel(hdmi, tmds->pe_current, HDMI_NV_PDISP_PE_CURRENT); in tegra_hdmi_setup_tmds() 841 tegra_hdmi_writel(hdmi, tmds->drive_current, in tegra_hdmi_setup_tmds() 849 tegra_hdmi_writel(hdmi, tmds->peak_current, in tegra_hdmi_setup_tmds() 1332 if (hdmi->pixel_clock <= hdmi->config->tmds[i].pclk) { in tegra_hdmi_encoder_enable() 1333 tegra_hdmi_setup_tmds(hdmi, &hdmi->config->tmds[i]); in tegra_hdmi_encoder_enable() 1716 .tmds 832 tegra_hdmi_setup_tmds(struct tegra_hdmi *hdmi, const struct tmds_config *tmds) tegra_hdmi_setup_tmds() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | if0012.h | 56 } tmds; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | init.c | 539 init_tmds_reg(struct nvbios_init *init, u8 tmds) in init_tmds_reg() argument 554 if (tmds >= 0x80) { in init_tmds_reg() 557 if (tmds == 0x81) in init_tmds_reg() 563 error("tmds opcodes need dcb\n"); in init_tmds_reg() 565 if (tmds < ARRAY_SIZE(pramdac_table)) in init_tmds_reg() 566 return pramdac_table[tmds]; in init_tmds_reg() 568 error("tmds selector 0x%02x unknown\n", tmds); in init_tmds_reg() 1096 u8 tmds = nvbios_rd08(bios, init->offset + 1); in init_tmds() local 1100 u32 reg = init_tmds_reg(init, tmds); in init_tmds() 1122 u8 tmds = nvbios_rd08(bios, init->offset + 1); init_zm_tmds_group() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | init.c | 539 init_tmds_reg(struct nvbios_init *init, u8 tmds) in init_tmds_reg() argument 554 if (tmds >= 0x80) { in init_tmds_reg() 557 if (tmds == 0x81) in init_tmds_reg() 563 error("tmds opcodes need dcb\n"); in init_tmds_reg() 565 if (tmds < ARRAY_SIZE(pramdac_table)) in init_tmds_reg() 566 return pramdac_table[tmds]; in init_tmds_reg() 568 error("tmds selector 0x%02x unknown\n", tmds); in init_tmds_reg() 1096 u8 tmds = nvbios_rd08(bios, init->offset + 1); in init_tmds() local 1100 u32 reg = init_tmds_reg(init, tmds); in init_tmds() 1122 u8 tmds = nvbios_rd08(bios, init->offset + 1); init_zm_tmds_group() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bios.c | 642 /* pre-nv17 off-chip tmds uses scripts, post nv17 doesn't */ in run_tmds_table() 649 clktable = bios->tmds.output0_script_ptr; in run_tmds_table() 653 clktable = bios->tmds.output1_script_ptr; in run_tmds_table() 956 bios->tmds.output0_script_ptr = ROM16(bios->data[tmdstableptr + 11]); in parse_bit_tmds_tbl_entry() 957 bios->tmds.output1_script_ptr = ROM16(bios->data[tmdstableptr + 13]); in parse_bit_tmds_tbl_entry() 1034 parse_bit_table(bios, bitoffset, &BIT_TABLE('T', tmds)); in parse_bit_structure() 1203 bios->tmds.output0_script_ptr = ROM16(bmp[89]); in parse_bmp_structure() 1204 bios->tmds.output1_script_ptr = ROM16(bmp[91]); in parse_bmp_structure() 1776 else if (bios->tmds.output0_script_ptr || in fabricate_dcb_encoder_table() 1777 bios->tmds in fabricate_dcb_encoder_table() [all...] |
H A D | nouveau_bios.h | 117 uint16_t fptablepointer; /* also used by tmds */ 141 } tmds; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bios.c | 645 /* pre-nv17 off-chip tmds uses scripts, post nv17 doesn't */ in run_tmds_table() 652 clktable = bios->tmds.output0_script_ptr; in run_tmds_table() 656 clktable = bios->tmds.output1_script_ptr; in run_tmds_table() 959 bios->tmds.output0_script_ptr = ROM16(bios->data[tmdstableptr + 11]); in parse_bit_tmds_tbl_entry() 960 bios->tmds.output1_script_ptr = ROM16(bios->data[tmdstableptr + 13]); in parse_bit_tmds_tbl_entry() 1037 parse_bit_table(bios, bitoffset, &BIT_TABLE('T', tmds)); in parse_bit_structure() 1206 bios->tmds.output0_script_ptr = ROM16(bmp[89]); in parse_bmp_structure() 1207 bios->tmds.output1_script_ptr = ROM16(bmp[91]); in parse_bmp_structure() 1779 else if (bios->tmds.output0_script_ptr || in fabricate_dcb_encoder_table() 1780 bios->tmds in fabricate_dcb_encoder_table() [all...] |
H A D | nouveau_bios.h | 117 uint16_t fptablepointer; /* also used by tmds */ 141 } tmds; member
|