Lines Matching refs:mapping

4829 IOGeneralMemoryDescriptor::memoryReferenceCreateOptions(IOOptionBits options, IOMemoryMap * mapping)  in memoryReferenceCreateOptions()  argument
4840 && (!reserved || (reserved->creator != mapping->fAddressTask))) { in memoryReferenceCreateOptions()
4864 IOMemoryMap * mapping; in makeMapping() local
4878 mapping = IOMemoryDescriptor::makeMapping( in makeMapping()
4882 if ((mapping == (IOMemoryMap *) __address) in makeMapping()
4883 && (0 == (kIOMapStatic & mapping->fOptions)) in makeMapping()
4884 && (NULL == mapping->fSuperMap) in makeMapping()
4887 IOTrackingAddUser(gIOMapTracking, &mapping->fTracking, mapping->fLength); in makeMapping()
4891 return mapping; in makeMapping()
4912 IOMemoryMap * mapping = (IOMemoryMap *) *__address; in doMap() local
4913 mach_vm_size_t offset = mapping->fOffset + __offset; in doMap()
4914 mach_vm_size_t length = mapping->fLength; in doMap()
4940 && (mapping->fAddressTask == _task) in doMap()
4941 && (mapping->fAddressMap == get_task_map(_task)) in doMap()
4949 mapping->fAddress = range0Addr; in doMap()
4950 mapping->fOptions |= kIOMapStatic; in doMap()
4956 err = memoryReferenceCreate(memoryReferenceCreateOptions(options, mapping), &_memRef); in doMap()
4981 size = (upl_size_t) round_page(mapping->fLength); in doMap()
4996 err = upl_transpose(redirUPL2, mapping->fRedirUPL); in doMap()
5016 _memRef = mapping->fMemory->_memRef; in doMap()
5017 mapping->fMemory->_memRef = me; in doMap()
5020 …err = populateDevicePager( pager, mapping->fAddressMap, mapping->fAddress, offset, length, options… in doMap()
5026 …err = memoryReferenceMap(_memRef, mapping->fAddressMap, offset, length, options, &mapping->fAddres… in doMap()
5028 DEBUG4K_ERROR("map %p err 0x%x\n", mapping->fAddressMap, err); in doMap()
5031 …err = populateDevicePager(pager, mapping->fAddressMap, mapping->fAddress, offset, length, options); in doMap()
5034 doUnmap(mapping->fAddressMap, (IOVirtualAddress) mapping, 0); in doMap()
5036 mapping->fOptions |= ((_flags & kIOMemoryBufferCacheMask) >> kIOMemoryBufferCacheShift); in doMap()
5302 IOMemoryMap * mapping; in doUnmap() local
5310 mapping = (IOMemoryMap *) __address; in doUnmap()
5311 addressMap = mapping->fAddressMap; in doUnmap()
5312 address = mapping->fAddress; in doUnmap()
5313 length = mapping->fLength; in doUnmap()
5315 if (kIOMapOverwrite & mapping->fOptions) { in doUnmap()
5327 err = IOMemoryDescriptorMapDealloc(mapping->fOptions, addressMap, address, length ); in doUnmap()
5334 IOTrackingRemoveUser(gIOMapTracking, &mapping->fTracking); in doUnmap()
5344 IOMemoryMap * mapping = NULL; in redirect() local
5365 while ((mapping = (IOMemoryMap *) iter->getNextObject())) { in redirect()
5366 mapping->redirect( safeTask, doRedirect ); in redirect()
5367 if (!doRedirect && !safeTask && pager && (kernel_map == mapping->fAddressMap)) { in redirect()
5368 …err = populateDevicePager(pager, mapping->fAddressMap, mapping->fAddress, mapping->fOffset, mappin… in redirect()
5761 IOMemoryMap * mapping; in createMappingInTask() local
5767 mapping = new IOMemoryMap; in createMappingInTask()
5769 if (mapping in createMappingInTask()
5770 && !mapping->init( intoTask, atAddress, in createMappingInTask()
5772 mapping->release(); in createMappingInTask()
5773 mapping = NULL; in createMappingInTask()
5776 if (mapping) { in createMappingInTask()
5777 result = makeMapping(this, intoTask, (IOVirtualAddress) mapping, options | kIOMap64Bit, 0, 0); in createMappingInTask()
5884 IOMemoryMap * mapping = (IOMemoryMap *) __address; in makeMapping() local
5885 mach_vm_size_t offset = mapping->fOffset + __offset; in makeMapping()
5886 mach_vm_size_t length = mapping->fLength; in makeMapping()
5888 mapping->fOffset = offset; in makeMapping()
5894 result = mapping; in makeMapping()
5895 addMapping(mapping); in makeMapping()
5896 mapping->setMemoryDescriptor(this, 0); in makeMapping()
5919 mapping->fOffset = offset; in makeMapping()
5927 if ((result = lookMapping->copyCompatible(mapping))) { in makeMapping()
5936 if (result != mapping) { in makeMapping()
5937 mapping->release(); in makeMapping()
5938 mapping = NULL; in makeMapping()
5948 kr = mapDesc->doMap( NULL, (IOVirtualAddress *) &mapping, options, 0, 0 ); in makeMapping()
5950 result = mapping; in makeMapping()
5954 mapping->release(); in makeMapping()
5955 mapping = NULL; in makeMapping()
5966 IOMemoryMap * mapping ) in addMapping() argument
5968 if (mapping) { in addMapping()
5973 _mappings->setObject( mapping ); in addMapping()
5980 IOMemoryMap * mapping ) in removeMapping() argument
5983 _mappings->removeObject( mapping); in removeMapping()