/drivers/ide/ |
D | ide-xfer-mode.c | 65 int pio_mode = -1, overridden = 0; in ide_get_best_pio_mode() local 71 pio_mode = ide_scan_pio_blacklist((char *)&id[ATA_ID_PROD]); in ide_get_best_pio_mode() 73 if (pio_mode != -1) { in ide_get_best_pio_mode() 76 pio_mode = id[ATA_ID_OLD_PIO_MODES] >> 8; in ide_get_best_pio_mode() 77 if (pio_mode > 2) { /* 2 is maximum allowed tPIO value */ in ide_get_best_pio_mode() 78 pio_mode = 2; in ide_get_best_pio_mode() 84 pio_mode = 4 + min_t(int, 2, in ide_get_best_pio_mode() 90 pio_mode = 5; in ide_get_best_pio_mode() 92 pio_mode = 4; in ide_get_best_pio_mode() 94 pio_mode = 3; in ide_get_best_pio_mode() [all …]
|
D | slc90e66.c | 31 const u8 pio = drive->pio_mode - XFER_PIO_0; in slc90e66_set_pio_mode() 109 drive->pio_mode = in slc90e66_set_dma_mode() 112 drive->pio_mode = XFER_PIO_2; /* for SWDMA2 */ in slc90e66_set_dma_mode()
|
D | it8213.c | 37 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8213_set_pio_mode() 134 drive->pio_mode = in it8213_set_dma_mode() 137 drive->pio_mode = XFER_PIO_2; /* for SWDMA2 */ in it8213_set_dma_mode()
|
D | cmd640.c | 515 u8 pio_mode, unsigned int cycle_time) in cmd640_set_mode() argument 527 if (pio_mode > 5) in cmd640_set_mode() 528 pio_mode = 5; in cmd640_set_mode() 530 t = ide_timing_find_mode(XFER_PIO_0 + pio_mode); in cmd640_set_mode() 579 const u8 pio = drive->pio_mode - XFER_PIO_0; in cmd640_set_pio_mode()
|
D | cs5520.c | 64 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()
|
D | it8172.c | 45 const u8 pio = drive->pio_mode - XFER_PIO_0; in it8172_set_pio_mode() 105 drive->pio_mode = in it8172_set_dma_mode()
|
D | cs5535.c | 89 u8 piob = pair->pio_mode - XFER_PIO_0; in cs5535_set_speed() 153 cs5535_set_speed(drive, drive->pio_mode); in cs5535_set_pio_mode()
|
D | piix.c | 79 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()
|
D | ide-devsets.c | 109 drive->pio_mode = arg + XFER_PIO_0; in set_pio_mode() 156 __IDE_DEVSET(pio_mode, DS_SYNC, NULL, set_pio_mode);
|
/drivers/ata/ |
D | pata_of_platform.c | 27 int pio_mode = 0; in pata_of_platform_probe() local 64 pio_mode = be32_to_cpup(prop); in pata_of_platform_probe() 65 if (pio_mode > 6) { in pata_of_platform_probe() 73 pio_mask = 1 << pio_mode; in pata_of_platform_probe() 74 pio_mask |= (1 << pio_mode) - 1; in pata_of_platform_probe()
|
D | pata_optidma.c | 119 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()
|
D | pata_ep93xx.c | 178 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 …]
|
D | pata_ns87410.c | 88 if (ata_timing_compute(adev, adev->pio_mode, &at, 30303, 1) < 0) { in ns87410_set_piomode() 89 dev_err(&pdev->dev, "unknown mode %d\n", adev->pio_mode); in ns87410_set_piomode() 125 if (adev->pio_mode && adev != ap->private_data) in ns87410_qc_issue()
|
D | pata_amd.c | 73 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()
|
D | pata_legacy.c | 222 dev->pio_mode = XFER_PIO_0; in legacy_set_mode() 270 int pio = adev->pio_mode - XFER_PIO_0; in pdc20230_set_piomode() 367 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560a_set_piomode() 401 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560b_set_piomode() 477 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c611a_set_piomode() 482 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c611a_set_piomode() 556 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c46x_set_piomode() 561 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c46x_set_piomode() 659 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000); in qdi65x0_set_piomode() 696 if (adev->pio_mode) { in qdi_qc_issue() [all …]
|
D | pata_radisys.c | 42 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()
|
D | pata_sil680.c | 120 int pio = adev->pio_mode - XFER_PIO_0; in sil680_set_piomode() 128 if (pair != NULL && adev->pio_mode > pair->pio_mode) in sil680_set_piomode() 129 lowest_pio = pair->pio_mode - XFER_PIO_0; in sil680_set_piomode()
|
D | pata_opti.c | 111 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()
|
D | pata_ns87415.c | 67 ata_timing_compute(adev, adev->pio_mode, &t, T, 0); in ns87415_set_mode() 110 ns87415_set_mode(ap, adev, adev->pio_mode); in ns87415_set_piomode() 171 ns87415_set_mode(qc->ap, qc->dev, qc->dev->pio_mode); in ns87415_bmdma_stop()
|
D | pata_triflex.c | 141 triflex_load_timing(ap, adev, adev->pio_mode); in triflex_set_piomode() 174 triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); in triflex_bmdma_stop()
|
D | pata_cs5535.c | 109 int mode = adev->pio_mode - XFER_PIO_0; in cs5535_set_piomode() 114 int pairmode = pair->pio_mode - XFER_PIO_0; in cs5535_set_piomode()
|
D | pata_artop.c | 132 artop6210_load_piomode(ap, adev, adev->pio_mode - XFER_PIO_0); in artop6210_set_piomode() 185 artop6260_load_piomode(ap, adev, adev->pio_mode - XFER_PIO_0); in artop6260_set_piomode() 246 unsigned int pio = adev->pio_mode - XFER_PIO_0; in artop6260_set_dmamode()
|
D | pata_oldpiix.c | 66 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()
|
D | pata_mpiix.c | 79 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()
|
D | pata_serverworks.c | 199 static const u8 pio_mode[] = { 0x5d, 0x47, 0x34, 0x22, 0x20 }; in serverworks_set_piomode() local 204 int pio = adev->pio_mode - XFER_PIO_0; in serverworks_set_piomode() 206 pci_write_config_byte(pdev, 0x40 + offset, pio_mode[pio]); in serverworks_set_piomode()
|