Lines Matching refs: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) in bch_open() argument
86 struct Vnode *vnode = filep->f_vnode; in bch_open()
115 static int bch_close(struct file *filep) in bch_close() argument
117 struct Vnode *vnode = filep->f_vnode; in bch_close()
174 static off_t bch_seek(struct file *filep, off_t offset, int whence) in bch_seek() argument
176 struct Vnode *vnode = filep->f_vnode; in bch_seek()
189 newpos = filep->f_pos + offset; in bch_seek()
222 filep->f_pos = newpos; in bch_seek()
238 static ssize_t bch_read(struct file *filep, char *buffer, size_t len) in bch_read() argument
240 struct Vnode *vnode = filep->f_vnode; in bch_read()
247 ret = bchlib_read(bch, buffer, filep->f_pos, len); in bch_read()
250 filep->f_pos += len; in bch_read()
261 static ssize_t bch_write(struct file *filep, const char *buffer, size_t len) in bch_write() argument
263 struct Vnode *vnode = filep->f_vnode; in bch_write()
272 ret = bchlib_write(bch, buffer, filep->f_pos, len); in bch_write()
275 filep->f_pos += len; in bch_write()
292 static int bch_ioctl(struct file *filep, int cmd, unsigned long arg) in bch_ioctl() argument
294 struct Vnode *vnode = filep->f_vnode; in bch_ioctl()