Lines Matching refs:hclkp
602 unsigned long hclkp = FMC2_NSEC_PER_SEC / (hclk / 1000); in stm32_fmc2_nfc_calc_timings() local
606 tar = max_t(unsigned long, hclkp, sdrt->tAR_min); in stm32_fmc2_nfc_calc_timings()
607 timing = DIV_ROUND_UP(tar, hclkp) - 1; in stm32_fmc2_nfc_calc_timings()
610 tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); in stm32_fmc2_nfc_calc_timings()
611 timing = DIV_ROUND_UP(tclr, hclkp) - 1; in stm32_fmc2_nfc_calc_timings()
615 thiz = (tims->thiz + 1) * hclkp; in stm32_fmc2_nfc_calc_timings()
622 twait = max_t(unsigned long, hclkp, sdrt->tRP_min); in stm32_fmc2_nfc_calc_timings()
625 timing = DIV_ROUND_UP(twait, hclkp); in stm32_fmc2_nfc_calc_timings()
633 tset_mem = hclkp; in stm32_fmc2_nfc_calc_timings()
641 timing = DIV_ROUND_UP(tset_mem, hclkp); in stm32_fmc2_nfc_calc_timings()
649 thold_mem = max_t(unsigned long, hclkp, sdrt->tCH_min); in stm32_fmc2_nfc_calc_timings()
659 timing = DIV_ROUND_UP(thold_mem, hclkp); in stm32_fmc2_nfc_calc_timings()
669 tset_att = hclkp; in stm32_fmc2_nfc_calc_timings()
682 timing = DIV_ROUND_UP(tset_att, hclkp); in stm32_fmc2_nfc_calc_timings()
698 thold_att = max_t(unsigned long, hclkp, sdrt->tALH_min); in stm32_fmc2_nfc_calc_timings()
721 timing = DIV_ROUND_UP(thold_att, hclkp); in stm32_fmc2_nfc_calc_timings()