Searched refs:rcg (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/clk/qcom/ |
D | clk-rcg.c | 39 struct clk_rcg *rcg = to_clk_rcg(hw); in clk_rcg_get_parent() local 44 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent() 47 ns = ns_to_src(&rcg->s, ns); in clk_rcg_get_parent() 49 if (ns == rcg->s.parent_map[i].cfg) in clk_rcg_get_parent() 58 static int reg_to_bank(struct clk_dyn_rcg *rcg, u32 bank) in reg_to_bank() argument 60 bank &= BIT(rcg->mux_sel_bit); in reg_to_bank() 66 struct clk_dyn_rcg *rcg = to_clk_dyn_rcg(hw); in clk_dyn_rcg_get_parent() local 73 ret = regmap_read(rcg->clkr.regmap, rcg->bank_reg, ®); in clk_dyn_rcg_get_parent() 76 bank = reg_to_bank(rcg, reg); in clk_dyn_rcg_get_parent() 77 s = &rcg->s[bank]; in clk_dyn_rcg_get_parent() [all …]
|
D | clk-rcg2.c | 46 #define RCG_CFG_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + CFG_REG) argument 47 #define RCG_M_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + M_REG) argument 48 #define RCG_N_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + N_REG) argument 49 #define RCG_D_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + D_REG) argument 66 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_is_enabled() local 70 ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CMD_REG, &cmd); in clk_rcg2_is_enabled() 79 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in __clk_rcg2_get_parent() local 87 if (cfg == rcg->parent_map[i].cfg) in __clk_rcg2_get_parent() 97 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_get_parent() local 101 ret = regmap_read(rcg->clkr.regmap, RCG_CFG_OFFSET(rcg), &cfg); in clk_rcg2_get_parent() [all …]
|
D | clk-rcg.h | 163 struct clk_rcg2 rcg; member 168 container_of(to_clk_rcg2(_hw), struct clk_rcg2_gfx3d, rcg) 182 struct clk_rcg2 *rcg; member 187 { .rcg = &r, .init = &r##_init }
|
D | gpucc-sdm660.c | 106 .rcg = { 137 &gfx3d_clk_src.rcg.clkr.hw, 274 [GFX3D_CLK_SRC] = &gfx3d_clk_src.rcg.clkr,
|
D | Makefile | 8 clk-qcom-y += clk-rcg.o
|
D | mmcc-msm8996.c | 565 .rcg = { 1684 &gfx3d_clk_src.rcg.clkr.hw 3354 [GFX3D_CLK_SRC] = &gfx3d_clk_src.rcg.clkr,
|