Lines Matching refs:debugfs
213 } debugfs; member
863 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
880 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
893 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get()
910 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set()
925 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init()
926 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init()
929 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init()
930 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
932 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init()
933 emc->debugfs.max_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
937 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra_emc_debugfs_init()
938 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init()
941 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra_emc_debugfs_init()
942 emc->debugfs.max_rate); in tegra_emc_debugfs_init()
945 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra_emc_debugfs_init()
949 emc->debugfs.root = debugfs_create_dir("emc", NULL); in tegra_emc_debugfs_init()
951 debugfs_create_file("available_rates", 0444, emc->debugfs.root, in tegra_emc_debugfs_init()
953 debugfs_create_file("min_rate", 0644, emc->debugfs.root, in tegra_emc_debugfs_init()
955 debugfs_create_file("max_rate", 0644, emc->debugfs.root, in tegra_emc_debugfs_init()