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()
140 struct sg_io_v4 *hdr, struct bsg_device *bd, in blk_fill_sgv4_hdr_rq()
208 bsg_map_hdr(struct bsg_device *bd, struct sg_io_v4 *hdr, fmode_t has_write_perm, in bsg_map_hdr()
305 struct bsg_device *bd = bc->bd; in bsg_rq_end_io()
325 static void bsg_add_command(struct bsg_device *bd, struct request_queue *q, in bsg_add_command()
348 static struct bsg_command *bsg_next_done_cmd(struct bsg_device *bd) in bsg_next_done_cmd()
366 static struct bsg_command *bsg_get_done_cmd(struct bsg_device *bd) in bsg_get_done_cmd()
449 static bool bsg_complete(struct bsg_device *bd) in bsg_complete()
473 static int bsg_complete_all_commands(struct bsg_device *bd) in bsg_complete_all_commands()
513 __bsg_read(char __user *buf, size_t count, struct bsg_device *bd, in __bsg_read()
555 static inline void bsg_set_block(struct bsg_device *bd, struct file *file) in bsg_set_block()
577 struct bsg_device *bd = file->private_data; in bsg_read()
595 static int __bsg_write(struct bsg_device *bd, const char __user *buf, in __bsg_write()
652 struct bsg_device *bd = file->private_data; in bsg_write()
676 static struct bsg_device *bsg_alloc_device(void) in bsg_alloc_device()
678 struct bsg_device *bd; in bsg_alloc_device()
680 bd = kzalloc(sizeof(struct bsg_device), GFP_KERNEL); in bsg_alloc_device()
709 static int bsg_put_device(struct bsg_device *bd) in bsg_put_device()
747 static struct bsg_device *bsg_add_device(struct inode *inode, in bsg_add_device()
751 struct bsg_device *bd; in bsg_add_device()
780 static struct bsg_device *__bsg_get_device(int minor, struct request_queue *q) in __bsg_get_device()
782 struct bsg_device *bd; in __bsg_get_device()
798 static struct bsg_device *bsg_get_device(struct inode *inode, struct file *file) in bsg_get_device()
800 struct bsg_device *bd; in bsg_get_device()
828 struct bsg_device *bd; in bsg_open()
841 struct bsg_device *bd = file->private_data; in bsg_release()
849 struct bsg_device *bd = file->private_data; in bsg_poll()
867 struct bsg_device *bd = file->private_data; in bsg_ioctl()