Lines Matching refs:filep
64 static int fb_open(struct file *filep);
65 static int fb_close(struct file *filep);
66 static ssize_t fb_read(struct file *filep, char *buffer, size_t buflen);
67 static ssize_t fb_write(struct file *filep, const char *buffer, size_t buflen);
68 static off_t fb_seek(struct file *filep, off_t offset, int whence);
69 static int fb_ioctl(struct file *filep, int cmd, unsigned long arg);
70 static ssize_t fb_mmap(struct file* filep, LosVmMapRegion *region);
97 static ssize_t fb_mmap(struct file *filep, LosVmMapRegion *region) in fb_mmap() argument
104 drvData = (struct drv_data *)filep->f_vnode->data; in fb_mmap()
133 static int fb_open(struct file *filep) in fb_open() argument
135 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL); in fb_open()
141 drvData = (struct drv_data *)filep->f_vnode->data; in fb_open()
170 static int fb_close(struct file *filep) in fb_close() argument
172 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL); in fb_close()
178 drvData = (struct drv_data *)filep->f_vnode->data; in fb_close()
203 static ssize_t fb_read(struct file *filep, char *buffer, size_t len) in fb_read() argument
214 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL); in fb_read()
215 drvData = (struct drv_data *)filep->f_vnode->data; in fb_read()
219 start = filep->f_pos; in fb_read()
240 filep->f_pos += size; in fb_read()
248 static ssize_t fb_write(struct file *filep, const char *buffer, in fb_write() argument
261 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL); in fb_write()
262 drvData = (struct drv_data *)filep->f_vnode->data; in fb_write()
266 start = filep->f_pos; in fb_write()
287 filep->f_pos += size; in fb_write()
301 static off_t fb_seek(struct file *filep, off_t offset, int whence) in fb_seek() argument
310 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL); in fb_seek()
311 drvData = (struct drv_data *)filep->f_vnode->data; in fb_seek()
318 newpos = filep->f_pos + offset; in fb_seek()
350 filep->f_pos = newpos; in fb_seek()
369 static int fb_ioctl(struct file *filep, int cmd, unsigned long arg) in fb_ioctl() argument
377 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL); in fb_ioctl()
378 drvData = (struct drv_data *)filep->f_vnode->data; in fb_ioctl()