Lines Matching refs:rc

39 	int rc;  in tape_std_assign_timeout()  local
47 rc = tape_cancel_io(device, request); in tape_std_assign_timeout()
48 if(rc) in tape_std_assign_timeout()
50 "%i\n", device->cdev_id, rc); in tape_std_assign_timeout()
56 int rc; in tape_std_assign() local
79 rc = tape_do_io_interruptible(device, request); in tape_std_assign()
84 if (rc != 0) { in tape_std_assign()
91 return rc; in tape_std_assign()
100 int rc; in tape_std_unassign() local
117 if ((rc = tape_do_io(device, request)) != 0) { in tape_std_unassign()
123 return rc; in tape_std_unassign()
133 int rc; in tape_std_display() local
151 rc = tape_do_io_interruptible(device, request); in tape_std_display()
153 return rc; in tape_std_display()
163 int rc; in tape_std_read_block_id() local
174 rc = tape_do_io(device, request); in tape_std_read_block_id()
175 if (rc == 0) in tape_std_read_block_id()
179 return rc; in tape_std_read_block_id()
185 int rc; in tape_std_terminate_write() local
193 rc = tape_mtop(device, MTWEOF, device->required_tapemarks); in tape_std_terminate_write()
194 if (rc) in tape_std_terminate_write()
195 return rc; in tape_std_terminate_write()
300 int rc; in tape_std_mtfsr() local
313 rc = tape_do_io(device, request); in tape_std_mtfsr()
314 if (rc == 0 && request->rescnt > 0) { in tape_std_mtfsr()
316 rc = 1; in tape_std_mtfsr()
320 return rc; in tape_std_mtfsr()
332 int rc; in tape_std_mtbsr() local
345 rc = tape_do_io(device, request); in tape_std_mtbsr()
346 if (rc == 0 && request->rescnt > 0) { in tape_std_mtbsr()
348 rc = 1; in tape_std_mtbsr()
352 return rc; in tape_std_mtbsr()
412 int rc; in tape_std_mtbsf() local
424 rc = tape_do_io_free(device, request); in tape_std_mtbsf()
425 if (rc == 0) { in tape_std_mtbsf()
426 rc = tape_mtop(device, MTFSR, 1); in tape_std_mtbsf()
427 if (rc > 0) in tape_std_mtbsf()
428 rc = 0; in tape_std_mtbsf()
430 return rc; in tape_std_mtbsf()
443 int rc; in tape_std_mtfsfm() local
455 rc = tape_do_io_free(device, request); in tape_std_mtfsfm()
456 if (rc == 0) { in tape_std_mtfsfm()
457 rc = tape_mtop(device, MTBSR, 1); in tape_std_mtfsfm()
458 if (rc > 0) in tape_std_mtfsfm()
459 rc = 0; in tape_std_mtfsfm()
462 return rc; in tape_std_mtfsfm()
536 int rc; in tape_std_mteom() local
541 if ((rc = tape_mtop(device, MTREW, 1)) < 0) in tape_std_mteom()
542 return rc; in tape_std_mteom()
551 if ((rc = tape_mtop(device, MTFSF, 1)) < 0) in tape_std_mteom()
552 return rc; in tape_std_mteom()
553 if ((rc = tape_mtop(device, MTFSR, 1)) < 0) in tape_std_mteom()
554 return rc; in tape_std_mteom()
555 } while (rc == 0); in tape_std_mteom()