Home
last modified time | relevance | path

Searched refs:div_table (Results 1 – 20 of 20) sorted by relevance

/Linux-v4.19/drivers/clk/renesas/
Drcar-gen3-cpg.c224 const struct sd_div_table *div_table; member
269 val |= clock->div_table[clock->cur_div_idx].val & CPG_SD_STP_MASK; in cpg_sd_clock_enable()
296 clock->div_table[clock->cur_div_idx].div); in cpg_sd_clock_recalc_rate()
331 if (div == clock->div_table[i].div) in cpg_sd_clock_set_rate()
341 val |= clock->div_table[i].val & (CPG_SD_STP_MASK | CPG_SD_FC_MASK); in cpg_sd_clock_set_rate()
378 clock->div_table = cpg_sd_div_table; in cpg_sd_clk_register()
383 if (sd_fc == (clock->div_table[i].val & CPG_SD_FC_MASK)) in cpg_sd_clk_register()
393 clock->div_max = clock->div_table[0].div; in cpg_sd_clk_register()
396 clock->div_max = max(clock->div_max, clock->div_table[i].div); in cpg_sd_clk_register()
397 clock->div_min = min(clock->div_min, clock->div_table[i].div); in cpg_sd_clk_register()
Dr9a06g032-clocks.c40 u16 div_table[4]; member
75 .div_table = { __VA_ARGS__ } }
609 i < ARRAY_SIZE(desc->div_table) && desc->div_table[i]; i++) { in r9a06g032_register_div()
610 div->table[div->table_size++] = desc->div_table[i]; in r9a06g032_register_div()
/Linux-v4.19/drivers/clk/mediatek/
Dclk-pll.c142 const struct mtk_pll_div_table *div_table = pll->data->div_table; in mtk_pll_calc_values() local
149 if (div_table) { in mtk_pll_calc_values()
150 if (freq > div_table[0].freq) in mtk_pll_calc_values()
151 freq = div_table[0].freq; in mtk_pll_calc_values()
153 for (val = 0; div_table[val + 1].freq != 0; val++) { in mtk_pll_calc_values()
154 if (freq > div_table[val + 1].freq) in mtk_pll_calc_values()
Dclk-mtk.h221 const struct mtk_pll_div_table *div_table; member
Dclk-mt6797.c621 .div_table = _div_table, \
Dclk-mt7622.c49 .div_table = _div_table, \
Dclk-mt2712.c1190 .div_table = _div_table, \
Dclk-mt8173.c1050 .div_table = _div_table, \
/Linux-v4.19/drivers/clk/mmp/
Dclk-mix.c37 if (mix->div_table) { in _get_maxdiv()
38 for (clkt = mix->div_table; clkt->div; clkt++) in _get_maxdiv()
54 if (mix->div_table) { in _get_div()
55 for (clkt = mix->div_table; clkt->div; clkt++) in _get_div()
91 if (mix->div_table) { in _get_div_val()
92 for (clkt = mix->div_table; clkt->div; clkt++) in _get_div_val()
Dclk.h79 struct clk_div_table *div_table; member
89 struct clk_div_table *div_table; member
/Linux-v4.19/drivers/clk/
Dclk-aspeed.c194 const struct clk_div_table *div_table; member
200 .div_table = ast2500_div_table,
206 .div_table = ast2400_div_table,
485 soc_data->div_table, in aspeed_clk_probe()
503 soc_data->div_table, in aspeed_clk_probe()
512 soc_data->div_table, in aspeed_clk_probe()
Dclk-stm32f4.c465 const struct clk_div_table *div_table; member
502 const struct clk_div_table *div_table; member
769 div_data[i].div_table, in stm32f4_rcc_register_pll()
1501 post_div->div_table, in stm32f4_rcc_init()
/Linux-v4.19/drivers/clk/ti/
Ddivider.c325 int ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div, in ti_clk_parse_divider_data() argument
335 if (!div_table) { in ti_clk_parse_divider_data()
360 if (div_table[i] == -1) in ti_clk_parse_divider_data()
362 if (div_table[i]) in ti_clk_parse_divider_data()
377 if (div_table[i] > 0) { in ti_clk_parse_divider_data()
378 tmp[valid_div].div = div_table[i]; in ti_clk_parse_divider_data()
Dclock.h204 int ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div,
/Linux-v4.19/drivers/clk/zte/
Dclk.c360 struct zx_clk_audio_div_table *div_table, in audio_calc_reg() argument
390 div_table->rate = parent_rate * n / (reg_int * n + m); in audio_calc_reg()
391 div_table->int_reg = reg_int; in audio_calc_reg()
392 div_table->frac_reg = reg_frac; in audio_calc_reg()
/Linux-v4.19/drivers/clk/rockchip/
Dclk.c50 struct clk_div_table *div_table, int gate_offset, in rockchip_clk_register_branch() argument
102 div->table = div_table; in rockchip_clk_register_branch()
471 if (list->div_table) in rockchip_clk_register_branches()
477 list->div_flags, list->div_table, in rockchip_clk_register_branches()
520 list->div_flags, list->div_table, in rockchip_clk_register_branches()
Dclk.h413 struct clk_div_table *div_table; member
472 .div_table = dt, \
531 .div_table = dt, \
661 .div_table = dt, \
/Linux-v4.19/arch/m68k/atari/
Ddebug.c214 static int div_table[9] = in atari_init_scc_port() local
229 div = div_table[baud]; in atari_init_scc_port()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_cdclk.c256 const uint8_t *div_table; in g33_get_cdclk() local
271 div_table = div_3200; in g33_get_cdclk()
274 div_table = div_4000; in g33_get_cdclk()
277 div_table = div_4800; in g33_get_cdclk()
280 div_table = div_5333; in g33_get_cdclk()
287 div_table[cdclk_sel]); in g33_get_cdclk()
336 const uint8_t *div_table; in i965gm_get_cdclk() local
351 div_table = div_3200; in i965gm_get_cdclk()
354 div_table = div_4000; in i965gm_get_cdclk()
357 div_table = div_5333; in i965gm_get_cdclk()
[all …]
/Linux-v4.19/drivers/clk/qcom/
Dgcc-ipq4019.c84 const struct clk_div_table *div_table; member
1403 for (clkt = pll->div_table; clkt->div; clkt++) { in clk_regmap_clk_div_recalc_rate()
1516 .div_table = fepllwcss_clk_div_table,
1534 .div_table = fepllwcss_clk_div_table,