Searched refs:nextWriteSlot (Results 1 – 2 of 2) sorted by relevance
495 int nextWriteSlot; in HalEnqueueThreadMessage() local500 nextWriteSlot = inst->ringWritePos + 1; in HalEnqueueThreadMessage()502 if (nextWriteSlot == HAL_QUEUE_MAX) { in HalEnqueueThreadMessage()503 nextWriteSlot = 0; in HalEnqueueThreadMessage()507 if (nextWriteSlot == inst->ringReadPos) { in HalEnqueueThreadMessage()514 memcpy(&(inst->ring[nextWriteSlot]), msg, sizeof(ThreadMesssage)); in HalEnqueueThreadMessage()515 inst->ringWritePos = nextWriteSlot; in HalEnqueueThreadMessage()
516 int nextWriteSlot; in HalEnqueueThreadMessage() local521 nextWriteSlot = inst->ringWritePos + 1; in HalEnqueueThreadMessage()523 if (nextWriteSlot == HAL_QUEUE_MAX) { in HalEnqueueThreadMessage()524 nextWriteSlot = 0; in HalEnqueueThreadMessage()528 if (nextWriteSlot == inst->ringReadPos) { in HalEnqueueThreadMessage()535 memcpy(&(inst->ring[nextWriteSlot]), msg, sizeof(ThreadMesssage)); in HalEnqueueThreadMessage()536 inst->ringWritePos = nextWriteSlot; in HalEnqueueThreadMessage()