Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/mtd/nand/raw/
Dcadence-nand-controller.c2286 static inline u32 calc_tdvw_max(u32 trp_cnt, u32 clk_period, u32 trhoh_min, in calc_tdvw_max() argument
2290 clk_period /= 2; in calc_tdvw_max()
2292 return (trp_cnt + 1) * clk_period + trhoh_min + in calc_tdvw_max()
2297 static inline u32 calc_tdvw(u32 trp_cnt, u32 clk_period, u32 trhoh_min, in calc_tdvw() argument
2301 clk_period /= 2; in calc_tdvw()
2303 return (trp_cnt + 1) * clk_period + trhoh_min - trea_max; in calc_tdvw()
2316 u32 clk_period = DIV_ROUND_DOWN_ULL(1000000000000ULL, in cadence_nand_setup_interface() local
2343 dqs_sampl_res = clk_period / phony_dqs_mod; in cadence_nand_setup_interface()
2355 if (sdr->tRC_min <= clk_period && in cadence_nand_setup_interface()
2356 sdr->tRP_min <= (clk_period / 2) && in cadence_nand_setup_interface()
[all …]
Dsunxi_nand.c1384 u32 clk_period) in _sunxi_nand_lookup_timing() argument
1386 u32 clk_cycles = DIV_ROUND_UP(duration, clk_period); in _sunxi_nand_lookup_timing()
/linux-5.19.10/drivers/memory/
Djz4780-nemc.c57 uint32_t clk_period; member
156 return ((ns * 1000) + nemc->clk_period - 1) / nemc->clk_period; in jz4780_nemc_ns_to_cycles()
328 nemc->clk_period = jz4780_nemc_clk_period(nemc); in jz4780_nemc_probe()
329 if (!nemc->clk_period) { in jz4780_nemc_probe()
Dstm32-fmc2-ebi.c307 u32 bcr, btr, clk_period; in stm32_fmc2_ebi_ns_to_clk_period() local
315 clk_period = FIELD_GET(FMC2_BTR_CLKDIV, btr) + 1; in stm32_fmc2_ebi_ns_to_clk_period()
317 return DIV_ROUND_UP(nb_clk_cycles, clk_period); in stm32_fmc2_ebi_ns_to_clk_period()
/linux-5.19.10/include/linux/
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-5.19.10/drivers/net/ethernet/microchip/sparx5/
Dsparx5_main.c415 u32 clk_div, clk_period, pol_upd_int, idx; in sparx5_init_coreclock() local
499 clk_period = sparx5_clk_period(freq); in sparx5_init_coreclock()
501 spx5_rmw(HSCH_SYS_CLK_PER_SYS_CLK_PER_100PS_SET(clk_period / 100), in sparx5_init_coreclock()
506 spx5_rmw(ANA_AC_POL_BDLB_DLB_CTRL_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock()
511 spx5_rmw(ANA_AC_POL_SLB_DLB_CTRL_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock()
516 spx5_rmw(LRN_AUTOAGE_CFG_1_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock()
522 spx5_rmw(GCB_SIO_CLOCK_SYS_CLK_PERIOD_SET(clk_period / 100), in sparx5_init_coreclock()
528 ((256 * 1000) / clk_period), in sparx5_init_coreclock()
/linux-5.19.10/drivers/i2c/busses/
Di2c-img-scb.c1155 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; in img_i2c_init() local
1236 clk_period = (256 * 1000000) / (clk_khz * inc); in img_i2c_init()
1239 int_bitrate = 1000000 / (bitrate_khz * clk_period); in img_i2c_init()
1240 if ((1000000 % (bitrate_khz * clk_period)) >= in img_i2c_init()
1241 ((bitrate_khz * clk_period) / 2)) in img_i2c_init()
1252 data = DIV_ROUND_UP(timing.tckl, clk_period); in img_i2c_init()
1269 tsdh = DIV_ROUND_UP(timing.tsdh, clk_period); in img_i2c_init()
1281 data = timing.tpl / clk_period; in img_i2c_init()
1287 data = timing.tph / clk_period; in img_i2c_init()
1296 data = timing.tp2s / clk_period; in img_i2c_init()
/linux-5.19.10/drivers/video/fbdev/omap/
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()
Domapfb.h113 void (*get_clk_info) (u32 *clk_period, u32 *max_clk_div);
/linux-5.19.10/drivers/ufs/host/
Dufs-exynos.c503 unsigned long clk = 0, _clk, clk_period; in exynos_ufs_calc_pwm_clk_div() local
506 clk_period = UNIPRO_PCLK_PERIOD(ufs); in exynos_ufs_calc_pwm_clk_div()
508 _clk = NSEC_PER_SEC * mult / (clk_period * divs[i] * div); in exynos_ufs_calc_pwm_clk_div()
530 long clk_period, fraction; in exynos_ufs_calc_time_cntr() local
532 clk_period = UNIPRO_PCLK_PERIOD(ufs); in exynos_ufs_calc_time_cntr()
535 return (period * precise) / ((clk_period * precise) + fraction); in exynos_ufs_calc_time_cntr()
/linux-5.19.10/drivers/mmc/host/
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()