Home
last modified time | relevance | path

Searched refs:div (Results 1 – 16 of 16) sorted by relevance

/tf-a-ffa_el3_spmc/drivers/delay_timer/
A Dgeneric_delay_timer.c32 void generic_delay_timer_init_args(uint32_t mult, uint32_t div) in generic_delay_timer_init_args() argument
36 ops.clk_div = div; in generic_delay_timer_init_args()
41 mult, div); in generic_delay_timer_init_args()
52 unsigned int div = plat_get_syscnt_freq2(); in generic_delay_timer_init() local
55 while (((mult % 10U) == 0U) && ((div % 10U) == 0U)) { in generic_delay_timer_init()
57 div /= 10U; in generic_delay_timer_init()
60 generic_delay_timer_init_args(mult, div); in generic_delay_timer_init()
/tf-a-ffa_el3_spmc/drivers/nxp/timer/
A Dnxp_timer.c60 static void delay_timer_init_args(uint32_t mult, uint32_t div) in delay_timer_init_args() argument
64 ops.clk_div = div; in delay_timer_init_args()
69 mult, div); in delay_timer_init_args()
81 unsigned int div; in delay_timer_init() local
98 div = counter_base_frequency; in delay_timer_init()
101 while ((mult % 10U == 0U) && (div % 10U == 0U)) { in delay_timer_init()
103 div /= 10U; in delay_timer_init()
110 delay_timer_init_args(mult, div); in delay_timer_init()
/tf-a-ffa_el3_spmc/drivers/renesas/common/ddr/ddr_b/
A Dboot_init_dram_config.c1770 void boardcnf_get_brd_clk(uint32_t brd, uint32_t *clk, uint32_t *div) in boardcnf_get_brd_clk() argument
1776 *div = 3; in boardcnf_get_brd_clk()
1782 *div = 3; in boardcnf_get_brd_clk()
1786 *div = 3; in boardcnf_get_brd_clk()
1790 *div = 3; in boardcnf_get_brd_clk()
1794 *div = 3; in boardcnf_get_brd_clk()
1801 void boardcnf_get_ddr_mbps(uint32_t brd, uint32_t *mbps, uint32_t *div) in boardcnf_get_ddr_mbps() argument
1815 *div = 1; in boardcnf_get_ddr_mbps()
1819 *div = 1; in boardcnf_get_ddr_mbps()
1823 *div = 1; in boardcnf_get_ddr_mbps()
[all …]
A Dboot_init_dram.c1014 uint32_t div; in _f_scale() local
1017 div = tmp / (200000 * _ddr_mbpsdiv); in _f_scale()
1018 if (tmp != (div * 200000 * _ddr_mbpsdiv)) in _f_scale()
1019 div = div + 1; in _f_scale()
1021 if (div > cyc) in _f_scale()
1022 return (uint16_t)div; in _f_scale()
/tf-a-ffa_el3_spmc/plat/socionext/uniphier/
A Duniphier_console_setup.c50 uint32_t div; in uniphier_console_get_base() local
57 div = mmio_read_32(base + UNIPHIER_UART_DLR); in uniphier_console_get_base()
58 if (div) in uniphier_console_get_base()
/tf-a-ffa_el3_spmc/plat/xilinx/zynqmp/pm_service/
A Dpm_api_clock.c216 uint8_t div:4; member
254 .div = NA_DIV,
266 .div = NA_DIV,
278 .div = NA_DIV,
290 .div = 2,
304 .div = NA_DIV,
316 .div = NA_DIV,
330 .div = NA_DIV,
342 .div = NA_DIV,
473 .div = 2,
[all …]
A Dpm_api_clock.h304 uint32_t *div);
A Dpm_api_sys.c857 uint32_t *div) in pm_clock_get_fixedfactor_params() argument
859 return pm_api_clock_get_fixedfactor_params(clock_id, mul, div); in pm_clock_get_fixedfactor_params()
/tf-a-ffa_el3_spmc/include/arch/aarch32/
A Dasm_macros.S219 .macro softudiv div:req,top:req,bot:req,temp:req
227 mov \div, #0
232 ADC \div, \div, \div
/tf-a-ffa_el3_spmc/include/lib/
A Dutils_def.h62 #define div_round_up(val, div) __extension__ ({ \ argument
63 __typeof__(div) _div = (div); \
64 ((val) + _div - (__typeof__(div)) 1) / _div; \
/tf-a-ffa_el3_spmc/include/drivers/
A Dgeneric_delay_timer.h12 void generic_delay_timer_init_args(uint32_t mult, uint32_t div);
/tf-a-ffa_el3_spmc/drivers/rpi3/sdhost/
A Drpi3_sdhost.c397 uint32_t div; in rpi3_sdhost_set_clock() local
405 div = max_clk / clk; in rpi3_sdhost_set_clock()
406 if (div < 2) in rpi3_sdhost_set_clock()
407 div = 2; in rpi3_sdhost_set_clock()
409 if ((max_clk / div) > clk) in rpi3_sdhost_set_clock()
410 div++; in rpi3_sdhost_set_clock()
412 div -= 2; in rpi3_sdhost_set_clock()
413 if (div > HC_CLOCKDIVISOR_MAXVAL) in rpi3_sdhost_set_clock()
414 div = HC_CLOCKDIVISOR_MAXVAL; in rpi3_sdhost_set_clock()
416 rpi3_sdhost_params.clk_rate = max_clk / (div + 2); in rpi3_sdhost_set_clock()
[all …]
/tf-a-ffa_el3_spmc/drivers/imx/usdhc/
A Dimx_usdhc.c41 int div = 1; in imx_usdhc_set_clk() local
51 while (sdhc_clk / div > clk && div < 16) in imx_usdhc_set_clk()
52 div++; in imx_usdhc_set_clk()
55 div -= 1; in imx_usdhc_set_clk()
56 clk = (pre_div << 8) | (div << 4); in imx_usdhc_set_clk()
/tf-a-ffa_el3_spmc/drivers/synopsys/emmc/
A Ddw_mmc.c160 int div; in dw_set_clk() local
164 for (div = 1; div < 256; div++) { in dw_set_clk()
165 if ((dw_params.clk_rate / (2 * div)) <= clk) { in dw_set_clk()
169 assert(div < 256); in dw_set_clk()
180 mmio_write_32(dw_params.reg_base + DWMMC_CLKDIV, div); in dw_set_clk()
/tf-a-ffa_el3_spmc/plat/intel/soc/common/drivers/qspi/
A Dcadence_qspi.c30 int cad_qspi_set_baudrate_div(uint32_t div) in cad_qspi_set_baudrate_div() argument
32 if (div > 0xf) in cad_qspi_set_baudrate_div()
37 CAD_QSPI_CFG_BAUDDIV(div)); in cad_qspi_set_baudrate_div()
/tf-a-ffa_el3_spmc/plat/rockchip/rk3399/drivers/dram/
A Ddfs.c1505 uint32_t tmp, i, div, j; in gen_rk3399_phy_params() local
1564 div = pdram_timing->mhz / (2 * 20); in gen_rk3399_phy_params()
1566 if (div < j) in gen_rk3399_phy_params()

Completed in 41 milliseconds