Lines Matching refs:queueDriver
1888 uint32_t queueDriverIndex = handle->queueDriver; in SAI_TransferGetSendCount()
1916 uint32_t queueDriverIndex = handle->queueDriver; in SAI_TransferGetReceiveCount()
1956 handle->queueDriver = 0; in SAI_TransferAbortSend()
1986 handle->queueDriver = 0; in SAI_TransferAbortReceive()
2011 handle->queueDriver = 0U; in SAI_TransferTerminateSend()
2035 handle->queueDriver = 0U; in SAI_TransferTerminateReceive()
2048 uint8_t *buffer = handle->saiQueue[handle->queueDriver].data; in SAI_TransferTxHandleIRQ()
2072 size_t size = MIN((handle->saiQueue[handle->queueDriver].dataSize), in SAI_TransferTxHandleIRQ()
2080 handle->saiQueue[handle->queueDriver].dataSize -= size; in SAI_TransferTxHandleIRQ()
2081 handle->saiQueue[handle->queueDriver].data = (uint8_t *)((uintptr_t)buffer + size); in SAI_TransferTxHandleIRQ()
2086 size_t size = MIN((handle->saiQueue[handle->queueDriver].dataSize), dataSize); in SAI_TransferTxHandleIRQ()
2092 handle->saiQueue[handle->queueDriver].dataSize -= size; in SAI_TransferTxHandleIRQ()
2093 handle->saiQueue[handle->queueDriver].data = (uint8_t *)((uintptr_t)buffer + size); in SAI_TransferTxHandleIRQ()
2098 if (handle->saiQueue[handle->queueDriver].dataSize == 0U) in SAI_TransferTxHandleIRQ()
2100 (void)memset(&handle->saiQueue[handle->queueDriver], 0, sizeof(sai_transfer_t)); in SAI_TransferTxHandleIRQ()
2101 handle->queueDriver = (handle->queueDriver + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferTxHandleIRQ()
2109 if (handle->saiQueue[handle->queueDriver].data == NULL) in SAI_TransferTxHandleIRQ()
2125 uint8_t *buffer = handle->saiQueue[handle->queueDriver].data; in SAI_TransferRxHandleIRQ()
2149 … size_t size = MIN((handle->saiQueue[handle->queueDriver].dataSize), handle->watermark * dataSize); in SAI_TransferRxHandleIRQ()
2156 handle->saiQueue[handle->queueDriver].dataSize -= size; in SAI_TransferRxHandleIRQ()
2157 handle->saiQueue[handle->queueDriver].data = (uint8_t *)((uintptr_t)buffer + size); in SAI_TransferRxHandleIRQ()
2162 size_t size = MIN((handle->saiQueue[handle->queueDriver].dataSize), dataSize); in SAI_TransferRxHandleIRQ()
2168 handle->saiQueue[handle->queueDriver].dataSize -= size; in SAI_TransferRxHandleIRQ()
2169 handle->saiQueue[handle->queueDriver].data = (uint8_t *)((uintptr_t)buffer + size); in SAI_TransferRxHandleIRQ()
2174 if (handle->saiQueue[handle->queueDriver].dataSize == 0U) in SAI_TransferRxHandleIRQ()
2176 (void)memset(&handle->saiQueue[handle->queueDriver], 0, sizeof(sai_transfer_t)); in SAI_TransferRxHandleIRQ()
2177 handle->queueDriver = (handle->queueDriver + 1U) % (uint8_t)SAI_XFER_QUEUE_SIZE; in SAI_TransferRxHandleIRQ()
2185 if (handle->saiQueue[handle->queueDriver].data == NULL) in SAI_TransferRxHandleIRQ()