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

12

/xnu-2782.1.97/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,
/xnu-2782.1.97/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.h187 /*! @class IOMemoryDescriptor : public OSObject
189 @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. */
191 class IOMemoryDescriptor : public OSObject class in inherits:OSObject
195 OSDeclareDefaultStructors(IOMemoryDescriptor);
235 @abstract Master initialiser for all variants of memory descriptors. For a more complete description see IOMemoryDescriptor::withOptions.
269 @abstract Retrieve the number of resident and/or dirty pages encompassed by an IOMemoryDescriptor.
270 @discussion This method returns the number of resident and/or dirty pages encompassed by an IOMemoryDescriptor.
271 @param residentPageCount - If non-null, a pointer to a byte count that will return the number of resident pages encompassed by this IOMemoryDescriptor.
272 @param dirtyPageCount - If non-null, a pointer to a byte count that will return the number of dirty pages encompassed by this IOMemoryDescriptor.
326 OSMetaClassDeclareReservedUsed(IOMemoryDescriptor,
[all...]
H A DIODataQueue.h43 class IOMemoryDescriptor;
60 * <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.
144 * @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.
145 * @result Returns a newly allocated IOMemoryDescriptor for the IODataQueueMemory region. Returns zero on failure.
147 virtual IOMemoryDescriptor *getMemoryDescriptor();
H A DIOPolledInterface.h33 #include <IOKit/IOMemoryDescriptor.h>
74 virtual IOReturn open( IOOptionBits state, IOMemoryDescriptor * buffer) = 0;
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 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 DIOSharedDataQueue.h53 * <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.
118 * @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.
119 * @result Returns a newly allocated IOMemoryDescriptor for the IODataQueueMemory region. Returns zero on failure.
121 virtual IOMemoryDescriptor *getMemoryDescriptor();
H A DIOUserClient.h136 IOMemoryDescriptor * structureInputDescriptor;
144 IOMemoryDescriptor * structureOutputDescriptor;
340 IOMemoryDescriptor ** memory );
361 IOMemoryMap * removeMappingForDescriptor(IOMemoryDescriptor * memory);
H A DIOBufferMemoryDescriptor.h31 #include <IOKit/IOMemoryDescriptor.h>
41 // shared IOMemoryDescriptor options for IOBufferMemoryDescriptor:
152 kIOMemoryPurgeable - pass to request memory that may later have its purgeable state set with IOMemoryDescriptor::setPurgeable. Only supported for kIOMemoryPageable allocations.<br>
/xnu-2782.1.97/iokit/Kernel/
H A DIOMultiMemoryDescriptor.cpp32 #define super IOMemoryDescriptor
33 OSDefineMetaClassAndStructors(IOMultiMemoryDescriptor, IOMemoryDescriptor)
36 IOMemoryDescriptor ** descriptors,
65 IOMemoryDescriptor ** descriptors,
87 IODelete(_descriptors, IOMemoryDescriptor *, _descriptorsCount);
112 _descriptors = IONew(IOMemoryDescriptor *, withCount);
117 /* 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>
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
[all...]
H A DIODataQueue.cpp37 #include <IOKit/IOMemoryDescriptor.h>
268 IOMemoryDescriptor *IODataQueue::getMemoryDescriptor()
270 IOMemoryDescriptor *descriptor = 0;
273 descriptor = IOMemoryDescriptor::withAddress(dataQueue, dataQueue->queueSize + DATA_QUEUE_MEMORY_HEADER_SIZE, kIODirectionOutIn);
H A DIODeviceMemory.cpp38 return( (IODeviceMemory *) IOMemoryDescriptor::withAddressRange(
H A DIOSharedDataQueue.cpp32 #include <IOKit/IOMemoryDescriptor.h>
134 IOMemoryDescriptor *IOSharedDataQueue::getMemoryDescriptor()
136 IOMemoryDescriptor *descriptor = 0;
139 descriptor = IOMemoryDescriptor::withAddress(dataQueue, getQueueSize() + DATA_QUEUE_MEMORY_HEADER_SIZE + DATA_QUEUE_MEMORY_APPENDIX_SIZE, kIODirectionOutIn);
H A DIOStartIOKit.cpp36 #include <IOKit/IOMemoryDescriptor.h>
105 IOMemoryDescriptor::initialize();
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...]
/xnu-2782.1.97/iokit/bsddev/
H A DDINetBootHook.cpp221 IOMemoryDescriptor * mem;
270 mem = IOMemoryDescriptor::withAddressRanges(
/xnu-2782.1.97/iokit/conf/
H A DMakefile.template32 IOMemoryDescriptor.cpo \

Completed in 117 milliseconds

12