Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 2 of 2) sorted by relevance

/device/linaro/hikey/wpan/uim/
Duim.c39 static int dev_fd; variable
57 void read_firmware_version(int dev_fd) in read_firmware_version() argument
64 UIM_VER(" wrote %d bytes", (int)write(dev_fd, buffer, 4)); in read_firmware_version()
65 UIM_VER(" reading %d bytes", (int)read(dev_fd, resp_buffer, 15)); in read_firmware_version()
199 static int set_baud_rate(int dev_fd) in set_baud_rate() argument
204 tcflush(dev_fd, TCIOFLUSH); in set_baud_rate()
207 if (tcgetattr(dev_fd, &ti) < 0) { in set_baud_rate()
222 tcsetattr(dev_fd, TCSANOW, &ti); in set_baud_rate()
227 tcsetattr(dev_fd, TCSANOW, &ti); in set_baud_rate()
229 tcflush(dev_fd, TCIOFLUSH); in set_baud_rate()
[all …]
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c1565 int dev_fd = -1; in get_sensor_info() local
1574 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info()
1575 if (dev_fd < 0) { in get_sensor_info()
1581 rc = ioctl(dev_fd, MEDIA_IOC_DEVICE_INFO, &mdev_info); in get_sensor_info()
1584 close(dev_fd); in get_sensor_info()
1585 dev_fd = -1; in get_sensor_info()
1591 close(dev_fd); in get_sensor_info()
1592 dev_fd = -1; in get_sensor_info()
1607 rc = ioctl(dev_fd, MEDIA_IOC_ENUM_ENTITIES, &entity); in get_sensor_info()
1637 close(dev_fd); in get_sensor_info()
[all …]