Home
last modified time | relevance | path

Searched refs:pio_mode (Results 1 – 25 of 111) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/ide/
Dide-xfer-mode.c66 int pio_mode = -1, overridden = 0; in ide_get_best_pio_mode() local
72 pio_mode = ide_scan_pio_blacklist((char *)&id[ATA_ID_PROD]); in ide_get_best_pio_mode()
74 if (pio_mode != -1) { in ide_get_best_pio_mode()
77 pio_mode = id[ATA_ID_OLD_PIO_MODES] >> 8; in ide_get_best_pio_mode()
78 if (pio_mode > 2) { /* 2 is maximum allowed tPIO value */ in ide_get_best_pio_mode()
79 pio_mode = 2; in ide_get_best_pio_mode()
85 pio_mode = 4 + min_t(int, 2, in ide_get_best_pio_mode()
91 pio_mode = 5; in ide_get_best_pio_mode()
93 pio_mode = 4; in ide_get_best_pio_mode()
95 pio_mode = 3; in ide_get_best_pio_mode()
[all …]
Dslc90e66.c32 const u8 pio = drive->pio_mode - XFER_PIO_0; in slc90e66_set_pio_mode()
110 drive->pio_mode = in slc90e66_set_dma_mode()
113 drive->pio_mode = XFER_PIO_2; /* for SWDMA2 */ in slc90e66_set_dma_mode()
Dit8213.c38 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8213_set_pio_mode()
135 drive->pio_mode = in it8213_set_dma_mode()
138 drive->pio_mode = XFER_PIO_2; /* for SWDMA2 */ in it8213_set_dma_mode()
Dcs5520.c64 const u8 pio = drive->pio_mode - XFER_PIO_0; in cs5520_set_pio_mode()
88 drive->pio_mode = XFER_PIO_0 + 0; in cs5520_set_dma_mode()
Dit8172.c45 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8172_set_pio_mode()
105 drive->pio_mode = in it8172_set_dma_mode()
Dcmd640.c516 u8 pio_mode, unsigned int cycle_time) in cmd640_set_mode() argument
528 if (pio_mode > 5) in cmd640_set_mode()
529 pio_mode = 5; in cmd640_set_mode()
531 t = ide_timing_find_mode(XFER_PIO_0 + pio_mode); in cmd640_set_mode()
580 const u8 pio = drive->pio_mode - XFER_PIO_0; in cmd640_set_pio_mode()
Dcs5535.c86 u8 piob = pair->pio_mode - XFER_PIO_0; in cs5535_set_speed()
150 cs5535_set_speed(drive, drive->pio_mode); in cs5535_set_pio_mode()
Dide-devsets.c110 drive->pio_mode = arg + XFER_PIO_0; in set_pio_mode()
157 __IDE_DEVSET(pio_mode, DS_SYNC, NULL, set_pio_mode);
Dpiix.c79 const u8 pio = drive->pio_mode - XFER_PIO_0; in piix_set_pio_mode()
190 drive->pio_mode = in piix_set_dma_mode()
193 drive->pio_mode = XFER_PIO_2; /* for SWDMA2 */ in piix_set_dma_mode()
/kernel/linux/linux-5.10/drivers/ata/
Dpata_of_platform.c30 int pio_mode = 0; in pata_of_platform_probe() local
52 if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) { in pata_of_platform_probe()
53 if (pio_mode > 6) { in pata_of_platform_probe()
63 pio_mask = 1 << pio_mode; in pata_of_platform_probe()
64 pio_mask |= (1 << pio_mode) - 1; in pata_of_platform_probe()
Dpata_ns87410.c74 if (ata_timing_compute(adev, adev->pio_mode, &at, 30303, 1) < 0) { in ns87410_set_piomode()
75 dev_err(&pdev->dev, "unknown mode %d\n", adev->pio_mode); in ns87410_set_piomode()
111 if (adev->pio_mode && adev != ap->private_data) in ns87410_qc_issue()
Dpata_optidma.c119 int pio = adev->pio_mode - XFER_PIO_0; in optidma_mode_setup()
159 pair_addr = addr_timing[pci_clock][pair->pio_mode - XFER_PIO_0]; in optidma_mode_setup()
241 optidma_mode_setup(ap, adev, adev->pio_mode); in optidma_set_pio_mode()
271 optiplus_mode_setup(ap, adev, adev->pio_mode); in optiplus_set_pio_mode()
306 return bits43[adev->pio_mode - XFER_PIO_0]; in optidma_make_bits43()
Dpata_radisys.c42 unsigned int pio = adev->pio_mode - XFER_PIO_0; in radisys_set_piomode()
123 if (adev->pio_mode < needed_pio[mwdma]) in radisys_set_dmamode()
178 else if (adev->pio_mode) in radisys_qc_issue()
Dpata_ep93xx.c178 static int ep93xx_pata_get_wst(int pio_mode) in ep93xx_pata_get_wst() argument
182 if (pio_mode == 0) in ep93xx_pata_get_wst()
184 else if (pio_mode < 3) in ep93xx_pata_get_wst()
192 static void ep93xx_pata_enable_pio(void __iomem *base, int pio_mode) in ep93xx_pata_enable_pio() argument
195 ep93xx_pata_get_wst(pio_mode) | in ep93xx_pata_enable_pio()
196 (pio_mode << IDECFG_MODE_SHIFT), base + IDECFG); in ep93xx_pata_enable_pio()
344 ata_timing_compute(adev, adev->pio_mode, &drv_data->t, T, 0); in ep93xx_pata_set_piomode()
345 if (pair && pair->pio_mode) { in ep93xx_pata_set_piomode()
347 ata_timing_compute(pair, pair->pio_mode, &t, T, 0); in ep93xx_pata_set_piomode()
354 adev->pio_mode - XFER_PIO_0); in ep93xx_pata_set_piomode()
[all …]
Dpata_amd.c73 ata_timing_compute(peer, peer->pio_mode, &apeer, T, UT); in timing_setup()
212 timing_setup(ap, adev, 0x40, adev->pio_mode, 1); in amd33_set_piomode()
218 timing_setup(ap, adev, 0x40, adev->pio_mode, 2); in amd66_set_piomode()
224 timing_setup(ap, adev, 0x40, adev->pio_mode, 3); in amd100_set_piomode()
230 timing_setup(ap, adev, 0x40, adev->pio_mode, 4); in amd133_set_piomode()
356 timing_setup(ap, adev, 0x50, adev->pio_mode, 3); in nv100_set_piomode()
361 timing_setup(ap, adev, 0x50, adev->pio_mode, 4); in nv133_set_piomode()
Dpata_legacy.c208 dev->pio_mode = XFER_PIO_0; in legacy_set_mode()
256 int pio = adev->pio_mode - XFER_PIO_0; in pdc20230_set_piomode()
356 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560a_set_piomode()
390 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560b_set_piomode()
466 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c611a_set_piomode()
471 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c611a_set_piomode()
545 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c46x_set_piomode()
550 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c46x_set_piomode()
648 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000); in qdi65x0_set_piomode()
685 if (adev->pio_mode) { in qdi_qc_issue()
[all …]
Dpata_imx.c64 if (adev->pio_mode < XFER_PIO_0 || adev->pio_mode > XFER_PIO_4 || in pata_imx_set_timing()
69 ata_timing_compute(adev, adev->pio_mode, &timing, T * 1000, 0); in pata_imx_set_timing()
71 mode = adev->pio_mode - XFER_PIO_0; in pata_imx_set_timing()
Dpata_sil680.c119 int pio = adev->pio_mode - XFER_PIO_0; in sil680_set_piomode()
127 if (pair != NULL && adev->pio_mode > pair->pio_mode) in sil680_set_piomode()
128 lowest_pio = pair->pio_mode - XFER_PIO_0; in sil680_set_piomode()
Dpata_opti.c111 int pio = adev->pio_mode - XFER_PIO_0; in opti_set_piomode()
136 u8 pair_addr = addr_timing[clock][pair->pio_mode - XFER_PIO_0]; in opti_set_piomode()
Dpata_cs5535.c96 int mode = adev->pio_mode - XFER_PIO_0; in cs5535_set_piomode()
101 int pairmode = pair->pio_mode - XFER_PIO_0; in cs5535_set_piomode()
Dpata_triflex.c128 triflex_load_timing(ap, adev, adev->pio_mode); in triflex_set_piomode()
161 triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); in triflex_bmdma_stop()
Dpata_ns87415.c66 ata_timing_compute(adev, adev->pio_mode, &t, T, 0); in ns87415_set_mode()
109 ns87415_set_mode(ap, adev, adev->pio_mode); in ns87415_set_piomode()
170 ns87415_set_mode(qc->ap, qc->dev, qc->dev->pio_mode); in ns87415_bmdma_stop()
Dpata_mpiix.c79 int pio = adev->pio_mode - XFER_PIO_0; in mpiix_set_piomode()
133 if (adev->pio_mode && adev != ap->private_data) in mpiix_qc_issue()
Dpata_oldpiix.c66 unsigned int pio = adev->pio_mode - XFER_PIO_0; in oldpiix_set_piomode()
162 if (adev->pio_mode < needed_pio[mwdma]) in oldpiix_set_dmamode()
Dpata_bk3710.c176 u8 mode2 = pair->pio_mode - XFER_PIO_0; in pata_bk3710_setpiomode()
203 const struct ata_timing *t = ata_timing_find_mode(adev->pio_mode); in pata_bk3710_set_piomode()
207 const u8 pio = adev->pio_mode - XFER_PIO_0; in pata_bk3710_set_piomode()

12345