Lines Matching defs:ret
44 int ret = 0;
50 ret = __iio_allocate_kfifo(buf, buf->buffer.bytes_per_datum,
52 if (ret >= 0)
59 return ret;
93 int ret;
95 ret = kfifo_in(&kf->kf, data, 1);
96 if (ret != 1)
103 int ret, copied;
110 ret = -EINVAL;
112 ret = kfifo_to_user(&kf->kf, buf, n, &copied);
114 if (ret < 0)
115 return ret;
155 int ret;
161 ret = kfifo_out(&kf->kf, data, 1);
162 if (ret != 1)
174 int ret, copied;
178 ret = -EINVAL;
180 ret = kfifo_from_user(&kf->kf, buf, n, &copied);
182 if (ret)
183 return ret;