Lines Matching refs:base
675 static unsigned int ide_get_mode_mask(ide_drive_t *drive, u8 base)
681 switch(base) {
917 static int ide_mapped_mmio_dma(ide_hwif_t *hwif, unsigned long base, unsigned int ports)
921 hwif->dma_base = base;
924 hwif->dma_master = (hwif->channel) ? hwif->mate->dma_base : base;
926 hwif->dma_master = base;
930 static int ide_iomio_dma(ide_hwif_t *hwif, unsigned long base, unsigned int ports)
933 hwif->name, base, base + ports - 1);
935 if (!request_region(base, ports, hwif->name)) {
940 hwif->dma_base = base;
943 hwif->extra_base = base + (hwif->channel ? 8 : 16);
949 release_region(base, ports);
957 hwif->dma_master = (hwif->channel) ? hwif->mate->dma_base:base;
959 hwif->dma_master = base;
963 static int ide_dma_iobase(ide_hwif_t *hwif, unsigned long base, unsigned int ports)
966 return ide_mapped_mmio_dma(hwif, base,ports);
968 return ide_iomio_dma(hwif, base, ports);