Searched refs:bd (Results 1 – 3 of 3) sorted by relevance
/block/ |
D | bsg.c | 45 static unsigned int bsg_timeout(struct bsg_device *bd, struct sg_io_v4 *hdr) in bsg_timeout() argument 51 else if (bd->timeout) in bsg_timeout() 52 timeout = bd->timeout; in bsg_timeout() 57 static int bsg_sg_io(struct bsg_device *bd, bool open_for_write, in bsg_sg_io() argument 67 ret = bd->sg_io_fn(bd->queue, &hdr, open_for_write, in bsg_sg_io() 68 bsg_timeout(bd, &hdr)); in bsg_sg_io() 87 static int bsg_get_command_q(struct bsg_device *bd, int __user *uarg) in bsg_get_command_q() argument 89 return put_user(READ_ONCE(bd->max_queue), 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() argument 100 WRITE_ONCE(bd->max_queue, max_queue); in bsg_set_command_q() [all …]
|
D | bsg-lib.c | 23 struct bsg_device *bd; member 273 const struct blk_mq_queue_data *bd) in bsg_queue_rq() argument 277 struct request *req = bd->rq; in bsg_queue_rq() 326 bsg_unregister_queue(bset->bd); in bsg_remove_queue() 395 bset->bd = bsg_register_queue(q, dev, name, bsg_transport_sg_io_fn); in bsg_setup_queue() 396 if (IS_ERR(bset->bd)) { in bsg_setup_queue() 397 ret = PTR_ERR(bset->bd); in bsg_setup_queue()
|
D | blk-mq.c | 2058 struct blk_mq_queue_data bd; in blk_mq_dispatch_rq_list() local 2069 bd.rq = rq; in blk_mq_dispatch_rq_list() 2070 bd.last = list_empty(list); in blk_mq_dispatch_rq_list() 2078 ret = q->mq_ops->queue_rq(hctx, &bd); in blk_mq_dispatch_rq_list() 2609 struct blk_mq_queue_data bd = { in __blk_mq_issue_directly() local 2620 ret = q->mq_ops->queue_rq(hctx, &bd); in __blk_mq_issue_directly()
|