Lines Matching refs:dataP

1085 		ioGMDData* dataP = getDataP(_memoryEntries);  in memoryReferenceMap()  local
1086 ioPLBlock const* ioplList = getIOPLList(dataP); in memoryReferenceMap()
1087 pageList = getPageList(dataP); in memoryReferenceMap()
1090 UInt numIOPLs = getNumIOPL(_memoryEntries, dataP); in memoryReferenceMap()
1396 ioGMDData* dataP = getDataP(_memoryEntries); in memoryReferenceMapNew() local
1397 ioPLBlock const* ioplList = getIOPLList(dataP); in memoryReferenceMapNew()
1398 pageList = getPageList(dataP); in memoryReferenceMapNew()
1401 UInt numIOPLs = getNumIOPL(_memoryEntries, dataP); in memoryReferenceMapNew()
2000 ioGMDData *dataP = getDataP(orig->_memoryEntries); in initWithOptions() local
2004 if (!(orig->_flags & kIOMemoryPersistent) || !dataP) { in initWithOptions()
2016 mapper = dataP->fMapper; in initWithOptions()
2130 ioGMDData *dataP; in initWithOptions() local
2136 dataP = getDataP(_memoryEntries); in initWithOptions()
2137 dataP->fPageCnt = 0; in initWithOptions()
2140 dataP->fDMAAccess = kIODMAMapReadAccess; in initWithOptions()
2143 dataP->fDMAAccess = kIODMAMapWriteAccess; in initWithOptions()
2308 ioGMDData *dataP; in initWithOptions() local
2319 dataP = getDataP(_memoryEntries); in initWithOptions()
2320 dataP->fPageCnt = _pages; in initWithOptions()
2364 ioGMDData * dataP; in free() local
2365 if (_memoryEntries && (dataP = getDataP(_memoryEntries)) && dataP->fMappedBaseValid) { in free()
2366 dmaUnmap(dataP->fMapper, NULL, 0, dataP->fMappedBase, dataP->fMappedLength); in free()
2367 dataP->fMappedBaseValid = dataP->fMappedBase = 0; in free()
2691 ioGMDData *dataP; in getPreparationID() local
2703 if (!_memoryEntries || !(dataP = getDataP(_memoryEntries))) { in getPreparationID()
2707 if (kIOPreparationIDUnprepared == dataP->fPreparationID) { in getPreparationID()
2709 OSCompareAndSwap64(kIOPreparationIDUnprepared, newID, &dataP->fPreparationID); in getPreparationID()
2711 return dataP->fPreparationID; in getPreparationID()
2967 ioGMDData *dataP; in dmaCommandOperation() local
2986 dataP = getDataP(_memoryEntries); in dmaCommandOperation()
2988 if (data->fMapSpec.numAddressBits < dataP->fDMAMapNumAddressBits) { in dmaCommandOperation()
2989 dataP->fDMAMapNumAddressBits = data->fMapSpec.numAddressBits; in dmaCommandOperation()
2991 if (data->fMapSpec.alignment > dataP->fDMAMapAlignment) { in dmaCommandOperation()
2992 dataP->fDMAMapAlignment = data->fMapSpec.alignment; in dmaCommandOperation()
3003 remap |= (dataP->fDMAMapNumAddressBits < 64) in dmaCommandOperation()
3004 && ((dataP->fMappedBase + _length) > (1ULL << dataP->fDMAMapNumAddressBits)); in dmaCommandOperation()
3005 remap |= (dataP->fDMAMapAlignment > page_size); in dmaCommandOperation()
3007 if (remap || !dataP->fMappedBaseValid) { in dmaCommandOperation()
3009 if (keepMap && (kIOReturnSuccess == err) && !dataP->fMappedBaseValid) { in dmaCommandOperation()
3010 dataP->fMappedBase = data->fAlloc; in dmaCommandOperation()
3011 dataP->fMappedBaseValid = true; in dmaCommandOperation()
3012 dataP->fMappedLength = data->fAllocLength; in dmaCommandOperation()
3016 data->fAlloc = dataP->fMappedBase; in dmaCommandOperation()
3018 md->dmaMapRecord(data->fMapper, data->fCommand, dataP->fMappedLength); in dmaCommandOperation()
3053 dataP = getDataP(_memoryEntries); in dmaCommandOperation()
3054 if (data->numAddressBits < dataP->fDMAMapNumAddressBits) { in dmaCommandOperation()
3055 dataP->fDMAMapNumAddressBits = data->numAddressBits; in dmaCommandOperation()
3057 if (data->alignment > dataP->fDMAMapAlignment) { in dmaCommandOperation()
3058 dataP->fDMAMapAlignment = data->alignment; in dmaCommandOperation()
3080 dataP = getDataP(_memoryEntries); in dmaCommandOperation()
3081 ioPLBlock *ioplList = getIOPLList(dataP); in dmaCommandOperation()
3082 UInt count = getNumIOPL(_memoryEntries, dataP); in dmaCommandOperation()
3139 dataP = getDataP(_memoryEntries); in dmaCommandOperation()
3140 if (dataP->fMapper) { in dmaCommandOperation()
3143 mapSpec.numAddressBits = dataP->fDMAMapNumAddressBits; in dmaCommandOperation()
3144 mapSpec.alignment = dataP->fDMAMapAlignment; in dmaCommandOperation()
3145 …err = md->dmaMap(dataP->fMapper, md, NULL, &mapSpec, 0, _length, &dataP->fMappedBase, &dataP->fMap… in dmaCommandOperation()
3149 dataP->fMappedBaseValid = true; in dmaCommandOperation()
3157 && (dataP = getDataP(_memoryEntries)) in dmaCommandOperation()
3158 && dataP->fMappedBaseValid) { in dmaCommandOperation()
3159 mappedBase = dataP->fMappedBase; in dmaCommandOperation()
3253 dataP = getDataP(_memoryEntries); in dmaCommandOperation()
3254 const ioPLBlock *ioplList = getIOPLList(dataP); in dmaCommandOperation()
3255 UInt numIOPLs = getNumIOPL(_memoryEntries, dataP); in dmaCommandOperation()
3256 upl_page_info_t *pageList = getPageList(dataP); in dmaCommandOperation()
4087 ioGMDData *dataP; in wireVirtual() local
4099 dataP = getDataP(_memoryEntries); in wireVirtual()
4105 dataP->fDMAAccess = kIODMAMapReadAccess; in wireVirtual()
4109 dataP->fDMAAccess = kIODMAMapWriteAccess; in wireVirtual()
4114 dataP->fDMAAccess = kIODMAMapReadAccess | kIODMAMapWriteAccess; in wireVirtual()
4129 mapper = dataP->fMapper; in wireVirtual()
4130 dataP->fMappedBaseValid = dataP->fMappedBase = 0; in wireVirtual()
4142 if (dataP->fDMAMapNumAddressBits > 32) { in wireVirtual()
4143 dataP->fDMAMapNumAddressBits = 32; in wireVirtual()
4159 size_t uplPageSize = dataP->fPageCnt * sizeof(upl_page_info_t); in wireVirtual()
4170 dataP = NULL; in wireVirtual()
4247 dataP = getDataP(_memoryEntries); in wireVirtual()
4248 pageInfo = getPageList(dataP); in wireVirtual()
4374 dataP = NULL; in wireVirtual()
4408 dataP = getDataP(_memoryEntries); in wireVirtual()
4409 if (!dataP->fWireTracking.link.next) { in wireVirtual()
4410 IOTrackingAdd(gIOWireTracking, &dataP->fWireTracking, ptoa(_pages), false, tag); in wireVirtual()
4419 dataP = getDataP(_memoryEntries); in wireVirtual()
4420 UInt done = getNumIOPL(_memoryEntries, dataP); in wireVirtual()
4421 ioPLBlock *ioplList = getIOPLList(dataP); in wireVirtual()
4444 ioGMDData * dataP; in initMemoryEntries() local
4459 dataP = getDataP(_memoryEntries); in initMemoryEntries()
4465 dataP->fMapper = mapper; in initMemoryEntries()
4466 dataP->fPageCnt = 0; in initMemoryEntries()
4467 dataP->fMappedBase = 0; in initMemoryEntries()
4468 dataP->fDMAMapNumAddressBits = 64; in initMemoryEntries()
4469 dataP->fDMAMapAlignment = 0; in initMemoryEntries()
4470 dataP->fPreparationID = kIOPreparationIDUnprepared; in initMemoryEntries()
4471 dataP->fCompletionError = false; in initMemoryEntries()
4472 dataP->fMappedBaseValid = false; in initMemoryEntries()
4592 ioGMDData * dataP; in dmaMap() local
4606 } else if (_memoryEntries && _pages && (dataP = getDataP(_memoryEntries))) { in dmaMap()
4607 const ioPLBlock * ioplList = getIOPLList(dataP); in dmaMap()
4613 mapSpec.numAddressBits = dataP->fDMAMapNumAddressBits; in dmaMap()
4614 mapSpec.alignment = dataP->fDMAMapAlignment; in dmaMap()
4622 pageList = getPageList(dataP); in dmaMap()
4629 assert(dataP->fDMAAccess); in dmaMap()
4630 mapOptions |= dataP->fDMAAccess; in dmaMap()
4727 ioGMDData * dataP; in complete() local
4749 dataP = getDataP(_memoryEntries); in complete()
4750 if (!dataP) { in complete()
4755 dataP->fCompletionError = true; in complete()
4764 ioPLBlock *ioplList = getIOPLList(dataP); in complete()
4765 UInt ind, count = getNumIOPL(_memoryEntries, dataP); in complete()
4783 if (dataP->fMappedBaseValid) { in complete()
4784 dmaUnmap(dataP->fMapper, NULL, 0, dataP->fMappedBase, dataP->fMappedLength); in complete()
4785 dataP->fMappedBaseValid = dataP->fMappedBase = 0; in complete()
4788 if (dataP->fWireTracking.link.next) { in complete()
4789 IOTrackingRemove(gIOWireTracking, &dataP->fWireTracking, ptoa(_pages)); in complete()
4796 if (dataP->fCompletionError) { in complete()
4810 dataP->fPreparationID = kIOPreparationIDUnprepared; in complete()