Lines Matching refs:cycles
162 uint32_t smcr, val, cycles; in jz4780_nemc_configure_bank() local
208 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
209 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank()
211 val, cycles); in jz4780_nemc_configure_bank()
215 smcr |= cycles << NEMC_SMCR_TAS_SHIFT; in jz4780_nemc_configure_bank()
220 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
221 if (cycles > nemc->soc_info->tas_tah_cycles_max) { in jz4780_nemc_configure_bank()
223 val, cycles); in jz4780_nemc_configure_bank()
227 smcr |= cycles << NEMC_SMCR_TAH_SHIFT; in jz4780_nemc_configure_bank()
232 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
233 if (cycles > 31) { in jz4780_nemc_configure_bank()
235 val, cycles); in jz4780_nemc_configure_bank()
239 smcr |= convert_tBP_tAW[cycles] << NEMC_SMCR_TBP_SHIFT; in jz4780_nemc_configure_bank()
244 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
245 if (cycles > 31) { in jz4780_nemc_configure_bank()
247 val, cycles); in jz4780_nemc_configure_bank()
251 smcr |= convert_tBP_tAW[cycles] << NEMC_SMCR_TAW_SHIFT; in jz4780_nemc_configure_bank()
256 cycles = jz4780_nemc_ns_to_cycles(nemc, val); in jz4780_nemc_configure_bank()
257 if (cycles > 63) { in jz4780_nemc_configure_bank()
259 val, cycles); in jz4780_nemc_configure_bank()
263 smcr |= cycles << NEMC_SMCR_TSTRV_SHIFT; in jz4780_nemc_configure_bank()