Lines Matching refs:ret
40 int ret; in bsg_transport_fill_hdr() local
50 ret = PTR_ERR(job->bidi_rq); in bsg_transport_fill_hdr()
54 ret = blk_rq_map_user(rq->q, job->bidi_rq, NULL, in bsg_transport_fill_hdr()
57 if (ret) in bsg_transport_fill_hdr()
73 return ret; in bsg_transport_fill_hdr()
79 int ret = 0; in bsg_transport_complete_rq() local
96 ret = job->result; in bsg_transport_complete_rq()
103 ret = -EFAULT; in bsg_transport_complete_rq()
122 return ret; in bsg_transport_complete_rq()
227 int ret; in bsg_prepare_job() local
232 ret = bsg_map_buffer(&job->request_payload, req); in bsg_prepare_job()
233 if (ret) in bsg_prepare_job()
237 ret = bsg_map_buffer(&job->reply_payload, job->bidi_rq); in bsg_prepare_job()
238 if (ret) in bsg_prepare_job()
273 int ret; in bsg_queue_rq() local
283 ret = bset->job_fn(blk_mq_rq_to_pdu(req)); in bsg_queue_rq()
284 if (!ret) in bsg_queue_rq()
371 int ret = -ENOMEM; in bsg_setup_queue() local
392 ret = PTR_ERR(q); in bsg_setup_queue()
399 ret = bsg_register_queue(q, dev, name, &bsg_transport_ops); in bsg_setup_queue()
400 if (ret) { in bsg_setup_queue()
413 return ERR_PTR(ret); in bsg_setup_queue()