Searched refs:IOMemoryDescriptor (Results 1 - 25 of 35) sorted by relevance

12

/darwin-on-arm/xnu/iokit/Kernel/i386/
H A DIOKeyStoreHelper.cpp35 #include <IOKit/IOMemoryDescriptor.h>
43 static IOMemoryDescriptor * newData;
45 IOMemoryDescriptor *
48 IOSetKeyStoreData(IOMemoryDescriptor * data);
59 IOSetKeyStoreData(IOMemoryDescriptor * data)
65 IOMemoryDescriptor *
68 IOMemoryDescriptor *memoryDescriptor;
78 IOMemoryDescriptor * data = newData;
95 memoryDescriptor = IOMemoryDescriptor::withOptions(&ranges,
/darwin-on-arm/xnu/iokit/IOKit/
H A DIOMultiMemoryDescriptor.h32 #include <IOKit/IOMemoryDescriptor.h>
34 /*! @class IOMultiMemoryDescriptor : public IOMemoryDescriptor
38 class IOMultiMemoryDescriptor : public IOMemoryDescriptor
44 IOMemoryDescriptor ** _descriptors;
62 IOMemoryDescriptor ** descriptors,
77 IOMemoryDescriptor ** descriptors,
H A DIOInterleavedMemoryDescriptor.h32 #include <IOKit/IOMemoryDescriptor.h>
34 /*! @class IOInterleavedMemoryDescriptor : public IOMemoryDescriptor
38 class IOInterleavedMemoryDescriptor : public IOMemoryDescriptor
46 IOMemoryDescriptor ** _descriptors;
77 @discussion Clears each IOMemoryDescriptor by completing (if needed) and releasing. The IOInterleavedMemoryDescriptor is then reset and may accept new descriptors up to the capacity specified when it was created.
83 @abstract Add a portion of an IOMemoryDescriptor to the IOInterleavedMemoryDescriptor.
84 @discussion This method adds the portion of an IOMemoryDescriptor described by the offset and length parameters to the end of the IOInterleavedMemoryDescriptor. A single IOMemoryDescriptor may be added as many times as there is room for it. The offset and length must describe a portion entirely within the IOMemoryDescriptor.
85 @param descriptor An IOMemoryDescriptor t
[all...]
H A DIODeviceMemory.h38 #include <IOKit/IOMemoryDescriptor.h>
41 @abstract An IOMemoryDescriptor used for device physical memory ranges.
42 @discussion The IODeviceMemory class is a simple subclass of IOMemoryDescriptor that uses its methods to describe a single range of physical memory on a device. IODeviceMemory objects are usually looked up with IOService or IOPCIDevice accessors, and are created by memory-mapped bus families. IODeviceMemory implements only some factory methods in addition to the methods of IOMemoryDescriptor.
45 class IODeviceMemory : public IOMemoryDescriptor
54 @field tag 32-bit value not interpreted by IODeviceMemory or IOMemoryDescriptor, for use by the bus family. */
75 @discussion This method creates an IODeviceMemory instance for one physical range passed as a physical address and length. It just calls IOMemoryDescriptor::withPhysicalAddress.
86 @discussion This method creates an IODeviceMemory instance for a subset of an existing IODeviceMemory range, passed as a physical address offset and length. It just calls IOMemoryDescriptor::withSubRange.
H A DIOSubMemoryDescriptor.h32 #include <IOKit/IOMemoryDescriptor.h>
34 /*! @class IOSubMemoryDescriptor : public IOMemoryDescriptor
35 @abstract The IOSubMemoryDescriptor object describes a memory area made up of a portion of another IOMemoryDescriptor.
36 @discussion The IOSubMemoryDescriptor object represents a subrange of memory, specified as a portion of another IOMemoryDescriptor. */
38 class IOSubMemoryDescriptor : public IOMemoryDescriptor
43 IOMemoryDescriptor * _parent;
50 @abstract Create an IOMemoryDescriptor to describe a subrange of an existing descriptor.
51 @discussion This method creates and initializes an IOMemoryDescriptor for memory consisting of a subrange of the specified memory descriptor. The parent memory descriptor is retained by the new descriptor.
52 @param of The parent IOMemoryDescriptor of which a subrange is to be used for the new descriptor, which will be retained by the subrange IOMemoryDescriptor
[all...]
H A DIOMemoryDescriptor.h148 /*! @class IOMemoryDescriptor : public OSObject
150 @discussion The IOMemoryDescriptor object represents a buffer or range of memory, specified as one or more physical or virtual address ranges. It contains methods to return the memory's physically contiguous segments (fragments), for use with the IOMemoryCursor, and methods to map the memory into any address space with caching and placed mapping options. */
152 class IOMemoryDescriptor : public OSObject class in inherits:OSObject
156 OSDeclareDefaultStructors(IOMemoryDescriptor);
188 @abstract Master initialiser for all variants of memory descriptors. For a more complete description see IOMemoryDescriptor::withOptions.
268 OSMetaClassDeclareReservedUsed(IOMemoryDescriptor, 0);
270 OSMetaClassDeclareReservedUnused(IOMemoryDescriptor, 1);
271 OSMetaClassDeclareReservedUnused(IOMemoryDescriptor, 2);
272 OSMetaClassDeclareReservedUnused(IOMemoryDescriptor, 3);
273 OSMetaClassDeclareReservedUnused(IOMemoryDescriptor,
[all...]
H A DIODataQueue.h38 class IOMemoryDescriptor;
55 * <br>In order to make the data queue memory available to a user process, the method getMemoryDescriptor() must be used to get an IOMemoryDescriptor instance that can be mapped into a user process. Typically, the clientMemoryForType() method on an IOUserClient instance will be used to request the IOMemoryDescriptor and then return it to be mapped into the user process.
135 * @discussion The IOMemoryDescriptor instance returned by this method is intended to be mapped into a user process. This is the memory region that the IODataQueueClient code operates on.
136 * @result Returns a newly allocated IOMemoryDescriptor for the IODataQueueMemory region. Returns zero on failure.
138 virtual IOMemoryDescriptor *getMemoryDescriptor();
H A DIOMemoryCursor.h34 class IOMemoryDescriptor;
138 @param descriptor IOMemoryDescriptor that describes the data associated with an I/O request.
147 IOMemoryDescriptor *descriptor,
211 @param descriptor IOMemoryDescriptor that describes the data associated with an I/O request.
219 virtual UInt32 getPhysicalSegments(IOMemoryDescriptor *descriptor,
287 @param descriptor IOMemoryDescriptor that describes the data associated with an I/O request.
295 virtual UInt32 getPhysicalSegments(IOMemoryDescriptor * descriptor,
361 @param descriptor IOMemoryDescriptor that describes the data associated with an I/O request.
369 virtual UInt32 getPhysicalSegments(IOMemoryDescriptor * descriptor,
H A DIOSharedDataQueue.h49 * <br>In order to make the data queue memory available to a user process, the method getMemoryDescriptor() must be used to get an IOMemoryDescriptor instance that can be mapped into a user process. Typically, the clientMemoryForType() method on an IOUserClient instance will be used to request the IOMemoryDescriptor and then return it to be mapped into the user process.
96 * @discussion The IOMemoryDescriptor instance returned by this method is intended to be mapped into a user process. This is the memory region that the IODataQueueClient code operates on.
97 * @result Returns a newly allocated IOMemoryDescriptor for the IODataQueueMemory region. Returns zero on failure.
99 virtual IOMemoryDescriptor *getMemoryDescriptor();
H A DIODMACommand.h32 #include <IOKit/IOMemoryDescriptor.h>
186 @param mappingOptions is the type of mapping that is required to translate an IOMemoryDescriptor into the desired number of bits. For instance if your hardware only supports 32 bits but must run on machines with > 4G of RAM some mapping will be required. Number of bits will be specified in numAddressBits, see below.This parameter can take 3 values:- kNonCoherent - used for non-coherent hardware transfers, Mapped - Validate that all I/O bus generated addresses are within the number of addressing bits specified, Bypassed indicates that bypassed addressing is required, this is used when the hardware transferes are into coherent memory but no mapping is required. See also prepare() for failure cases.
209 @param mapType is the type of mapping that is required to translate an IOMemoryDescriptor into the desired number of bits. For instance if your hardware only supports 32 bits but must run on machines with > 4G of RAM some mapping will be required. Number of bits will be specified in numAddressBits, see below. This parameter can take 3 values:- kNonCoherent - used for non-coherent hardware transfers, Mapped - Validate that all I/O bus generated addresses are within the number of addressing bits specified, Bypassed indicates that bypassed addressing is required, this is used when the hardware transfers are into coherent memory but no mapping is required. See also prepare() for failure cases.
244 @param mappingOptions is the type of mapping that is required to translate an IOMemoryDescriptor into the desired number of bits. For instance if your hardware only supports 32 bits but must run on machines with > 4G of RAM some mapping will be required. Number of bits will be specified in numAddressBits, see below.This parameter can take 3 values:- kNonCoherent - used for non-coherent hardware transfers, Mapped - Validate that all I/O bus generated addresses are within the number of addressing bits specified, Bypassed indicates that bypassed addressing is required, this is used when the hardware transferes are into coherent memory but no mapping is required. See also prepare() for failure cases.
266 virtual IOReturn setMemoryDescriptor(const IOMemoryDescriptor *mem,
279 virtual const IOMemoryDescriptor *getMemoryDescriptor() const;
283 @discussion Allocate the mapping resources neccessary for this transfer, specifying a sub range of the IOMemoryDescriptor that will be the target of the I/O. The complete() method frees these resources. Data may be copied to buffers for kIODirectionOut memory descriptors, depending on hardware mapping resource availabilty or alignment restrictions. It should be noted that the this function may block and should only be called on the clients context, i.e never call this routine while gated; also the call itself is not thread safe though this should be an issue as each IODMACommand is independant.
287 @param synchronize Copy any buffered data back from the target IOMemoryDescriptor. Defaults to true, if synchronize() is being used to explicitly copy data, passing false may avoid an unneeded copy.
296 @param synchronize Copy any buffered data back to the target IOMemoryDescriptor. Defaults to true, if synchronize() is being used to explicitly copy data, passing false may avoid an unneeded copy.
302 @abstract Bring IOMemoryDescriptor an
[all...]
H A DIOPolledInterface.h72 virtual IOReturn open( IOOptionBits state, IOMemoryDescriptor * buffer) = 0;
H A DIOUserClient.h130 IOMemoryDescriptor * structureInputDescriptor;
138 IOMemoryDescriptor * structureOutputDescriptor;
310 IOMemoryDescriptor ** memory );
329 IOMemoryMap * removeMappingForDescriptor(IOMemoryDescriptor * memory);
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOMultiMemoryDescriptor.cpp32 #define super IOMemoryDescriptor
33 OSDefineMetaClassAndStructors(IOMultiMemoryDescriptor, IOMemoryDescriptor)
36 IOMemoryDescriptor ** descriptors,
65 IOMemoryDescriptor ** descriptors,
88 IODelete(_descriptors, IOMemoryDescriptor *, _descriptorsCount);
113 _descriptors = IONew(IOMemoryDescriptor *, withCount);
118 /* bytes */ withCount * sizeof(IOMemoryDescriptor *) );
144 IODelete(_descriptors, IOMemoryDescriptor *, _descriptorsCount);
H A DIOSubMemoryDescriptor.cpp33 #define super IOMemoryDescriptor
35 OSDefineMetaClassAndStructors(IOSubMemoryDescriptor, IOMemoryDescriptor)
46 IOSubMemoryDescriptor::withSubRange(IOMemoryDescriptor * of,
60 bool IOSubMemoryDescriptor::initSubRange( IOMemoryDescriptor * parent,
164 IOMemoryDescriptor * owner,
H A DIOInterleavedMemoryDescriptor.cpp32 #define super IOMemoryDescriptor
33 OSDefineMetaClassAndStructors(IOInterleavedMemoryDescriptor, IOMemoryDescriptor)
83 _descriptors = IONew(IOMemoryDescriptor *, capacity);
127 IOMemoryDescriptor * descriptor,
164 IODelete(_descriptors, IOMemoryDescriptor *, _descriptorCapacity);
167 IODelete(_descriptorOffsets, IOMemoryDescriptor *, _descriptorCapacity);
170 IODelete(_descriptorLengths, IOMemoryDescriptor *, _descriptorCapacity);
H A DIOMemoryDescriptor.cpp41 #include <IOKit/IOMemoryDescriptor.h>
103 OSDefineMetaClassAndAbstractStructors( IOMemoryDescriptor, OSObject )
105 #define super IOMemoryDescriptor
107 OSDefineMetaClassAndStructors(IOGeneralMemoryDescriptor, IOMemoryDescriptor)
192 IOMemoryDescriptor * memDesc;
251 IOMemoryDescriptor *
252 IOMemoryDescriptor::withAddress(void * address,
256 return IOMemoryDescriptor::
261 IOMemoryDescriptor *
262 IOMemoryDescriptor
[all...]
H A DIODataQueue.cpp32 #include <IOKit/IOMemoryDescriptor.h>
232 IOMemoryDescriptor *IODataQueue::getMemoryDescriptor()
234 IOMemoryDescriptor *descriptor = 0;
237 descriptor = IOMemoryDescriptor::withAddress(dataQueue, dataQueue->queueSize + DATA_QUEUE_MEMORY_HEADER_SIZE, kIODirectionOutIn);
H A DIOSharedDataQueue.cpp32 #include <IOKit/IOMemoryDescriptor.h>
105 IOMemoryDescriptor *IOSharedDataQueue::getMemoryDescriptor()
107 IOMemoryDescriptor *descriptor = 0;
110 descriptor = IOMemoryDescriptor::withAddress(dataQueue, dataQueue->queueSize + DATA_QUEUE_MEMORY_HEADER_SIZE + DATA_QUEUE_MEMORY_APPENDIX_SIZE, kIODirectionOutIn);
H A DIOStartIOKit.cpp36 #include <IOKit/IOMemoryDescriptor.h>
100 IOMemoryDescriptor::initialize();
H A DIODeviceMemory.cpp38 return( (IODeviceMemory *) IOMemoryDescriptor::withAddressRange(
H A DRootDomainUserClient.h76 virtual IOReturn clientMemoryForType( UInt32 type, IOOptionBits *options, IOMemoryDescriptor **memory);
H A DIOKitKernelInternal.h189 IOMemoryDescriptor * memory;
211 extern "C" void IOSetKeyStoreData(IOMemoryDescriptor * data);
H A DIOHibernateInternal.h43 class IOMemoryDescriptor * previewBuffer;
H A DIODMACommand.cpp39 #include <IOKit/IOMemoryDescriptor.h>
238 IODMACommand::setMemoryDescriptor(const IOMemoryDescriptor *mem, bool autoPrepare)
309 const IOMemoryDescriptor *
546 IOMemoryDescriptor *poMD = const_cast<IOMemoryDescriptor *>(fMemory);
695 IOMemoryDescriptor *poMD = const_cast<IOMemoryDescriptor *>(fMemory);
765 const IOMemoryDescriptor * md = state->fCopyMD;
821 IOMemoryDescriptor *poMD = const_cast<IOMemoryDescriptor *>(fMemor
[all...]
/darwin-on-arm/xnu/iokit/bsddev/
H A DDINetBootHook.cpp221 IOMemoryDescriptor * mem;
270 mem = IOMemoryDescriptor::withAddressRanges(

Completed in 77 milliseconds

12