Searched refs:nread (Results 1 – 4 of 4) sorted by relevance
/device/htc/flounder/sensor_hub/libsensors/ |
D | InputEventReader.cpp | 50 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(cw_event)); in fill() local 51 if (nread<0 || nread % sizeof(cw_event)) { in fill() 53 return nread<0 ? -errno : -EINVAL; in fill() 56 numEventsRead = nread / sizeof(cw_event); in fill()
|
/device/samsung/manta/libsensors/ |
D | InputEventReader.cpp | 74 const ssize_t nread = readv(fd, iov, iovcnt); in fill() local 75 if (nread < 0 || nread % sizeof(iio_event_data)) { in fill() 77 return nread < 0 ? -errno : -EINVAL; in fill() 80 numEventsRead = nread / sizeof(iio_event_data); in fill()
|
/device/lge/mako/conn_init/ |
D | wfc_util_fctrl.c | 588 int nread; in wfc_util_ffile_check_copy() local 619 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) { in wfc_util_ffile_check_copy() 620 if (nread < 0) { in wfc_util_ffile_check_copy() 628 if (nread < WFC_BUFFER_SIZE) in wfc_util_ffile_check_copy() 629 buf[nread] = '\0'; in wfc_util_ffile_check_copy() 632 nread = WFC_BUFFER_SIZE-1; in wfc_util_ffile_check_copy() 634 write(destfd, buf, nread); in wfc_util_ffile_check_copy()
|
/device/asus/flo/conn_init/ |
D | wfc_util_fctrl.c | 588 int nread; in wfc_util_ffile_check_copy() local 619 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) { in wfc_util_ffile_check_copy() 620 if (nread < 0) { in wfc_util_ffile_check_copy() 628 if (nread < WFC_BUFFER_SIZE) in wfc_util_ffile_check_copy() 629 buf[nread] = '\0'; in wfc_util_ffile_check_copy() 632 nread = WFC_BUFFER_SIZE-1; in wfc_util_ffile_check_copy() 634 write(destfd, buf, nread); in wfc_util_ffile_check_copy()
|