Lines Matching refs:retval
356 int retval; in hvcs_partner_vtys_show() local
359 retval = sprintf(buf, "%X\n", hvcsd->p_unit_address); in hvcs_partner_vtys_show()
361 return retval; in hvcs_partner_vtys_show()
370 int retval; in hvcs_partner_clcs_show() local
373 retval = sprintf(buf, "%s\n", &hvcsd->p_location_code[0]); in hvcs_partner_clcs_show()
375 return retval; in hvcs_partner_clcs_show()
395 int retval; in hvcs_current_vty_show() local
398 retval = sprintf(buf, "%s\n", &hvcsd->p_location_code[0]); in hvcs_current_vty_show()
400 return retval; in hvcs_current_vty_show()
449 int retval; in hvcs_vterm_state_show() local
452 retval = sprintf(buf, "%d\n", hvcsd->connected); in hvcs_vterm_state_show()
454 return retval; in hvcs_vterm_state_show()
464 int retval; in hvcs_index_show() local
467 retval = sprintf(buf, "%d\n", hvcsd->index); in hvcs_index_show()
469 return retval; in hvcs_index_show()
765 int retval; in hvcs_probe() local
822 retval = sysfs_create_group(&dev->dev.kobj, &hvcs_attr_group); in hvcs_probe()
823 if (retval) { in hvcs_probe()
826 return retval; in hvcs_probe()
910 int retval; in hvcs_get_pi() local
917 retval = hvcs_get_partner_info(unit_address, &head, hvcs_pi_buff); in hvcs_get_pi()
919 if (retval) { in hvcs_get_pi()
922 return retval; in hvcs_get_pi()
978 int retval; in hvcs_partner_connect() local
988 retval = hvcs_register_connection(unit_address, in hvcs_partner_connect()
991 if (!retval) { in hvcs_partner_connect()
994 } else if (retval != -EINVAL) in hvcs_partner_connect()
995 return retval; in hvcs_partner_connect()
1007 retval = hvcs_register_connection(unit_address, in hvcs_partner_connect()
1010 if (retval != -EINVAL) { in hvcs_partner_connect()
1012 return retval; in hvcs_partner_connect()
1029 int retval; in hvcs_partner_free() local
1031 retval = hvcs_free_connection(hvcsd->vdev->unit_address); in hvcs_partner_free()
1032 } while (retval == -EBUSY); in hvcs_partner_free()
1106 int retval; in hvcs_install() local
1122 retval = hvcs_partner_connect(hvcsd); in hvcs_install()
1123 if (retval) { in hvcs_install()
1151 retval = hvcs_enable_device(hvcsd, unit_address, irq, vdev); in hvcs_install()
1152 if (retval) { in hvcs_install()
1157 retval = tty_port_install(&hvcsd->port, driver, tty); in hvcs_install()
1158 if (retval) in hvcs_install()
1170 return retval; in hvcs_install()