Home
last modified time | relevance | path

Searched refs:max_div (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/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
347 divider->max = max_div; 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()
382 divider->max = max_div; in ti_clk_parse_divider_data()
444 u32 max_div = 0; in _populate_divider_min_max() local
453 if (of_property_read_u32(node, "ti,max-div", &max_div)) { in _populate_divider_min_max()
461 if (val > max_div) in _populate_divider_min_max()
462 max_div = val; in _populate_divider_min_max()
469 divider->max = max_div; in _populate_divider_min_max()
Dclock.h117 u16 max_div; member
163 int max_div; member
214 int ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div,
Dclk-54xx.c44 .max_div = 2,
370 .max_div = 2,
397 .max_div = 2,
413 .max_div = 2,
Dclk-7xx.c344 .max_div = 4,
361 .max_div = 4,
552 .max_div = 4,
569 .max_div = 4,
662 .max_div = 4,
Dclk-44xx.c50 .max_div = 2,
279 .max_div = 4,
365 .max_div = 4,
670 .max_div = 64,
Dclk-33xx.c162 .max_div = 64,
172 .max_div = 64,
/linux-6.1.9/drivers/clk/qcom/
Dclk-regmap-mux-div.c92 unsigned int i, div, max_div; in mux_div_determine_rate() local
100 max_div = BIT(md->hid_width) - 1; in mux_div_determine_rate()
101 for (div = 1; div < max_div; div++) { in mux_div_determine_rate()
129 u32 div, max_div, best_src = 0, best_div = 0; in __mux_div_set_rate_and_parent() local
137 max_div = BIT(md->hid_width) - 1; in __mux_div_set_rate_and_parent()
138 for (div = 1; div < max_div; div++) { in __mux_div_set_rate_and_parent()
/linux-6.1.9/drivers/clk/hisilicon/
Dclkdivider-hi6220.c108 u32 max_div, min_div; in hi6220_register_clkdiv() local
117 max_div = div_mask(width) + 1; in hi6220_register_clkdiv()
120 table = kcalloc(max_div + 1, sizeof(*table), GFP_KERNEL); in hi6220_register_clkdiv()
126 for (i = 0; i < max_div; i++) { in hi6220_register_clkdiv()
/linux-6.1.9/drivers/clk/zynqmp/
Ddivider.c46 u16 max_div; member
139 for (div1 = 1; div1 <= pdivider->max_div;) { in zynqmp_get_divider2_val()
140 for (div2 = 1; div2 <= divider->max_div;) { in zynqmp_get_divider2_val()
211 bestdiv = min_t(u32, bestdiv, divider->max_div); in zynqmp_clk_divider_round_rate()
367 div->max_div = zynqmp_clk_get_max_divisor(clk_id, nodes->type); in zynqmp_clk_register_divider()
/linux-6.1.9/drivers/clk/renesas/
Dclk-div6.c109 unsigned int i, min_div, max_div, div; in cpg_div6_clock_determine_rate() local
122 max_div = req->min_rate ? min(prate / req->min_rate, 64UL) : 64; in cpg_div6_clock_determine_rate()
123 if (max_div < min_div) in cpg_div6_clock_determine_rate()
127 div = clamp(div, min_div, max_div); in cpg_div6_clock_determine_rate()
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/
D3945-debug.c400 struct iwl39_stats_div *div, *accum_div, *delta_div, *max_div; in il3945_ucode_general_stats_read() local
427 max_div = &il->_3945.max_delta.general.div; in il3945_ucode_general_stats_read()
468 delta_div->tx_on_a, max_div->tx_on_a); in il3945_ucode_general_stats_read()
473 delta_div->tx_on_b, max_div->tx_on_b); in il3945_ucode_general_stats_read()
478 delta_div->exec_time, max_div->exec_time); in il3945_ucode_general_stats_read()
483 delta_div->probe_time, max_div->probe_time); in il3945_ucode_general_stats_read()
D4965-debug.c630 struct stats_div *div, *accum_div, *delta_div, *max_div; in il4965_ucode_general_stats_read() local
656 max_div = &il->_4965.max_delta.general.common.div; in il4965_ucode_general_stats_read()
700 delta_div->tx_on_a, max_div->tx_on_a); in il4965_ucode_general_stats_read()
704 delta_div->tx_on_b, max_div->tx_on_b); in il4965_ucode_general_stats_read()
708 delta_div->exec_time, max_div->exec_time); in il4965_ucode_general_stats_read()
712 delta_div->probe_time, max_div->probe_time); in il4965_ucode_general_stats_read()
/linux-6.1.9/drivers/gpu/drm/mcde/
Dmcde_clk_div.c51 int max_div = (1 << MCDE_CRX1_PCD_BITS) - 1; in mcde_clk_div_choose_div() local
53 for (div = 1; div < max_div; div++) { in mcde_clk_div_choose_div()
Dmcde_display.c965 const int max_div = DIV_ROUND_UP(MCDE_MAX_WIDTH, fifo_size); in mcde_dsi_get_pkt_div() local
967 for (div = 1; div < max_div; div++) in mcde_dsi_get_pkt_div()
/linux-6.1.9/drivers/clk/starfive/
Dclk-starfive-jh7100.h98 unsigned int max_div; member
Dclk-starfive-jh7100-audio.c143 clk->max_div = max & JH7100_CLK_DIV_MASK; in jh7100_audclk_probe()
Dclk-starfive-jh7100.c339 unsigned long div = min_t(unsigned long, DIV_ROUND_UP(parent, rate), clk->max_div); in jh7100_clk_determine_rate()
368 1UL, (unsigned long)clk->max_div); in jh7100_clk_set_rate()
669 clk->max_div = max & JH7100_CLK_DIV_MASK; in clk_starfive_jh7100_probe()
/linux-6.1.9/drivers/clk/at91/
Dclk-master.c168 unsigned int max_div = 0, div_index = 0, max_div_index = 0; in clk_master_div_set() local
179 if (max_div < characteristics->divisors[i]) { in clk_master_div_set()
180 max_div = characteristics->divisors[i]; in clk_master_div_set()
185 if (div > max_div) in clk_master_div_set()
/linux-6.1.9/drivers/mfd/
Dsm501.c406 int max_div, in sm501_calc_clock() argument
418 for (divider = 1; divider <= max_div; divider += 2) { in sm501_calc_clock()
450 int max_div) in sm501_calc_pll() argument
465 if (sm501_calc_clock(freq, clock, max_div, in sm501_calc_pll()
488 int max_div) in sm501_select_clock() argument
495 sm501_calc_clock(freq, clock, max_div, mclk, &best_diff); in sm501_select_clock()
/linux-6.1.9/drivers/spi/
Dspi-rspi.c248 u16 max_div; member
1189 .max_div = 4096,
1199 .max_div = 4096,
1211 .max_div = 4080,
1351 ctlr->min_speed_hz = DIV_ROUND_UP(clksrc, ops->max_div); in rspi_probe()
Dspi-au1550.c875 int max_div = (2 << 3) * (2 * (63 + 1)); in au1550_spi_probe() local
879 hw->pdata->mainclk_hz / (max_div + 1) + 1; in au1550_spi_probe()
/linux-6.1.9/drivers/gpu/drm/pl111/
Dpl111_display.c453 int max_div = (1 << (TIM2_PCD_LO_BITS + TIM2_PCD_HI_BITS)) - 1; in pl111_clk_div_choose_div() local
455 for (div = 1; div < max_div; div++) { in pl111_clk_div_choose_div()
/linux-6.1.9/drivers/staging/rts5208/
Drtsx_card.c626 u8 mcu_cnt, div, max_div, ssc_depth, ssc_depth_mask; in switch_ssc_clock() local
634 max_div = CLK_DIV_4; in switch_ssc_clock()
647 while ((n < min_n) && (div < max_div)) { in switch_ssc_clock()
/linux-6.1.9/drivers/mmc/host/
Dalcor.c39 unsigned int max_div; member
669 if (cfg->min_div > tmp_div || tmp_div > cfg->max_div) in alcor_set_clock()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c1308 struct statistics_div *div, *accum_div, *delta_div, *max_div; in iwl_dbgfs_ucode_general_stats_read() local
1335 max_div = &priv->max_delta_stats.common.div; in iwl_dbgfs_ucode_general_stats_read()
1383 delta_div->tx_on_a, max_div->tx_on_a); in iwl_dbgfs_ucode_general_stats_read()
1387 delta_div->tx_on_b, max_div->tx_on_b); in iwl_dbgfs_ucode_general_stats_read()
1391 delta_div->exec_time, max_div->exec_time); in iwl_dbgfs_ucode_general_stats_read()
1395 delta_div->probe_time, max_div->probe_time); in iwl_dbgfs_ucode_general_stats_read()

12