Home
last modified time | relevance | path

Searched refs:rear (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/
Dfifo.c65 static inline size_t audio_utils_fifo_diff(struct audio_utils_fifo *fifo, int32_t rear, in audio_utils_fifo_diff() argument
68 int32_t diff = rear - front; in audio_utils_fifo_diff()
71 int32_t genDiff = (rear & mask) - (front & mask); in audio_utils_fifo_diff()
85 int32_t rear = fifo->mRear; in audio_utils_fifo_write() local
86 size_t availToWrite = fifo->mFrameCount - audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_write()
90 rear &= fifo->mFrameCountP2 - 1; in audio_utils_fifo_write()
91 size_t part1 = fifo->mFrameCount - rear; in audio_utils_fifo_write()
96 memcpy((char *) fifo->mBuffer + (rear * fifo->mFrameSize), buffer, in audio_utils_fifo_write()
111 int32_t rear = android_atomic_acquire_load(&fifo->mRear); in audio_utils_fifo_read() local
113 size_t availToRead = audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_read()
/system/bt/stack/btm/
Dbtm_ble_multi_adv.c397 if (btm_multi_adv_idx_q.front == btm_multi_adv_idx_q.rear) in btm_ble_multi_adv_gen_rpa_cmpl()
400 btm_multi_adv_idx_q.rear = -1; in btm_ble_multi_adv_gen_rpa_cmpl()
455 if (btm_multi_adv_idx_q.front == (btm_multi_adv_idx_q.rear + 1) % BTM_BLE_MULTI_ADV_MAX) in btm_ble_multi_adv_configure_rpa()
465 btm_multi_adv_idx_q.rear = 0; in btm_ble_multi_adv_configure_rpa()
469 btm_multi_adv_idx_q.rear = (btm_multi_adv_idx_q.rear + 1) % BTM_BLE_MULTI_ADV_MAX; in btm_ble_multi_adv_configure_rpa()
471 btm_multi_adv_idx_q.inst_index_queue[btm_multi_adv_idx_q.rear] = p_inst->index; in btm_ble_multi_adv_configure_rpa()
818 btm_multi_adv_idx_q.rear = -1; in btm_ble_multi_adv_init()
/system/bt/stack/include/
Dbtm_ble_api.h520 int rear; member