Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 20 of 20) sorted by relevance

/hardware/interfaces/media/bufferpool/aidl/default/
DBufferStatus.cpp83 size_t avail = it->second->availableToRead(); in getBufferStatusChanges() local
84 while (avail > 0) { in getBufferStatusChanges()
94 --avail; in getBufferStatusChanges()
116 size_t avail = mBufferStatusQueue->availableToWrite(); in needsSync() local
117 return avail + kMinElementsToSyncInQueue < kNumElementsInQueue; in needsSync()
126 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferRelease() local
127 avail = std::min(avail, pending.size()); in postBufferRelease()
129 for (size_t i = 0 ; i < avail; ++i) { in postBufferRelease()
152 size_t avail = mBufferStatusQueue->availableToWrite(); in postBufferInvalidateAck() local
153 if (avail > 0) { in postBufferInvalidateAck()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
Doverlay.h255 int avail = 0; in availablePipes() local
265 avail++; in availablePipes()
268 return avail; in availablePipes()
272 int avail = 0; in availablePipes() local
280 avail++; in availablePipes()
283 return avail; in availablePipes()
287 int avail = 0; in availablePipes() local
293 avail++; in availablePipes()
296 return avail; in availablePipes()
/hardware/qcom/display/msm8226/liboverlay/
Doverlay.h263 int avail = 0; in availablePipes() local
273 avail++; in availablePipes()
276 return avail; in availablePipes()
280 int avail = 0; in availablePipes() local
288 avail++; in availablePipes()
291 return avail; in availablePipes()
295 int avail = 0; in availablePipes() local
301 avail++; in availablePipes()
304 return avail; in availablePipes()
/hardware/qcom/display/msm8994/liboverlay/
Doverlay.h282 int avail = 0; in availablePipes() local
292 avail++; in availablePipes()
295 return avail; in availablePipes()
299 int avail = 0; in availablePipes() local
307 avail++; in availablePipes()
310 return avail; in availablePipes()
314 int avail = 0; in availablePipes() local
320 avail++; in availablePipes()
323 return avail; in availablePipes()
/hardware/google/gfxstream/host/
DChannelStream.cpp63 size_t avail = std::min<size_t>(wanted - count, mReadBufferLeft); in readRaw() local
66 avail); in readRaw()
67 count += avail; in readRaw()
68 mReadBufferLeft -= avail; in readRaw()
DRingStream.cpp62 auto avail = ring_buffer_available_write( in commitBuffer() local
67 if (!avail) { in commitBuffer()
81 auto todo = remaining < avail ? remaining : avail; in commitBuffer()
116 size_t avail = std::min<size_t>(wanted - count, mReadBufferLeft); in readRaw() local
119 avail); in readRaw()
120 count += avail; in readRaw()
121 mReadBufferLeft -= avail; in readRaw()
/hardware/google/aemu/host-common/
Daddress_space_graphics_unittests.cpp230 uint32_t avail = get_available_for_write(); in advanceWrite() local
232 while (avail < mContext.ring_config->flush_interval) { in advanceWrite()
234 avail = get_available_for_write(); in advanceWrite()
469 void type1Read(uint32_t avail) { in type1Read() argument
470 uint32_t xferTotal = avail / 8; in type1Read()
501 void type2Read(uint32_t avail) { in type2Read() argument
502 uint32_t xferTotal = avail / 16; in type2Read()
523 int type3Read(uint32_t avail) { in type3Read() argument
524 (void)avail; in type3Read()
525 ensureReadBuffer(avail); in type3Read()
[all …]
DAndroidPipe.cpp157 size_t avail = kBufferSize - mPos; in onGuestSend() local
159 for (; !foundZero && avail > 0 && numBuffers > 0; in onGuestSend()
162 size_t count = std::min(avail, buffers[0].size); in onGuestSend()
174 avail -= n; in onGuestSend()
180 if (avail == 0) { in onGuestSend()
/hardware/google/aemu/base/include/aemu/base/testing/
DTestInputBufferSocketServerThread.h84 size_t avail = capacity - size; in main() local
85 ssize_t len = android::base::socketRecv(fd, &mString[size], avail); in main()
/hardware/qcom/audio/legacy/alsa_sound/
DAudioUsbALSA.cpp387 unsigned avail, bufsize; in RecordingThreadEntry() local
481 avail = pcm_avail(musbRecordingHandle); in RecordingThreadEntry()
482 if (avail < musbRecordingHandle->sw_p->avail_min) { in RecordingThreadEntry()
492 if (x.frames > avail) in RecordingThreadEntry()
493 frames = avail; in RecordingThreadEntry()
517 avail = pcm_avail(mproxyRecordingHandle); in RecordingThreadEntry()
518 if (avail < mproxyRecordingHandle->sw_p->avail_min) { in RecordingThreadEntry()
776 unsigned avail, xfer, bufsize; in PlaybackThreadEntry() local
896 avail = pcm_avail(mproxyPlaybackHandle); in PlaybackThreadEntry()
898 if (avail < mproxyPlaybackHandle->sw_p->avail_min && !mkillPlayBackThread) { in PlaybackThreadEntry()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Darec.c181 int r, avail; in record_file() local
298 avail = pcm_avail(pcm); in record_file()
300 fprintf(stderr, "Arec:avail 1 = %d frames = %ld\n",avail, frames); in record_file()
301 if (avail < 0) in record_file()
302 return avail; in record_file()
303 if (avail < pcm->sw_p->avail_min) { in record_file()
307 if (x.frames > avail) in record_file()
308 frames = avail; in record_file()
Dalsa_pcm.c403 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr; in pcm_avail() local
404 if (avail < 0) in pcm_avail()
405 avail += pcm->sw_p->boundary; in pcm_avail()
406 return avail; in pcm_avail()
408 …long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ?… in pcm_avail() local
409 if (avail < 0) in pcm_avail()
410 avail += pcm->sw_p->boundary; in pcm_avail()
411 else if ((unsigned long) avail >= pcm->sw_p->boundary) in pcm_avail()
412 avail -= pcm->sw_p->boundary; in pcm_avail()
413 return avail; in pcm_avail()
Daplay.c172 long avail; in play_file() local
306 avail = pcm_avail(pcm); in play_file()
307 if (avail < 0) { in play_file()
310 return avail; in play_file()
312 if (avail < pcm->sw_p->avail_min) { in play_file()
325 fprintf(stderr, "Aplay:avail = %d frames = %d\n",avail, frames); in play_file()
/hardware/qcom/display/msm8960/liboverlay/
Doverlay.h161 int avail = 0; in availablePipes() local
165 avail++; in availablePipes()
168 return avail; in availablePipes()
/hardware/qcom/audio/hal/audio_extn/
Dsndmonitor.c107 off_t avail = buf.st_size - pos; in read_state() local
108 if (avail <= 0) { in read_state()
109 ALOGD("avail %ld", avail); in read_state()
113 char * state = (char *)calloc(avail+1, sizeof(char)); in read_state()
117 ssize_t bytes=read(fd, state, avail); in read_state()
/hardware/google/gfxstream/guest/android-emu/aemu/base/
DBumpPool.h51 size_t avail = mStorage.size() * sizeof(uint64_t) - mAllocPos; in alloc() local
/hardware/qcom/audio/hal/
Daudio_hw.c3270 int avail = sizeof(value) - cursor; in stream_get_parameter_rates() local
3271 ret = snprintf(value + cursor, avail, "%s%d", in stream_get_parameter_rates()
3274 if (ret < 0 || ret >= avail) { in stream_get_parameter_rates()
3569 unsigned int avail; in out_write() local
3571 ret = compress_get_hpointer(out->compr, &avail, &tstamp); in out_write()
3574 avail = bytes; in out_write()
3576 if (avail == 0) { in out_write()
3581 if (!was_in_standby && avail == out->kernel_buffer_size) { in out_write()
3586 if (avail > bytes) { in out_write()
3587 avail = bytes; in out_write()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
Dp2p.h206 uint8 avail[2]; /* availibility period */ member
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dstb_image.h6611 stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; in stbi__process_gif_raster() local
6629 avail = clear+2; in stbi__process_gif_raster()
6651 avail = clear + 2; in stbi__process_gif_raster()
6659 } else if (code <= avail) { in stbi__process_gif_raster()
6665 p = &g->codes[avail++]; in stbi__process_gif_raster()
6666 if (avail > 8192) { in stbi__process_gif_raster()
6672 p->suffix = (code == avail) ? p->first : g->codes[code].first; in stbi__process_gif_raster()
6673 } else if (code == avail) in stbi__process_gif_raster()
6678 if ((avail & codemask) == 0 && avail <= 0x0FFF) { in stbi__process_gif_raster()
/hardware/google/gfxstream/third-party/stb/include/stb/
Dstb_image.h6618 stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; in stbi__process_gif_raster() local
6636 avail = clear+2; in stbi__process_gif_raster()
6658 avail = clear + 2; in stbi__process_gif_raster()
6666 } else if (code <= avail) { in stbi__process_gif_raster()
6672 p = &g->codes[avail++]; in stbi__process_gif_raster()
6673 if (avail > 8192) { in stbi__process_gif_raster()
6679 p->suffix = (code == avail) ? p->first : g->codes[code].first; in stbi__process_gif_raster()
6680 } else if (code == avail) in stbi__process_gif_raster()
6685 if ((avail & codemask) == 0 && avail <= 0x0FFF) { in stbi__process_gif_raster()