Searched refs:regU (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/ide/
H A Dcmd64x.c151 u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0; cmd64x_set_dma_mode() local
154 pci_read_config_byte(dev, pciU, &regU); cmd64x_set_dma_mode()
155 regU &= ~(unit ? 0xCA : 0x35); cmd64x_set_dma_mode()
159 regU |= unit ? 0x0A : 0x05; cmd64x_set_dma_mode()
162 regU |= unit ? 0x4A : 0x15; cmd64x_set_dma_mode()
165 regU |= unit ? 0x8A : 0x25; cmd64x_set_dma_mode()
168 regU |= unit ? 0x42 : 0x11; cmd64x_set_dma_mode()
171 regU |= unit ? 0x82 : 0x21; cmd64x_set_dma_mode()
174 regU |= unit ? 0xC2 : 0x31; cmd64x_set_dma_mode()
183 pci_write_config_byte(dev, pciU, regU); cmd64x_set_dma_mode()
/linux-4.4.14/drivers/ata/
H A Dpata_cmd64x.c197 u8 regU, regD; cmd64x_set_dmamode() local
204 pci_read_config_byte(pdev, pciU, &regU); cmd64x_set_dmamode()
209 regU &= ~(0x30 << shift); cmd64x_set_dmamode()
211 regU &= ~(0x05 << adev->devno); cmd64x_set_dmamode()
215 regU |= udma_data[adev->dma_mode - XFER_UDMA_0] << shift; cmd64x_set_dmamode()
217 regU |= 1 << adev->devno; /* UDMA on */ cmd64x_set_dmamode()
219 regU |= 4 << adev->devno; cmd64x_set_dmamode()
221 regU &= ~ (1 << adev->devno); /* UDMA off */ cmd64x_set_dmamode()
227 pci_write_config_byte(pdev, pciU, regU); cmd64x_set_dmamode()

Completed in 66 milliseconds