Searched refs:entrySize (Results 1 - 16 of 16) sorted by relevance

/macosx-10.10.1/xnu-2782.1.97/iokit/Kernel/
H A DIOSharedDataQueue.cpp60 IOSharedDataQueue *IOSharedDataQueue::withEntries(UInt32 numEntries, UInt32 entrySize) argument
65 if (!dataQueue->initWithEntries(numEntries, entrySize)) {
187 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; local
190 // Check for overflow of entrySize
202 if ((entrySize <= UINT32_MAX - tail) &&
203 ((tail + entrySize) <= getQueueSize()) )
214 OSAddAtomic(entrySize, (SInt32 *)&dataQueue->tail);
216 else if ( head > entrySize ) // Is there enough room at the beginning?
233 OSCompareAndSwap(dataQueue->tail, entrySize, &dataQueue->tail);
245 if ( (head - tail) > entrySize )
274 UInt32 entrySize = 0; local
[all...]
H A DIODataQueue.cpp66 IODataQueue *IODataQueue::withEntries(UInt32 numEntries, UInt32 entrySize) argument
71 if (!dataQueue->initWithEntries(numEntries, entrySize)) {
117 Boolean IODataQueue::initWithEntries(UInt32 numEntries, UInt32 entrySize) argument
119 // Checking overflow for (numEntries + 1)*(entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE):
120 // check (entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE)
121 if ((entrySize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) ||
124 // check (numEntries + 1)*(entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE)
125 (entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE > UINT32_MAX/(numEntries+1))) {
129 return (initWithCapacity((numEntries + 1) * (DATA_QUEUE_ENTRY_HEADER_SIZE + entrySize)));
153 const UInt32 entrySize local
[all...]
H A DIOMemoryDescriptor.cpp479 mach_vm_address_t entryAddr, endAddr, entrySize; local
567 entrySize = (endAddr - entryAddr);
568 if (!entrySize) break;
569 actualSize = entrySize;
582 if (actualSize > entrySize) panic("mach_make_memory_entry_64 actualSize");
/macosx-10.10.1/IOHIDFamily-606.1.7/IOHIDFamily/
H A DIOHIDEventServiceQueue.cpp70 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; local
78 if ( (tail + entrySize) <= getQueueSize() )
90 OSAddAtomic(entrySize, (SInt32 *)&dataQueue->tail);
92 else if ( head > entrySize ) // Is there enough room at the beginning?
111 OSCompareAndSwap(dataQueue->tail, entrySize, &dataQueue->tail);
124 if ( (head - tail) > entrySize )
132 OSAddAtomic(entrySize, (SInt32 *)&dataQueue->tail);
H A DIOHIDEventQueue.h72 UInt32 entrySize );
74 virtual Boolean initWithEntries(UInt32 numEntries, UInt32 entrySize);
H A DIOHIDEventQueue.cpp60 UInt32 entrySize )
63 UInt32 size = numEntries*entrySize;
96 Boolean IOHIDEventQueue::initWithEntries(UInt32 numEntries, UInt32 entrySize) argument
98 UInt32 size = numEntries*entrySize;
H A DIOHIDResourceUserClient.cpp816 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; local
822 if ( (tail + entrySize) <= getQueueSize() )
837 dataQueue->tail += entrySize;
839 else if ( head > entrySize ) // Is there enough room at the beginning?
858 dataQueue->tail = entrySize;
870 if ( (head - tail) > entrySize )
879 dataQueue->tail += entrySize;
/macosx-10.10.1/IOKitUser-1050.1.21/
H A DIODataQueueClient.c77 UInt32 entrySize = 0; local
96 entrySize = entry->size;
97 newHeadOffset = entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE;
101 entrySize = entry->size;
102 newHeadOffset = headOffset + entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE;
109 if (entrySize <= *dataSize) {
110 memcpy(data, &(entry->data), entrySize);
125 *dataSize = entrySize;
143 UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; local
150 if ( (tail + entrySize) <
[all...]
/macosx-10.10.1/xnu-2782.1.97/iokit/IOKit/
H A DIODataQueue.h97 * @discussion This method will create a new IODataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters. If the initWithEntries() fails, the new instance is released and zero is returned.
99 * @param entrySize Size of each entry.
102 static IODataQueue *withEntries(UInt32 numEntries, UInt32 entrySize);
116 * @discussion This method will initialize an IODataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters.
118 * @param entrySize Size of each entry.
121 virtual Boolean initWithEntries(UInt32 numEntries, UInt32 entrySize);
[all...]
H A DIOSharedDataQueue.h99 * @discussion This method will create a new IOSharedDataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters. If the initWithEntries() fails, the new instance is released and zero is returned.
101 * @param entrySize Size of each entry.
104 static IOSharedDataQueue *withEntries(UInt32 numEntries, UInt32 entrySize);
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/MC/
H A DMCSectionELF.h49 SectionKind K, unsigned entrySize, const MCSymbol *group)
51 EntrySize(entrySize), Group(group) {}
48 MCSectionELF(StringRef Section, unsigned type, unsigned flags, SectionKind K, unsigned entrySize, const MCSymbol *group) argument
/macosx-10.10.1/tcl-105/tcl_ext/tclx/tclx/generic/
H A DtclXhandles.c57 int entrySize; /* Entry size in bytes, including header */ member in struct:__anon12752
75 ((entryHeader_pt) (hdrPtr->bodyPtr + (hdrPtr->entrySize * idx)))
169 newSize = (tblHdrPtr->tableSize + numNewEntries) * tblHdrPtr->entrySize;
173 (tblHdrPtr->tableSize * tblHdrPtr->entrySize));
293 * o entrySize (I) - The size of an entry, in bytes.
300 TclX_HandleTblInit (handleBase, entrySize, initEntries)
302 int entrySize;
335 tblHdrPtr->entrySize = entryHeaderSize + ROUND_ENTRY_SIZE (entrySize);
339 (ubyte_pt) ckalloc (initEntries * tblHdrPtr->entrySize);
[all...]
H A DtclExtend.h152 int entrySize,
/macosx-10.10.1/IOHIDFamily-606.1.7/IOHIDLib/
H A DIOHIDQueueClass.cpp531 uint32_t entrySize; local
537 entrySize = nextEntry->size;
539 entrySize = OSSwapInt32(entrySize);
546 if (entrySize < sizeof(IOHIDElementValue))
547 HIDLog ("IOHIDQueueClass: Queue size mismatch (%ld, %ld)\n", entrySize, sizeof(IOHIDElementValue));
/macosx-10.10.1/AppleRAID-4.0.6/
H A DAppleLVMGroup.cpp1083 UInt32 entrySize = arMetaDataVolumes[lveMemberIndex]->getEntrySize() / kAppleLVMVolumeOnDiskMinSize;
1084 while (entrySize--) {
1104 entrySize = lv->getEntrySize();
1105 assert(entrySize % kAppleLVMVolumeOnDiskMinSize == 0);
1106 if (entrySize % kAppleLVMVolumeOnDiskMinSize) goto error;
1108 entrySize /= kAppleLVMVolumeOnDiskMinSize;
1109 while (entrySize--) {
/macosx-10.10.1/IOKitUser-1050.1.21/kext.subproj/
H A DOSKext.c13168 uint32_t entrySize; local
13181 entrySize = 0;
13183 entrySize = sizeof(mkext2_file_entry);
13187 mkextStartLength + entrySize + compressedSize);
13267 mkextStartLength + entrySize + compressedSize32);

Completed in 304 milliseconds