/linux-6.3-rc2/drivers/clk/ti/ |
A D | divider.c | 337 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()
|
A D | clock.h | 117 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,
|
A D | clk-54xx.c | 44 .max_div = 2, 370 .max_div = 2, 397 .max_div = 2, 413 .max_div = 2,
|
A D | clk-7xx.c | 344 .max_div = 4, 361 .max_div = 4, 552 .max_div = 4, 569 .max_div = 4, 662 .max_div = 4,
|
A D | clk-44xx.c | 50 .max_div = 2, 279 .max_div = 4, 365 .max_div = 4, 670 .max_div = 64,
|
A D | clk-33xx.c | 162 .max_div = 64, 172 .max_div = 64,
|
/linux-6.3-rc2/drivers/clk/qcom/ |
A D | clk-regmap-mux-div.c | 92 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.3-rc2/drivers/clk/hisilicon/ |
A D | clkdivider-hi6220.c | 108 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.3-rc2/drivers/clk/zynqmp/ |
A D | divider.c | 46 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.3-rc2/drivers/clk/renesas/ |
A D | clk-div6.c | 109 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.3-rc2/drivers/net/wireless/intel/iwlegacy/ |
A D | 3945-debug.c | 400 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()
|
A D | 4965-debug.c | 630 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.3-rc2/drivers/gpu/drm/mcde/ |
A D | mcde_clk_div.c | 51 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()
|
A D | mcde_display.c | 965 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.3-rc2/drivers/clk/starfive/ |
A D | clk-starfive-jh7100.h | 98 unsigned int max_div; member
|
A D | clk-starfive-jh7100-audio.c | 143 clk->max_div = max & JH7100_CLK_DIV_MASK; in jh7100_audclk_probe()
|
A D | clk-starfive-jh7100.c | 339 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.3-rc2/drivers/clk/at91/ |
A D | clk-master.c | 168 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.3-rc2/drivers/mfd/ |
A D | sm501.c | 406 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.3-rc2/drivers/spi/ |
A D | spi-rspi.c | 248 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()
|
A D | spi-au1550.c | 875 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.3-rc2/drivers/gpu/drm/pl111/ |
A D | pl111_display.c | 453 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.3-rc2/drivers/staging/rts5208/ |
A D | rtsx_card.c | 626 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.3-rc2/drivers/mmc/host/ |
A D | alcor.c | 39 unsigned int max_div; member 669 if (cfg->min_div > tmp_div || tmp_div > cfg->max_div) in alcor_set_clock()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | debugfs.c | 1308 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()
|