Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/drivers/clk/hisilicon/
Dclkdivider-hi6220.c112 u32 max_div, min_div; in hi6220_register_clkdiv() local
121 max_div = div_mask(width) + 1; in hi6220_register_clkdiv()
124 table = kcalloc(max_div + 1, sizeof(*table), GFP_KERNEL); in hi6220_register_clkdiv()
130 for (i = 0; i < max_div; i++) { in hi6220_register_clkdiv()
/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
343 while (div < max_div) { in ti_clk_parse_divider_data()
396 setup->max_div, setup->flags, width, in _get_div_table_from_setup()
523 u32 max_div; in _get_divider_width() local
532 if (of_property_read_u32(node, "ti,max-div", &max_div)) { in _get_divider_width()
543 while (div < max_div) { in _get_divider_width()
Dclock.h114 u16 max_div; member
160 int max_div; member
204 int ti_clk_parse_divider_data(int *div_table, int num_dividers, int max_div,
Dclk-7xx.c262 .max_div = 4,
279 .max_div = 4,
477 .max_div = 4,
494 .max_div = 4,
522 .max_div = 4,
Dclk-33xx.c128 .max_div = 64,
138 .max_div = 64,
Dclk-44xx.c53 .max_div = 2,
282 .max_div = 4,
368 .max_div = 4,
661 .max_div = 64,
Dclk-54xx.c332 .max_div = 2,
348 .max_div = 2,
Dclkctrl.c374 div_data->max_div, div_flags, in _ti_clkctrl_setup_div()
/Linux-v4.19/drivers/net/wireless/intel/iwlegacy/
D3945-debug.c418 struct iwl39_stats_div *div, *accum_div, *delta_div, *max_div; in il3945_ucode_general_stats_read() local
445 max_div = &il->_3945.max_delta.general.div; in il3945_ucode_general_stats_read()
486 delta_div->tx_on_a, max_div->tx_on_a); in il3945_ucode_general_stats_read()
491 delta_div->tx_on_b, max_div->tx_on_b); in il3945_ucode_general_stats_read()
496 delta_div->exec_time, max_div->exec_time); in il3945_ucode_general_stats_read()
501 delta_div->probe_time, max_div->probe_time); in il3945_ucode_general_stats_read()
D4965-debug.c648 struct stats_div *div, *accum_div, *delta_div, *max_div; in il4965_ucode_general_stats_read() local
674 max_div = &il->_4965.max_delta.general.common.div; in il4965_ucode_general_stats_read()
718 delta_div->tx_on_a, max_div->tx_on_a); in il4965_ucode_general_stats_read()
722 delta_div->tx_on_b, max_div->tx_on_b); in il4965_ucode_general_stats_read()
726 delta_div->exec_time, max_div->exec_time); in il4965_ucode_general_stats_read()
730 delta_div->probe_time, max_div->probe_time); in il4965_ucode_general_stats_read()
/Linux-v4.19/drivers/mfd/
Dsm501.c408 int max_div, in sm501_calc_clock() argument
420 for (divider = 1; divider <= max_div; divider += 2) { in sm501_calc_clock()
452 int max_div) in sm501_calc_pll() argument
467 if (sm501_calc_clock(freq, clock, max_div, in sm501_calc_pll()
490 int max_div) in sm501_select_clock() argument
497 sm501_calc_clock(freq, clock, max_div, mclk, &best_diff); in sm501_select_clock()
/Linux-v4.19/drivers/gpu/drm/pl111/
Dpl111_display.c432 int max_div = (1 << (TIM2_PCD_LO_BITS + TIM2_PCD_HI_BITS)) - 1; in pl111_clk_div_choose_div() local
434 for (div = 1; div < max_div; div++) { in pl111_clk_div_choose_div()
/Linux-v4.19/drivers/staging/rts5208/
Drtsx_card.c637 u8 mcu_cnt, div, max_div, ssc_depth, ssc_depth_mask; in switch_ssc_clock() local
645 max_div = CLK_DIV_4; in switch_ssc_clock()
659 while ((n < min_n) && (div < max_div)) { in switch_ssc_clock()
/Linux-v4.19/drivers/spi/
Dspi-au1550.c883 int max_div = (2 << 3) * (2 * (63 + 1)); in au1550_spi_probe() local
886 hw->pdata->mainclk_hz / (max_div + 1) + 1; in au1550_spi_probe()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c1352 struct statistics_div *div, *accum_div, *delta_div, *max_div; in iwl_dbgfs_ucode_general_stats_read() local
1379 max_div = &priv->max_delta_stats.common.div; in iwl_dbgfs_ucode_general_stats_read()
1427 delta_div->tx_on_a, max_div->tx_on_a); in iwl_dbgfs_ucode_general_stats_read()
1431 delta_div->tx_on_b, max_div->tx_on_b); in iwl_dbgfs_ucode_general_stats_read()
1435 delta_div->exec_time, max_div->exec_time); in iwl_dbgfs_ucode_general_stats_read()
1439 delta_div->probe_time, max_div->probe_time); in iwl_dbgfs_ucode_general_stats_read()
/Linux-v4.19/drivers/clk/bcm/
Dclk-bcm2835.c844 u32 cm, div, max_div = 1 << A2W_PLL_DIV_BITS; in bcm2835_pll_divider_set_rate() local
848 div = min(div, max_div); in bcm2835_pll_divider_set_rate()
849 if (div == max_div) in bcm2835_pll_divider_set_rate()
/Linux-v4.19/drivers/media/platform/omap3isp/
Dispccdc.c813 unsigned int max_div = isp->revision == ISP_REVISION_15_0 ? 64 : 8; in ccdc_config_vp() local
861 div = clamp(div, 2U, max_div); in ccdc_config_vp()