Lines Matching refs:cycles
163 uint32_t smcr, val, cycles; in jz4780_nemc_configure_bank() local
209 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
210 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank()
212 val, cycles); in jz4780_nemc_configure_bank()
216 smcr |= cycles << NEMC_SMCR_TAS_SHIFT; in jz4780_nemc_configure_bank()
221 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
222 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank()
224 val, cycles); in jz4780_nemc_configure_bank()
228 smcr |= cycles << NEMC_SMCR_TAH_SHIFT; in jz4780_nemc_configure_bank()
233 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
234 if (cycles > 31) { in jz4780_nemc_configure_bank()
236 val, cycles); in jz4780_nemc_configure_bank()
240 smcr |= convert_tBP_tAW[cycles] << NEMC_SMCR_TBP_SHIFT; in jz4780_nemc_configure_bank()
245 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
246 if (cycles > 31) { in jz4780_nemc_configure_bank()
248 val, cycles); in jz4780_nemc_configure_bank()
252 smcr |= convert_tBP_tAW[cycles] << NEMC_SMCR_TAW_SHIFT; in jz4780_nemc_configure_bank()
257 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
258 if (cycles > 63) { in jz4780_nemc_configure_bank()
260 val, cycles); in jz4780_nemc_configure_bank()
264 smcr |= cycles << NEMC_SMCR_TSTRV_SHIFT; in jz4780_nemc_configure_bank()