Lines Matching defs:tegra_dfll

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