Lines Matching refs:rv
165 int rv; in ish_send() local
182 rv = ishtp_cl_send(cros_ish_cl, out_msg, out_size); in ish_send()
183 if (rv) { in ish_send()
185 "ishtp_cl_send error %d\n", rv); in ish_send()
186 return rv; in ish_send()
374 int rv; in cros_ish_init() local
379 rv = ishtp_cl_link(cros_ish_cl); in cros_ish_init()
380 if (rv) { in cros_ish_init()
383 return rv; in cros_ish_init()
396 rv = -ENOENT; in cros_ish_init()
404 rv = ishtp_cl_connect(cros_ish_cl); in cros_ish_init()
405 if (rv) { in cros_ish_init()
416 return rv; in cros_ish_init()
451 int i, rv, offset; in prepare_cros_ec_rx() local
455 rv = cros_ec_check_result(ec_dev, msg); in prepare_cros_ec_rx()
456 if (rv < 0) in prepare_cros_ec_rx()
457 return rv; in prepare_cros_ec_rx()
484 int rv; in cros_ec_pkt_xfer_ish() local
533 rv = ish_send(client_data, in cros_ec_pkt_xfer_ish()
536 if (rv < 0) in cros_ec_pkt_xfer_ish()
539 rv = prepare_cros_ec_rx(ec_dev, in_msg, msg); in cros_ec_pkt_xfer_ish()
540 if (rv) in cros_ec_pkt_xfer_ish()
543 rv = in_msg->ec_response.data_len; in cros_ec_pkt_xfer_ish()
558 return rv; in cros_ec_pkt_xfer_ish()
587 int rv; in reset_handler() local
615 rv = cros_ish_init(cros_ish_cl); in reset_handler()
616 if (rv) { in reset_handler()
641 int rv; in cros_ec_ishtp_probe() local
654 rv = -ENOMEM; in cros_ec_ishtp_probe()
670 rv = cros_ish_init(cros_ish_cl); in cros_ec_ishtp_probe()
671 if (rv) in cros_ec_ishtp_probe()
679 rv = cros_ec_dev_init(client_data); in cros_ec_ishtp_probe()
680 if (rv) { in cros_ec_ishtp_probe()
697 return rv; in cros_ec_ishtp_probe()