Lines Matching defs:bsg_device
23 struct bsg_device {
33 static inline struct bsg_device *to_bsg_device(struct inode *inode)
35 return container_of(inode->i_cdev, struct bsg_device, cdev);
45 static unsigned int bsg_timeout(struct bsg_device *bd, struct sg_io_v4 *hdr)
57 static int bsg_sg_io(struct bsg_device *bd, bool open_for_write,
87 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg)
92 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg)
106 struct bsg_device *bd = to_bsg_device(file_inode(file));
172 struct bsg_device *bd = container_of(dev, struct bsg_device, device);
178 void bsg_unregister_queue(struct bsg_device *bd)
189 struct bsg_device *bsg_register_queue(struct request_queue *q,
192 struct bsg_device *bd;