Home
last modified time | relevance | path

Searched refs:clk_period (Results 1 – 7 of 7) 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.c1111 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; in img_i2c_init() local
1190 clk_period = (256 * 1000000) / (clk_khz * inc); in img_i2c_init()
1193 int_bitrate = 1000000 / (bitrate_khz * clk_period); in img_i2c_init()
1194 if ((1000000 % (bitrate_khz * clk_period)) >= in img_i2c_init()
1195 ((bitrate_khz * clk_period) / 2)) in img_i2c_init()
1206 data = DIV_ROUND_UP(timing.tckl, clk_period); in img_i2c_init()
1223 tsdh = DIV_ROUND_UP(timing.tsdh, clk_period); in img_i2c_init()
1235 data = timing.tpl / clk_period; in img_i2c_init()
1241 data = timing.tph / clk_period; in img_i2c_init()
1250 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.c865 unsigned long clk_period; in gpmi_compute_edo_timing() local
892 clk_period = NSEC_PER_SEC / (rate / 10); in gpmi_compute_edo_timing()
897 t_rp = clk_period * 1; /* DATA_SETUP is 1 */ in gpmi_compute_edo_timing()
899 if (clk_period > dll_threshold) { in gpmi_compute_edo_timing()
901 rp = clk_period / 2; in gpmi_compute_edo_timing()
904 rp = clk_period; in gpmi_compute_edo_timing()
/drivers/video/fbdev/omap2/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.c850 u32 clk_period) in _sunxi_nand_lookup_timing() argument
852 u32 clk_cycles = DIV_ROUND_UP(duration, clk_period); in _sunxi_nand_lookup_timing()