/macosx-10.10.1/xnu-2782.1.97/iokit/Kernel/ |
H A D | IOSharedDataQueue.cpp | 60 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 D | IODataQueue.cpp | 66 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 D | IOMemoryDescriptor.cpp | 479 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 D | IOHIDEventServiceQueue.cpp | 70 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 D | IOHIDEventQueue.h | 72 UInt32 entrySize ); 74 virtual Boolean initWithEntries(UInt32 numEntries, UInt32 entrySize);
|
H A D | IOHIDEventQueue.cpp | 60 UInt32 entrySize ) 63 UInt32 size = numEntries*entrySize; 96 Boolean IOHIDEventQueue::initWithEntries(UInt32 numEntries, UInt32 entrySize) argument 98 UInt32 size = numEntries*entrySize;
|
H A D | IOHIDResourceUserClient.cpp | 816 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 D | IODataQueueClient.c | 77 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 D | IODataQueue.h | 97 * @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 D | IOSharedDataQueue.h | 99 * @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 D | MCSectionELF.h | 49 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 D | tclXhandles.c | 57 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 D | tclExtend.h | 152 int entrySize,
|
/macosx-10.10.1/IOHIDFamily-606.1.7/IOHIDLib/ |
H A D | IOHIDQueueClass.cpp | 531 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 D | AppleLVMGroup.cpp | 1083 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 D | OSKext.c | 13168 uint32_t entrySize; local 13181 entrySize = 0; 13183 entrySize = sizeof(mkext2_file_entry); 13187 mkextStartLength + entrySize + compressedSize); 13267 mkextStartLength + entrySize + compressedSize32);
|