Lines Matching refs:ret
593 int ret;
595 ret = bio_integrity_clone(b, bio, gfp_mask);
597 if (ret < 0) {
667 int ret;
669 ret = bio_integrity_clone(bio, bio_src, gfp_mask);
670 if (ret < 0) {
881 struct submit_bio_ret *ret = bio->bi_private;
883 ret->error = error;
884 complete(&ret->event);
897 struct submit_bio_ret ret;
900 init_completion(&ret.event);
901 bio->bi_private = &ret;
904 wait_for_completion(&ret.event);
906 return ret.error;
1047 int ret = 0, i;
1064 if (!ret) {
1066 ret = copy_to_user(iov_addr, bv_addr,
1070 ret = copy_from_user(bv_addr, iov_addr,
1073 if (ret)
1074 ret = -EFAULT;
1092 return ret;
1106 int ret = 0, i;
1114 ret = __bio_copy_iov(bio, bmd->sgvecs, bmd->nr_sgvecs,
1123 return ret;
1149 int i, ret;
1180 ret = -ENOMEM;
1188 ret = 0;
1204 ret = -ENOMEM;
1215 ret = -ENOMEM;
1227 if (ret)
1235 ret = __bio_copy_iov(bio, iov, iov_count, 0, 1, 0);
1236 if (ret)
1250 return ERR_PTR(ret);
1289 int ret, offset;
1318 ret = -ENOMEM;
1331 ret = get_user_pages_fast(uaddr, local_nr_pages,
1333 if (ret < local_nr_pages) {
1334 ret = -EFAULT;
1388 return ERR_PTR(ret);