Lines Matching refs:IOMemoryDescriptor

41 #include <IOKit/IOMemoryDescriptor.h>
101 OSDefineMetaClassAndAbstractStructors( IOMemoryDescriptor, OSObject )
103 #define super IOMemoryDescriptor
105 OSDefineMetaClassAndStructors(IOGeneralMemoryDescriptor, IOMemoryDescriptor)
191 IOMemoryDescriptor * memDesc;
1040 IOMemoryDescriptor *
1041 IOMemoryDescriptor::withAddress(void * address,
1045 return IOMemoryDescriptor::
1050 IOMemoryDescriptor *
1051 IOMemoryDescriptor::withAddress(IOVirtualAddress address,
1068 IOMemoryDescriptor *
1069 IOMemoryDescriptor::withPhysicalAddress(
1074 return (IOMemoryDescriptor::withAddressRange(address, length, direction, TASK_NULL));
1078 IOMemoryDescriptor *
1079 IOMemoryDescriptor::withRanges( IOVirtualRange * ranges,
1097 IOMemoryDescriptor *
1098 IOMemoryDescriptor::withAddressRange(mach_vm_address_t address,
1104 return (IOMemoryDescriptor::withAddressRanges(&range, 1, options, task));
1107 IOMemoryDescriptor *
1108 IOMemoryDescriptor::withAddressRanges(IOAddressRange * ranges,
1134 * Create a new IOMemoryDescriptor. The buffer is made up of several
1139 IOMemoryDescriptor *
1140 IOMemoryDescriptor::withOptions(void * buffers,
1159 bool IOMemoryDescriptor::initWithOptions(void * buffers,
1170 IOMemoryDescriptor *
1171 IOMemoryDescriptor::withPhysicalRanges( IOPhysicalRange * ranges,
1187 IOMemoryDescriptor *
1188 IOMemoryDescriptor::withSubRange(IOMemoryDescriptor * of,
1197 IOMemoryDescriptor *
1198 IOMemoryDescriptor::withPersistentMemoryDescriptor(IOMemoryDescriptor *originalMD)
1210 IOMemoryDescriptor *
1318 * IOMemoryDescriptor. The buffer is made up of several virtual address ranges,
1324 * An IOMemoryDescriptor can be re-used by calling initWithOptions again on an
1345 OSReportWithBacktrace("IOMemoryDescriptor: attempt to create 32b virtual in 64b task, use ::withAddressRange()");
1726 IODirection IOMemoryDescriptor::getDirection() const
1740 IOByteCount IOMemoryDescriptor::getLength() const
1745 void IOMemoryDescriptor::setTag( IOOptionBits tag )
1750 IOOptionBits IOMemoryDescriptor::getTag( void )
1758 IOMemoryDescriptor::getSourceSegment( IOByteCount offset, IOByteCount * length )
1771 IOByteCount IOMemoryDescriptor::readBytes
1816 IOByteCount IOMemoryDescriptor::writeBytes
1890 IOMemoryDescriptor::setPreparationID();
1891 return (IOMemoryDescriptor::getPreparationID());
1904 IOMemoryDescriptorReserved * IOMemoryDescriptor::getKernelReserved( void )
1915 void IOMemoryDescriptor::setPreparationID( void )
1927 uint64_t IOMemoryDescriptor::getPreparationID( void )
2287 // IOMemoryDescriptor::doMap() cannot use getPhysicalSegment() to obtain the page offset, since it must
2377 IOMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount *lengthOfSegment, IOOptionBits options)
2424 IOMemoryDescriptor::getPhysicalSegment64(IOByteCount offset, IOByteCount *lengthOfSegment)
2460 IOMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount *lengthOfSegment)
2484 IOMemoryDescriptor::dmaCommandOperation(DMACommandOps op, void *vData, UInt dataSize) const
2486 IOMemoryDescriptor *md = const_cast<IOMemoryDescriptor *>(this);
2597 IOReturn IOMemoryDescriptor::setPurgeable( IOOptionBits newState,
2609 IOReturn IOMemoryDescriptor::getPageCounts( IOByteCount * residentPageCount,
2649 IOReturn IOMemoryDescriptor::performOperation( IOOptionBits options,
2785 OSReportWithBacktrace("IOMemoryDescriptor 0x%lx prepared read only", VM_KERNEL_ADDRPERM(this));
3031 IOReturn IOMemoryDescriptor::dmaMap(
3350 OSReportWithBacktrace("warning: creating writable mapping from IOMemoryDescriptor(kIODirectionOut) - use kIOMapReadOnly or change direction");
3500 bool IOMemoryMap::setMemoryDescriptor(IOMemoryDescriptor * _memory, mach_vm_size_t _offset)
3524 IOReturn IOMemoryDescriptor::doMap(
3534 IOReturn IOMemoryDescriptor::handleFault(
3551 IOReturn IOMemoryDescriptor::populateDevicePager(
3636 IOReturn IOMemoryDescriptor::doUnmap(
3662 IOLog("IOMemoryDescriptor::doUnmap map %p, 0x%qx:0x%qx\n",
3671 IOReturn IOMemoryDescriptor::redirect( task_t safeTask, bool doRedirect )
3907 IOMemoryDescriptor * IOMemoryMap::getMemoryDescriptor()
4004 void IOMemoryDescriptor::initialize( void )
4012 void IOMemoryDescriptor::free( void )
4020 IOMemoryMap * IOMemoryDescriptor::setMapping(
4030 IOMemoryMap * IOMemoryDescriptor::map(
4039 IOMemoryMap * IOMemoryDescriptor::map(
4048 OSReportWithBacktrace("IOMemoryDescriptor::map() in 64b task, use ::createMappingInTask()");
4057 IOMemoryMap * IOMemoryDescriptor::createMappingInTask(
4094 IOReturn IOMemoryMap::redirect(IOMemoryDescriptor * newBackingMemory,
4102 IOReturn IOMemoryMap::redirect(IOMemoryDescriptor * newBackingMemory,
4107 IOMemoryDescriptor * physMem = 0;
4168 IOMemoryMap * IOMemoryDescriptor::makeMapping(
4169 IOMemoryDescriptor * owner,
4177 if (!(kIOMap64Bit & options)) panic("IOMemoryDescriptor::makeMapping !64bit");
4180 IOMemoryDescriptor * mapDesc = 0;
4216 mapDesc = IOMemoryDescriptor::withAddressRange(
4281 void IOMemoryDescriptor::addMapping(
4293 void IOMemoryDescriptor::removeMapping(
4304 IOMemoryDescriptor::initWithAddress(void * address,
4312 IOMemoryDescriptor::initWithAddress(IOVirtualAddress address,
4321 IOMemoryDescriptor::initWithPhysicalAddress(
4330 IOMemoryDescriptor::initWithRanges(
4341 IOMemoryDescriptor::initWithPhysicalRanges( IOPhysicalRange * ranges,
4349 void * IOMemoryDescriptor::getVirtualSegment(IOByteCount offset,
4513 IOMemoryDescriptor::withAddressRanges(&ranges[0], rangeCount, kIODirectionInOut, kernel_task));
4594 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 0);
4596 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 1);
4597 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 2);
4598 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 3);
4599 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 4);
4600 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 5);
4601 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 6);
4602 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 7);
4604 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 1);
4605 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 2);
4606 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 3);
4607 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 4);
4608 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 5);
4609 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 6);
4610 OSMetaClassDefineReservedUsed(IOMemoryDescriptor, 7);
4612 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 8);
4613 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 9);
4614 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 10);
4615 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 11);
4616 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 12);
4617 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 13);
4618 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 14);
4619 OSMetaClassDefineReservedUnused(IOMemoryDescriptor, 15);
4623 IOMemoryDescriptor::getPhysicalAddress()