Lines Matching refs:where
27 #define CONFIG_CMD(dev, where) (0x80000000 | (dev->bus->number << 16) | (dev->devfn << 8) | (where & ~3))
29 static int pci_conf1_read_config_byte(struct pci_dev *dev, int where, u8 *value)
31 outl(CONFIG_CMD(dev,where), 0xCF8);
32 *value = inb(0xCFC + (where&3));
36 static int pci_conf1_read_config_word(struct pci_dev *dev, int where, u16 *value)
38 outl(CONFIG_CMD(dev,where), 0xCF8);
39 *value = inw(0xCFC + (where&2));
43 static int pci_conf1_read_config_dword(struct pci_dev *dev, int where, u32 *value)
45 outl(CONFIG_CMD(dev,where), 0xCF8);
50 static int pci_conf1_write_config_byte(struct pci_dev *dev, int where, u8 value)
52 outl(CONFIG_CMD(dev,where), 0xCF8);
53 outb(value, 0xCFC + (where&3));
57 static int pci_conf1_write_config_word(struct pci_dev *dev, int where, u16 value)
59 outl(CONFIG_CMD(dev,where), 0xCF8);
60 outw(value, 0xCFC + (where&2));
64 static int pci_conf1_write_config_dword(struct pci_dev *dev, int where, u32 value)
66 outl(CONFIG_CMD(dev,where), 0xCF8);