Lines Matching refs:rv
318 int rv = 0; in vcc_ldc_read() local
322 rv = ldc_rx_reset(vio->lp); in vcc_ldc_read()
323 vccdbg("VCC: reset rx q: rv=%d\n", rv); in vcc_ldc_read()
336 rv = ldc_read(vio->lp, &pkt, sizeof(pkt)); in vcc_ldc_read()
337 if (rv <= 0) in vcc_ldc_read()
340 vccdbg("VCC: ldc_read()=%d\n", rv); in vcc_ldc_read()
353 rv = -ECONNRESET; in vcc_ldc_read()
357 WARN_ON(rv != LDC_PACKET_SIZE); in vcc_ldc_read()
361 return rv; in vcc_ldc_read()
369 int rv; in vcc_rx_timer() local
381 rv = vcc_ldc_read(port); in vcc_rx_timer()
382 if (rv == -ECONNRESET) in vcc_rx_timer()
396 int rv; in vcc_tx_timer() local
413 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_tx_timer()
414 WARN_ON(!rv); in vcc_tx_timer()
416 if (rv < 0) { in vcc_tx_timer()
417 vccdbg("VCC: ldc_write()=%d\n", rv); in vcc_tx_timer()
444 int rv; in vcc_event() local
458 rv = vcc_ldc_read(port); in vcc_event()
459 if (rv == -ECONNRESET) in vcc_event()
489 int rv; in vcc_sysfs_domain_show() local
495 rv = scnprintf(buf, PAGE_SIZE, "%s\n", port->domain); in vcc_sysfs_domain_show()
497 return rv; in vcc_sysfs_domain_show()
503 int rv; in vcc_send_ctl() local
509 rv = ldc_write(port->vio.lp, &pkt, sizeof(pkt.tag)); in vcc_send_ctl()
510 WARN_ON(!rv); in vcc_send_ctl()
511 vccdbg("VCC: ldc_write(%ld)=%d\n", sizeof(pkt.tag), rv); in vcc_send_ctl()
513 return rv; in vcc_send_ctl()
522 int rv = count; in vcc_sysfs_break_store() local
532 rv = -EINVAL; in vcc_sysfs_break_store()
538 return rv; in vcc_sysfs_break_store()
575 int rv; in vcc_probe() local
590 rv = vio_driver_init(&port->vio, vdev, VDEV_CONSOLE_CON, vcc_versions, in vcc_probe()
592 if (rv) in vcc_probe()
598 rv = vio_ldc_alloc(&port->vio, &vcc_ldc_cfg, port); in vcc_probe()
599 if (rv) in vcc_probe()
613 rv = PTR_ERR(dev); in vcc_probe()
621 rv = -ENXIO; in vcc_probe()
628 rv = -ENXIO; in vcc_probe()
636 rv = sysfs_create_group(&vdev->dev.kobj, &vcc_attribute_group); in vcc_probe()
637 if (rv) in vcc_probe()
666 return rv; in vcc_probe()
844 int rv = -EINVAL; in vcc_write() local
883 rv = ldc_write(port->vio.lp, pkt, (VIO_TAG_SIZE + tosend)); in vcc_write()
885 (VIO_TAG_SIZE + tosend), rv); in vcc_write()
889 if (rv < 0) { in vcc_write()
901 vccdbg("VCC: write: total=%d rv=%d", total_sent, rv); in vcc_write()
903 return total_sent ? total_sent : rv; in vcc_write()
1071 int rv; in vcc_tty_init() local
1090 rv = tty_register_driver(vcc_tty_driver); in vcc_tty_init()
1091 if (rv) { in vcc_tty_init()
1095 return rv; in vcc_tty_init()
1114 int rv; in vcc_init() local
1116 rv = vcc_tty_init(); in vcc_init()
1117 if (rv) { in vcc_init()
1119 return rv; in vcc_init()
1122 rv = vio_register_driver(&vcc_driver); in vcc_init()
1123 if (rv) { in vcc_init()
1130 return rv; in vcc_init()