Searched refs:bytes_read (Results 1 - 8 of 8) sorted by relevance

/haiku/src/system/libroot/posix/glibc/libio/
H A Diofread_u.c41 _IO_size_t bytes_read; local
45 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
46 return bytes_requested == bytes_read ? count : bytes_read / size;
H A Diofread.c38 _IO_size_t bytes_read; local
44 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
47 return bytes_requested == bytes_read ? count : bytes_read / size;
/haiku/src/add-ons/input_server/devices/serial_mouse/
H A DSerialMouse.cpp160 int bytes_read = 0; local
186 while ((fSerialPort->Read(&c, 1) == 1) && (bytes_read < kMaxBytesToRead)) {
196 buffer[bytes_read] = c; // store the garbage for futher processing.
198 bytes_read++;
206 if (bytes_read == 0)
222 if (bytes_read < 3) // not enough data to even start... quit.
227 if (bytes_read == 5) {
338 uint8 bytes_read; local
341 for (bytes_read = 0; bytes_read < mpsiz
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Drunlist.c1116 s64 bytes_read, to_read, ofs, total; local
1154 bytes_read = ntfs_pread(vol->dev, (rl->lcn <<
1157 if (bytes_read > 0) {
1158 total += bytes_read;
1159 count -= bytes_read;
1160 b = (u8*)b + bytes_read;
1164 if (bytes_read == (s64)-1 && errno == EINTR)
1166 if (bytes_read == (s64)-1)
H A Dvolume.c800 int bytes_read, err; local
820 bytes_read = ntfs_attr_pread(na, 0, NTFS_HIBERFILE_HEADER_SIZE, buf);
821 if (bytes_read == -1) {
825 if (bytes_read < NTFS_HIBERFILE_HEADER_SIZE) {
H A Dattrib.c5613 s64 arec_size, bytes_read; local
5722 bytes_read = ntfs_rl_pread(vol, na->rl, 0, na->initialized_size,
5724 if (bytes_read != na->initialized_size) {
5725 if (bytes_read < 0)
/haiku/src/apps/packageinstaller/
H A DPackageItem.cpp94 uint64 bytes_read = 0, read = P_CHUNK_SIZE, write = 0; local
103 bytes_read += P_CHUNK_SIZE;
104 if (bytes_read > in_size) {
105 read = in_size - (bytes_read - P_CHUNK_SIZE);
106 bytes_read = in_size;
136 } while (bytes_read != in_size);
/haiku/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/
H A Dif_iwm.c2954 size_t bytes_read; local
2975 bytes_read = le16toh(nvm_resp->length);
2988 if (bytes_read > length) {
2993 memcpy(data + offset, resp_data, bytes_read);
2994 *len = bytes_read;

Completed in 189 milliseconds