Lines Matching defs:filep
45 static int bch_open(struct file *filep);
46 static int bch_close(struct file *filep);
47 static off_t bch_seek(struct file *filep, off_t offset, int whence);
48 static ssize_t bch_read(struct file *filep, char *buffer,
50 static ssize_t bch_write(struct file *filep, const char *buffer,
52 static int bch_ioctl(struct file *filep, int cmd,
84 static int bch_open(struct file *filep)
86 struct Vnode *vnode = filep->f_vnode;
115 static int bch_close(struct file *filep)
117 struct Vnode *vnode = filep->f_vnode;
174 static off_t bch_seek(struct file *filep, off_t offset, int whence)
176 struct Vnode *vnode = filep->f_vnode;
189 newpos = filep->f_pos + offset;
222 filep->f_pos = newpos;
238 static ssize_t bch_read(struct file *filep, char *buffer, size_t len)
240 struct Vnode *vnode = filep->f_vnode;
247 ret = bchlib_read(bch, buffer, filep->f_pos, len);
250 filep->f_pos += len;
261 static ssize_t bch_write(struct file *filep, const char *buffer, size_t len)
263 struct Vnode *vnode = filep->f_vnode;
272 ret = bchlib_write(bch, buffer, filep->f_pos, len);
275 filep->f_pos += len;
292 static int bch_ioctl(struct file *filep, int cmd, unsigned long arg)
294 struct Vnode *vnode = filep->f_vnode;