Lines Matching refs:debugfs
31 } debugfs; member
106 *rate = emc->debugfs.min_rate; in tegra186_emc_debug_min_rate_get()
123 emc->debugfs.min_rate = rate; in tegra186_emc_debug_min_rate_set()
136 *rate = emc->debugfs.max_rate; in tegra186_emc_debug_max_rate_get()
153 emc->debugfs.max_rate = rate; in tegra186_emc_debug_max_rate_set()
201 emc->debugfs.min_rate = ULONG_MAX; in tegra186_emc_probe()
202 emc->debugfs.max_rate = 0; in tegra186_emc_probe()
219 if (emc->dvfs[i].rate < emc->debugfs.min_rate) in tegra186_emc_probe()
220 emc->debugfs.min_rate = emc->dvfs[i].rate; in tegra186_emc_probe()
222 if (emc->dvfs[i].rate > emc->debugfs.max_rate) in tegra186_emc_probe()
223 emc->debugfs.max_rate = emc->dvfs[i].rate; in tegra186_emc_probe()
229 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra186_emc_probe()
230 emc->debugfs.max_rate); in tegra186_emc_probe()
234 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra186_emc_probe()
239 emc->debugfs.root = debugfs_create_dir("emc", NULL); in tegra186_emc_probe()
240 debugfs_create_file("available_rates", S_IRUGO, emc->debugfs.root, in tegra186_emc_probe()
242 debugfs_create_file("min_rate", S_IRUGO | S_IWUSR, emc->debugfs.root, in tegra186_emc_probe()
244 debugfs_create_file("max_rate", S_IRUGO | S_IWUSR, emc->debugfs.root, in tegra186_emc_probe()
258 debugfs_remove_recursive(emc->debugfs.root); in tegra186_emc_remove()