Home
last modified time | relevance | path

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

123

/linux/drivers/ata/
H A Dpata_of_platform.c30 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 Dpata_ixp4xx_cf.c53 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 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()
H A 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()
H A Dpata_ep93xx.c177 static int ep93xx_pata_get_wst(int pio_mode) in ep93xx_pata_get_wst() argument
181 if (pio_mode == 0) in ep93xx_pata_get_wst()
183 else if (pio_mode < 3) in ep93xx_pata_get_wst()
191 static void ep93xx_pata_enable_pio(void __iomem *base, int pio_mode) in ep93xx_pata_enable_pio() argument
194 ep93xx_pata_get_wst(pio_mode) | in ep93xx_pata_enable_pio()
195 (pio_mode << IDECFG_MODE_SHIFT), base + IDECFG); in ep93xx_pata_enable_pio()
343 ata_timing_compute(adev, adev->pio_mode, &drv_data->t, T, 0); in ep93xx_pata_set_piomode()
344 if (pair && pair->pio_mode) { in ep93xx_pata_set_piomode()
346 ata_timing_compute(pair, pair->pio_mode, &t, T, 0); in ep93xx_pata_set_piomode()
353 adev->pio_mode - XFER_PIO_0); in ep93xx_pata_set_piomode()
[all …]
H A Dpata_amd.c73 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 Dpata_legacy.c243 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()
585 ata_timing_compute(pair, pair->pio_mode, &tp, 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()
[all …]
H A 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()
H A 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()
H A Dpata_sil680.c116 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 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()
H A 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()
H A 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()
H A Dpata_triflex.c128 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 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()
H A 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()
H A Dpata_serverworks.c201 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 Dpata_it8213.c77 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 Dpata_efar.c86 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 Dpata_cmd640.c63 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 Dpata_cs5536.c164 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 Dpata_atiixp.c137 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 Dpata_atp867x.c207 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 Dpata_rdc.c90 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 Dpata_ali.c213 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()

123