/openbmc/linux/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() 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_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_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 - XFER_PIO_0); in ep93xx_pata_set_piomode() [all …]
|
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_legacy.c | 243 dev->pio_mode = XFER_PIO_0; in legacy_set_mode() 291 int pio = adev->pio_mode - XFER_PIO_0; in pdc20230_set_piomode() 391 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560a_set_piomode() 425 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in ht6560b_set_piomode() 501 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c611a_set_piomode() 506 ata_timing_compute(pair, pair->pio_mode, &tp, clock, 1000); in opti82c611a_set_piomode() 580 ata_timing_compute(adev, adev->pio_mode, &t, clock, 1000); in opti82c46x_set_piomode() 683 ata_timing_compute(adev, adev->pio_mode, &t, 30303, 1000); in qdi65x0_set_piomode() 720 if (adev->pio_mode) { in qdi_qc_issue() 825 ata_timing_compute(adev, adev->pio_mode, &t, 20000, 1000); in winbond_set_piomode() [all …]
|
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_sil680.c | 116 int pio = adev->pio_mode - XFER_PIO_0; in sil680_set_piomode() 124 if (pair != NULL && adev->pio_mode > pair->pio_mode) in sil680_set_piomode() 125 lowest_pio = pair->pio_mode - XFER_PIO_0; in sil680_set_piomode()
|
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()
|
H A D | pata_triflex.c | 128 triflex_load_timing(ap, adev, adev->pio_mode); in triflex_set_piomode() 160 triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); in triflex_bmdma_stop()
|
H A D | pata_cs5535.c | 96 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()
|
H A D | pata_ns87415.c | 66 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()
|
H A 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()
|
H A 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()
|
H A D | pata_serverworks.c | 201 static const u8 pio_mode[] = { 0x5d, 0x47, 0x34, 0x22, 0x20 }; in serverworks_set_piomode() local 206 int pio = adev->pio_mode - XFER_PIO_0; in serverworks_set_piomode() 208 pci_write_config_byte(pdev, 0x40 + offset, pio_mode[pio]); in serverworks_set_piomode()
|
H A D | pata_it8213.c | 77 unsigned int pio = adev->pio_mode - XFER_PIO_0; in it8213_set_piomode() 205 if (adev->pio_mode < needed_pio[mwdma]) in it8213_set_dmamode()
|
H A D | pata_efar.c | 86 unsigned int pio = adev->pio_mode - XFER_PIO_0; in efar_set_piomode() 210 if (adev->pio_mode < needed_pio[mwdma]) in efar_set_dmamode()
|
H A D | pata_cmd640.c | 63 if (ata_timing_compute(adev, adev->pio_mode, &t, T, 0) < 0) { in cmd640_set_piomode() 72 ata_timing_compute(pair, pair->pio_mode, &p, T, 1); in cmd640_set_piomode()
|
H A D | pata_cs5536.c | 164 int mode = adev->pio_mode - XFER_PIO_0; in cs5536_set_piomode() 170 cmdmode = min(mode, pair->pio_mode - XFER_PIO_0); in cs5536_set_piomode()
|
H A D | pata_atiixp.c | 137 atiixp_set_pio_timing(ap, adev, adev->pio_mode - XFER_PIO_0); in atiixp_set_piomode() 196 if (adev->pio_mode != wanted_pio) in atiixp_set_dmamode()
|
H A D | pata_rdc.c | 90 unsigned int pio = adev->pio_mode - XFER_PIO_0; in rdc_set_piomode() 245 if (adev->pio_mode < needed_pio[mwdma]) in rdc_set_dmamode()
|
H A D | pata_atp867x.c | 207 u8 speed = adev->pio_mode; in atp867x_set_piomode() 216 if (peer && peer->pio_mode) { in atp867x_set_piomode() 217 ata_timing_compute(peer, peer->pio_mode, &p, T, UT); in atp867x_set_piomode()
|
H A D | pata_ali.c | 213 ata_timing_compute(adev, adev->pio_mode, &t, T, 1); in ali_set_piomode() 216 ata_timing_compute(pair, pair->pio_mode, &p, T, 1); in ali_set_piomode() 265 ata_timing_compute(pair, pair->pio_mode, &p, T, 1); in ali_set_dmamode()
|