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()
329 blk_mq_free_tag_set(&bset->tag_set); in bsg_remove_queue()
330 kfree(bset); in bsg_remove_queue()
337 struct bsg_set *bset = in bsg_timeout() local
340 if (!bset->timeout_fn) in bsg_timeout()
342 return bset->timeout_fn(rq); in bsg_timeout()
364 struct bsg_set *bset; in bsg_setup_queue() local
369 bset = kzalloc(sizeof(*bset), GFP_KERNEL); in bsg_setup_queue()
370 if (!bset) in bsg_setup_queue()
373 bset->job_fn = job_fn; in bsg_setup_queue()
374 bset->timeout_fn = timeout; in bsg_setup_queue()
376 set = &bset->tag_set; in bsg_setup_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()
408 kfree(bset); in bsg_setup_queue()