Searched refs:tims (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/mtd/nand/raw/ |
H A D | fsmc_nand.c | 263 struct fsmc_nand_timings *tims) in fsmc_nand_setup() argument 268 tclr = (tims->tclr & FSMC_TCLR_MASK) << FSMC_TCLR_SHIFT; in fsmc_nand_setup() 269 tar = (tims->tar & FSMC_TAR_MASK) << FSMC_TAR_SHIFT; in fsmc_nand_setup() 270 thiz = (tims->thiz & FSMC_THIZ_MASK) << FSMC_THIZ_SHIFT; in fsmc_nand_setup() 271 thold = (tims->thold & FSMC_THOLD_MASK) << FSMC_THOLD_SHIFT; in fsmc_nand_setup() 272 twait = (tims->twait & FSMC_TWAIT_MASK) << FSMC_TWAIT_SHIFT; in fsmc_nand_setup() 273 tset = (tims->tset & FSMC_TSET_MASK) << FSMC_TSET_SHIFT; in fsmc_nand_setup() 285 struct fsmc_nand_timings *tims) in fsmc_calc_timings() argument 294 tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1; in fsmc_calc_timings() 295 if (tims->tar > FSMC_TAR_MASK) in fsmc_calc_timings() [all …]
|
H A D | stm32_fmc2_nand.c | 1417 struct stm32_fmc2_timings *tims = &nand->timings; in stm32_fmc2_nfc_calc_timings() local 1425 tims->tar = min_t(unsigned long, timing, FMC2_PCR_TIMING_MASK); in stm32_fmc2_nfc_calc_timings() 1429 tims->tclr = min_t(unsigned long, timing, FMC2_PCR_TIMING_MASK); in stm32_fmc2_nfc_calc_timings() 1431 tims->thiz = FMC2_THIZ; in stm32_fmc2_nfc_calc_timings() 1432 thiz = (tims->thiz + 1) * hclkp; in stm32_fmc2_nfc_calc_timings() 1443 tims->twait = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings() 1459 tims->tset_mem = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings() 1477 tims->thold_mem = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings() 1500 tims->tset_att = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings() 1539 tims->thold_att = clamp_val(timing, 1, FMC2_PMEM_PATT_TIMING_MASK); in stm32_fmc2_nfc_calc_timings()
|