Lines Matching defs:rc
65 int rc;
74 rc = wait_event_interruptible(fp->wait,
76 if (rc != 0)
79 rc = raw3270_start(view, rq);
80 if (rc == 0) {
84 } while (rc == -EACCES);
85 return rc;
107 if (rq->rc != 0 || rq->rescnt != 0) {
121 int rc;
150 rc = fp->init->rc = raw3270_start_locked(view, fp->init);
151 if (rc)
155 return rc;
178 if (rq->rc != 0 || rq->rescnt == 0) {
214 fp->init->rc = raw3270_start_locked(view, fp->init);
215 if (fp->init->rc)
230 rq->rc = -EIO;
247 ssize_t rc;
263 rc = wait_event_interruptible(fp->wait, fp->attention);
265 if (rc == 0) {
266 rc = fs3270_do_io(&fp->view, rq);
267 if (rc == 0) {
270 rc = -EFAULT;
272 rc = count;
278 rc = PTR_ERR(rq);
280 return rc;
293 ssize_t rc;
309 rc = fs3270_do_io(&fp->view, rq);
310 if (rc == 0)
311 rc = count - rq->rescnt;
313 rc = -EFAULT;
316 rc = PTR_ERR(rq);
318 return rc;
330 int rc;
339 rc = 0;
349 rc = put_user(fp->read_command, argp);
352 rc = put_user(fp->write_command, argp);
362 rc = -EFAULT;
366 return rc;
433 int minor, rc = 0;
453 rc = -EBUSY;
459 rc = PTR_ERR(fp);
465 rc = raw3270_add_view(&fp->view, &fs3270_fn, minor);
466 if (rc) {
476 rc = PTR_ERR(ib);
481 rc = raw3270_activate_view(&fp->view);
482 if (rc) {
491 return rc;
531 int rc;
533 rc = register_chrdev(IBM_FS3270_MAJOR, "fs3270", &fs3270_fops);
534 if (rc)
535 return rc;