Lines Matching defs:file
7 #include <linux/file.h>
238 struct file *file)
283 static struct bsg_device *bsg_get_device(struct inode *inode, struct file *file)
301 bd = bsg_add_device(inode, bcd->queue, file);
308 static int bsg_open(struct inode *inode, struct file *file)
312 bd = bsg_get_device(inode, file);
317 file->private_data = bd;
321 static int bsg_release(struct inode *inode, struct file *file)
323 struct bsg_device *bd = file->private_data;
325 file->private_data = NULL;
349 static long bsg_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
351 struct bsg_device *bd = file->private_data;
374 return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg);
376 return bsg_sg_io(bd->queue, file->f_mode, uarg);