Lines Matching refs:bsg_device
30 struct bsg_device { struct
199 static struct bsg_device *bsg_alloc_device(void) in bsg_alloc_device()
201 struct bsg_device *bd; in bsg_alloc_device()
203 bd = kzalloc(sizeof(struct bsg_device), GFP_KERNEL); in bsg_alloc_device()
213 static int bsg_put_device(struct bsg_device *bd) in bsg_put_device()
237 static struct bsg_device *bsg_add_device(struct inode *inode, in bsg_add_device()
241 struct bsg_device *bd; in bsg_add_device()
267 static struct bsg_device *__bsg_get_device(int minor, struct request_queue *q) in __bsg_get_device()
269 struct bsg_device *bd; in __bsg_get_device()
284 static struct bsg_device *bsg_get_device(struct inode *inode, struct file *file) in bsg_get_device()
286 struct bsg_device *bd; in bsg_get_device()
311 struct bsg_device *bd; in bsg_open()
327 struct bsg_device *bd = file->private_data; in bsg_release()
337 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) in bsg_get_command_q()
342 static int bsg_set_command_q(struct bsg_device *bd, int __user *uarg) in bsg_set_command_q()
359 struct bsg_device *bd = file->private_data; in bsg_ioctl()