Lines Matching defs:bus
29 * This file contains the interfaces to the bus-specific code
46 /* Bus-specific headers */
53 /* Bus-specific globals */
172 info->domain, info->bus, info->dev, info->func,
230 p->bus.type = BUS_PCI;
231 p->bus.id.pci = d;
259 if ((p->bus.type == BUS_PCI) && (p->bus.id.pci == d)) {
261 p->bus.type = BUS_NONE;
268 * Parse a BUS ID string, and return the PCI bus parameters if it was
269 * in the correct format for a PCI bus id.
273 xf86ParsePciBusString(const char *busID, int *bus, int *device, int *func)
276 * The format is assumed to be "bus[@domain]:device[:func]", where domain,
277 * bus, device and func are decimal integers. domain and func may be
310 *bus = atoi(p);
312 *bus += atoi(d) << 8;
343 * Compare a BUS ID string with a PCI bus id. Return TRUE if they match.
347 xf86ComparePciBusString(const char *busID, int bus, int device, int func)
352 return bus == ibus && device == idevice && func == ifunc;
360 * is PCI and bus, dev and func numbers match.
381 return (p->bus.type == BUS_PCI) ? p->bus.id.pci : NULL;
411 if ((p->bus.type == BUS_PCI) && (p->bus.id.pci == d)) {
487 | pPci->bus),
528 drvp->driverName, pPci->bus, pPci->dev, pPci->func);
539 if (pEnt->bus.type != BUS_PCI)
541 if (pEnt->bus.id.pci == pPci) {
569 int bus, device, func;
571 if (sscanf(argument, "PCI:%d:%d:%d", &bus, &device, &func) == 3) {
572 xf86IsolateDevice.domain = PCI_DOM_FROM_BUS(bus);
573 xf86IsolateDevice.bus = PCI_BUS_NO_DOMAIN(bus);
792 PCI_MAKE_BUS( pPci->domain, pPci->bus ),
813 PCI_MAKE_BUS( pPci->domain, pPci->bus ),
849 driverName, pPci->domain, pPci->bus, pPci->dev,
962 driverName, pPci->bus, pPci->dev, pPci->func);
974 if (pEnt->bus.type != BUS_PCI)
976 if (pEnt->bus.id.pci == pPci) {
1338 (pDev->bus == pVideo->bus) &&
1354 xf86FormatPciBusNumber(pVideo->bus, busnum);