Lines Matching defs:bd
81 struct bsg_device *bd; member
93 struct bsg_device *bd = bc->bd; in bsg_free_command() local
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() local
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() local
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() local
678 struct bsg_device *bd; in bsg_alloc_device() local
709 static int bsg_put_device(struct bsg_device *bd) in bsg_put_device()
751 struct bsg_device *bd; in bsg_add_device() local
782 struct bsg_device *bd; in __bsg_get_device() local
800 struct bsg_device *bd; in bsg_get_device() local
828 struct bsg_device *bd; in bsg_open() local
841 struct bsg_device *bd = file->private_data; in bsg_release() local
849 struct bsg_device *bd = file->private_data; in bsg_poll() local
867 struct bsg_device *bd = file->private_data; in bsg_ioctl() local