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)
104 drvData = (struct drv_data *)filep->f_vnode->data;
133 static int fb_open(struct file *filep)
135 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL);
141 drvData = (struct drv_data *)filep->f_vnode->data;
170 static int fb_close(struct file *filep)
172 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL);
178 drvData = (struct drv_data *)filep->f_vnode->data;
203 static ssize_t fb_read(struct file *filep, char *buffer, size_t len)
214 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL);
215 drvData = (struct drv_data *)filep->f_vnode->data;
219 start = filep->f_pos;
240 filep->f_pos += size;
248 static ssize_t fb_write(struct file *filep, const char *buffer,
261 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL);
262 drvData = (struct drv_data *)filep->f_vnode->data;
266 start = filep->f_pos;
287 filep->f_pos += size;
301 static off_t fb_seek(struct file *filep, off_t offset, int whence)
310 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL);
311 drvData = (struct drv_data *)filep->f_vnode->data;
318 newpos = filep->f_pos + offset;
350 filep->f_pos = newpos;
369 static int fb_ioctl(struct file *filep, int cmd, unsigned long arg)
377 DEBUGASSERT(filep != NULL && filep->f_vnode != NULL);
378 drvData = (struct drv_data *)filep->f_vnode->data;