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