Home
last modified time | relevance | path

Searched refs:cycle (Results 1 – 25 of 42) sorted by relevance

12

/drivers/ide/
Dide-timings.c85 u16 cycle = 0; in ide_pio_cycle_time() local
89 cycle = id[ATA_ID_EIDE_PIO_IORDY]; in ide_pio_cycle_time()
91 cycle = id[ATA_ID_EIDE_PIO]; in ide_pio_cycle_time()
94 if (pio < 3 && cycle < t->cycle) in ide_pio_cycle_time()
95 cycle = 0; /* use standard timing */ in ide_pio_cycle_time()
99 cycle = 0; in ide_pio_cycle_time()
102 return cycle ? cycle : t->cycle; in ide_pio_cycle_time()
118 q->cycle = EZ(t->cycle * 1000, T); in ide_timing_quantize()
138 m->cycle = max(a->cycle, b->cycle); in ide_timing_merge()
171 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; in ide_timing_compute()
[all …]
Dtx4938ide.c30 unsigned int cycle = 1000000000 / clock; in tx4938ide_tune_ebusc() local
35 wt = DIV_ROUND_UP(t->act8b, cycle) - 2; in tx4938ide_tune_ebusc()
37 wt = max_t(int, wt, DIV_ROUND_UP(35, cycle)); in tx4938ide_tune_ebusc()
43 shwt = DIV_ROUND_UP(t->setup, cycle); in tx4938ide_tune_ebusc()
46 while ((shwt * 4 + wt + (wt ? 2 : 3)) * cycle < t->cycle) in tx4938ide_tune_ebusc()
53 ebus_ch, cycle, wt, shwt); in tx4938ide_tune_ebusc()
Dpalm_bk3710.c122 cycletime = max_t(int, t->cycle, min_cycle); in palm_bk3710_setdmamode()
/drivers/vme/bridges/
Dvme_fake.c53 u32 cycle; member
61 u32 cycle; member
160 dma_addr_t buf_base, u32 aspace, u32 cycle) in fake_slave_set() argument
217 bridge->slaves[i].cycle = cycle; in fake_slave_set()
229 dma_addr_t *buf_base, u32 *aspace, u32 *cycle) in fake_slave_get() argument
245 *cycle = bridge->slaves[i].cycle; in fake_slave_get()
257 u32 aspace, u32 cycle, u32 dwidth) in fake_master_set() argument
325 bridge->masters[i].cycle = cycle; in fake_master_set()
344 u32 *aspace, u32 *cycle, u32 *dwidth) in __fake_master_get() argument
357 *cycle = bridge->masters[i].cycle; in __fake_master_get()
[all …]
Dvme_tsi148.c477 dma_addr_t pci_base, u32 aspace, u32 cycle) in tsi148_slave_set() argument
565 switch (cycle & (VME_2eSST160 | VME_2eSST267 | VME_2eSST320)) { in tsi148_slave_set()
579 if (cycle & VME_BLT) in tsi148_slave_set()
581 if (cycle & VME_MBLT) in tsi148_slave_set()
583 if (cycle & VME_2eVME) in tsi148_slave_set()
585 if (cycle & VME_2eSST) in tsi148_slave_set()
587 if (cycle & VME_2eSSTB) in tsi148_slave_set()
595 if (cycle & VME_SUPER) in tsi148_slave_set()
597 if (cycle & VME_USER) in tsi148_slave_set()
599 if (cycle & VME_PROG) in tsi148_slave_set()
[all …]
Dvme_ca91cx42.c339 dma_addr_t pci_base, u32 aspace, u32 cycle) in ca91cx42_slave_set() argument
423 if (cycle & VME_SUPER) in ca91cx42_slave_set()
425 if (cycle & VME_USER) in ca91cx42_slave_set()
427 if (cycle & VME_PROG) in ca91cx42_slave_set()
429 if (cycle & VME_DATA) in ca91cx42_slave_set()
445 dma_addr_t *pci_base, u32 *aspace, u32 *cycle) in ca91cx42_slave_get() argument
472 *cycle = 0; in ca91cx42_slave_get()
489 *cycle |= VME_SUPER; in ca91cx42_slave_get()
491 *cycle |= VME_USER; in ca91cx42_slave_get()
493 *cycle |= VME_PROG; in ca91cx42_slave_get()
[all …]
/drivers/ata/
Dpata_at91.c66 struct regmap_field *cycle; member
119 int *setup, int *pulse, int *cycle, int *cs_pulse) in calc_smc_vals() argument
142 *cycle += ret_val; in calc_smc_vals()
148 *cycle += ret_val; in calc_smc_vals()
150 ret_val = adjust_smc_value(cycle, range_cycle, ARRAY_SIZE(range_cycle)); in calc_smc_vals()
154 *cs_pulse = *cycle; in calc_smc_vals()
165 *cycle = *cs_pulse; in calc_smc_vals()
180 static void to_smc_format(int *setup, int *pulse, int *cycle, int *cs_pulse) in to_smc_format() argument
184 *cycle = (*cycle & 0x7f) | ((*cycle & 0x300) >> 1); in to_smc_format()
220 unsigned int cycle; /* SMC Cycle width in MCK ticks */ in set_smc_timing() local
[all …]
Dpata_icside.c191 unsigned int cycle; in pata_icside_set_dmamode() local
204 if (t.active <= 50 && t.recover <= 375 && t.cycle <= 425) in pata_icside_set_dmamode()
205 iomd_type = 'D', cycle = 187; in pata_icside_set_dmamode()
206 else if (t.active <= 125 && t.recover <= 375 && t.cycle <= 500) in pata_icside_set_dmamode()
207 iomd_type = 'C', cycle = 250; in pata_icside_set_dmamode()
208 else if (t.active <= 200 && t.recover <= 550 && t.cycle <= 750) in pata_icside_set_dmamode()
209 iomd_type = 'B', cycle = 437; in pata_icside_set_dmamode()
211 iomd_type = 'A', cycle = 562; in pata_icside_set_dmamode()
214 t.active, t.recover, t.cycle, iomd_type); in pata_icside_set_dmamode()
216 state->port[ap->port_no].speed[adev->devno] = cycle; in pata_icside_set_dmamode()
Dpata_acpi.c122 acpi->gtm.drive[unit].pio = t->cycle; in pacpi_set_piomode()
149 acpi->gtm.drive[unit].dma = t->cycle; in pacpi_set_dmamode()
Dlibata-core.c3131 q->cycle = EZ(t->cycle * 1000, T); in ata_timing_quantize()
3145 if (what & ATA_TIMING_CYCLE ) m->cycle = max(a->cycle, b->cycle); in ata_timing_merge()
3191 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; in ata_timing_compute()
3194 p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO_IORDY]; in ata_timing_compute()
3196 p.cycle = id[ATA_ID_EIDE_DMA_MIN]; in ata_timing_compute()
3227 if (t->active + t->recover < t->cycle) { in ata_timing_compute()
3228 t->active += (t->cycle - (t->active + t->recover)) / 2; in ata_timing_compute()
3229 t->recover = t->cycle - t->active; in ata_timing_compute()
3235 if (t->active + t->recover > t->cycle) in ata_timing_compute()
3236 t->cycle = t->active + t->recover; in ata_timing_compute()
[all …]
/drivers/clocksource/
Dtimer-atmel-pit.c46 u32 cycle; member
88 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk()
98 pit_write(data->base, AT91_PIT_MR, (data->cycle - 1) | AT91_PIT_PITEN); in pit_clkevt_shutdown()
110 data->cnt += data->cycle * PIT_PICNT(pit_read(data->base, AT91_PIT_PIVR)); in pit_clkevt_set_periodic()
112 (data->cycle - 1) | AT91_PIT_PITEN | AT91_PIT_PITIEN); in pit_clkevt_set_periodic()
135 (data->cycle - 1) | AT91_PIT_PITEN); in at91sam926x_pit_reset()
156 data->cnt += data->cycle * PIT_PICNT(pit_read(data->base, in at91sam926x_pit_interrupt()
210 data->cycle = DIV_ROUND_CLOSEST(pit_rate, HZ); in at91sam926x_pit_dt_init()
211 WARN_ON(((data->cycle - 1) & ~AT91_PIT_PIV) != 0); in at91sam926x_pit_dt_init()
220 bits = 12 /* PICNT */ + ilog2(data->cycle) /* PIV */; in at91sam926x_pit_dt_init()
/drivers/vme/
Dvme.c153 u32 aspace, cycle, dwidth; in vme_get_size() local
158 &aspace, &cycle, &dwidth); in vme_get_size()
166 &buf_base, &aspace, &cycle); in vme_get_size()
267 u32 cycle) in vme_slave_request() argument
294 ((slave_image->cycle_attr & cycle) == cycle) && in vme_slave_request()
332 dma_addr_t buf_base, u32 aspace, u32 cycle) in vme_slave_set() argument
351 ((image->cycle_attr & cycle) == cycle))) { in vme_slave_set()
361 aspace, cycle); in vme_slave_set()
367 dma_addr_t *buf_base, u32 *aspace, u32 *cycle) in vme_slave_get() argument
385 aspace, cycle); in vme_slave_get()
[all …]
Dvme_bridge.h49 u32 cycle; member
/drivers/memory/
Datmel-ebi.c38 struct regmap_field *cycle; member
135 regmap_fields_read(fields->cycle, conf->cs, &val); in at91sam9_ebi_get_config()
378 regmap_fields_write(fields->cycle, conf->cs, val); in at91sam9_ebi_apply_config()
408 fields->cycle = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in at91sam9_ebi_init()
409 if (IS_ERR(fields->cycle)) in at91sam9_ebi_init()
410 return PTR_ERR(fields->cycle); in at91sam9_ebi_init()
436 fields->cycle = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in sama5d3_ebi_init()
437 if (IS_ERR(fields->cycle)) in sama5d3_ebi_init()
438 return PTR_ERR(fields->cycle); in sama5d3_ebi_init()
/drivers/staging/vme/devices/
Dvme_user.h14 __u32 cycle; /* Cycle properties */ member
36 __u32 cycle; /* Cycle properties */ member
Dvme_user.c334 &master.cycle, &master.dwidth); in vme_user_ioctl()
363 master.aspace, master.cycle, master.dwidth); in vme_user_ioctl()
379 &slave.aspace, &slave.cycle); in vme_user_ioctl()
404 slave.cycle); in vme_user_ioctl()
/drivers/staging/media/lirc/
Dlirc_bt829.c48 static void cycle_delay(int cycle);
186 static void cycle_delay(int cycle) in cycle_delay() argument
188 udelay(WAIT_CYCLE * cycle); in cycle_delay()
/drivers/perf/
Dxgene_pmu.c217 XGENE_PMU_EVENT_ATTR(cycle-count, 0x00),
218 XGENE_PMU_EVENT_ATTR(cycle-count-div-64, 0x01),
235 XGENE_PMU_EVENT_ATTR(cycle-count, 0x00),
236 XGENE_PMU_EVENT_ATTR(cycle-count-div-64, 0x01),
252 XGENE_PMU_EVENT_ATTR(cycle-count, 0x00),
253 XGENE_PMU_EVENT_ATTR(cycle-count-div-64, 0x01),
262 XGENE_PMU_EVENT_ATTR(cycle-count, 0x00),
263 XGENE_PMU_EVENT_ATTR(cycle-count-div-64, 0x01),
/drivers/mtd/chips/
DKconfig129 flash chip addressed by each bus cycle, then say 'Y'.
136 flash chips addressed by each bus cycle, then say 'Y'.
143 flash chips addressed by each bus cycle, then say 'Y'.
150 flash chips addressed by each bus cycle, then say 'Y'.
/drivers/scsi/
Desp_scsi.h241 #define ESP_TICK(ccf, cycle) ((7682 * (ccf) * (cycle) / 1000)) argument
/drivers/firewire/
Dcore-iso.c193 int cycle, int sync, int tags) in fw_iso_context_start() argument
195 return ctx->card->driver->start_iso(ctx, cycle, sync, tags); in fw_iso_context_start()
Dcore.h99 s32 cycle, u32 sync, u32 tags);
/drivers/mtd/ubi/
DKconfig25 other flashes which have eraseblock life-cycle 100000 or more.
27 life-cycle less than 10000, the threshold should be lessened (e.g.,
/drivers/staging/greybus/
Doperation.c700 unsigned int cycle; in gb_operation_request_send() local
723 cycle = (unsigned int)atomic_inc_return(&connection->op_cycle); in gb_operation_request_send()
724 operation->id = (u16)(cycle % U16_MAX + 1); in gb_operation_request_send()
/drivers/block/
Dskd_s1120.h256 uint8_t cycle; member

12