Home
last modified time | relevance | path

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

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