Searched refs:dev_fd (Results 1 – 1 of 1) sorted by relevance
/device/linaro/hikey/wpan/uim/ |
D | uim.c | 39 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 …]
|