/AliOS-Things-master/components/ble_host/bt_crypto/tinycrypt/source/ |
A D | ecc_platform_specific.c | 91 ssize_t bytes_read = read(fd, ptr, left); in default_CSPRNG() local 92 if (bytes_read <= 0) { // read failed in default_CSPRNG() 96 left -= bytes_read; in default_CSPRNG() 97 ptr += bytes_read; in default_CSPRNG()
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/ |
A D | audio_provider.cc | 192 size_t bytes_read; in CaptureSamples() local 222 else if (bytes_written < bytes_read) in CaptureSamples() 299 int32_t bytes_read = in GetAudioSamples() local 305 int32_t bytes_read = in GetAudioSamples() local 311 LOG("bytes_read : %d\n", bytes_read); in GetAudioSamples() 319 if (bytes_read < 0) in GetAudioSamples() 323 else if (bytes_read < new_samples_to_get * sizeof(int16_t)) in GetAudioSamples() 329 bytes_read, new_samples_to_get * sizeof(int16_t)); in GetAudioSamples()
|
/AliOS-Things-master/components/SDL2/src/video/wayland/ |
A D | SDL_waylanddatamanager.c | 94 ssize_t bytes_read = 0; in read_pipe() local 100 bytes_read = SDL_SetError("Pipe timeout"); in read_pipe() 102 bytes_read = SDL_SetError("Pipe select error"); in read_pipe() 104 bytes_read = read(fd, temp, sizeof(temp)); in read_pipe() 107 if (bytes_read > 0) { in read_pipe() 109 *total_length += bytes_read; in read_pipe() 124 bytes_read = SDL_OutOfMemory(); in read_pipe() 126 SDL_memcpy((Uint8*)output_buffer + pos, temp, bytes_read); in read_pipe() 136 return bytes_read; in read_pipe()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_unix.c | 73 size_t bytes_read; in _tiffReadProc() local 81 for (bytes_read=0; bytes_read < bytes_total; bytes_read+=count) in _tiffReadProc() 83 char *buf_offset = (char *) buf+bytes_read; in _tiffReadProc() 84 size_t io_size = bytes_total-bytes_read; in _tiffReadProc() 93 return (tmsize_t) bytes_read; in _tiffReadProc()
|
A D | tif_read.c | 74 tmsize_t bytes_read; in TIFFReadAndRealloc() local 109 bytes_read = TIFFReadFile(tif, in TIFFReadAndRealloc() 111 already_read += bytes_read; in TIFFReadAndRealloc() 112 if (bytes_read != to_read) { in TIFFReadAndRealloc()
|
A D | tif_dirread.c | 799 tmsize_t bytes_read; in TIFFReadDirEntryDataAndRealloc() local 822 bytes_read = TIFFReadFile(tif, in TIFFReadDirEntryDataAndRealloc() 824 already_read += bytes_read; in TIFFReadDirEntryDataAndRealloc() 825 if (bytes_read != to_read) { in TIFFReadDirEntryDataAndRealloc()
|
/AliOS-Things-master/components/SDL2/src/hidapi/linux/ |
A D | hid.c | 768 int bytes_read; in hid_read_timeout() local 796 bytes_read = read(dev->device_handle, data, length); in hid_read_timeout() 797 if (bytes_read < 0 && (errno == EAGAIN || errno == EINPROGRESS)) in hid_read_timeout() 798 bytes_read = 0; in hid_read_timeout() 800 if (bytes_read >= 0 && in hid_read_timeout() 805 memmove(data, data+1, bytes_read); in hid_read_timeout() 806 bytes_read--; in hid_read_timeout() 809 return bytes_read; in hid_read_timeout()
|
/AliOS-Things-master/components/SDL2/src/hidapi/mac/ |
A D | hid.c | 907 int bytes_read = -1; in hid_read_timeout() local 915 bytes_read = return_data(dev, data, length); in hid_read_timeout() 921 bytes_read = -1; in hid_read_timeout() 929 bytes_read = -1; in hid_read_timeout() 940 bytes_read = return_data(dev, data, length); in hid_read_timeout() 943 bytes_read = -1; in hid_read_timeout() 962 bytes_read = return_data(dev, data, length); in hid_read_timeout() 964 bytes_read = 0; in hid_read_timeout() 966 bytes_read = -1; in hid_read_timeout() 970 bytes_read = 0; in hid_read_timeout() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | jdmarker.c | 105 unsigned int bytes_read; /* data bytes read so far in marker */ member 881 unsigned int bytes_read, data_length; in save_marker() local 910 marker->bytes_read = 0; in save_marker() 911 bytes_read = 0; in save_marker() 915 bytes_read = data_length = 0; in save_marker() 920 bytes_read = marker->bytes_read; in save_marker() 922 data = cur_marker->data + bytes_read; in save_marker() 925 while (bytes_read < data_length) { in save_marker() 927 marker->bytes_read = bytes_read; in save_marker() 931 while (bytes_read < data_length && bytes_in_buffer > 0) { in save_marker() [all …]
|
/AliOS-Things-master/components/SDL2/src/hidapi/windows/ |
A D | hid.c | 784 DWORD bytes_read = 0; in hid_read_timeout() local 796 …res = ReadFile(dev->device_handle, dev->read_buf, (DWORD)dev->input_report_length, &bytes_read, &d… in hid_read_timeout() 822 res = GetOverlappedResult(dev->device_handle, &dev->ol, &bytes_read, TRUE/*wait*/); in hid_read_timeout() 827 if (res && bytes_read > 0) { in hid_read_timeout() 833 bytes_read--; in hid_read_timeout() 834 copy_len = length > bytes_read ? bytes_read : length; in hid_read_timeout() 839 copy_len = length > bytes_read ? bytes_read : length; in hid_read_timeout()
|
/AliOS-Things-master/components/SDL2/src/hidapi/libusb/ |
A D | hid.c | 1179 int bytes_read = -1; in hid_read_timeout() local 1194 bytes_read = return_data(dev, data, length); in hid_read_timeout() 1201 bytes_read = -1; in hid_read_timeout() 1211 bytes_read = return_data(dev, data, length); in hid_read_timeout() 1222 bytes_read = return_data(dev, data, length); in hid_read_timeout() 1232 bytes_read = 0; in hid_read_timeout() 1237 bytes_read = -1; in hid_read_timeout() 1244 bytes_read = 0; in hid_read_timeout() 1251 return bytes_read; in hid_read_timeout()
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/iostream3/ |
A D | zfstream.cc | 197 int bytes_read = gzread(file, buffer, buffer_size); in underflow() local 199 if (bytes_read <= 0) in underflow() 206 this->setg(buffer, buffer, buffer + bytes_read); in underflow()
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | machine_uart.c | 317 mp_uint_t bytes_read = 0; in machine_uart_read() local 319 status = aos_hal_uart_recv_II(&self->dev, buf_in, size, &bytes_read, self->timeout); in machine_uart_read() 328 return bytes_read; in machine_uart_read()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | machine_uart.c | 311 mp_uint_t bytes_read = 0; in machine_uart_read() local 313 status = aos_hal_uart_recv_II(&self->dev, buf_in, size, &bytes_read, self->timeout); in machine_uart_read() 322 return bytes_read; in machine_uart_read()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | machine_uart.c | 311 mp_uint_t bytes_read = 0; in machine_uart_read() local 313 status = aos_hal_uart_recv_II(&self->dev, buf_in, size, &bytes_read, self->timeout); in machine_uart_read() 322 return bytes_read; in machine_uart_read()
|
/AliOS-Things-master/components/SDL2/src/image/ |
A D | IMG_UIImage.m | 117 int bytes_read = 0; 128 bytes_read = SDL_RWread(rw_ops, temp_buffer, 1, block_size); 129 [ns_data appendBytes:temp_buffer length:bytes_read]; 130 } while(bytes_read > 0);
|
A D | IMG_ImageIO.m | 619 int bytes_read = 0; 627 bytes_read = SDL_RWread(rw_ops, temp_buffer, 1, block_size); 628 [ns_data appendBytes:temp_buffer length:bytes_read]; 629 } while (bytes_read > 0);
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | tiffcrop.c | 3685 int32 bytes_read = 0; in readContigStripsIntoBuffer() local 3698 bytes_read = TIFFReadEncodedStrip (in, strip, bufp, -1); in readContigStripsIntoBuffer() 3699 rows = bytes_read / scanline_size; in readContigStripsIntoBuffer() 3700 if ((strip < (nstrips - 1)) && (bytes_read != (int32)stripsize)) in readContigStripsIntoBuffer() 3702 (int)strip + 1, (unsigned long) bytes_read, in readContigStripsIntoBuffer() 3705 if (bytes_read < 0 && !ignore) { in readContigStripsIntoBuffer() 4771 int32 bytes_read = 0; in readSeparateStripsIntoBuffer() local 4859 bytes_read = TIFFReadEncodedStrip (in, strip, buff, stripsize); in readSeparateStripsIntoBuffer() 4860 rows_this_strip = bytes_read / src_rowsize; in readSeparateStripsIntoBuffer() 4861 if (bytes_read < 0 && !ignore) in readSeparateStripsIntoBuffer() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/ |
A D | README | 758 VP8StatusCode status = WebPIAppend(idec, input, bytes_read); 760 bytes_remaining -= bytes_read;
|