/linux-6.1.9/drivers/mtd/nand/raw/ |
D | cadence-nand-controller.c | 2283 static inline u32 calc_tdvw_max(u32 trp_cnt, u32 clk_period, u32 trhoh_min, in calc_tdvw_max() argument 2287 clk_period /= 2; in calc_tdvw_max() 2289 return (trp_cnt + 1) * clk_period + trhoh_min + in calc_tdvw_max() 2294 static inline u32 calc_tdvw(u32 trp_cnt, u32 clk_period, u32 trhoh_min, in calc_tdvw() argument 2298 clk_period /= 2; in calc_tdvw() 2300 return (trp_cnt + 1) * clk_period + trhoh_min - trea_max; in calc_tdvw() 2313 u32 clk_period = DIV_ROUND_DOWN_ULL(1000000000000ULL, in cadence_nand_setup_interface() local 2340 dqs_sampl_res = clk_period / phony_dqs_mod; in cadence_nand_setup_interface() 2352 if (sdr->tRC_min <= clk_period && in cadence_nand_setup_interface() 2353 sdr->tRP_min <= (clk_period / 2) && in cadence_nand_setup_interface() [all …]
|
D | sunxi_nand.c | 1384 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-6.1.9/drivers/memory/ |
D | jz4780-nemc.c | 57 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()
|
D | stm32-fmc2-ebi.c | 307 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-6.1.9/include/linux/ |
D | tc.h | 52 s32 clk_period; /* Clock period in nanoseconds. */ member 118 return 100000 * (10000 / (unsigned long)tbus->info.clk_period); in tc_get_speed()
|
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_main.c | 417 u32 clk_div, clk_period, pol_upd_int, idx; in sparx5_init_coreclock() local 501 clk_period = sparx5_clk_period(freq); in sparx5_init_coreclock() 503 spx5_rmw(HSCH_SYS_CLK_PER_SYS_CLK_PER_100PS_SET(clk_period / 100), in sparx5_init_coreclock() 508 spx5_rmw(ANA_AC_POL_BDLB_DLB_CTRL_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock() 513 spx5_rmw(ANA_AC_POL_SLB_DLB_CTRL_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock() 518 spx5_rmw(LRN_AUTOAGE_CFG_1_CLK_PERIOD_01NS_SET(clk_period / 100), in sparx5_init_coreclock() 524 spx5_rmw(GCB_SIO_CLOCK_SYS_CLK_PERIOD_SET(clk_period / 100), in sparx5_init_coreclock() 530 ((256 * 1000) / clk_period), in sparx5_init_coreclock()
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-img-scb.c | 1155 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-6.1.9/drivers/video/fbdev/omap/ |
D | sossi.c | 116 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()
|
D | omapfb.h | 113 void (*get_clk_info) (u32 *clk_period, u32 *max_clk_div);
|
/linux-6.1.9/drivers/mmc/host/ |
D | cavium.c | 826 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-6.1.9/drivers/ufs/host/ |
D | ufs-exynos.c | 497 unsigned long clk = 0, _clk, clk_period; in exynos_ufs_calc_pwm_clk_div() local 500 clk_period = UNIPRO_PCLK_PERIOD(ufs); in exynos_ufs_calc_pwm_clk_div() 502 _clk = NSEC_PER_SEC * mult / (clk_period * divs[i] * div); in exynos_ufs_calc_pwm_clk_div() 524 long clk_period, fraction; in exynos_ufs_calc_time_cntr() local 526 clk_period = UNIPRO_PCLK_PERIOD(ufs); in exynos_ufs_calc_time_cntr() 529 return (period * precise) / ((clk_period * precise) + fraction); in exynos_ufs_calc_time_cntr()
|