Searched refs:nread (Results 1 - 6 of 6) sorted by relevance

/hardware/invensense/60xx/libsensors_iio/
H A DInputEventReader.cpp59 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
60 if (nread < 0 || nread % sizeof(input_event)) {
61 //LOGE("Partial event received nread=%d, required=%d",
62 // nread, sizeof(input_event));
66 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
68 LOGV_IF(nread % sizeof(input_event),
69 "DEBUG:%s exit nread %% sizeof(input_event)\n",
72 return (nread <
[all...]
/hardware/invensense/6515/libsensors_iio/
H A DInputEventReader.cpp61 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
62 if (nread < 0 || nread % sizeof(input_event)) {
63 //LOGE("Partial event received nread=%d, required=%d",
64 // nread, sizeof(input_event));
68 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
70 LOGV_IF(nread % sizeof(input_event),
71 "DEBUG:%s exit nread %% sizeof(input_event)\n",
74 return (nread <
[all...]
/hardware/invensense/65xx/libsensors_iio/
H A DInputEventReader.cpp61 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
62 if (nread < 0 || nread % sizeof(input_event)) {
63 //LOGE("Partial event received nread=%d, required=%d",
64 // nread, sizeof(input_event));
68 LOGV_IF(nread < 0, "DEBUG:%s exit nread < 0\n",
70 LOGV_IF(nread % sizeof(input_event),
71 "DEBUG:%s exit nread %% sizeof(input_event)\n",
74 return (nread <
[all...]
/hardware/akm/AK8975_FS/libsensors/
H A DInputEventReader.cpp53 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(input_event)); local
54 if (nread<0 || nread % sizeof(input_event)) {
56 return nread<0 ? -errno : -EINVAL;
59 numEventsRead = nread / sizeof(input_event);
/hardware/libhardware_legacy/wifi/
H A Dwifi.c344 int nread; local
373 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) {
374 if (nread < 0) {
381 TEMP_FAILURE_RETRY(write(destfd, buf, nread));
655 size_t nread = buflen - 1; local
664 result = wifi_ctrl_recv(buf, &nread);
677 buf[nread] = '\0';
679 if (result == 0 && nread == 0) {
703 nread -= (match2 - match);
704 memmove(match + 1, match2 + 1, nread
[all...]
/hardware/invensense/60xx/libsensors/
H A DMPLSensor.cpp304 int nread; local
313 nread = read(cur_fd, &irqdata, sizeof(irqdata));
314 if (nread > 0) {

Completed in 226 milliseconds