Home
last modified time | relevance | path

Searched refs:clk_period (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/mtd/nand/raw/
H A Dcadence-nand-controller.c2326 static inline u32 calc_tdvw_max(u32 trp_cnt, u32 clk_period, u32 trhoh_min, in calc_tdvw_max() argument
2330 clk_period /= 2; in calc_tdvw_max()
2332 return (trp_cnt + 1) * clk_period + trhoh_min + in calc_tdvw_max()
2337 static inline u32 calc_tdvw(u32 trp_cnt, u32 clk_period, u32 trhoh_min, in calc_tdvw() argument
2341 clk_period /= 2; in calc_tdvw()
2343 return (trp_cnt + 1) * clk_period + trhoh_min - trea_max; in calc_tdvw()
2356 u32 clk_period = DIV_ROUND_DOWN_ULL(1000000000000ULL, in cadence_nand_setup_interface() local
2383 dqs_sampl_res = clk_period / phony_dqs_mod; in cadence_nand_setup_interface()
2395 if (sdr->tRC_min <= clk_period && in cadence_nand_setup_interface()
2396 sdr->tRP_min <= (clk_period / 2) && in cadence_nand_setup_interface()
[all …]
H A Dsunxi_nand.c1372 u32 clk_period) in _sunxi_nand_lookup_timing() argument
1374 u32 clk_cycles = DIV_ROUND_UP(duration, clk_period); in _sunxi_nand_lookup_timing()
/linux/drivers/memory/
H A Djz4780-nemc.c56 uint32_t clk_period; member
155 return ((ns * 1000) + nemc->clk_period - 1) / nemc->clk_period; in jz4780_nemc_ns_to_cycles()
327 nemc->clk_period = jz4780_nemc_clk_period(nemc); in jz4780_nemc_probe()
328 if (!nemc->clk_period) { in jz4780_nemc_probe()
H A Dstm32-fmc2-ebi.c426 u32 bcr, btr, clk_period; in stm32_fmc2_ebi_ns_to_clk_period() local
440 clk_period = FIELD_GET(FMC2_BTR_CLKDIV, btr) + 1; in stm32_fmc2_ebi_ns_to_clk_period()
442 return DIV_ROUND_UP(nb_clk_cycles, clk_period); in stm32_fmc2_ebi_ns_to_clk_period()
449 u32 cfgr, btr, clk_period; in stm32_fmc2_ebi_mp25_ns_to_clk_period() local
457 clk_period = FIELD_GET(FMC2_CFGR_CLKDIV, cfgr) + 1; in stm32_fmc2_ebi_mp25_ns_to_clk_period()
463 clk_period = FIELD_GET(FMC2_BTR_CLKDIV, btr) + 1; in stm32_fmc2_ebi_mp25_ns_to_clk_period()
466 return DIV_ROUND_UP(nb_clk_cycles, clk_period); in stm32_fmc2_ebi_mp25_ns_to_clk_period()
/linux/include/linux/
H A Dtc.h52 s32 clk_period; /* Clock period in nanoseconds. */ member
118 return 100000 * (10000 / (unsigned long)tbus->info.clk_period); in tc_get_speed()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_main.c422 u32 clk_div, clk_period, pol_upd_int, idx; in sparx5_init_coreclock() local
506 clk_period = sparx5_clk_period(freq); in sparx5_init_coreclock()
508 spx5_rmw(HSCH_SYS_CLK_PER_100PS_SET(clk_period / 100), in sparx5_init_coreclock()
513 spx5_rmw(ANA_AC_POL_BDLB_DLB_CTRL_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock()
518 spx5_rmw(ANA_AC_POL_SLB_DLB_CTRL_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock()
523 spx5_rmw(LRN_AUTOAGE_CFG_1_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock()
529 spx5_rmw(GCB_SIO_CLOCK_SYS_CLK_PERIOD_SET(clk_period / 100), in sparx5_init_coreclock()
535 ((256 * 1000) / clk_period), in sparx5_init_coreclock()
/linux/drivers/video/fbdev/omap/
H A Dsossi.c116 u32 clk_period = HZ_TO_PS(sossi.fck_hz) * div; in ps_to_sossi_ticks() local
117 return (clk_period + ps - 1) / clk_period; in ps_to_sossi_ticks()
351 static void sossi_get_clk_info(u32 *clk_period, u32 *max_clk_div) in sossi_get_clk_info() argument
353 *clk_period = HZ_TO_PS(sossi.fck_hz); in sossi_get_clk_info()
H A Domapfb.h113 void (*get_clk_info) (u32 *clk_period, u32 *max_clk_div);
/linux/drivers/mmc/host/
H A Dcavium.c826 int clk_period = 0, power_class = 10, bus_width = 0; in cvm_mmc_set_ios() local
877 clk_period = (host->sys_freq + clock - 1) / (2 * clock); in cvm_mmc_set_ios()
883 FIELD_PREP(MIO_EMM_SWITCH_CLK_HI, clk_period) | in cvm_mmc_set_ios()
884 FIELD_PREP(MIO_EMM_SWITCH_CLK_LO, clk_period); in cvm_mmc_set_ios()
/linux/drivers/ufs/host/
H A Dufs-exynos.c509 unsigned long clk = 0, _clk, clk_period; in exynos_ufs_calc_pwm_clk_div() local
512 clk_period = UNIPRO_PCLK_PERIOD(ufs); in exynos_ufs_calc_pwm_clk_div()
514 _clk = NSEC_PER_SEC * mult / (clk_period * divs[i] * div); in exynos_ufs_calc_pwm_clk_div()
536 long clk_period, fraction; in exynos_ufs_calc_time_cntr() local
538 clk_period = UNIPRO_PCLK_PERIOD(ufs); in exynos_ufs_calc_time_cntr()
541 return (period * precise) / ((clk_period * precise) + fraction); in exynos_ufs_calc_time_cntr()