• Home
  • Raw
  • Download

Lines Matching refs:bsg_device

35 struct bsg_device {  struct
81 struct bsg_device *bd;
93 struct bsg_device *bd = bc->bd; in bsg_free_command()
105 static struct bsg_command *bsg_alloc_command(struct bsg_device *bd) in bsg_alloc_command()
139 static int bsg_io_schedule(struct bsg_device *bd) in bsg_io_schedule()
176 struct sg_io_v4 *hdr, struct bsg_device *bd, in blk_fill_sgv4_hdr_rq()
245 bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr, fmode_t has_write_perm, in bsg_map_hdr()
339 struct bsg_device *bd = bc->bd; in bsg_rq_end_io()
359 static void bsg_add_command(struct bsg_device *bd, struct request_queue *q, in bsg_add_command()
382 static struct bsg_command *bsg_next_done_cmd(struct bsg_device *bd) in bsg_next_done_cmd()
400 static struct bsg_command *bsg_get_done_cmd(struct bsg_device *bd) in bsg_get_done_cmd()
483 static int bsg_complete_all_commands(struct bsg_device *bd) in bsg_complete_all_commands()
533 __bsg_read(char __user *buf, size_t count, struct bsg_device *bd, in __bsg_read()
575 static inline void bsg_set_block(struct bsg_device *bd, struct file *file) in bsg_set_block()
597 struct bsg_device *bd = file->private_data; in bsg_read()
615 static int __bsg_write(struct bsg_device *bd, const char __user *buf, in __bsg_write()
672 struct bsg_device *bd = file->private_data; in bsg_write()
696 static struct bsg_device *bsg_alloc_device(void) in bsg_alloc_device()
698 struct bsg_device *bd; in bsg_alloc_device()
700 bd = kzalloc(sizeof(struct bsg_device), GFP_KERNEL); in bsg_alloc_device()
729 static int bsg_put_device(struct bsg_device *bd) in bsg_put_device()
767 static struct bsg_device *bsg_add_device(struct inode *inode, in bsg_add_device()
771 struct bsg_device *bd; in bsg_add_device()
800 static struct bsg_device *__bsg_get_device(int minor, struct request_queue *q) in __bsg_get_device()
802 struct bsg_device *bd; in __bsg_get_device()
818 static struct bsg_device *bsg_get_device(struct inode *inode, struct file *file) in bsg_get_device()
820 struct bsg_device *bd; in bsg_get_device()
848 struct bsg_device *bd; in bsg_open()
861 struct bsg_device *bd = file->private_data; in bsg_release()
869 struct bsg_device *bd = file->private_data; in bsg_poll()
887 struct bsg_device *bd = file->private_data; in bsg_ioctl()