Lines Matching refs:rc
134 int rc;
160 rc = tapechar_check_idalbuffer(device, block_size);
161 if (rc)
162 return rc;
170 rc = tape_do_io(device, request);
171 if (rc == 0) {
172 rc = block_size - request->rescnt;
173 DBF_EVENT(6, "TCHAR:rbytes: %x\n", rc);
176 data, rc) != 0)
177 rc = -EFAULT;
180 return rc;
194 int i, rc;
212 rc = tapechar_check_idalbuffer(device, block_size);
213 if (rc)
214 return rc;
222 rc = 0;
228 rc = -EFAULT;
231 rc = tape_do_io(device, request);
232 if (rc)
242 if (rc == -ENOSPC) {
250 rc = 0;
261 if (!rc)
264 return rc ? rc : written;
274 int minor, rc;
290 rc = tape_open(device);
291 if (rc == 0) {
297 return rc;
346 int rc;
375 rc = tape_mtop(device, op.mt_op, op.mt_count);
377 if (op.mt_op == MTWEOF && rc == 0) {
383 return rc;
389 rc = tape_mtop(device, MTTELL, 1);
390 if (rc < 0)
391 return rc;
392 pos.mt_blkno = rc;
412 rc = tape_mtop(device, MTTELL, 1);
414 if (rc < 0)
415 return rc;
417 if (rc == 0)
420 get.mt_blkno = rc;
435 long rc;
441 rc = __tapechar_ioctl(device, no, (void __user *)data);
443 return rc;
451 long rc;
459 rc = __tapechar_ioctl(device, no, compat_ptr(data));
461 return rc;