Lines Matching refs:index
154 /*Validate index range, abort if invalid */
155 void validate(int index);
193 static void setUse(int index);
194 static void resetUse(int index);
195 static bool isUsed(int index);
196 static bool isNotUsed(int index);
199 static void setAllocation(int index);
200 static void resetAllocation(int index);
201 static bool isAllocated(int index);
202 static bool isNotAllocated(int index);
247 inline void Overlay::validate(int index) {
248 OVASSERT(index >=0 && index < PipeBook::NUM_PIPES, \
249 "%s, Index out of bounds: %d", __FUNCTION__, index);
250 OVASSERT(mPipeBook[index].valid(), "Pipe does not exist %s",
251 PipeBook::getDestStr((utils::eDest)index));
331 inline void Overlay::PipeBook::setUse(int index) {
332 sPipeUsageBitmap |= (1 << index);
335 inline void Overlay::PipeBook::resetUse(int index) {
336 sPipeUsageBitmap &= ~(1 << index);
339 inline bool Overlay::PipeBook::isUsed(int index) {
340 return sPipeUsageBitmap & (1 << index);
343 inline bool Overlay::PipeBook::isNotUsed(int index) {
344 return !isUsed(index);
351 inline void Overlay::PipeBook::setAllocation(int index) {
352 sAllocatedBitmap |= (1 << index);
355 inline void Overlay::PipeBook::resetAllocation(int index) {
356 sAllocatedBitmap &= ~(1 << index);
359 inline bool Overlay::PipeBook::isAllocated(int index) {
360 return sAllocatedBitmap & (1 << index);
363 inline bool Overlay::PipeBook::isNotAllocated(int index) {
364 return !isAllocated(index);