Lines Matching refs:mode
58 static int ata_amd_setmode(device_t dev, int target, int mode);
110 ata_amd_setmode(device_t dev, int target, int mode)
123 mode = min(mode, ctlr->chip->max_dma);
125 if (ata_dma_check_80pin && mode > ATA_UDMA2 &&
128 mode = ATA_UDMA2;
132 if (mode >= ATA_UDMA0) {
133 pci_write_config(parent, reg, modes[mode & ATA_MODE_MASK], 1);
137 piomode = mode;
141 return (mode);