Lines Matching refs:fd
36 int fd; member
49 static lv_indev_t * touchscreen_init(int fd);
66 int fd; in lv_nuttx_touchscreen_create() local
70 fd = open(dev_path, O_RDONLY | O_NONBLOCK); in lv_nuttx_touchscreen_create()
71 if(fd < 0) { in lv_nuttx_touchscreen_create()
78 indev = touchscreen_init(fd); in lv_nuttx_touchscreen_create()
81 close(fd); in lv_nuttx_touchscreen_create()
140 static bool touchscreen_read_sample(int fd, struct touch_sample_s * sample) in touchscreen_read_sample() argument
142 int nbytes = read(fd, sample, sizeof(struct touch_sample_s)); in touchscreen_read_sample()
164 if(!touchscreen_read_sample(touchscreen->fd, &sample)) { in touchscreen_read()
174 if(touchscreen_read_sample(touchscreen->fd, &sample)) { in touchscreen_read()
196 if(touchscreen->fd >= 0) { in touchscreen_delete_cb()
197 close(touchscreen->fd); in touchscreen_delete_cb()
198 touchscreen->fd = -1; in touchscreen_delete_cb()
205 static lv_indev_t * touchscreen_init(int fd) in touchscreen_init() argument
216 touchscreen->fd = fd; in touchscreen_init()