Lines Matching refs:debugfs
158 } debugfs; member
553 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
570 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
583 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get()
600 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set()
615 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init()
616 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init()
619 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init()
620 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
622 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init()
623 emc->debugfs.max_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
627 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra_emc_debugfs_init()
628 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init()
631 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra_emc_debugfs_init()
632 emc->debugfs.max_rate); in tegra_emc_debugfs_init()
635 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra_emc_debugfs_init()
639 emc->debugfs.root = debugfs_create_dir("emc", NULL); in tegra_emc_debugfs_init()
640 if (!emc->debugfs.root) { in tegra_emc_debugfs_init()
645 debugfs_create_file("available_rates", 0444, emc->debugfs.root, in tegra_emc_debugfs_init()
647 debugfs_create_file("min_rate", 0644, emc->debugfs.root, in tegra_emc_debugfs_init()
649 debugfs_create_file("max_rate", 0644, emc->debugfs.root, in tegra_emc_debugfs_init()