Home
last modified time | relevance | path

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

/drivers/memory/
Djz4780-nemc.c52 uint32_t clk_period; member
151 return ((ns * 1000) + nemc->clk_period - 1) / nemc->clk_period; in jz4780_nemc_ns_to_cycles()
305 nemc->clk_period = jz4780_nemc_clk_period(nemc); in jz4780_nemc_probe()
306 if (!nemc->clk_period) { in jz4780_nemc_probe()
/drivers/i2c/busses/
Di2c-img-scb.c1151 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; in img_i2c_init() local
1230 clk_period = (256 * 1000000) / (clk_khz * inc); in img_i2c_init()
1233 int_bitrate = 1000000 / (bitrate_khz * clk_period); in img_i2c_init()
1234 if ((1000000 % (bitrate_khz * clk_period)) >= in img_i2c_init()
1235 ((bitrate_khz * clk_period) / 2)) in img_i2c_init()
1246 data = DIV_ROUND_UP(timing.tckl, clk_period); in img_i2c_init()
1263 tsdh = DIV_ROUND_UP(timing.tsdh, clk_period); in img_i2c_init()
1275 data = timing.tpl / clk_period; in img_i2c_init()
1281 data = timing.tph / clk_period; in img_i2c_init()
1290 data = timing.tp2s / clk_period; in img_i2c_init()
/drivers/video/fbdev/omap/
Dsossi.c127 u32 clk_period = HZ_TO_PS(sossi.fck_hz) * div; in ps_to_sossi_ticks() local
128 return (clk_period + ps - 1) / clk_period; in ps_to_sossi_ticks()
362 static void sossi_get_clk_info(u32 *clk_period, u32 *max_clk_div) in sossi_get_clk_info() argument
364 *clk_period = HZ_TO_PS(sossi.fck_hz); in sossi_get_clk_info()
Domapfb.h126 void (*get_clk_info) (u32 *clk_period, u32 *max_clk_div);
/drivers/mtd/nand/gpmi-nand/
Dgpmi-lib.c867 unsigned long clk_period; in gpmi_compute_edo_timing() local
894 clk_period = NSEC_PER_SEC / (rate / 10); in gpmi_compute_edo_timing()
899 t_rp = clk_period * 1; /* DATA_SETUP is 1 */ in gpmi_compute_edo_timing()
901 if (clk_period > dll_threshold) { in gpmi_compute_edo_timing()
903 rp = clk_period / 2; in gpmi_compute_edo_timing()
906 rp = clk_period; in gpmi_compute_edo_timing()
/drivers/mmc/host/
Dcavium.c828 int clk_period = 0, power_class = 10, bus_width = 0; in cvm_mmc_set_ios() local
879 clk_period = (host->sys_freq + clock - 1) / (2 * clock); in cvm_mmc_set_ios()
885 FIELD_PREP(MIO_EMM_SWITCH_CLK_HI, clk_period) | in cvm_mmc_set_ios()
886 FIELD_PREP(MIO_EMM_SWITCH_CLK_LO, clk_period); in cvm_mmc_set_ios()
/drivers/video/fbdev/omap2/omapfb/dss/
Drfbi.c95 static void rfbi_get_clk_info(u32 *clk_period, u32 *max_clk_div);
477 static void rfbi_get_clk_info(u32 *clk_period, u32 *max_clk_div) in rfbi_get_clk_info() argument
479 *clk_period = 1000000000 / rfbi.l4_khz; in rfbi_get_clk_info()
/drivers/mtd/nand/
Dsunxi_nand.c1577 u32 clk_period) in _sunxi_nand_lookup_timing() argument
1579 u32 clk_cycles = DIV_ROUND_UP(duration, clk_period); in _sunxi_nand_lookup_timing()