Lines Matching refs:ret
30 int ret = 0; in __blk_rq_unmap_user() local
36 ret = bio_uncopy_user(bio); in __blk_rq_unmap_user()
39 return ret; in __blk_rq_unmap_user()
48 int reading, ret; in __blk_rq_map_user() local
77 ret = blk_rq_append_bio(q, rq, bio); in __blk_rq_map_user()
78 if (!ret) in __blk_rq_map_user()
85 return ret; in __blk_rq_map_user()
116 int ret; in blk_rq_map_user() local
142 ret = __blk_rq_map_user(q, rq, map_data, ubuf, map_len, in blk_rq_map_user()
144 if (ret < 0) in blk_rq_map_user()
148 bytes_read += ret; in blk_rq_map_user()
149 ubuf += ret; in blk_rq_map_user()
152 map_data->offset += ret; in blk_rq_map_user()
162 return ret; in blk_rq_map_user()
256 int ret = 0, ret2; in blk_rq_unmap_user() local
264 if (ret2 && !ret) in blk_rq_unmap_user()
265 ret = ret2; in blk_rq_unmap_user()
272 return ret; in blk_rq_unmap_user()
296 int ret; in blk_rq_map_kern() local
318 ret = blk_rq_append_bio(q, rq, bio); in blk_rq_map_kern()
319 if (unlikely(ret)) { in blk_rq_map_kern()
322 return ret; in blk_rq_map_kern()