Searched refs:ncycles (Results 1 – 7 of 7) sorted by relevance
/drivers/mfd/ |
D | atmel-smc.c | 43 static int atmel_smc_cs_encode_ncycles(unsigned int ncycles, in atmel_smc_cs_encode_ncycles() argument 54 msb = ncycles / msbfactor; in atmel_smc_cs_encode_ncycles() 55 lsb = ncycles % msbfactor; in atmel_smc_cs_encode_ncycles() 94 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_timing() argument 112 ret = atmel_smc_cs_encode_ncycles(ncycles, 3, 1, 64, &val); in atmel_smc_cs_conf_set_timing() 136 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_setup() argument 151 ret = atmel_smc_cs_encode_ncycles(ncycles, 5, 1, 128, &val); in atmel_smc_cs_conf_set_setup() 175 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_pulse() argument 190 ret = atmel_smc_cs_encode_ncycles(ncycles, 6, 1, 256, &val); in atmel_smc_cs_conf_set_pulse() 214 unsigned int shift, unsigned int ncycles) in atmel_smc_cs_conf_set_cycle() argument [all …]
|
/drivers/mtd/nand/raw/atmel/ |
D | nand-controller.c | 1243 u32 ncycles, totalcycles, timeps, mckperiodps; in atmel_smc_nand_prepare_smcconf() local 1270 ncycles = DIV_ROUND_UP(conf->timings.sdr.tWP_min, mckperiodps); in atmel_smc_nand_prepare_smcconf() 1271 totalcycles = ncycles; in atmel_smc_nand_prepare_smcconf() 1273 ncycles); in atmel_smc_nand_prepare_smcconf() 1291 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf() 1292 ncycles = ncycles > totalcycles ? ncycles - totalcycles : 0; in atmel_smc_nand_prepare_smcconf() 1293 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf() 1295 ncycles); in atmel_smc_nand_prepare_smcconf() 1309 ncycles = DIV_ROUND_UP(timeps, mckperiodps); in atmel_smc_nand_prepare_smcconf() 1310 totalcycles += ncycles; in atmel_smc_nand_prepare_smcconf() [all …]
|
/drivers/memory/ |
D | atmel-ebi.c | 117 unsigned int ncycles; in atmel_ebi_xslate_smc_timings() local 124 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings() 125 if (ncycles > ATMEL_SMC_MODE_TDF_MAX) { in atmel_ebi_xslate_smc_timings() 130 if (ncycles < ATMEL_SMC_MODE_TDF_MIN) in atmel_ebi_xslate_smc_timings() 131 ncycles = ATMEL_SMC_MODE_TDF_MIN; in atmel_ebi_xslate_smc_timings() 133 smcconf->mode |= ATMEL_SMC_MODE_TDF(ncycles); in atmel_ebi_xslate_smc_timings() 154 ncycles = DIV_ROUND_UP(val, clk_period_ns); in atmel_ebi_xslate_smc_timings() 155 ret = xlate->converter(smcconf, xlate->shift, ncycles); in atmel_ebi_xslate_smc_timings()
|
D | renesas-rpc-if.c | 461 rpc->dummy = RPCIF_SMDMCR_DMCYC(op->dummy.ncycles); in rpcif_prepare()
|
/drivers/i3c/master/ |
D | i3c-master-cdns.c | 1065 unsigned long i3c_lim_period, pres_step, ncycles; in cdns_i3c_master_upd_i3c_scl_lim() local 1114 ncycles = DIV_ROUND_UP(i3c_lim_period, pres_step); in cdns_i3c_master_upd_i3c_scl_lim() 1115 if (ncycles < 4) in cdns_i3c_master_upd_i3c_scl_lim() 1116 ncycles = 0; in cdns_i3c_master_upd_i3c_scl_lim() 1118 ncycles -= 4; in cdns_i3c_master_upd_i3c_scl_lim() 1120 prescl1 |= PRESCL_CTRL1_PP_LOW(ncycles); in cdns_i3c_master_upd_i3c_scl_lim() 1213 int ret, ncycles; in cdns_i3c_master_bus_init() local 1260 ncycles = DIV_ROUND_UP(I3C_BUS_TLOW_OD_MIN_NS, pres_step) - 2; in cdns_i3c_master_bus_init() 1261 if (ncycles < 0) in cdns_i3c_master_bus_init() 1262 ncycles = 0; in cdns_i3c_master_bus_init() [all …]
|
/drivers/mtd/hyperbus/ |
D | rpc-if.c | 54 op.dummy.ncycles = 15; in rpcif_hb_prepare_read()
|
/drivers/spi/ |
D | spi-rpc-if.c | 37 rpc_op.dummy.ncycles = spi_op->dummy.nbytes * 8 / in rpcif_spi_mem_prepare()
|