/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | clk-provider.h | 37 struct clk_hw;
60 struct clk_hw *best_parent_hw;
221 int (*prepare)(struct clk_hw *hw);
222 void (*unprepare)(struct clk_hw *hw);
223 int (*is_prepared)(struct clk_hw *hw);
224 void (*unprepare_unused)(struct clk_hw *hw);
225 int (*enable)(struct clk_hw *hw);
226 void (*disable)(struct clk_hw *hw);
227 int (*is_enabled)(struct clk_hw *hw);
228 void (*disable_unused)(struct clk_hw *h 303 struct clk_hw { global() struct [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/ |
H A D | clk-ddr.c | 27 struct clk_hw hw; 63 static int rockchip_ddrclk_sip_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) in rockchip_ddrclk_sip_set_rate() 76 static unsigned long rockchip_ddrclk_sip_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in rockchip_ddrclk_sip_recalc_rate() 85 static long rockchip_ddrclk_sip_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) in rockchip_ddrclk_sip_round_rate() 94 static u8 rockchip_ddrclk_get_parent(struct clk_hw *hw) in rockchip_ddrclk_get_parent() 114 static int rockchip_ddrclk_scpi_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) in rockchip_ddrclk_scpi_set_rate() 137 static unsigned long rockchip_ddrclk_scpi_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in rockchip_ddrclk_scpi_recalc_rate() 146 static long rockchip_ddrclk_scpi_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) in rockchip_ddrclk_scpi_round_rate() 161 static int rockchip_ddrclk_sip_set_rate_v2(struct clk_hw *hw, unsigned long drate, unsigned long prate) in rockchip_ddrclk_sip_set_rate_v2() 181 static unsigned long rockchip_ddrclk_sip_recalc_rate_v2(struct clk_hw *h [all...] |
H A D | clk-half-divider.c | 22 static unsigned long clk_half_divider_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_half_divider_recalc_rate() 34 static int clk_half_divider_bestdiv(struct clk_hw *hw, unsigned long rate, unsigned long *best_parent_rate, u8 width, in clk_half_divider_bestdiv() 87 static long clk_half_divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) in clk_half_divider_round_rate() 97 static int clk_half_divider_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in clk_half_divider_set_rate() 154 struct clk_hw *hw = ERR_PTR(-ENOMEM); in rockchip_clk_register_halfdiv()
|
H A D | clk-pll.c | 32 struct clk_hw hw; 364 static long rockchip_pll_round_rate(struct clk_hw *hw, unsigned long drate, unsigned long *prate) in rockchip_pll_round_rate() 461 static unsigned long rockchip_rk3036_pll_recalc_rate(struct clk_hw *hw, unsigned long prate) in rockchip_rk3036_pll_recalc_rate() 544 static int rockchip_rk3036_pll_set_rate(struct clk_hw *hw, unsigned long drate, unsigned long prate) in rockchip_rk3036_pll_set_rate() 561 static int rockchip_rk3036_pll_enable(struct clk_hw *hw) in rockchip_rk3036_pll_enable() 571 static void rockchip_rk3036_pll_disable(struct clk_hw *hw) in rockchip_rk3036_pll_disable() 578 static int rockchip_rk3036_pll_is_enabled(struct clk_hw *hw) in rockchip_rk3036_pll_is_enabled() 586 static int rockchip_rk3036_pll_init(struct clk_hw *hw) in rockchip_rk3036_pll_init() 679 static unsigned long rockchip_rk3066_pll_recalc_rate(struct clk_hw *hw, unsigned long prate) in rockchip_rk3066_pll_recalc_rate() 757 static int rockchip_rk3066_pll_set_rate(struct clk_hw *h [all...] |
H A D | clk-cpu.c | 53 struct clk_hw hw; 54 struct clk_hw *pll_hw; 86 static unsigned long rockchip_cpuclk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in rockchip_cpuclk_recalc_rate()
|
H A D | clk.c | 44 struct clk_hw *hw; in rockchip_clk_register_branch() 165 static void rockchip_fractional_approximation(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate, in rockchip_fractional_approximation() 170 struct clk_hw *p_parent; in rockchip_fractional_approximation() 228 struct clk_hw *hw; in rockchip_clk_register_frac_branch() 332 struct clk_hw *hw; in rockchip_clk_register_factor_branch() 379 struct clk_hw *hw, *brother_hw; in rockchip_clk_register_composite_brother_branch()
|
H A D | clk.h | 393 void rockchip_boost_init(struct clk_hw *hw); 395 void rockchip_boost_enable_recovery_sw_low(struct clk_hw *hw); 397 void rockchip_boost_disable_recovery_sw(struct clk_hw *hw); 399 void rockchip_boost_add_core_div(struct clk_hw *hw, unsigned long prate);
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_vop2_clk.c | 132 static unsigned long clk_virtual_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_virtual_recalc_rate() 139 static long clk_virtual_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) in clk_virtual_round_rate() 148 static int clk_virtual_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in clk_virtual_set_rate() 159 static u8 vop2_mux_get_parent(struct clk_hw *hw) in vop2_mux_get_parent() 167 static int vop2_mux_set_parent(struct clk_hw *hw, u8 index) in vop2_mux_set_parent() 177 static int vop2_clk_mux_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) in vop2_clk_mux_determine_rate() 202 static unsigned long vop2_clk_div_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in vop2_clk_div_recalc_rate() 216 static long vop2_clk_div_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) in vop2_clk_div_round_rate() 243 static int vop2_clk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in vop2_clk_div_set_rate()
|
H A D | rockchip_drm_vop2.c | 705 struct clk_hw hw;
|
/device/soc/rockchip/rk3588/kernel/drivers/gpu/drm/rockchip/ |
H A D | rockchip_vop2_clk.c | 145 static unsigned long clk_virtual_recalc_rate(struct clk_hw *hw, in clk_virtual_recalc_rate() 153 static long clk_virtual_round_rate(struct clk_hw *hw, unsigned long rate, in clk_virtual_round_rate() 163 static int clk_virtual_set_rate(struct clk_hw *hw, unsigned long rate, in clk_virtual_set_rate() 175 static u8 vop2_mux_get_parent(struct clk_hw *hw) in vop2_mux_get_parent() 183 static int vop2_mux_set_parent(struct clk_hw *hw, u8 index) in vop2_mux_set_parent() 193 static int vop2_clk_mux_determine_rate(struct clk_hw *hw, in vop2_clk_mux_determine_rate() 220 static unsigned long vop2_clk_div_recalc_rate(struct clk_hw *hw, in vop2_clk_div_recalc_rate() 235 static long vop2_clk_div_round_rate(struct clk_hw *hw, unsigned long rate, in vop2_clk_div_round_rate() 259 static int vop2_clk_div_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in vop2_clk_div_set_rate()
|
H A D | rockchip_drm_vop2.c | 731 struct clk_hw hw;
|
/device/soc/rockchip/common/vendor/drivers/clk/ |
H A D | clk-pvtm.c | 49 static unsigned long xin32k_pvtm_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in xin32k_pvtm_recalc_rate() 168 struct clk_hw *clk_hw; in clock_pvtm_regitstor() local 178 clk_hw = devm_kzalloc(dev, sizeof(*clk_hw), GFP_KERNEL); in clock_pvtm_regitstor() 179 if (!clk_hw) { in clock_pvtm_regitstor() 182 clk_hw->init = &init; in clock_pvtm_regitstor() 186 pvtm->clk = devm_clk_register(dev, clk_hw); in clock_pvtm_regitstor()
|
H A D | clk-dclk-divider.c | 17 static unsigned long clk_dclk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate) in clk_dclk_recalc_rate() 28 static long clk_dclk_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate) in clk_dclk_round_rate() 42 static int clk_dclk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) in clk_dclk_set_rate()
|
/device/soc/rockchip/rk3588/kernel/drivers/clk/rockchip/ |
H A D | clk-pvtm.c | 50 static unsigned long xin32k_pvtm_recalc_rate(struct clk_hw *hw, in xin32k_pvtm_recalc_rate() 170 struct clk_hw *clk_hw; in clock_pvtm_regitstor() local 180 clk_hw = devm_kzalloc(dev, sizeof(*clk_hw), GFP_KERNEL); in clock_pvtm_regitstor() 181 if (!clk_hw) in clock_pvtm_regitstor() 183 clk_hw->init = &init; in clock_pvtm_regitstor() 188 pvtm->clk = devm_clk_register(dev, clk_hw); in clock_pvtm_regitstor()
|
H A D | clk-dclk-divider.c | 15 static unsigned long clk_dclk_recalc_rate(struct clk_hw *hw, in clk_dclk_recalc_rate() 27 static long clk_dclk_round_rate(struct clk_hw *hw, unsigned long rate, in clk_dclk_round_rate() 41 static int clk_dclk_set_rate(struct clk_hw *hw, unsigned long rate, in clk_dclk_set_rate()
|
H A D | clk.h | 474 void rockchip_boost_init(struct clk_hw *hw); 476 void rockchip_boost_enable_recovery_sw_low(struct clk_hw *hw); 478 void rockchip_boost_disable_recovery_sw(struct clk_hw *hw); 480 void rockchip_boost_add_core_div(struct clk_hw *hw, unsigned long prate);
|
/device/soc/rockchip/common/vendor/drivers/phy/ |
H A D | phy-rockchip-inno-hdmi-phy.c | 180 struct clk_hw hw;
429 static inline struct inno_hdmi_phy *to_inno_hdmi_phy(struct clk_hw *hw)
in to_inno_hdmi_phy() 532 static int inno_hdmi_phy_clk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate);
603 static int inno_hdmi_phy_clk_is_prepared(struct clk_hw *hw)
in inno_hdmi_phy_clk_is_prepared() 617 static int inno_hdmi_phy_clk_prepare(struct clk_hw *hw)
in inno_hdmi_phy_clk_prepare() 630 static void inno_hdmi_phy_clk_unprepare(struct clk_hw *hw)
in inno_hdmi_phy_clk_unprepare() 641 static unsigned long inno_hdmi_phy_clk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
in inno_hdmi_phy_clk_recalc_rate() 652 static long inno_hdmi_phy_clk_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate)
in inno_hdmi_phy_clk_round_rate() 693 static int inno_hdmi_phy_clk_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate)
in inno_hdmi_phy_clk_set_rate()
|
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/ |
H A D | phy-rockchip-inno-hdmi-phy.c | 183 struct clk_hw hw; 342 static inline struct inno_hdmi_phy *to_inno_hdmi_phy(struct clk_hw *hw) in to_inno_hdmi_phy() 440 static int inno_hdmi_phy_clk_set_rate(struct clk_hw *hw, unsigned long rate, 506 static int inno_hdmi_phy_clk_is_prepared(struct clk_hw *hw) in inno_hdmi_phy_clk_is_prepared() 519 static int inno_hdmi_phy_clk_prepare(struct clk_hw *hw) in inno_hdmi_phy_clk_prepare() 532 static void inno_hdmi_phy_clk_unprepare(struct clk_hw *hw) in inno_hdmi_phy_clk_unprepare() 543 static unsigned long inno_hdmi_phy_clk_recalc_rate(struct clk_hw *hw, in inno_hdmi_phy_clk_recalc_rate() 554 static long inno_hdmi_phy_clk_round_rate(struct clk_hw *hw, unsigned long rate, in inno_hdmi_phy_clk_round_rate() 590 static int inno_hdmi_phy_clk_set_rate(struct clk_hw *hw, unsigned long rate, in inno_hdmi_phy_clk_set_rate()
|
H A D | phy-rockchip-samsung-hdptx-hdmi.c | 710 struct clk_hw hw; 846 static inline struct rockchip_hdptx_phy *to_rockchip_hdptx_phy(struct clk_hw *hw) in to_rockchip_hdptx_phy() 1897 static int hdptx_phy_clk_is_prepared(struct clk_hw *hw) in hdptx_phy_clk_is_prepared() 1904 static int hdptx_phy_clk_prepare(struct clk_hw *hw) in hdptx_phy_clk_prepare() 1912 static void hdptx_phy_clk_unprepare(struct clk_hw *hw) in hdptx_phy_clk_unprepare() 1919 static unsigned long hdptx_phy_clk_recalc_rate(struct clk_hw *hw, in hdptx_phy_clk_recalc_rate() 1927 static long hdptx_phy_clk_round_rate(struct clk_hw *hw, unsigned long rate, in hdptx_phy_clk_round_rate() 1943 static int hdptx_phy_clk_set_rate(struct clk_hw *hw, unsigned long rate, in hdptx_phy_clk_set_rate()
|
/device/soc/rockchip/common/sdk_linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-usb.c | 141 struct clk_hw clk480m_hw;
256 static unsigned long rockchip_usb_phy480m_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
in rockchip_usb_phy480m_recalc_rate() 261 static void rockchip_usb_phy480m_disable(struct clk_hw *hw)
in rockchip_usb_phy480m_disable() 273 static int rockchip_usb_phy480m_enable(struct clk_hw *hw)
in rockchip_usb_phy480m_enable() 281 static int rockchip_usb_phy480m_is_enabled(struct clk_hw *hw)
in rockchip_usb_phy480m_is_enabled()
|
H A D | phy-rockchip-inno-dsidphy.c | 243 struct clk_hw hw;
284 static inline struct inno_dsidphy *hw_to_inno(struct clk_hw *hw)
in hw_to_inno()
|
H A D | phy-rockchip-inno-usb2.c | 306 struct clk_hw clk480m_hw;
371 static int rockchip_usb2phy_clk480m_prepare(struct clk_hw *hw)
in rockchip_usb2phy_clk480m_prepare() 391 static void rockchip_usb2phy_clk480m_unprepare(struct clk_hw *hw)
in rockchip_usb2phy_clk480m_unprepare() 400 static int rockchip_usb2phy_clk480m_prepared(struct clk_hw *hw)
in rockchip_usb2phy_clk480m_prepared() 408 static unsigned long rockchip_usb2phy_clk480m_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
in rockchip_usb2phy_clk480m_recalc_rate()
|
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/ |
H A D | clk.h | 474 void rockchip_boost_init(struct clk_hw *hw); 476 void rockchip_boost_enable_recovery_sw_low(struct clk_hw *hw); 478 void rockchip_boost_disable_recovery_sw(struct clk_hw *hw); 480 void rockchip_boost_add_core_div(struct clk_hw *hw, unsigned long prate);
|