Lines Matching refs:first
43 if (!mRanges.size() || mRanges[0].first) { in acquire()
50 uint32_t token = run.first + run.length; in acquire()
76 if ((token >= run.first) && (token < run.first+run.length)) { in release()
79 if ((token == run.first) || (token == run.first+run.length-1)) { in release()
80 if (token == run.first) { in release()
81 run.first += 1; in release()
91 new_run.first = token+1; in release()
92 new_run.length = run.first+run.length - new_run.first; in release()
93 run.length = token - run.first; in release()
114 if (token < curr->first) c = 1; in _indexOrderOf()
115 else if (token >= curr->first+curr->length) c = -1; in _indexOrderOf()
136 if (p.first+p.length == token) { in _insertTokenAt()
140 if (token+1 == n.first) { in _insertTokenAt()
152 if (token+1 == n.first) { in _insertTokenAt()
153 n.first -= 1; in _insertTokenAt()
168 ALOGD("%zu: (%u, %u)\n", i, ranges[i].first, ranges[i].length); in dump()