Lines Matching refs:debugfs
620 if (!emc->debugfs.temperature) in tegra210_emc_poll_refresh()
623 temperature = emc->debugfs.temperature; in tegra210_emc_poll_refresh()
1643 *rate = emc->debugfs.min_rate; in tegra210_emc_debug_min_rate_get()
1660 emc->debugfs.min_rate = rate; in tegra210_emc_debug_min_rate_set()
1673 *rate = emc->debugfs.max_rate; in tegra210_emc_debug_max_rate_get()
1690 emc->debugfs.max_rate = rate; in tegra210_emc_debug_max_rate_set()
1704 if (!emc->debugfs.temperature) in tegra210_emc_debug_temperature_get()
1707 value = emc->debugfs.temperature; in tegra210_emc_debug_temperature_get()
1721 emc->debugfs.temperature = temperature; in tegra210_emc_debug_temperature_set()
1736 emc->debugfs.min_rate = ULONG_MAX; in tegra210_emc_debugfs_init()
1737 emc->debugfs.max_rate = 0; in tegra210_emc_debugfs_init()
1740 if (emc->timings[i].rate * 1000UL < emc->debugfs.min_rate) in tegra210_emc_debugfs_init()
1741 emc->debugfs.min_rate = emc->timings[i].rate * 1000UL; in tegra210_emc_debugfs_init()
1743 if (emc->timings[i].rate * 1000UL > emc->debugfs.max_rate) in tegra210_emc_debugfs_init()
1744 emc->debugfs.max_rate = emc->timings[i].rate * 1000UL; in tegra210_emc_debugfs_init()
1748 emc->debugfs.min_rate = clk_get_rate(emc->clk); in tegra210_emc_debugfs_init()
1749 emc->debugfs.max_rate = emc->debugfs.min_rate; in tegra210_emc_debugfs_init()
1752 err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate, in tegra210_emc_debugfs_init()
1753 emc->debugfs.max_rate); in tegra210_emc_debugfs_init()
1756 emc->debugfs.min_rate, emc->debugfs.max_rate, in tegra210_emc_debugfs_init()
1761 emc->debugfs.root = debugfs_create_dir("emc", NULL); in tegra210_emc_debugfs_init()
1763 debugfs_create_file("available_rates", 0444, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1765 debugfs_create_file("min_rate", 0644, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1767 debugfs_create_file("max_rate", 0644, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1769 debugfs_create_file("temperature", 0644, emc->debugfs.root, emc, in tegra210_emc_debugfs_init()
1993 debugfs_remove_recursive(emc->debugfs.root); in tegra210_emc_probe()
2005 debugfs_remove_recursive(emc->debugfs.root); in tegra210_emc_remove()