Home | History | Annotate | Download | only in linux

Lines Matching defs:devfn

35 #define PCI_SLOT(devfn)		(((devfn) >> 3) & 0x1f)
36 #define PCI_FUNC(devfn) ((devfn) & 0x07)
120 unsigned int devfn; /* encoded device & function index */
269 int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val);
270 int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
274 int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn,
276 int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn,
427 int pci_scan_slot(struct pci_bus *bus, int devfn);
428 struct pci_dev * pci_scan_single_device(struct pci_bus *bus, int devfn);
445 struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
455 struct pci_dev *pci_get_slot (struct pci_bus *bus, unsigned int devfn);
459 int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *val);
460 int pci_bus_read_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 *val);
461 int pci_bus_read_config_dword (struct pci_bus *bus, unsigned int devfn, int where, u32 *val);
462 int pci_bus_write_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 val);
463 int pci_bus_write_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 val);
464 int pci_bus_write_config_dword (struct pci_bus *bus, unsigned int devfn, int where, u32 val);
468 return pci_bus_read_config_byte (dev->bus, dev->devfn, where, val);
472 return pci_bus_read_config_word (dev->bus, dev->devfn, where, val);
476 return pci_bus_read_config_dword (dev->bus, dev->devfn, where, val);
480 return pci_bus_write_config_byte (dev->bus, dev->devfn, where, val);
484 return pci_bus_write_config_word (dev->bus, dev->devfn, where, val);
488 return pci_bus_write_config_dword (dev->bus, dev->devfn, where, val);
644 static inline struct pci_dev *pci_find_slot(unsigned int bus, unsigned int devfn)