Lines Matching refs:fd

97 		if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1)  in fb_post()
99 AERR("FBIOPAN_DISPLAY failed for fd: %d", m->framebuffer->fd); in fb_post()
109 if (ioctl(m->framebuffer->fd, S3CFB_SET_VSYNC_INT, &interrupt) < 0) in fb_post()
121 if (ioctl(m->framebuffer->fd, FBIO_WAITFORVSYNC, &crtc) < 0) in fb_post()
123 AERR("FBIO_WAITFORVSYNC failed for fd: %d", m->framebuffer->fd); in fb_post()
136 if (ioctl(m->framebuffer->fd, S3CFB_SET_VSYNC_INT, &interrupt) < 0) in fb_post()
138 AERR("S3CFB_SET_VSYNC_INT disable failed for fd: %d", m->framebuffer->fd); in fb_post()
149 if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) in fb_post()
151 AERR("FBIOPUT_VSCREENINFO failed for fd: %d", m->framebuffer->fd); in fb_post()
200 int fd = -1; in init_frame_buffer_locked() local
204 while ((fd == -1) && device_template[i]) in init_frame_buffer_locked()
207 fd = open(name, O_RDWR, 0); in init_frame_buffer_locked()
211 if (fd < 0) in init_frame_buffer_locked()
218 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) in init_frame_buffer_locked()
225 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in init_frame_buffer_locked()
272 if (ioctl(fd, FBIOPUT_VSCREENINFO, &info) == -1) in init_frame_buffer_locked()
276 AWAR("FBIOPUT_VSCREENINFO failed, page flipping not supported fd: %d", fd); in init_frame_buffer_locked()
287 if (ioctl(fd, FBIOGET_VSCREENINFO, &info) == -1) in init_frame_buffer_locked()
305 AWAR("fbdev pixclock is zero for fd: %d", fd); in init_frame_buffer_locked()
335 fd, in init_frame_buffer_locked()
353 if (ioctl(fd, FBIOGET_FSCREENINFO, &finfo) == -1) in init_frame_buffer_locked()
374 void *vaddr = mmap(0, fbSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in init_frame_buffer_locked()
386 0, fd, 0, (void *)finfo.smem_start); in init_frame_buffer_locked()
397 ioctl(fd, IOCTL_GET_FB_UMP_SECURE_ID, &module->framebuffer->ump_id); in init_frame_buffer_locked()