/lvgl-latest/src/drivers/nuttx/ |
D | lv_nuttx_touchscreen.c | 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() [all …]
|
D | lv_nuttx_lcd.c | 38 int fd; member 52 static lv_display_t * lcd_init(int fd, int hor_res, int ver_res); 72 int fd; in lv_nuttx_lcd_create() local 78 fd = open(dev_path, 0); in lv_nuttx_lcd_create() 79 if(fd < 0) { in lv_nuttx_lcd_create() 86 ret = ioctl(fd, LCDDEVIO_GETVIDEOINFO, in lv_nuttx_lcd_create() 90 close(fd); in lv_nuttx_lcd_create() 94 ret = ioctl(fd, LCDDEVIO_GETPLANEINFO, in lv_nuttx_lcd_create() 98 close(fd); in lv_nuttx_lcd_create() 102 disp = lcd_init(fd, vinfo.xres, vinfo.yres); in lv_nuttx_lcd_create() [all …]
|
D | lv_nuttx_fbdev.c | 36 int fd; member 55 static int fbdev_get_pinfo(int fd, struct fb_planeinfo_s * pinfo); 86 dsc->fd = -1; in lv_nuttx_fbdev_create() 99 if(dsc->fd >= 0) close(dsc->fd); in lv_nuttx_fbdev_set_file() 103 dsc->fd = open(file, O_RDWR); in lv_nuttx_fbdev_set_file() 104 if(dsc->fd < 0) { in lv_nuttx_fbdev_set_file() 110 if(ioctl(dsc->fd, FBIOGET_VIDEOINFO, (unsigned long)((uintptr_t)&dsc->vinfo)) < 0) { in lv_nuttx_fbdev_set_file() 122 if((ret = fbdev_get_pinfo(dsc->fd, &dsc->pinfo)) < 0) { in lv_nuttx_fbdev_set_file() 132 MAP_SHARED | MAP_FILE, dsc->fd, 0); in lv_nuttx_fbdev_set_file() 179 close(dsc->fd); in lv_nuttx_fbdev_set_file() [all …]
|
D | lv_nuttx_libuv.c | 28 int fd; member 35 int fd; member 230 fb_ctx->fd = *(int *)lv_display_get_driver_data(disp); in lv_nuttx_uv_fb_init() 232 if(fb_ctx->fd <= 0) { in lv_nuttx_uv_fb_init() 248 uv_poll_init(loop, &fb_ctx->fb_poll, fb_ctx->fd); in lv_nuttx_uv_fb_init() 253 uv_poll_init(loop, &fb_ctx->vsync_poll, fb_ctx->fd); in lv_nuttx_uv_fb_init() 270 if(fb_ctx->fd > 0) { in lv_nuttx_uv_fb_deinit() 310 input_ctx->fd = *(int *)lv_indev_get_driver_data(indev); in lv_nuttx_uv_input_init() 311 if(input_ctx->fd <= 0) { in lv_nuttx_uv_input_init() 320 uv_poll_init(loop, &input_ctx->input_poll, input_ctx->fd); in lv_nuttx_uv_input_init() [all …]
|
/lvgl-latest/src/libs/fsdrv/ |
D | lv_fs_posix.c | 33 #define FD2FILEP(fd) ((void *)(lv_uintptr_t)(fd + 1)) argument 119 int fd = open(buf, flags, 0666); in fs_open() local 120 if(fd < 0) { in fs_open() 125 return FD2FILEP(fd); in fs_open() 139 int fd = FILEP2FD(file_p); in fs_close() local 140 int ret = close(fd); in fs_close() 142 LV_LOG_WARN("Could not close file: %d, errno: %d", fd, errno); in fs_close() 163 int fd = FILEP2FD(file_p); in fs_read() local 164 ssize_t ret = read(fd, buf, btr); in fs_read() 166 LV_LOG_WARN("Could not read file: %d, errno: %d", fd, errno); in fs_read() [all …]
|
/lvgl-latest/src/drivers/display/drm/ |
D | lv_linux_drm.c | 51 int fd; member 79 static void page_flip_handler(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_u… 128 drm_dev->fd = -1; in lv_linux_drm_create() 143 close(drm_dev->fd); in lv_linux_drm_set_file() 144 drm_dev->fd = -1; in lv_linux_drm_set_file() 151 close(drm_dev->fd); in lv_linux_drm_set_file() 152 drm_dev->fd = -1; in lv_linux_drm_set_file() 227 static void page_flip_handler(int fd, unsigned int sequence, unsigned int tv_sec, unsigned int tv_u… in page_flip_handler() argument 230 LV_UNUSED(fd); in page_flip_handler() 246 drmModeObjectPropertiesPtr props = drmModeObjectGetProperties(drm_dev->fd, drm_dev->plane_id, in drm_get_plane_props() [all …]
|
/lvgl-latest/src/drivers/evdev/ |
D | lv_evdev.c | 52 int fd; member 157 while((br = read(dsc->fd, &in, sizeof(in))) > 0) { in _evdev_read() 217 close(dsc->fd); in _evdev_indev_delete_cb() 346 dsc->fd = open(dev_path, O_RDONLY | O_NOCTTY | O_CLOEXEC); in lv_evdev_create() 347 if(dsc->fd < 0) { in lv_evdev_create() 353 if(0 != fstat(dsc->fd, &sb)) { in lv_evdev_create() 362 if(ioctl(dsc->fd, EVIOCGBIT(EV_REL, sizeof(rel_bits)), &rel_bits) >= 0) { in lv_evdev_create() 376 if(ioctl(dsc->fd, EVIOCGBIT(EV_ABS, sizeof(abs_bits)), &abs_bits) >= 0) { in lv_evdev_create() 390 if(ioctl(dsc->fd, EVIOCGBIT(EV_KEY, sizeof(key_bits)), key_bits) >= 0) { in lv_evdev_create() 409 if(fcntl(dsc->fd, F_SETFL, O_NONBLOCK) < 0) { in lv_evdev_create() [all …]
|
/lvgl-latest/src/drivers/libinput/ |
D | lv_libinput.c | 66 static void _close_restricted(int fd, void * user_data); 159 dsc->fd = libinput_get_fd(dsc->libinput_context); in lv_libinput_create() 162 dsc->fds[0].fd = dsc->fd; in lv_libinput_create() 632 int fd = open(path, flags); in _open_restricted() local 633 return fd < 0 ? -errno : fd; in _open_restricted() 636 static void _close_restricted(int fd, void * user_data) in _close_restricted() argument 639 close(fd); in _close_restricted() 644 if(dsc->fd) in _delete()
|
D | lv_libinput_private.h | 40 int fd; member
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_stm32_hal.c | 209 if(bo->fd == -1) { in nema_buffer_destroy() 218 bo->fd = -1; /* Buffer not allocated */ in nema_buffer_destroy()
|
/lvgl-latest/libs/nema_gfx/include/ |
D | nema_hal.h | 40 int fd; /**< File Descriptor of buffer */ member
|
/lvgl-latest/src/libs/gif/ |
D | gifdec.h | 29 lv_fs_file_t fd; member
|
D | gifdec.c | 779 lv_fs_res_t res = lv_fs_open(&gif->fd, path, LV_FS_MODE_RD); in f_gif_open() 792 lv_fs_read(&gif->fd, buf, len, NULL); in f_gif_read() 803 lv_fs_seek(&gif->fd, pos, k); in f_gif_seek() 805 lv_fs_tell(&gif->fd, &x); in f_gif_seek() 818 lv_fs_close(&gif->fd); in f_gif_close()
|
/lvgl-latest/src/drivers/wayland/ |
D | lv_wayland_smm.c | 297 pool->props.fd, in smm_map() 470 ret = ftruncate(smm_instance.active->props.fd, in get_from_pool() 595 pool->props.fd = shm_open(name, in alloc_pool() 598 if(pool->props.fd >= 0) { in alloc_pool() 632 close(pool->props.fd); in free_pool()
|
D | lv_wayland_smm.h | 58 int fd; member
|
D | lv_wayland.c | 746 uint32_t format, int fd, uint32_t size) in keyboard_handle_keymap() argument 757 close(fd); in keyboard_handle_keymap() 761 map_str = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); in keyboard_handle_keymap() 763 close(fd); in keyboard_handle_keymap() 771 close(fd); in keyboard_handle_keymap() 1442 props->fd, in sme_new_pool() 2481 application.wayland_pfd.fd = wl_display_get_fd(application.display); in wayland_init()
|
/lvgl-latest/src/others/vg_lite_tvg/ |
D | vg_lite.h | 1012 vg_lite_error_t vg_lite_map(vg_lite_buffer_t *buffer, vg_lite_map_flag_t flag, int32_t fd);
|
D | vg_lite_tvg.cpp | 579 vg_lite_error_t vg_lite_map(vg_lite_buffer_t * buffer, vg_lite_map_flag_t flag, int32_t fd) in vg_lite_map() argument 583 LV_UNUSED(fd); in vg_lite_map()
|
/lvgl-latest/docs/details/main-components/ |
D | indev.rst | 537 might need to read it by polling a file descriptor (fd).
|
/lvgl-latest/src/libs/expat/ |
D | xmlparse.c | 833 const int fd = open("/dev/urandom", O_RDONLY); in writeRandomBytes_dev_urandom() local 834 if (fd < 0) { in writeRandomBytes_dev_urandom() 842 const ssize_t bytesWrittenMore = read(fd, currentTarget, bytesToWrite); in writeRandomBytes_dev_urandom() 851 close(fd); in writeRandomBytes_dev_urandom()
|