Lines Matching refs:tegra_dfll
260 struct tegra_dfll { struct
317 #define clk_hw_to_dfll(_hw) container_of(_hw, struct tegra_dfll, dfll_clk_hw) argument
331 static inline u32 dfll_readl(struct tegra_dfll *td, u32 offs) in dfll_readl()
336 static inline void dfll_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_writel()
342 static inline void dfll_wmb(struct tegra_dfll *td) in dfll_wmb()
349 static inline u32 dfll_i2c_readl(struct tegra_dfll *td, u32 offs) in dfll_i2c_readl()
354 static inline void dfll_i2c_writel(struct tegra_dfll *td, u32 val, u32 offs) in dfll_i2c_writel()
359 static inline void dfll_i2c_wmb(struct tegra_dfll *td) in dfll_i2c_wmb()
371 static bool dfll_is_running(struct tegra_dfll *td) in dfll_is_running()
391 struct tegra_dfll *td = dev_get_drvdata(dev); in tegra_dfll_runtime_resume()
428 struct tegra_dfll *td = dev_get_drvdata(dev); in tegra_dfll_runtime_suspend()
450 static void dfll_tune_low(struct tegra_dfll *td) in dfll_tune_low()
492 static void dfll_set_mode(struct tegra_dfll *td, in dfll_set_mode()
504 static unsigned long get_dvco_rate_below(struct tegra_dfll *td, u8 out_min) in get_dvco_rate_below()
540 static int dfll_i2c_set_output_enabled(struct tegra_dfll *td, bool enable) in dfll_i2c_set_output_enabled()
571 static int dfll_pwm_set_output_enabled(struct tegra_dfll *td, bool enable) in dfll_pwm_set_output_enabled()
615 static u32 dfll_set_force_output_value(struct tegra_dfll *td, u8 out_val) in dfll_set_force_output_value()
633 static void dfll_set_force_output_enabled(struct tegra_dfll *td, bool enable) in dfll_set_force_output_enabled()
653 static int dfll_force_output(struct tegra_dfll *td, unsigned int out_sel) in dfll_force_output()
676 static void dfll_load_i2c_lut(struct tegra_dfll *td) in dfll_load_i2c_lut()
707 static void dfll_init_i2c_if(struct tegra_dfll *td) in dfll_init_i2c_if()
741 static void dfll_init_out_if(struct tegra_dfll *td) in dfll_init_out_if()
796 static int find_lut_index_for_rate(struct tegra_dfll *td, unsigned long rate) in find_lut_index_for_rate()
827 static int dfll_calculate_rate_request(struct tegra_dfll *td, in dfll_calculate_rate_request()
880 static void dfll_set_frequency_request(struct tegra_dfll *td, in dfll_set_frequency_request()
912 static int dfll_request_rate(struct tegra_dfll *td, unsigned long rate) in dfll_request_rate()
947 static int dfll_disable(struct tegra_dfll *td) in dfll_disable()
968 static int dfll_enable(struct tegra_dfll *td) in dfll_enable()
993 static void dfll_set_open_loop_config(struct tegra_dfll *td) in dfll_set_open_loop_config()
1016 static int dfll_lock(struct tegra_dfll *td) in dfll_lock()
1056 static int dfll_unlock(struct tegra_dfll *td) in dfll_unlock()
1090 struct tegra_dfll *td = clk_hw_to_dfll(hw); in dfll_clk_is_enabled()
1097 struct tegra_dfll *td = clk_hw_to_dfll(hw); in dfll_clk_enable()
1113 struct tegra_dfll *td = clk_hw_to_dfll(hw); in dfll_clk_disable()
1124 struct tegra_dfll *td = clk_hw_to_dfll(hw); in dfll_clk_recalc_rate()
1133 struct tegra_dfll *td = clk_hw_to_dfll(hw); in dfll_clk_determine_rate()
1153 struct tegra_dfll *td = clk_hw_to_dfll(hw); in dfll_clk_set_rate()
1180 static int dfll_register_clk(struct tegra_dfll *td) in dfll_register_clk()
1212 static void dfll_unregister_clk(struct tegra_dfll *td) in dfll_unregister_clk()
1255 static u64 dfll_read_monitor_rate(struct tegra_dfll *td) in dfll_read_monitor_rate()
1276 struct tegra_dfll *td = data; in attr_enable_get()
1284 struct tegra_dfll *td = data; in attr_enable_set()
1293 struct tegra_dfll *td = data; in attr_lock_get()
1301 struct tegra_dfll *td = data; in attr_lock_set()
1309 struct tegra_dfll *td = data; in attr_rate_get()
1318 struct tegra_dfll *td = data; in attr_rate_set()
1327 struct tegra_dfll *td = s->private; in attr_registers_show()
1363 static void dfll_debug_init(struct tegra_dfll *td) in dfll_debug_init()
1381 static inline void dfll_debug_init(struct tegra_dfll *td) { } in dfll_debug_init()
1396 static void dfll_set_default_params(struct tegra_dfll *td) in dfll_set_default_params()
1424 static int dfll_init_clks(struct tegra_dfll *td) in dfll_init_clks()
1457 static int dfll_init(struct tegra_dfll *td) in dfll_init()
1528 struct tegra_dfll *td = dev_get_drvdata(dev); in tegra_dfll_suspend()
1553 struct tegra_dfll *td = dev_get_drvdata(dev); in tegra_dfll_resume()
1584 static int find_vdd_map_entry_exact(struct tegra_dfll *td, int uV) in find_vdd_map_entry_exact()
1612 static int find_vdd_map_entry_min(struct tegra_dfll *td, int uV) in find_vdd_map_entry_min()
1645 static int dfll_build_pwm_lut(struct tegra_dfll *td, unsigned long v_max) in dfll_build_pwm_lut()
1700 static int dfll_build_i2c_lut(struct tegra_dfll *td, unsigned long v_max) in dfll_build_i2c_lut()
1765 static int dfll_build_lut(struct tegra_dfll *td) in dfll_build_lut()
1795 static bool read_dt_param(struct tegra_dfll *td, const char *param, u32 *dest) in read_dt_param()
1816 static int dfll_fetch_i2c_params(struct tegra_dfll *td) in dfll_fetch_i2c_params()
1846 static int dfll_fetch_pwm_params(struct tegra_dfll *td) in dfll_fetch_pwm_params()
1904 static int dfll_fetch_common_params(struct tegra_dfll *td) in dfll_fetch_common_params()
1943 struct tegra_dfll *td; in tegra_dfll_register()
2082 struct tegra_dfll *td = platform_get_drvdata(pdev); in tegra_dfll_unregister()