Lines Matching refs:fd
32 set_draw_cliprects_empty(int fd, int drawable) in set_draw_cliprects_empty() argument
42 ret = ioctl(fd, DRM_IOCTL_UPDATE_DRAW, &update); in set_draw_cliprects_empty()
47 set_draw_cliprects_empty_fail(int fd, int drawable) in set_draw_cliprects_empty_fail() argument
57 ret = ioctl(fd, DRM_IOCTL_UPDATE_DRAW, &update); in set_draw_cliprects_empty_fail()
62 set_draw_cliprects_2(int fd, int drawable) in set_draw_cliprects_2() argument
83 ret = ioctl(fd, DRM_IOCTL_UPDATE_DRAW, &update); in set_draw_cliprects_2()
87 static int add_drawable(int fd) in add_drawable() argument
96 ret = ioctl(fd, DRM_IOCTL_ADD_DRAW, &drawarg); in add_drawable()
101 static int rm_drawable(int fd, int drawable, int fail) in rm_drawable() argument
110 ret = ioctl(fd, DRM_IOCTL_RM_DRAW, &drawarg); in rm_drawable()
125 int fd, d1, d2; in main() local
132 fd = drm_open_any_master(); in main()
134 d1 = add_drawable(fd); in main()
135 d2 = add_drawable(fd); in main()
137 set_draw_cliprects_empty(fd, d1); in main()
138 set_draw_cliprects_empty(fd, d2); in main()
139 set_draw_cliprects_2(fd, d1); in main()
140 set_draw_cliprects_empty(fd, d1); in main()
143 rm_drawable(fd, d1, 0); in main()
144 rm_drawable(fd, d2, 0); in main()
147 rm_drawable(fd, 0x7fffffff, 1); in main()
150 set_draw_cliprects_empty_fail(fd, d1); in main()
152 close(fd); in main()