Lines Matching refs:hwif

93 	ide_hwif_t *hwif = drive->hwif;
94 struct ide_cmd *cmd = &hwif->cmd;
98 dma_stat = hwif->dma_ops->dma_end(drive);
100 stat = hwif->tp_ops->read_status(hwif);
135 ide_hwif_t *hwif = drive->hwif;
136 struct scatterlist *sg = hwif->sg_table;
144 i = dma_map_sg(hwif->dev, sg, cmd->sg_nents, cmd->sg_dma_direction);
166 ide_hwif_t *hwif = drive->hwif;
168 dma_unmap_sg(hwif->dev, hwif->sg_table, cmd->orig_sg_nents,
185 drive->hwif->dma_ops->dma_host_set(drive, 0);
216 drive->hwif->dma_ops->dma_host_set(drive, 1);
242 ide_hwif_t *hwif = drive->hwif;
243 const struct ide_port_ops *port_ops = hwif->port_ops;
254 mask &= hwif->ultra_mask;
277 mask &= hwif->mwdma_mask;
291 mask &= hwif->swdma_mask;
315 ide_hwif_t *hwif = drive->hwif;
321 if (hwif->host_flags & IDE_HFLAG_NO_ATAPI_DMA)
336 if (hwif->chipset == ide_acorn && mode == 0) {
355 ide_hwif_t *hwif = drive->hwif;
366 if (hwif->host_flags & IDE_HFLAG_TRUST_BIOS_FOR_DMA)
382 ide_hwif_t *hwif = drive->hwif;
388 if (hwif->host_flags & IDE_HFLAG_TRUST_BIOS_FOR_DMA)
450 ide_hwif_t *hwif = drive->hwif;
451 const struct ide_dma_ops *dma_ops = hwif->dma_ops;
452 struct ide_cmd *cmd = &hwif->cmd;
465 hwif->tp_ops->read_status(hwif));
473 hwif->tp_ops->read_status(hwif));
492 if (hwif->rq)
493 hwif->rq->errors = 0;
497 void ide_release_dma_engine(ide_hwif_t *hwif)
499 if (hwif->dmatable_cpu) {
500 int prd_size = hwif->prd_max_nents * hwif->prd_ent_size;
502 dma_free_coherent(hwif->dev, prd_size,
503 hwif->dmatable_cpu, hwif->dmatable_dma);
504 hwif->dmatable_cpu = NULL;
509 int ide_allocate_dma_engine(ide_hwif_t *hwif)
513 if (hwif->prd_max_nents == 0)
514 hwif->prd_max_nents = PRD_ENTRIES;
515 if (hwif->prd_ent_size == 0)
516 hwif->prd_ent_size = PRD_BYTES;
518 prd_size = hwif->prd_max_nents * hwif->prd_ent_size;
520 hwif->dmatable_cpu = dma_alloc_coherent(hwif->dev, prd_size,
521 &hwif->dmatable_dma,
523 if (hwif->dmatable_cpu == NULL) {
525 hwif->name);
535 const struct ide_dma_ops *dma_ops = drive->hwif->dma_ops;