/linux-6.1.9/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 …]
|
/linux-6.1.9/arch/riscv/kvm/ |
D | vcpu_timer.c | 72 static int kvm_riscv_vcpu_update_vstimecmp(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_update_vstimecmp() argument 75 csr_write(CSR_VSTIMECMP, ncycles & 0xFFFFFFFF); in kvm_riscv_vcpu_update_vstimecmp() 76 csr_write(CSR_VSTIMECMPH, ncycles >> 32); in kvm_riscv_vcpu_update_vstimecmp() 78 csr_write(CSR_VSTIMECMP, ncycles); in kvm_riscv_vcpu_update_vstimecmp() 83 static int kvm_riscv_vcpu_update_hrtimer(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_update_hrtimer() argument 94 delta_ns = kvm_riscv_delta_cycles2ns(ncycles, gt, t); in kvm_riscv_vcpu_update_hrtimer() 95 t->next_cycles = ncycles; in kvm_riscv_vcpu_update_hrtimer() 102 int kvm_riscv_vcpu_timer_next_event(struct kvm_vcpu *vcpu, u64 ncycles) in kvm_riscv_vcpu_timer_next_event() argument 106 return t->timer_next_event(vcpu, ncycles); in kvm_riscv_vcpu_timer_next_event()
|
/linux-6.1.9/include/linux/mfd/syscon/ |
D | atmel-smc.h | 99 unsigned int ncycles); 101 unsigned int shift, unsigned int ncycles); 103 unsigned int shift, unsigned int ncycles); 105 unsigned int shift, unsigned int ncycles);
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | kvm_vcpu_timer.h | 35 int (*timer_next_event)(struct kvm_vcpu *vcpu, u64 ncycles); 38 int kvm_riscv_vcpu_timer_next_event(struct kvm_vcpu *vcpu, u64 ncycles);
|
/linux-6.1.9/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 | 429 rpc->dummy = RPCIF_SMDMCR_DMCYC(op->dummy.ncycles / in rpcif_prepare()
|
/linux-6.1.9/arch/riscv/lib/ |
D | delay.c | 108 unsigned long long ncycles = nsecs * lpj_fine * NDELAY_MULT; in ndelay() local 109 __delay(ncycles >> NDELAY_SHIFT); in ndelay()
|
/linux-6.1.9/sound/ppc/ |
D | beep.c | 94 int period, ncycles, nsamples; in snd_pmac_beep_event() local 140 ncycles = BEEP_BUFLEN * 256 / period; in snd_pmac_beep_event() 141 nsamples = (period * ncycles) >> 8; in snd_pmac_beep_event() 142 f = ncycles * 65536 / nsamples; in snd_pmac_beep_event()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/include/memory/ |
D | renesas-rpc-if.h | 37 u8 ncycles; member
|
/linux-6.1.9/drivers/mtd/hyperbus/ |
D | rpc-if.c | 54 op.dummy.ncycles = 15; in rpcif_hb_prepare_read()
|
/linux-6.1.9/drivers/spi/ |
D | spi-rpc-if.c | 37 rpc_op.dummy.ncycles = spi_op->dummy.nbytes * 8 / in rpcif_spi_mem_prepare()
|
/linux-6.1.9/include/linux/mtd/ |
D | rawnand.h | 779 #define NAND_OP_ADDR(ncycles, cycles, ns) \ argument 783 .naddrs = ncycles, \
|