Home
last modified time | relevance | path

Searched refs:nextWriteSlot (Results 1 – 2 of 2) sorted by relevance

/hardware/st/nfc/1.0/hal/
Dhalcore.c495 int nextWriteSlot; in HalEnqueueThreadMessage() local
500 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()
/hardware/st/nfc/st21nfc/hal/
Dhalcore.cc516 int nextWriteSlot; in HalEnqueueThreadMessage() local
521 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()