Lines Matching defs:index
405 static uint32_t _atomicIndexIncrement(uint32_t *index, uint32_t limit);
1056 int index = -1;
1070 index = i;
1075 if (-1 == index)
1101 index = i;
1102 pmSuspendedPIDS[index].pid = pid;
1106 pmSuspendedPIDS[index].refcount++;
1108 pmSuspendedPIDS[index].refcount--;
1149 unsigned int index;
1151 for (index=0; index < pmSuspendedCapacity; index++) {
1152 if (pmSuspendedPIDS[index].pid == pid) {
1153 return pmSuspendedPIDS[index].refcount > 0;
3541 int index;
3575 index = array->getNextIndexOfObject(pmso, 0);
3576 if (-1 != index) {
3577 array->removeObject(index);
6732 int index = -1;
6751 index = pciDeviceBitMappings->getCount() - 1;
6753 deviceName->getCStringNoCopy(), index);
6757 if (!addedToRegistry && (index >= 0))
6762 return index;
7725 useIndex = _atomicIndexIncrement(&hdr->index, hdr->sizeEntries);
7782 useIndex = _atomicIndexIncrement(&hdr->index, hdr->sizeEntries);
7901 uint32_t IOPMTimeline::_atomicIndexIncrement(uint32_t *index, uint32_t limit)
7906 if(!index)
7910 was_index = *index;
7912 } while (!OSCompareAndSwap(was_index, inc_index, index));
8029 PMAssertionsTracker::PMAssertStruct *PMAssertionsTracker::detailsForID(IOPMDriverAssertionID _id, int *index)
8057 if (index)
8058 *index = found;
8130 int index;
8131 PMAssertStruct *assertStruct = detailsForID(_id, &index);
8140 assertionsArray->removeObject(index);