Lines Matching refs:where
270 #define PCI_CFG_SET(dev,where) \ argument
272 (where)), GT_PCI0_CFGADDR_OFS)
275 int where, in qube_pci_read_config_dword() argument
278 if (where & 0x3) in qube_pci_read_config_dword()
284 PCI_CFG_SET(dev, where); in qube_pci_read_config_dword()
290 int where, in qube_pci_read_config_word() argument
293 if (where & 0x1) in qube_pci_read_config_word()
299 PCI_CFG_SET(dev, (where & ~0x3)); in qube_pci_read_config_word()
300 *val = GALILEO_INL(GT_PCI0_CFGDATA_OFS) >> ((where & 3) * 8); in qube_pci_read_config_word()
305 int where, in qube_pci_read_config_byte() argument
312 PCI_CFG_SET(dev, (where & ~0x3)); in qube_pci_read_config_byte()
313 *val = GALILEO_INL(GT_PCI0_CFGDATA_OFS) >> ((where & 3) * 8); in qube_pci_read_config_byte()
318 int where, in qube_pci_write_config_dword() argument
321 if(where & 0x3) in qube_pci_write_config_dword()
325 PCI_CFG_SET(dev, where); in qube_pci_write_config_dword()
332 int where, in qube_pci_write_config_word() argument
337 if (where & 0x1) in qube_pci_write_config_word()
341 PCI_CFG_SET(dev, (where & ~0x3)); in qube_pci_write_config_word()
343 tmp &= ~(0xffff << ((where & 0x3) * 8)); in qube_pci_write_config_word()
344 tmp |= (val << ((where & 0x3) * 8)); in qube_pci_write_config_word()
351 int where, in qube_pci_write_config_byte() argument
358 PCI_CFG_SET(dev, (where & ~0x3)); in qube_pci_write_config_byte()
360 tmp &= ~(0xff << ((where & 0x3) * 8)); in qube_pci_write_config_byte()
361 tmp |= (val << ((where & 0x3) * 8)); in qube_pci_write_config_byte()