Lines Matching refs:setup

90 	struct clk_sscg_pll_setup setup;  member
112 static int clk_sscg_pll2_check_match(struct clk_sscg_pll_setup *setup, in clk_sscg_pll2_check_match() argument
120 memcpy(setup, temp_setup, sizeof(struct clk_sscg_pll_setup)); in clk_sscg_pll2_check_match()
128 static int clk_sscg_divq_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divq_lookup() argument
144 ret = clk_sscg_pll2_check_match(setup, temp_setup); in clk_sscg_divq_lookup()
155 static int clk_sscg_divf2_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divf2_lookup() argument
162 ret = clk_sscg_divq_lookup(setup, temp_setup); in clk_sscg_divf2_lookup()
170 static int clk_sscg_divr2_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divr2_lookup() argument
181 ret = clk_sscg_divf2_lookup(setup, temp_setup); in clk_sscg_divr2_lookup()
190 static int clk_sscg_pll2_find_setup(struct clk_sscg_pll_setup *setup, in clk_sscg_pll2_find_setup() argument
201 ret = clk_sscg_divr2_lookup(setup, temp_setup); in clk_sscg_pll2_find_setup()
205 static int clk_sscg_divf1_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divf1_lookup() argument
218 ret = clk_sscg_pll2_find_setup(setup, temp_setup, vco1); in clk_sscg_divf1_lookup()
228 static int clk_sscg_divr1_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divr1_lookup() argument
239 ret = clk_sscg_divf1_lookup(setup, temp_setup); in clk_sscg_divr1_lookup()
248 static int clk_sscg_pll1_find_setup(struct clk_sscg_pll_setup *setup, in clk_sscg_pll1_find_setup() argument
259 ret = clk_sscg_divr1_lookup(setup, temp_setup); in clk_sscg_pll1_find_setup()
264 static int clk_sscg_pll_find_setup(struct clk_sscg_pll_setup *setup, in clk_sscg_pll_find_setup() argument
272 memset(setup, 0, sizeof(struct clk_sscg_pll_setup)); in clk_sscg_pll_find_setup()
280 setup->bypass = PLL_BYPASS2; in clk_sscg_pll_find_setup()
281 setup->fout = rate; in clk_sscg_pll_find_setup()
286 ret = clk_sscg_pll2_find_setup(setup, &temp_setup, prate); in clk_sscg_pll_find_setup()
289 ret = clk_sscg_pll1_find_setup(setup, &temp_setup, prate); in clk_sscg_pll_find_setup()
362 struct clk_sscg_pll_setup *setup = &pll->setup; in clk_sscg_pll_set_rate() local
368 val |= FIELD_PREP(SSCG_PLL_BYPASS_MASK, setup->bypass); in clk_sscg_pll_set_rate()
374 val |= FIELD_PREP(PLL_DIVF1_MASK, setup->divf1); in clk_sscg_pll_set_rate()
375 val |= FIELD_PREP(PLL_DIVF2_MASK, setup->divf2); in clk_sscg_pll_set_rate()
376 val |= FIELD_PREP(PLL_DIVR1_MASK, setup->divr1); in clk_sscg_pll_set_rate()
377 val |= FIELD_PREP(PLL_DIVR2_MASK, setup->divr2); in clk_sscg_pll_set_rate()
378 val |= FIELD_PREP(PLL_DIVQ_MASK, setup->divq); in clk_sscg_pll_set_rate()
405 val |= FIELD_PREP(SSCG_PLL_BYPASS_MASK, pll->setup.bypass); in clk_sscg_pll_set_parent()
419 struct clk_sscg_pll_setup *setup = &pll->setup; in __clk_sscg_pll_determine_rate() local
442 ret = clk_sscg_pll_find_setup(setup, req->rate, in __clk_sscg_pll_determine_rate()
448 req->rate = setup->fout; in __clk_sscg_pll_determine_rate()
457 struct clk_sscg_pll_setup *setup = &pll->setup; in clk_sscg_pll_determine_rate() local
483 if (setup->fout >= min && setup->fout <= max) in clk_sscg_pll_determine_rate()