/linux-2.4.37.9/drivers/ide/ |
D | ide-dma.c | 251 static int ide_build_sglist (ide_hwif_t *hwif, struct request *rq, int ddir) in ide_build_sglist() argument 254 struct scatterlist *sg = hwif->sg_table; in ide_build_sglist() 258 if (hwif->sg_dma_active) in ide_build_sglist() 303 hwif->sg_dma_direction = ddir; in ide_build_sglist() 304 return pci_map_sg(hwif->pci_dev, sg, nents, ddir); in ide_build_sglist() 318 static int ide_raw_build_sglist (ide_hwif_t *hwif, struct request *rq) in ide_raw_build_sglist() argument 320 struct scatterlist *sg = hwif->sg_table; in ide_raw_build_sglist() 327 hwif->sg_dma_direction = PCI_DMA_TODEVICE; in ide_raw_build_sglist() 329 hwif->sg_dma_direction = PCI_DMA_FROMDEVICE; in ide_raw_build_sglist() 357 return pci_map_sg(hwif->pci_dev, sg, nents, hwif->sg_dma_direction); in ide_raw_build_sglist() [all …]
|
D | ide-probe.c | 129 ide_hwif_t *hwif = HWIF(drive); in do_identify() local 136 hwif->ata_input_data(drive, id, SECTOR_WORDS); in do_identify() 188 if (hwif->channel == 1 && hwif->chipset == ide_pdc4030) { in do_identify() 254 ide_drive_t *mate = &hwif->drives[1^drive->select.b.unit]; in do_identify() 290 ide_hwif_t *hwif = HWIF(drive); in actual_try_to_identify() local 299 a = hwif->INB(IDE_ALTSTATUS_REG); in actual_try_to_identify() 300 s = hwif->INB(IDE_STATUS_REG); in actual_try_to_identify() 320 hwif->OUTB(0, IDE_FEATURE_REG); in actual_try_to_identify() 322 if (hwif->identify != NULL) { in actual_try_to_identify() 323 if (hwif->identify(drive)) in actual_try_to_identify() [all …]
|
D | setup-pci.c | 53 ide_hwif_t *hwif; in ide_match_hwif() local 60 hwif = &ide_hwifs[h]; in ide_match_hwif() 61 if (hwif->io_ports[IDE_DATA_OFFSET] == io_base) { in ide_match_hwif() 62 if (hwif->chipset == ide_generic) in ide_match_hwif() 63 return hwif; /* a perfect match */ in ide_match_hwif() 72 hwif = &ide_hwifs[h]; in ide_match_hwif() 73 if (hwif->io_ports[IDE_DATA_OFFSET] == io_base) { in ide_match_hwif() 74 if (hwif->chipset == ide_unknown) in ide_match_hwif() 75 return hwif; /* match */ in ide_match_hwif() 77 name, io_base, hwif->name); in ide_match_hwif() [all …]
|
D | ide.c | 222 ide_hwif_t *hwif = &ide_hwifs[index]; in init_hwif_data() local 225 memset(hwif, 0, sizeof(ide_hwif_t)); in init_hwif_data() 229 hwif->index = index; in init_hwif_data() 230 ide_init_hwif_ports(&hw, ide_default_io_base(index), 0, &hwif->irq); in init_hwif_data() 231 memcpy(&hwif->hw, &hw, sizeof(hw)); in init_hwif_data() 232 memcpy(hwif->io_ports, hw.io_ports, sizeof(hw.io_ports)); in init_hwif_data() 233 hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET]; in init_hwif_data() 235 if (hwif->io_ports[IDE_DATA_OFFSET] == HD_DATA) in init_hwif_data() 236 hwif->noprobe = 1; /* may be overridden by ide_setup() */ in init_hwif_data() 238 hwif->major = ide_hwif_to_major[index]; in init_hwif_data() [all …]
|
D | ide-io.c | 83 HWGROUP(drive)->hwif->ide_dma_on(drive); in ide_end_request() 116 ide_hwif_t *hwif = HWIF(drive); in ide_end_drive_cmd() local 134 args[2] = hwif->INB(IDE_NSECTOR_REG); in ide_end_drive_cmd() 147 args[2] = hwif->INB(IDE_NSECTOR_REG); in ide_end_drive_cmd() 148 args[3] = hwif->INB(IDE_SECTOR_REG); in ide_end_drive_cmd() 149 args[4] = hwif->INB(IDE_LCYL_REG); in ide_end_drive_cmd() 150 args[5] = hwif->INB(IDE_HCYL_REG); in ide_end_drive_cmd() 151 args[6] = hwif->INB(IDE_SELECT_REG); in ide_end_drive_cmd() 163 u16 data = hwif->INW(IDE_DATA_REG); in ide_end_drive_cmd() 168 args->tfRegister[IDE_NSECTOR_OFFSET] = hwif->INB(IDE_NSECTOR_REG); in ide_end_drive_cmd() [all …]
|
/linux-2.4.37.9/drivers/ide/ppc/ |
D | swarm.c | 42 ide_hwif_t *hwif; in swarm_ide_probe() local 57 hwif = &ide_hwifs[i]; in swarm_ide_probe() 58 hwif->hw.io_ports[IDE_DATA_OFFSET] = SWARM_IDE_REG(0x1f0); in swarm_ide_probe() 59 hwif->hw.io_ports[IDE_ERROR_OFFSET] = SWARM_IDE_REG(0x1f1); in swarm_ide_probe() 60 hwif->hw.io_ports[IDE_NSECTOR_OFFSET] = SWARM_IDE_REG(0x1f2); in swarm_ide_probe() 61 hwif->hw.io_ports[IDE_SECTOR_OFFSET] = SWARM_IDE_REG(0x1f3); in swarm_ide_probe() 62 hwif->hw.io_ports[IDE_LCYL_OFFSET] = SWARM_IDE_REG(0x1f4); in swarm_ide_probe() 63 hwif->hw.io_ports[IDE_HCYL_OFFSET] = SWARM_IDE_REG(0x1f5); in swarm_ide_probe() 64 hwif->hw.io_ports[IDE_SELECT_OFFSET] = SWARM_IDE_REG(0x1f6); in swarm_ide_probe() 65 hwif->hw.io_ports[IDE_STATUS_OFFSET] = SWARM_IDE_REG(0x1f7); in swarm_ide_probe() [all …]
|
/linux-2.4.37.9/drivers/ide/pci/ |
D | trm290.c | 147 ide_hwif_t *hwif = HWIF(drive); in trm290_prepare_drive() local 156 if (reg != hwif->select_data) { in trm290_prepare_drive() 157 hwif->select_data = reg; in trm290_prepare_drive() 159 hwif->OUTB(0x51|(hwif->channel<<3), hwif->config_data+1); in trm290_prepare_drive() 160 hwif->OUTW(reg & 0xff, hwif->config_data); in trm290_prepare_drive() 165 reg = hwif->INW(hwif->config_data + 3); in trm290_prepare_drive() 167 reg &= ~(1 << hwif->channel); in trm290_prepare_drive() 168 hwif->OUTW(reg, hwif->config_data+3); in trm290_prepare_drive() 182 ide_hwif_t *hwif = HWIF(drive); in trm290_ide_dma_write() local 202 hwif->OUTL(hwif->dmatable_dma|reading|writing, hwif->dma_command); in trm290_ide_dma_write() [all …]
|
D | siimage.c | 75 static inline int is_sata(ide_hwif_t *hwif) in is_sata() argument 77 return pdev_is_sata(hwif->pci_dev); in is_sata() 91 static unsigned long siimage_selreg(ide_hwif_t *hwif, int r) in siimage_selreg() argument 93 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_selreg() 95 if(hwif->mmio) in siimage_selreg() 96 base += (hwif->channel << 6); in siimage_selreg() 98 base += (hwif->channel << 4); in siimage_selreg() 114 ide_hwif_t *hwif = HWIF(drive); in siimage_seldev() local 115 unsigned long base = (unsigned long)hwif->hwif_data; in siimage_seldev() 117 if(hwif->mmio) in siimage_seldev() [all …]
|
D | sgiioc4.c | 70 ide_hwif_t *hwif = NULL; in sgiioc4_ide_setup_pci_device() local 80 hwif = &ide_hwifs[h]; in sgiioc4_ide_setup_pci_device() 82 if (hwif->chipset == ide_unknown) in sgiioc4_ide_setup_pci_device() 86 if (hwif->io_ports[IDE_DATA_OFFSET] != base) { in sgiioc4_ide_setup_pci_device() 88 sgiioc4_init_hwif_ports(&hwif->hw, base, ctl, irqport); in sgiioc4_ide_setup_pci_device() 89 memcpy(hwif->io_ports, hwif->hw.io_ports, sizeof (hwif->io_ports)); in sgiioc4_ide_setup_pci_device() 90 hwif->noprobe = !hwif->io_ports[IDE_DATA_OFFSET]; in sgiioc4_ide_setup_pci_device() 93 hwif->chipset = ide_pci; in sgiioc4_ide_setup_pci_device() 94 hwif->pci_dev = dev; in sgiioc4_ide_setup_pci_device() 95 hwif->channel = 0; /* Single Channel chip */ in sgiioc4_ide_setup_pci_device() [all …]
|
D | ns87415.c | 39 ide_hwif_t *hwif = HWIF(drive); in ns87415_prepare_drive() local 40 unsigned int bit, other, new, *old = (unsigned int *) hwif->select_data; in ns87415_prepare_drive() 41 struct pci_dev *dev = hwif->pci_dev; in ns87415_prepare_drive() 48 bit = 1 << (8 + hwif->channel); in ns87415_prepare_drive() 52 bit = 1 << (20 + drive->select.b.unit + (hwif->channel << 1)); in ns87415_prepare_drive() 53 other = 1 << (20 + (1 - drive->select.b.unit) + (hwif->channel << 1)); in ns87415_prepare_drive() 88 ide_hwif_t *hwif = HWIF(drive); in ns87415_ide_dma_end() local 92 dma_stat = hwif->INB(hwif->dma_status); in ns87415_ide_dma_end() 94 dma_cmd = hwif->INB(hwif->dma_command); in ns87415_ide_dma_end() 96 hwif->OUTB(dma_cmd & ~1, hwif->dma_command); in ns87415_ide_dma_end() [all …]
|
D | sl82c105.c | 84 ide_hwif_t *hwif = HWIF(drive); in config_for_pio() local 85 struct pci_dev *dev = hwif->pci_dev; in config_for_pio() 93 reg = (hwif->channel ? 0x4c : 0x44) + (drive->select.b.unit ? 4 : 0); in config_for_pio() 125 ide_hwif_t *hwif = HWIF(drive); in config_for_dma() local 126 struct pci_dev *dev = hwif->pci_dev; in config_for_dma() 131 reg = (hwif->channel ? 0x4c : 0x44) + (drive->select.b.unit ? 4 : 0); in config_for_dma() 148 ide_hwif_t *hwif = HWIF(drive); in sl82c105_check_drive() local 162 if (hwif->ide_dma_bad_drive(drive)) in sl82c105_check_drive() 166 if ((id->dma_mword & hwif->mwdma_mask) || in sl82c105_check_drive() 167 (id->dma_1word & hwif->swdma_mask)) in sl82c105_check_drive() [all …]
|
D | pdc202xx_old.c | 237 ide_hwif_t *hwif = HWIF(drive); in pdc202xx_tune_chipset() local 238 struct pci_dev *dev = hwif->pci_dev; in pdc202xx_tune_chipset() 355 static u8 pdc202xx_old_cable_detect (ide_hwif_t *hwif) in pdc202xx_old_cable_detect() argument 357 u16 CIS = 0, mask = (hwif->channel) ? (1<<11) : (1<<10); in pdc202xx_old_cable_detect() 358 pci_read_config_word(hwif->pci_dev, 0x50, &CIS); in pdc202xx_old_cable_detect() 365 ide_hwif_t *hwif = HWIF(drive); in config_chipset_for_dma() local 366 struct pci_dev *dev = hwif->pci_dev; in config_chipset_for_dma() 368 u8 mask = hwif->channel ? 0x08 : 0x02; in config_chipset_for_dma() 381 cable = pdc202xx_old_cable_detect(hwif); in config_chipset_for_dma() 384 hwif->name, hwif->udma_four ? "80" : "40", in config_chipset_for_dma() [all …]
|
D | opti621.c | 152 ide_hwif_t *hwif = HWIF(drive); in compute_pios() local 156 drive = &hwif->drives[d]; in compute_pios() 182 static void write_reg(ide_hwif_t *hwif, u8 value, int reg) in write_reg() argument 189 hwif->INW(reg_base+1); in write_reg() 190 hwif->INW(reg_base+1); in write_reg() 191 hwif->OUTB(3, reg_base+2); in write_reg() 192 hwif->OUTB(value, reg_base+reg); in write_reg() 193 hwif->OUTB(0x83, reg_base+2); in write_reg() 196 static u8 read_reg(ide_hwif_t *hwif, int reg) in read_reg() argument 205 hwif->INW(reg_base+1); in read_reg() [all …]
|
D | sc1200.c | 152 ide_hwif_t *hwif = HWIF(drive); in sc1200_autoselect_dma_mode() local 154 ide_drive_t *mate = &hwif->drives[unit^1]; in sc1200_autoselect_dma_mode() 168 if ((mateid->capability & 1) && !hwif->ide_dma_bad_drive(mate)) { in sc1200_autoselect_dma_mode() 181 if ((id->capability & 1) && hwif->autodma && !hwif->ide_dma_bad_drive(drive)) { in sc1200_autoselect_dma_mode() 208 ide_hwif_t *hwif = HWIF(drive); in sc1200_config_dma2() local 212 unsigned int basereg = hwif->channel ? 0x50 : 0x40; in sc1200_config_dma2() 217 hwif->ide_dma_off_quietly(drive); /* turn off DMA while we fiddle */ in sc1200_config_dma2() 218 outb(inb(hwif->dma_base+2)&~(unit?0x40:0x20), hwif->dma_base+2); /* clear DMA_capable bit */ in sc1200_config_dma2() 288 pci_read_config_dword(hwif->pci_dev, basereg+4, ®); in sc1200_config_dma2() 290 pci_write_config_dword(hwif->pci_dev, basereg+4, timings); in sc1200_config_dma2() [all …]
|
D | cs5530.c | 115 #define CS5530_BASEREG(hwif) (((hwif)->dma_base & ~0xf) + ((hwif)->channel ? 0x30 : 0x20)) argument 129 ide_hwif_t *hwif = HWIF(drive); in cs5530_tuneproc() local 131 unsigned long basereg = CS5530_BASEREG(hwif); in cs5530_tuneproc() 136 format = (hwif->INL(basereg+4) >> 31) & 1; in cs5530_tuneproc() 137 hwif->OUTL(cs5530_pio_timings[format][pio], in cs5530_tuneproc() 154 ide_hwif_t *hwif = HWIF(drive); in cs5530_config_dma() local 156 ide_drive_t *mate = &hwif->drives[unit^1]; in cs5530_config_dma() 164 hwif->ide_dma_off_quietly(drive); in cs5530_config_dma() 166 hwif->ide_dma_host_off(drive); in cs5530_config_dma() 184 !hwif->ide_dma_bad_drive(mate)) { in cs5530_config_dma() [all …]
|
D | it8172.c | 58 ide_hwif_t *hwif = HWIF(drive); in it8172_tune_drive() local 59 struct pci_dev *dev = hwif->pci_dev; in it8172_tune_drive() 60 int is_slave = (hwif->drives[1] == drive); in it8172_tune_drive() 132 ide_hwif_t *hwif = HWIF(drive); in it8172_tune_chipset() local 133 struct pci_dev *dev = hwif->pci_dev; in it8172_tune_chipset() 199 ide_hwif_t *hwif = HWIF(drive); in it8172_config_drive_xfer_rate() local 206 if (hwif->ide_dma_bad_drive(drive)) in it8172_config_drive_xfer_rate() 209 if (id->dma_ultra & hwif->ultra_mask) { in it8172_config_drive_xfer_rate() 217 if ((id->dma_mword & hwif->mwdma_mask) || in it8172_config_drive_xfer_rate() 218 (id->dma_1word & hwif->swdma_mask)) { in it8172_config_drive_xfer_rate() [all …]
|
D | pdc202xx_new.c | 141 ide_hwif_t *hwif = HWIF(drive); in pdcnew_tune_chipset() local 142 struct pci_dev *dev = hwif->pci_dev; in pdcnew_tune_chipset() 243 ide_hwif_t *hwif = HWIF(drive); in pdcnew_new_tune_chipset() local 244 unsigned long indexreg = hwif->dma_vendor1; in pdcnew_new_tune_chipset() 245 unsigned long datareg = hwif->dma_vendor3; in pdcnew_new_tune_chipset() 251 hwif->OUTB((thold + adj), indexreg); in pdcnew_new_tune_chipset() 252 hwif->OUTB((hwif->INB(datareg) & 0x7f), datareg); in pdcnew_new_tune_chipset() 302 static u8 pdcnew_new_cable_detect (ide_hwif_t *hwif) in pdcnew_new_cable_detect() argument 304 hwif->OUTB(0x0b, hwif->dma_vendor1); in pdcnew_new_cable_detect() 305 return ((u8)((hwif->INB(hwif->dma_vendor3) & 0x04))); in pdcnew_new_cable_detect() [all …]
|
D | piix.c | 377 ide_hwif_t *hwif = HWIF(drive); in piix_tune_drive() local 378 struct pci_dev *dev = hwif->pci_dev; in piix_tune_drive() 379 int is_slave = (&hwif->drives[1] == drive); in piix_tune_drive() 380 int master_port = hwif->channel ? 0x42 : 0x40; in piix_tune_drive() 401 slave_data = slave_data & (hwif->channel ? 0x0f : 0xf0); in piix_tune_drive() 402 slave_data = slave_data | (((timings[pio][0] << 2) | timings[pio][1]) << (hwif->channel ? 4 : 0)); in piix_tune_drive() 428 ide_hwif_t *hwif = HWIF(drive); in piix_tune_chipset() local 429 struct pci_dev *dev = hwif->pci_dev; in piix_tune_chipset() 430 u8 maslave = hwif->channel ? 0x42 : 0x40; in piix_tune_chipset() 509 static int piix_faulty_dma0(ide_hwif_t *hwif) in piix_faulty_dma0() argument [all …]
|
D | slc90e66.c | 164 ide_hwif_t *hwif = HWIF(drive); in slc90e66_tune_drive() local 165 struct pci_dev *dev = hwif->pci_dev; in slc90e66_tune_drive() 166 int is_slave = (&hwif->drives[1] == drive); in slc90e66_tune_drive() 167 int master_port = hwif->channel ? 0x42 : 0x40; in slc90e66_tune_drive() 188 slave_data = slave_data & (hwif->channel ? 0x0f : 0xf0); in slc90e66_tune_drive() 189 slave_data = slave_data | (((timings[pio][0] << 2) | timings[pio][1]) << (hwif->channel ? 4 : 0)); in slc90e66_tune_drive() 205 ide_hwif_t *hwif = HWIF(drive); in slc90e66_tune_chipset() local 206 struct pci_dev *dev = hwif->pci_dev; in slc90e66_tune_chipset() 207 u8 maslave = hwif->channel ? 0x42 : 0x40; in slc90e66_tune_chipset() 272 ide_hwif_t *hwif = HWIF(drive); in slc90e66_config_drive_xfer_rate() local [all …]
|
D | cmd64x.c | 386 ide_hwif_t *hwif = HWIF(drive); in cmd64x_tune_chipset() local 387 struct pci_dev *dev = hwif->pci_dev; in cmd64x_tune_chipset() 390 u8 regU = 0, pciU = (hwif->channel) ? UDIDETCR1 : UDIDETCR0; in cmd64x_tune_chipset() 391 u8 regD = 0, pciD = (hwif->channel) ? BMIDESR1 : BMIDESR0; in cmd64x_tune_chipset() 458 ide_hwif_t *hwif = HWIF(drive); in cmd64x_config_drive_for_dma() local 463 if (hwif->ide_dma_bad_drive(drive)) in cmd64x_config_drive_for_dma() 466 if (id->dma_ultra & hwif->ultra_mask) { in cmd64x_config_drive_for_dma() 474 if ((id->dma_mword & hwif->mwdma_mask) || in cmd64x_config_drive_for_dma() 475 (id->dma_1word & hwif->swdma_mask)) { in cmd64x_config_drive_for_dma() 480 } else if (hwif->ide_dma_good_drive(drive) && in cmd64x_config_drive_for_dma() [all …]
|
D | aec62xx.c | 205 ide_hwif_t *hwif = HWIF(drive); in aec62xx_ratemask() local 208 switch(hwif->pci_dev->device) { in aec62xx_ratemask() 212 mode = (hwif->INB(hwif->dma_master) & 0x10) ? 4 : 3; in aec62xx_ratemask() 214 mode = (hwif->INB(((hwif->channel) ? in aec62xx_ratemask() 215 hwif->mate->dma_status : in aec62xx_ratemask() 216 hwif->dma_status)) & 0x10) ? 4 : 3; in aec62xx_ratemask() 235 ide_hwif_t *hwif = HWIF(drive); in aec6210_tune_chipset() local 236 struct pci_dev *dev = hwif->pci_dev; in aec6210_tune_chipset() 263 ide_hwif_t *hwif = HWIF(drive); in aec6260_tune_chipset() local 264 struct pci_dev *dev = hwif->pci_dev; in aec6260_tune_chipset() [all …]
|
D | alim15x3.c | 297 ide_hwif_t *hwif = HWIF(drive); in ali15x3_tune_drive() local 298 struct pci_dev *dev = hwif->pci_dev; in ali15x3_tune_drive() 303 int port = hwif->channel ? 0x5c : 0x58; in ali15x3_tune_drive() 304 int portFIFO = hwif->channel ? 0x55 : 0x54; in ali15x3_tune_drive() 444 ide_hwif_t *hwif = HWIF(drive); local 445 struct pci_dev *dev = hwif->pci_dev; 450 int m5229_udma = (hwif->channel) ? 0x57 : 0x56; 520 ide_hwif_t *hwif = HWIF(drive); local 524 return hwif->ide_dma_off_quietly(drive); 530 hwif->tuneproc(drive, 255); [all …]
|
/linux-2.4.37.9/drivers/ide/legacy/ |
D | sibyte.c | 32 extern void sibyte_set_ideops(ide_hwif_t *hwif); 37 ide_hwif_t *hwif = NULL; in sibyte_ide_probe() local 48 if (!ide_hwifs[i].io_ports[IDE_DATA_OFFSET] && (hwif == NULL)) { in sibyte_ide_probe() 49 hwif = &ide_hwifs[i]; in sibyte_ide_probe() 52 if (hwif == NULL) { in sibyte_ide_probe() 62 hwif->hw.io_ports[IDE_DATA_OFFSET] = SIBYTE_IDE_REG(0x1f0); in sibyte_ide_probe() 63 hwif->hw.io_ports[IDE_ERROR_OFFSET] = SIBYTE_IDE_REG(0x1f1); in sibyte_ide_probe() 64 hwif->hw.io_ports[IDE_NSECTOR_OFFSET] = SIBYTE_IDE_REG(0x1f2); in sibyte_ide_probe() 65 hwif->hw.io_ports[IDE_SECTOR_OFFSET] = SIBYTE_IDE_REG(0x1f3); in sibyte_ide_probe() 66 hwif->hw.io_ports[IDE_LCYL_OFFSET] = SIBYTE_IDE_REG(0x1f4); in sibyte_ide_probe() [all …]
|
D | pdc4030.c | 154 int __init setup_pdc4030(ide_hwif_t *hwif) in setup_pdc4030() argument 162 if (!hwif) return 0; in setup_pdc4030() 164 drive = &hwif->drives[0]; in setup_pdc4030() 165 hwif2 = &ide_hwifs[hwif->index+1]; in setup_pdc4030() 166 if (hwif->chipset == ide_pdc4030) /* we've already been found ! */ in setup_pdc4030() 169 if (hwif->INB(IDE_NSECTOR_REG) == 0xFF || in setup_pdc4030() 170 hwif->INB(IDE_SECTOR_REG) == 0xFF) { in setup_pdc4030() 174 hwif->OUTB(0x08, IDE_CONTROL_REG); in setup_pdc4030() 180 "%s: Failed Promise read config!\n",hwif->name); in setup_pdc4030() 183 hwif->ata_input_data(drive, &ident, SECTOR_WORDS); in setup_pdc4030() [all …]
|
/linux-2.4.37.9/drivers/ide/arm/ |
D | icside.c | 237 static int ide_build_sglist(ide_hwif_t *hwif, struct request *rq) in ide_build_sglist() argument 240 struct scatterlist *sg = hwif->sg_table; in ide_build_sglist() 244 hwif->sg_dma_direction = PCI_DMA_FROMDEVICE; in ide_build_sglist() 246 hwif->sg_dma_direction = PCI_DMA_TODEVICE; in ide_build_sglist() 263 return pci_map_sg(NULL, sg, nents, hwif->sg_dma_direction); in ide_build_sglist() 446 ide_hwif_t *hwif = HWIF(drive); in icside_dma_check() local 447 int autodma = hwif->autodma; in icside_dma_check() 451 return hwif->ide_dma_off_quietly(drive); in icside_dma_check() 457 return hwif->ide_dma_off(drive); in icside_dma_check() 484 return hwif->ide_dma_on(drive); in icside_dma_check() [all …]
|