/kernel/linux/linux-5.10/drivers/ide/ |
H A D | ide-xfer-mode.c | 66 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 in ide_get_best_pio_mode() [all...] |
H A D | slc90e66.c | 32 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()
|
H A D | it8213.c | 38 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()
|
H A D | cmd640.c | 513 * Set a specific pio_mode for a drive 516 u8 pio_mode, unsigned int cycle_time) in cmd640_set_mode() 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() 515 cmd640_set_mode(ide_drive_t *drive, unsigned int index, u8 pio_mode, unsigned int cycle_time) cmd640_set_mode() argument
|
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | pata_of_platform.c | 30 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()
|
H A D | pata_ns87410.c | 74 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() 107 then load it. We have to check if pio_mode is set as the core code in ns87410_qc_issue() 108 does not set adev->pio_mode to XFER_PIO_0 while probing as would be in ns87410_qc_issue() 111 if (adev->pio_mode && adev != ap->private_data) in ns87410_qc_issue()
|
H A 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()
|
H A 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()
|
H A 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 in ep93xx_pata_set_piomode() [all...] |
H A 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()
|
H A D | pata_imx.c | 64 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()
|
H A D | pata_legacy.c | 208 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...] |
H A 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()
|
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | pata_of_platform.c | 30 int pio_mode = 0; in pata_of_platform_probe() local 61 if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) { in pata_of_platform_probe() 62 if (pio_mode > 6) { in pata_of_platform_probe() 72 pio_mask = 1 << pio_mode; in pata_of_platform_probe() 73 pio_mask |= (1 << pio_mode) - 1; in pata_of_platform_probe()
|
H A D | pata_ixp4xx_cf.c | 53 static void ixp4xx_set_8bit_timing(struct ixp4xx_pata *ixpp, u8 pio_mode) in ixp4xx_set_8bit_timing() argument 55 switch (pio_mode) { in ixp4xx_set_8bit_timing() 83 static void ixp4xx_set_16bit_timing(struct ixp4xx_pata *ixpp, u8 pio_mode) in ixp4xx_set_16bit_timing() argument 85 switch (pio_mode){ in ixp4xx_set_16bit_timing() 119 adev->pio_mode - XFER_PIO_0); in ixp4xx_set_piomode() 120 ixp4xx_set_8bit_timing(ixpp, adev->pio_mode); in ixp4xx_set_piomode() 143 ixp4xx_set_16bit_timing(ixpp, adev->pio_mode); in ixp4xx_mmio_data_xfer() 169 ixp4xx_set_8bit_timing(ixpp, adev->pio_mode); in ixp4xx_mmio_data_xfer()
|
H A D | pata_ns87410.c | 74 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() 107 then load it. We have to check if pio_mode is set as the core code in ns87410_qc_issue() 108 does not set adev->pio_mode to XFER_PIO_0 while probing as would be in ns87410_qc_issue() 111 if (adev->pio_mode && adev != ap->private_data) in ns87410_qc_issue()
|
H A 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()
|
H A D | pata_amd.c | 73 ata_timing_compute(peer, peer->pio_mode, &apeer, T, UT); in timing_setup() 211 timing_setup(ap, adev, 0x40, adev->pio_mode, 1); in amd33_set_piomode() 217 timing_setup(ap, adev, 0x40, adev->pio_mode, 2); in amd66_set_piomode() 223 timing_setup(ap, adev, 0x40, adev->pio_mode, 3); in amd100_set_piomode() 229 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()
|
H A D | pata_ep93xx.c | 179 static int ep93xx_pata_get_wst(int pio_mode) in ep93xx_pata_get_wst() argument 183 if (pio_mode == 0) in ep93xx_pata_get_wst() 185 else if (pio_mode < 3) in ep93xx_pata_get_wst() 193 static void ep93xx_pata_enable_pio(void __iomem *base, int pio_mode) in ep93xx_pata_enable_pio() argument 196 ep93xx_pata_get_wst(pio_mode) | in ep93xx_pata_enable_pio() 197 (pio_mode << IDECFG_MODE_SHIFT), base + IDECFG); in ep93xx_pata_enable_pio() 345 ata_timing_compute(adev, adev->pio_mode, &drv_data->t, T, 0); in ep93xx_pata_set_piomode() 346 if (pair && pair->pio_mode) { in ep93xx_pata_set_piomode() 348 ata_timing_compute(pair, pair->pio_mode, &t, T, 0); in ep93xx_pata_set_piomode() 355 adev->pio_mode in ep93xx_pata_set_piomode() [all...] |
H A 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()
|
H A D | pata_imx.c | 64 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()
|
H A D | pata_legacy.c | 245 dev->pio_mode = XFER_PIO_0; in legacy_set_mode() 293 int pio = adev->pio_mode - XFER_PIO_0; in pdc20230_set_piomode() 393 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560a_set_piomode() 427 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560b_set_piomode() 503 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c611a_set_piomode() 508 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c611a_set_piomode() 582 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c46x_set_piomode() 587 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c46x_set_piomode() 685 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000); in qdi65x0_set_piomode() 722 if (adev->pio_mode) { in qdi_qc_issue() [all...] |
H A 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()
|