Lines Matching defs:rc
40 int rc;
48 rc = tape_cancel_io(device, request);
49 if(rc)
50 DBF_EVENT(3, "(%s): Assign timeout: Cancel failed with rc = %i\n",
51 dev_name(&device->cdev->dev), rc);
57 int rc;
80 rc = tape_do_io_interruptible(device, request);
84 if (rc != 0) {
91 return rc;
100 int rc;
117 if ((rc = tape_do_io(device, request)) != 0) {
123 return rc;
133 int rc;
151 rc = tape_do_io_interruptible(device, request);
153 return rc;
163 int rc;
174 rc = tape_do_io(device, request);
175 if (rc == 0)
179 return rc;
185 int rc;
193 rc = tape_mtop(device, MTWEOF, device->required_tapemarks);
194 if (rc)
195 return rc;
300 int rc;
313 rc = tape_do_io(device, request);
314 if (rc == 0 && request->rescnt > 0) {
316 rc = 1;
320 return rc;
332 int rc;
345 rc = tape_do_io(device, request);
346 if (rc == 0 && request->rescnt > 0) {
348 rc = 1;
352 return rc;
412 int rc;
424 rc = tape_do_io_free(device, request);
425 if (rc == 0) {
426 rc = tape_mtop(device, MTFSR, 1);
427 if (rc > 0)
428 rc = 0;
430 return rc;
443 int rc;
455 rc = tape_do_io_free(device, request);
456 if (rc == 0) {
457 rc = tape_mtop(device, MTBSR, 1);
458 if (rc > 0)
459 rc = 0;
462 return rc;
536 int rc;
541 if ((rc = tape_mtop(device, MTREW, 1)) < 0)
542 return rc;
551 if ((rc = tape_mtop(device, MTFSF, 1)) < 0)
552 return rc;
553 if ((rc = tape_mtop(device, MTFSR, 1)) < 0)
554 return rc;
555 } while (rc == 0);
567 int rc;
578 /* execute it, MTRETEN rc gets ignored */
579 rc = tape_do_io_interruptible(device, request);