Lines Matching refs:debugfs
213 } debugfs; member
847 *rate = emc->debugfs.min_rate; in tegra_emc_debug_min_rate_get()
864 emc->debugfs.min_rate = rate; in tegra_emc_debug_min_rate_set()
877 *rate = emc->debugfs.max_rate; in tegra_emc_debug_max_rate_get()
894 emc->debugfs.max_rate = rate; in tegra_emc_debug_max_rate_set()
909 emc->debugfs.min_rate = ULONG_MAX; in tegra_emc_debugfs_init()
910 emc->debugfs.max_rate = 0; in tegra_emc_debugfs_init()
913 if (emc->timings[i].rate < emc->debugfs.min_rate) in tegra_emc_debugfs_init()
914 emc->debugfs.min_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
916 if (emc->timings[i].rate > emc->debugfs.max_rate) in tegra_emc_debugfs_init()
917 emc->debugfs.max_rate = emc->timings[i].rate; in tegra_emc_debugfs_init()
921 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra_emc_debugfs_init()
922 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra_emc_debugfs_init()
925 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra_emc_debugfs_init()
926 emc->debugfs.max_rate); in tegra_emc_debugfs_init()
929 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra_emc_debugfs_init()
933 emc->debugfs.root = debugfs_create_dir("emc", NULL); in tegra_emc_debugfs_init()
935 debugfs_create_file("available_rates", 0444, emc->debugfs.root, in tegra_emc_debugfs_init()
937 debugfs_create_file("min_rate", 0644, emc->debugfs.root, in tegra_emc_debugfs_init()
939 debugfs_create_file("max_rate", 0644, emc->debugfs.root, in tegra_emc_debugfs_init()