Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/clk/ti/
Ddivider.c337 int ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div, in ti_clk_parse_divider_data() argument
345 if (!div_table) { in ti_clk_parse_divider_data()
355 if (div_table[i] == -1) in ti_clk_parse_divider_data()
357 if (div_table[i]) in ti_clk_parse_divider_data()
371 if (div_table[i] > 0) { in ti_clk_parse_divider_data()
372 tmp[valid_div].div = div_table[i]; in ti_clk_parse_divider_data()
375 if (div_table[i] > max_div) in ti_clk_parse_divider_data()
376 max_div = div_table[i]; in ti_clk_parse_divider_data()
377 if (!min_div || div_table[i] < min_div) in ti_clk_parse_divider_data()
378 min_div = div_table[i]; in ti_clk_parse_divider_data()
/Linux-v6.6/drivers/clk/mediatek/
Dclk-pll.c141 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-pll.h47 const struct mtk_pll_div_table *div_table; member
Dclk-mt7981-apmixed.c34 .pcw_shift = _pcw_shift, .div_table = _div_table, \
Dclk-mt7986-apmixed.c32 .pcw_shift = _pcw_shift, .div_table = _div_table, \
Dclk-mt8516-apmixedsys.c40 .div_table = _div_table, \
Dclk-mt8167-apmixedsys.c39 .div_table = _div_table, \
Dclk-mt7622-apmixedsys.c37 .div_table = _div_table, \
Dclk-mt2712-apmixedsys.c41 .div_table = _div_table, \
Dclk-mt8365-apmixedsys.c42 .div_table = _div_table, \
Dclk-mt8183-apmixedsys.c78 .div_table = _div_table, \
Dclk-mt6795-apmixedsys.c42 .div_table = NULL, \
/Linux-v6.6/drivers/clk/ingenic/
Dcgu.c423 if (clk_info->div.div_table) in ingenic_clk_recalc_rate()
424 div = clk_info->div.div_table[div]; in ingenic_clk_recalc_rate()
444 && clk_info->div.div_table[i]; i++) { in ingenic_clk_calc_hw_div()
445 if (clk_info->div.div_table[i] >= div && in ingenic_clk_calc_hw_div()
446 clk_info->div.div_table[i] < best) { in ingenic_clk_calc_hw_div()
447 best = clk_info->div.div_table[i]; in ingenic_clk_calc_hw_div()
473 if (clk_info->div.div_table) { in ingenic_clk_calc_div()
476 return clk_info->div.div_table[hw_div]; in ingenic_clk_calc_div()
542 if (clk_info->div.div_table) in ingenic_clk_set_rate()
Dcgu.h109 const u8 *div_table; member
/Linux-v6.6/drivers/clk/mmp/
Dclk-mix.c34 if (mix->div_table) { in _get_maxdiv()
35 for (clkt = mix->div_table; clkt->div; clkt++) in _get_maxdiv()
51 if (mix->div_table) { in _get_div()
52 for (clkt = mix->div_table; clkt->div; clkt++) in _get_div()
88 if (mix->div_table) { in _get_div_val()
89 for (clkt = mix->div_table; clkt->div; clkt++) in _get_div_val()
Dclk.h81 struct clk_div_table *div_table; member
91 struct clk_div_table *div_table; member
/Linux-v6.6/drivers/clk/
Dclk-aspeed.c171 .div_table = ast2500_div_table,
178 .div_table = ast2400_div_table,
451 soc_data->div_table, in aspeed_clk_probe()
493 soc_data->div_table, in aspeed_clk_probe()
502 soc_data->div_table, in aspeed_clk_probe()
Dclk-aspeed.h78 const struct clk_div_table *div_table; member
/Linux-v6.6/drivers/clk/rockchip/
Dclk.c44 struct clk_div_table *div_table, int gate_offset, in rockchip_clk_register_branch() argument
100 div->table = div_table; in rockchip_clk_register_branch()
470 if (list->div_table) in rockchip_clk_register_branches()
476 list->div_flags, list->div_table, in rockchip_clk_register_branches()
520 list->div_flags, list->div_table, in rockchip_clk_register_branches()
Dclk.h543 struct clk_div_table *div_table; member
624 .div_table = dt, \
683 .div_table = dt, \
829 .div_table = dt, \
/Linux-v6.6/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-v6.6/drivers/clk/x86/
Dclk-cgu.h188 const struct clk_div_table *div_table; member
238 .div_table = _dtable, \
/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-meson8b.c151 static const struct clk_div_table div_table[] = { in meson8b_init_rgmii_tx_clk() local
181 clk_configs->m250_div.table = div_table; in meson8b_init_rgmii_tx_clk()
/Linux-v6.6/drivers/gpu/drm/i915/display/
Dintel_cdclk.c310 const u8 *div_table; in g33_get_cdclk() local
325 div_table = div_3200; in g33_get_cdclk()
328 div_table = div_4000; in g33_get_cdclk()
331 div_table = div_4800; in g33_get_cdclk()
334 div_table = div_5333; in g33_get_cdclk()
341 div_table[cdclk_sel]); in g33_get_cdclk()
392 const u8 *div_table; in i965gm_get_cdclk() local
407 div_table = div_3200; in i965gm_get_cdclk()
410 div_table = div_4000; in i965gm_get_cdclk()
413 div_table = div_5333; in i965gm_get_cdclk()
[all …]
/Linux-v6.6/drivers/clk/renesas/
Dr9a06g032-clocks.c135 u16 div_table[4]; member
200 .div_table = { __VA_ARGS__ } \
1072 i < ARRAY_SIZE(desc->div_table) && desc->div_table[i]; i++) { in r9a06g032_register_div()
1073 div->table[div->table_size++] = desc->div_table[i]; in r9a06g032_register_div()

12