Lines Matching refs:rc

133 	ssize_t rc;  in tape_operation_show()  local
141 rc = scnprintf(buf, PAGE_SIZE, "---\n"); in tape_operation_show()
147 rc = scnprintf(buf,PAGE_SIZE, "%s\n", tape_op_verbose[req->op]); in tape_operation_show()
150 return rc; in tape_operation_show()
294 int rc; in __tape_cancel_io() local
300 rc = 0; in __tape_cancel_io()
302 rc = ccw_device_clear(device->cdev, (long) request); in __tape_cancel_io()
304 switch (rc) { in __tape_cancel_io()
323 return rc; in __tape_cancel_io()
375 int rc; in tape_generic_online() local
393 rc = discipline->setup_device(device); in tape_generic_online()
394 if (rc) in tape_generic_online()
396 rc = tape_assign_minor(device); in tape_generic_online()
397 if (rc) in tape_generic_online()
400 rc = tapechar_setup_device(device); in tape_generic_online()
401 if (rc) in tape_generic_online()
417 return rc; in tape_generic_online()
653 request->rc = -EIO; in __tape_discard_requests()
779 int rc; in __tape_start_io() local
781 rc = ccw_device_start( in __tape_start_io()
788 if (rc == 0) { in __tape_start_io()
790 } else if (rc == -EBUSY) { in __tape_start_io()
794 rc = 0; in __tape_start_io()
797 DBF_EVENT(1, "tape: start request failed with RC = %i\n", rc); in __tape_start_io()
799 return rc; in __tape_start_io()
807 int rc; in __tape_start_next_request() local
838 rc = __tape_cancel_io(device, request); in __tape_start_next_request()
840 rc = __tape_start_io(device, request); in __tape_start_next_request()
842 if (rc == 0) in __tape_start_next_request()
846 request->rc = rc; in __tape_start_next_request()
890 int rc) in __tape_end_request() argument
892 DBF_LH(6, "__tape_end_request(%p, %p, %i)\n", device, request, rc); in __tape_end_request()
894 request->rc = rc; in __tape_end_request()
942 int rc; in __tape_start_request() local
966 rc = __tape_start_io(device, request); in __tape_start_request()
967 if (rc) in __tape_start_request()
968 return rc; in __tape_start_request()
987 int rc; in tape_do_io_async() local
993 rc = __tape_start_request(device, request); in tape_do_io_async()
995 return rc; in tape_do_io_async()
1013 int rc; in tape_do_io() local
1020 rc = __tape_start_request(device, request); in tape_do_io()
1022 if (rc) in tape_do_io()
1023 return rc; in tape_do_io()
1027 return request->rc; in tape_do_io()
1046 int rc; in tape_do_io_interruptible() local
1052 rc = __tape_start_request(device, request); in tape_do_io_interruptible()
1054 if (rc) in tape_do_io_interruptible()
1055 return rc; in tape_do_io_interruptible()
1057 rc = wait_event_interruptible(device->wait_queue, in tape_do_io_interruptible()
1059 if (rc != -ERESTARTSYS) in tape_do_io_interruptible()
1061 return request->rc; in tape_do_io_interruptible()
1065 rc = __tape_cancel_io(device, request); in tape_do_io_interruptible()
1067 if (rc == 0) { in tape_do_io_interruptible()
1070 rc = wait_event_interruptible( in tape_do_io_interruptible()
1074 } while (rc == -ERESTARTSYS); in tape_do_io_interruptible()
1077 rc = -ERESTARTSYS; in tape_do_io_interruptible()
1079 return rc; in tape_do_io_interruptible()
1088 int rc; in tape_cancel_io() local
1091 rc = __tape_cancel_io(device, request); in tape_cancel_io()
1093 return rc; in tape_cancel_io()
1104 int rc; in __tape_do_irq() local
1198 rc = device->discipline->irq(device, request, irb); in __tape_do_irq()
1206 switch (rc) { in __tape_do_irq()
1210 __tape_end_request(device, request, rc); in __tape_do_irq()
1224 rc = __tape_start_io(device, request); in __tape_do_irq()
1225 if (rc) in __tape_do_irq()
1226 __tape_end_request(device, request, rc); in __tape_do_irq()
1229 rc = __tape_cancel_io(device, request); in __tape_do_irq()
1230 if (rc) in __tape_do_irq()
1231 __tape_end_request(device, request, rc); in __tape_do_irq()
1234 if (rc > 0) { in __tape_do_irq()
1238 __tape_end_request(device, request, rc); in __tape_do_irq()
1250 int rc; in tape_open() local
1255 rc = -ENODEV; in tape_open()
1258 rc = -EBUSY; in tape_open()
1261 rc = -EBUSY; in tape_open()
1265 rc = -ENODEV; in tape_open()
1268 rc = 0; in tape_open()
1271 return rc; in tape_open()
1295 int rc; in tape_mtop() local
1310 rc = 0; in tape_mtop()
1312 if ((rc = fn(device, 500)) != 0) in tape_mtop()
1314 if (rc == 0) in tape_mtop()
1315 rc = fn(device, mt_count); in tape_mtop()
1317 rc = fn(device, mt_count); in tape_mtop()
1318 return rc; in tape_mtop()