Lines Matching refs:ret
35 int ret; in bsg_transport_sg_io_fn() local
59 ret = PTR_ERR(job->request); in bsg_transport_sg_io_fn()
66 ret = PTR_ERR(job->bidi_rq); in bsg_transport_sg_io_fn()
70 ret = blk_rq_map_user(rq->q, job->bidi_rq, NULL, in bsg_transport_sg_io_fn()
73 if (ret) in bsg_transport_sg_io_fn()
82 ret = 0; in bsg_transport_sg_io_fn()
84 ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->dout_xferp), in bsg_transport_sg_io_fn()
87 ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->din_xferp), in bsg_transport_sg_io_fn()
91 if (ret) in bsg_transport_sg_io_fn()
112 ret = job->result; in bsg_transport_sg_io_fn()
119 ret = -EFAULT; in bsg_transport_sg_io_fn()
149 return ret; in bsg_transport_sg_io_fn()
235 int ret; in bsg_prepare_job() local
240 ret = bsg_map_buffer(&job->request_payload, req); in bsg_prepare_job()
241 if (ret) in bsg_prepare_job()
245 ret = bsg_map_buffer(&job->reply_payload, job->bidi_rq); in bsg_prepare_job()
246 if (ret) in bsg_prepare_job()
281 int ret; in bsg_queue_rq() local
291 ret = bset->job_fn(blk_mq_rq_to_pdu(req)); in bsg_queue_rq()
292 if (!ret) in bsg_queue_rq()
367 int ret = -ENOMEM; in bsg_setup_queue() local
388 ret = PTR_ERR(q); in bsg_setup_queue()
397 ret = PTR_ERR(bset->bd); in bsg_setup_queue()
409 return ERR_PTR(ret); in bsg_setup_queue()