Searched refs:hclkp (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/mtd/nand/raw/ |
H A D | stm32_fmc2_nand.c | 1419 unsigned long hclkp = NSEC_PER_SEC / (hclk / 1000); in stm32_fmc2_nfc_calc_timings() local 1423 tar = max_t(unsigned long, hclkp, sdrt->tAR_min); in stm32_fmc2_nfc_calc_timings() 1424 timing = DIV_ROUND_UP(tar, hclkp) - 1; in stm32_fmc2_nfc_calc_timings() 1427 tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); in stm32_fmc2_nfc_calc_timings() 1428 timing = DIV_ROUND_UP(tclr, hclkp) - 1; in stm32_fmc2_nfc_calc_timings() 1432 thiz = (tims->thiz + 1) * hclkp; in stm32_fmc2_nfc_calc_timings() 1439 twait = max_t(unsigned long, hclkp, sdrt->tRP_min); in stm32_fmc2_nfc_calc_timings() 1442 timing = DIV_ROUND_UP(twait, hclkp); in stm32_fmc2_nfc_calc_timings() 1450 tset_mem = hclkp; in stm32_fmc2_nfc_calc_timings() 1458 timing = DIV_ROUND_UP(tset_mem, hclkp); in stm32_fmc2_nfc_calc_timings() [all …]
|
/linux/drivers/memory/ |
H A D | stm32-fmc2-ebi.c | 417 unsigned long hclkp = NSEC_PER_SEC / (hclk / 1000); in stm32_fmc2_ebi_ns_to_clock_cycles() local 419 return DIV_ROUND_UP(setup * 1000, hclkp); in stm32_fmc2_ebi_ns_to_clock_cycles()
|