Lines Matching refs:config
77 const struct tegra_hdmi_config *config;
386 struct tegra_hdmi_audio_config *config)
396 memset(config, 0, sizeof(*config));
397 config->n = -1;
422 config->n = n;
423 config->cts = cts >> 16;
424 config->aval = aval_f >> 16;
430 return config->n != -1 ? 0 : -EINVAL;
486 struct tegra_hdmi_audio_config config;
492 if (hdmi->config->has_hda)
500 if (hdmi->config->has_hda)
507 if (hdmi->config->has_hda)
521 if (hdmi->config->has_hda) {
549 if (!hdmi->config->has_hda)
557 if (hdmi->config->has_hbr) {
564 hdmi->pixel_clock, &config);
573 hdmi->pixel_clock, config.n, config.cts, config.aval);
578 AUDIO_N_VALUE(config.n - 1);
581 tegra_hdmi_writel(hdmi, ACR_SUBPACK_N(config.n) | ACR_ENABLE,
584 tegra_hdmi_writel(hdmi, ACR_SUBPACK_CTS(config.cts),
594 if (hdmi->config->has_hda)
595 tegra_hdmi_write_aval(hdmi, config.aval);
844 value = tegra_hdmi_readl(hdmi, hdmi->config->fuse_override_offset);
845 value |= hdmi->config->fuse_override_value;
846 tegra_hdmi_writel(hdmi, value, hdmi->config->fuse_override_offset);
848 if (hdmi->config->has_sor_io_peak_current)
1309 if (hdmi->config->has_hda)
1331 for (i = 0; i < hdmi->config->num_tmds; i++) {
1332 if (hdmi->pixel_clock <= hdmi->config->tmds[i].pclk) {
1333 tegra_hdmi_setup_tmds(hdmi, &hdmi->config->tmds[i]);
1519 if (hdmi->config->has_hda)
1801 hdmi->config = of_device_get_match_data(&pdev->dev);