• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

Lines Matching refs:hwif

92 	ide_hwif_t *hwif = drive->hwif;
93 struct ide_cmd *cmd = &hwif->cmd;
97 dma_stat = hwif->dma_ops->dma_end(drive);
99 stat = hwif->tp_ops->read_status(hwif);
134 ide_hwif_t *hwif = drive->hwif;
135 struct scatterlist *sg = hwif->sg_table;
143 i = dma_map_sg(hwif->dev, sg, cmd->sg_nents, cmd->sg_dma_direction);
165 ide_hwif_t *hwif = drive->hwif;
167 dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents,
184 drive->hwif->dma_ops->dma_host_set(drive, 0);
215 drive->hwif->dma_ops->dma_host_set(drive, 1);
241 ide_hwif_t *hwif = drive->hwif;
242 const struct ide_port_ops *port_ops = hwif->port_ops;
253 mask &= hwif->ultra_mask;
276 mask &= hwif->mwdma_mask;
290 mask &= hwif->swdma_mask;
314 ide_hwif_t *hwif = drive->hwif;
320 if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA)
335 if (hwif->chipset == ide_acorn && mode == 0) {
354 ide_hwif_t *hwif = drive->hwif;
365 if (hwif->host_flags & IDE_HFLAG_TRUST_BIOS_FOR_DMA)
381 ide_hwif_t *hwif = drive->hwif;
387 if (hwif->host_flags & IDE_HFLAG_TRUST_BIOS_FOR_DMA)
449 ide_hwif_t *hwif = drive->hwif;
450 const struct ide_dma_ops *dma_ops = hwif->dma_ops;
451 struct ide_cmd *cmd = &hwif->cmd;
465 hwif->tp_ops->read_status(hwif));
473 hwif->tp_ops->read_status(hwif));
492 rq = hwif->rq;
494 hwif->rq = NULL;
501 void ide_release_dma_engine(ide_hwif_t *hwif)
503 if (hwif->dmatable_cpu) {
504 int prd_size = hwif->prd_max_nents * hwif->prd_ent_size;
506 dma_free_coherent(hwif->dev, prd_size,
507 hwif->dmatable_cpu, hwif->dmatable_dma);
508 hwif->dmatable_cpu = NULL;
513 int ide_allocate_dma_engine(ide_hwif_t *hwif)
517 if (hwif->prd_max_nents == 0)
518 hwif->prd_max_nents = PRD_ENTRIES;
519 if (hwif->prd_ent_size == 0)
520 hwif->prd_ent_size = PRD_BYTES;
522 prd_size = hwif->prd_max_nents * hwif->prd_ent_size;
524 hwif->dmatable_cpu = dma_alloc_coherent(hwif->dev, prd_size,
525 &hwif->dmatable_dma,
527 if (hwif->dmatable_cpu == NULL) {
529 hwif->name);
539 const struct ide_dma_ops *dma_ops = drive->hwif->dma_ops;