Home
last modified time | relevance | path

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

/device/generic/goldfish/libqemu/
Dtest_guest_2.c195 int avail = bufferSize - nn; in main() local
197 if (avail > maxAvail) in main()
198 avail = maxAvail; in main()
200 if (memcmp(buffer+nn, buffer2+nn, avail) != 0) { in main()
207 for (mm = 0; mm < avail; mm++) in main()
214 for (mm = 0; mm < avail; mm++) in main()
219 nn += avail; in main()
/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/
Dpcm.c444 int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail, in pcm_get_htimestamp() argument
477 *avail = (unsigned int)frames; in pcm_get_htimestamp()
1048 int avail; in pcm_mmap_playback_avail() local
1050 avail = pcm->mmap_status->hw_ptr + pcm->buffer_size - pcm->mmap_control->appl_ptr; in pcm_mmap_playback_avail()
1052 if (avail < 0) in pcm_mmap_playback_avail()
1053 avail += pcm->boundary; in pcm_mmap_playback_avail()
1054 else if (avail > (int)pcm->boundary) in pcm_mmap_playback_avail()
1055 avail -= pcm->boundary; in pcm_mmap_playback_avail()
1057 return avail; in pcm_mmap_playback_avail()
1062 int avail = pcm->mmap_status->hw_ptr - pcm->mmap_control->appl_ptr; in pcm_mmap_capture_avail() local
[all …]
Dasoundlib.h217 int pcm_get_htimestamp(struct pcm *pcm, unsigned int *avail,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Dbufferedio.c1064 Py_off_t current, avail; in buffered_seek() local
1072 avail = READAHEAD(self); in buffered_seek()
1073 if (avail > 0) { in buffered_seek()
1079 if (offset >= -self->pos && offset <= avail) { in buffered_seek()
1081 return PyLong_FromOff_t(current - avail + offset); in buffered_seek()
1786 Py_ssize_t written, avail, remaining; in bufferedwriter_write() local
1810 avail = Py_SAFE_DOWNCAST(self->buffer_size - self->pos, Py_off_t, Py_ssize_t); in bufferedwriter_write()
1811 if (buf.len <= avail) { in bufferedwriter_write()
1840 avail = Py_SAFE_DOWNCAST(self->buffer_size - self->write_end, in bufferedwriter_write()
1842 if (buf.len <= avail) { in bufferedwriter_write()
[all …]
Dtextio.c1326 Py_ssize_t avail; in textiowrapper_get_decoded_chars() local
1331 avail = (PyUnicode_GET_SIZE(self->decoded_chars) in textiowrapper_get_decoded_chars()
1334 assert(avail >= 0); in textiowrapper_get_decoded_chars()
1336 if (n < 0 || n > avail) in textiowrapper_get_decoded_chars()
1337 n = avail; in textiowrapper_get_decoded_chars()
1339 if (self->decoded_chars_used > 0 || n < avail) { in textiowrapper_get_decoded_chars()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
Dbufferedio.c1091 Py_off_t current, avail; in buffered_seek() local
1099 avail = READAHEAD(self); in buffered_seek()
1100 if (avail > 0) { in buffered_seek()
1106 if (offset >= -self->pos && offset <= avail) { in buffered_seek()
1108 return PyLong_FromOff_t(current - avail + offset); in buffered_seek()
1812 Py_ssize_t written, avail, remaining; in bufferedwriter_write() local
1836 avail = Py_SAFE_DOWNCAST(self->buffer_size - self->pos, Py_off_t, Py_ssize_t); in bufferedwriter_write()
1837 if (buf.len <= avail) { in bufferedwriter_write()
1866 avail = Py_SAFE_DOWNCAST(self->buffer_size - self->write_end, in bufferedwriter_write()
1868 if (buf.len <= avail) { in bufferedwriter_write()
[all …]
Dtextio.c1349 Py_ssize_t avail; in textiowrapper_get_decoded_chars() local
1354 avail = (PyUnicode_GET_SIZE(self->decoded_chars) in textiowrapper_get_decoded_chars()
1357 assert(avail >= 0); in textiowrapper_get_decoded_chars()
1359 if (n < 0 || n > avail) in textiowrapper_get_decoded_chars()
1360 n = avail; in textiowrapper_get_decoded_chars()
1362 if (self->decoded_chars_used > 0 || n < avail) { in textiowrapper_get_decoded_chars()
/device/google/bonito/sdm710/original-kernel-headers/sound/
Dcompress_offload.h82 __u64 avail; member
Dasound.h451 snd_pcm_uframes_t avail; /* number of frames available */ member
638 size_t avail; /* available bytes */ member
/device/google/crosshatch/sdm845/kernel-headers/sound/
Dcompress_offload.h43 __u64 avail; member
Dasound.h351 snd_pcm_uframes_t avail; member
508 size_t avail; member
/device/google/bonito/sdm710/kernel-headers/sound/
Dcompress_offload.h43 __u64 avail; member
Dasound.h351 snd_pcm_uframes_t avail; member
508 size_t avail; member
/device/google/crosshatch/sdm845/original-kernel-headers/sound/
Dcompress_offload.h82 __u64 avail; member
Dasound.h451 snd_pcm_uframes_t avail; /* number of frames available */ member
638 size_t avail; /* available bytes */ member
/device/linaro/poplar/audio/
Daudio_hw.c297 unsigned int avail; in out_get_presentation_position() local
298 if (pcm_get_htimestamp(out->pcm, &avail, timestamp) == 0) { in out_get_presentation_position()
300 int64_t signed_frames = out->written - kernel_buffer_size + avail; in out_get_presentation_position()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Ddifflib.py679 avail = {}
680 availhas, matches = avail.__contains__, 0
683 numb = avail[elt]
686 avail[elt] = numb - 1
D_pyio.py959 avail = len(buf) - pos # Length of the available buffered data.
960 if n <= avail:
968 while avail < n:
978 avail += len(chunk)
982 n = min(n, avail)
/device/linaro/hikey/audio/
Daudio_hw.c476 unsigned int avail; in out_get_presentation_position() local
477 if (pcm_get_htimestamp(out->pcm, &avail, timestamp) == 0) { in out_get_presentation_position()
479 int64_t signed_frames = out->written - kernel_buffer_size + avail; in out_get_presentation_position()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dbytearrayobject.c478 Py_ssize_t avail, needed; in bytearray_setslice() local
517 avail = hi - lo; in bytearray_setslice()
518 if (avail < 0) in bytearray_setslice()
519 lo = hi = avail = 0; in bytearray_setslice()
521 if (avail != needed) { in bytearray_setslice()
522 if (avail > needed) { in bytearray_setslice()
538 Py_SIZE(self) + needed - avail) < 0) { in bytearray_setslice()
542 if (avail < needed) { in bytearray_setslice()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dbytearrayobject.c478 Py_ssize_t avail, needed; in bytearray_setslice() local
517 avail = hi - lo; in bytearray_setslice()
518 if (avail < 0) in bytearray_setslice()
519 lo = hi = avail = 0; in bytearray_setslice()
521 if (avail != needed) { in bytearray_setslice()
522 if (avail > needed) { in bytearray_setslice()
538 Py_SIZE(self) + needed - avail) < 0) { in bytearray_setslice()
542 if (avail < needed) { in bytearray_setslice()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Ddeflate.c331 unsigned avail; local
359 avail = strm->avail_in;
386 strm->avail_in = avail;