Lines Matching refs:bset
278 struct bsg_set *bset = in bsg_queue_rq() local
291 ret = bset->job_fn(blk_mq_rq_to_pdu(req)); in bsg_queue_rq()
323 struct bsg_set *bset = in bsg_remove_queue() local
326 bsg_unregister_queue(bset->bd); in bsg_remove_queue()
328 blk_mq_free_tag_set(&bset->tag_set); in bsg_remove_queue()
329 kfree(bset); in bsg_remove_queue()
336 struct bsg_set *bset = in bsg_timeout() local
339 if (!bset->timeout_fn) in bsg_timeout()
341 return bset->timeout_fn(rq); in bsg_timeout()
363 struct bsg_set *bset; in bsg_setup_queue() local
368 bset = kzalloc(sizeof(*bset), GFP_KERNEL); in bsg_setup_queue()
369 if (!bset) in bsg_setup_queue()
372 bset->job_fn = job_fn; in bsg_setup_queue()
373 bset->timeout_fn = timeout; in bsg_setup_queue()
375 set = &bset->tag_set; in bsg_setup_queue()
394 bset->bd = bsg_register_queue(q, dev, name, bsg_transport_sg_io_fn); in bsg_setup_queue()
395 if (IS_ERR(bset->bd)) { in bsg_setup_queue()
396 ret = PTR_ERR(bset->bd); in bsg_setup_queue()
406 kfree(bset); in bsg_setup_queue()