• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-10-stable/sys/ofed/drivers/infiniband/core/

Lines Matching defs:space

153 IOPCIConfigEntry * CLASS::findEntry(IOPCIAddressSpace space)
160 bus = space.s.busNum;
161 dev = space.s.deviceNum;
162 func = space.s.functionNum;
173 if (dev != child->space.s.deviceNum) continue;
174 if (func != child->space.s.functionNum) continue;
482 IOPCIAddressSpace space;
497 bridge->space = hostBridge->getBridgeSpace();
514 space.bits = 0;
515 fRootVendorProduct = configRead32(space, kIOPCIConfigVendorID);
611 regData.physHi = device->space;
632 regData.physHi = device->space;
636 regData.physHi.s.space = kIOPCI32BitMemorySpace;
639 regData.physHi.s.space = kIOPCI32BitMemorySpace;
644 regData.physHi.s.space = kIOPCIIOSpace;
1004 if (child->space.s.deviceNum == deviceNum &&
1005 (functionAll || (child->space.s.functionNum == functionNum)))
1059 if (child->space.s.deviceNum == deviceNum &&
1060 (functionAll || (child->space.s.functionNum == functionNum)))
1394 IOPCIAddressSpace space;
1406 space.bits = 0;
1407 space.s.busNum = busNum;
1470 space.s.deviceNum = scanDevice; // deviceMap[scanDevice];
1471 space.s.functionNum = scanFunction;
1473 bridgeProbeChild(bridge, space, resetMask);
1478 uint32_t flags = configRead32(space, kIOPCIConfigCacheLineSize);
1715 void CLASS::bridgeProbeChild( IOPCIConfigEntry * bridge, IOPCIAddressSpace space, uint32_t resetMask )
1721 vendorProduct = configRead32(space, kIOPCIConfigVendorID);
1726 configWrite32(space, kIOPCIConfigVendorID, 0);
1727 vendorProduct = configRead32(space, kIOPCIConfigVendorID);
1734 if (space.bits == child->space.bits)
1769 vendorProduct = configRead32(space, kIOPCIConfigVendorID);
1777 child->space = space;
1865 return(findPCICapability(device->space, capabilityID, found));
1870 uint32_t CLASS::findPCICapability(IOPCIAddressSpace space,
1884 & (configRead32(space, kIOPCIConfigCommand))))
1889 if (!findPCICapability(space, kIOPCIPCIExpressCapability, &expressCap)) return (0);
1895 data = configRead32(space, offset);
1909 offset = (0xff & configRead32(space, kIOPCIConfigCapabilitiesPtr));
1914 data = configRead32(space, offset);
2131 // If the upper 16 bits for I/O space
2190 if ((0x91821b4b == configRead32(device->space, kIOPCIConfigVendorID))
2263 if ((5 == bridge->space.s.busNum) && (0 == bridge->space.s.deviceNum) && (0 == bridge->space.s.functionNum))
2389 // 4K register space
3535 child->space.s.busNum = bridge->secBusNum;
3548 reg32 |= bridge->space.s.busNum | (bridge->secBusNum << 8) | (bridge->subBusNum << 16);
3835 reg32 = (child->space.s.busNum << 8);
3836 // reg32 |= (child->space.s.deviceNum << 3);
3837 // reg32 |= (child->space.s.functionNum << 0);
3867 uint32_t CLASS::configRead32( IOPCIAddressSpace space, uint32_t offset )
3869 space.es.registerNumExtended = (offset >> 8);
3870 return (fHostBridge->configRead32(space, offset));
3873 void CLASS::configWrite32( IOPCIAddressSpace space, uint32_t offset, uint32_t data )
3875 space.es.registerNumExtended = (offset >> 8);
3876 fHostBridge->configWrite32(space, offset, data);
3929 IOPCIAddressSpace space = device->space;
3930 space.es.registerNumExtended = (offset >> 8);
3931 return (fHostBridge->configRead32(space, offset));
3944 IOPCIAddressSpace space = device->space;
3945 space.es.registerNumExtended = (offset >> 8);
3946 fHostBridge->configWrite32(space, offset, data);
3960 IOPCIAddressSpace space = device->space;
3961 space.es.registerNumExtended = (offset >> 8);
3962 return (fHostBridge->configRead16(space, offset));
3975 IOPCIAddressSpace space = device->space;
3976 space.es.registerNumExtended = (offset >> 8);
3977 fHostBridge->configWrite16(space, offset, data);
3991 IOPCIAddressSpace space = device->space;
3992 space.es.registerNumExtended = (offset >> 8);
3993 return (fHostBridge->configRead8(space, offset));
4006 IOPCIAddressSpace space = device->space;
4007 space.es.registerNumExtended = (offset >> 8);
4008 fHostBridge->configWrite8(space, offset, data);