Searched refs:rear (Results 1 – 3 of 3) sorted by relevance
65 static inline size_t audio_utils_fifo_diff(struct audio_utils_fifo *fifo, int32_t rear, in audio_utils_fifo_diff() argument68 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() local86 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() local113 size_t availToRead = audio_utils_fifo_diff(fifo, rear, front); in audio_utils_fifo_read()
397 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()
520 int rear; member