Lines Matching refs:debugfs
620 if (!emc->debugfs.temperature) in tegra210_emc_poll_refresh()
623 temperature = emc->debugfs.temperature; in tegra210_emc_poll_refresh()
1630 *rate = emc->debugfs.min_rate; in tegra210_emc_debug_min_rate_get()
1647 emc->debugfs.min_rate = rate; in tegra210_emc_debug_min_rate_set()
1660 *rate = emc->debugfs.max_rate; in tegra210_emc_debug_max_rate_get()
1677 emc->debugfs.max_rate = rate; in tegra210_emc_debug_max_rate_set()
1691 if (!emc->debugfs.temperature) in tegra210_emc_debug_temperature_get()
1694 value = emc->debugfs.temperature; in tegra210_emc_debug_temperature_get()
1708 emc->debugfs.temperature = temperature; in tegra210_emc_debug_temperature_set()
1723 emc->debugfs.min_rate = ULONG_MAX; in tegra210_emc_debugfs_init()
1724 emc->debugfs.max_rate = 0; in tegra210_emc_debugfs_init()
1727 if (emc->timings[i].rate * 1000UL < emc->debugfs.min_rate) in tegra210_emc_debugfs_init()
1728 emc->debugfs.min_rate = emc->timings[i].rate * 1000UL; in tegra210_emc_debugfs_init()
1730 if (emc->timings[i].rate * 1000UL > emc->debugfs.max_rate) in tegra210_emc_debugfs_init()
1731 emc->debugfs.max_rate = emc->timings[i].rate * 1000UL; in tegra210_emc_debugfs_init()
1735 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra210_emc_debugfs_init()
1736 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra210_emc_debugfs_init()
1739 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra210_emc_debugfs_init()
1740 emc->debugfs.max_rate); in tegra210_emc_debugfs_init()
1743 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra210_emc_debugfs_init()
1748 emc->debugfs.root = debugfs_create_dir("emc", NULL); in tegra210_emc_debugfs_init()
1750 debugfs_create_file("available_rates", 0444, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1752 debugfs_create_file("min_rate", 0644, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1754 debugfs_create_file("max_rate", 0644, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1756 debugfs_create_file("temperature", 0644, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1980 debugfs_remove_recursive(emc->debugfs.root); in tegra210_emc_probe()
1992 debugfs_remove_recursive(emc->debugfs.root); in tegra210_emc_remove()