Searched refs:bd (Results 1 – 4 of 4) sorted by relevance
/block/ |
D | bsg.c | 27 #define bsg_dbg(bd, fmt, ...) \ argument 28 pr_debug("%s: " fmt, (bd)->name, ##__VA_ARGS__) 201 struct bsg_device *bd; in bsg_alloc_device() local 203 bd = kzalloc(sizeof(struct bsg_device), GFP_KERNEL); in bsg_alloc_device() 204 if (unlikely(!bd)) in bsg_alloc_device() 207 spin_lock_init(&bd->lock); in bsg_alloc_device() 208 bd->max_queue = BSG_DEFAULT_CMDS; in bsg_alloc_device() 209 INIT_HLIST_NODE(&bd->dev_list); in bsg_alloc_device() 210 return bd; in bsg_alloc_device() 213 static int bsg_put_device(struct bsg_device *bd) in bsg_put_device() argument [all …]
|
D | scsi_ioctl.c | 846 int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd) in scsi_verify_blk_ioctl() argument 848 if (bd && !bdev_is_partition(bd)) in scsi_verify_blk_ioctl() 858 int scsi_cmd_blk_ioctl(struct block_device *bd, fmode_t mode, in scsi_cmd_blk_ioctl() argument 863 ret = scsi_verify_blk_ioctl(bd, cmd); in scsi_cmd_blk_ioctl() 867 return scsi_cmd_ioctl(bd->bd_disk->queue, bd->bd_disk, mode, cmd, arg); in scsi_cmd_blk_ioctl()
|
D | bsg-lib.c | 265 const struct blk_mq_queue_data *bd) in bsg_queue_rq() argument 269 struct request *req = bd->rq; in bsg_queue_rq()
|
D | blk-mq.c | 1380 struct blk_mq_queue_data bd; in blk_mq_dispatch_rq_list() local 1391 bd.rq = rq; in blk_mq_dispatch_rq_list() 1398 bd.last = true; in blk_mq_dispatch_rq_list() 1401 bd.last = !blk_mq_get_driver_tag(nxt); in blk_mq_dispatch_rq_list() 1410 ret = q->mq_ops->queue_rq(hctx, &bd); in blk_mq_dispatch_rq_list() 2053 struct blk_mq_queue_data bd = { in __blk_mq_issue_directly() local 2067 ret = q->mq_ops->queue_rq(hctx, &bd); in __blk_mq_issue_directly()
|