Lines Matching refs:ret
254 int r, ret = 0;
276 ret = -EFAULT;
280 if (!ret)
281 ret = r;
283 return ret;
290 ssize_t ret = 0;
317 ret = -ENOMEM;
329 ret = -EFAULT;
333 ret = 0;
338 ret = rw_copy_check_uvector(-1, hdr->dxferp, hdr->iovec_count,
340 if (ret < 0) {
345 iov_data_len = ret;
346 ret = 0;
356 ret = blk_rq_map_user_iov(q, rq, NULL, (struct sg_iovec *) iov,
361 ret = blk_rq_map_user(q, rq, NULL, hdr->dxferp, hdr->dxfer_len,
364 if (ret)
383 ret = blk_complete_sghdr_rq(rq, hdr, bio);
390 return ret;
744 int ret;
746 ret = scsi_verify_blk_ioctl(bd, cmd);
747 if (ret < 0)
748 return ret;