Lines Matching refs:rv
257 int rv; in get_firmware_variant() local
261 rv = device_property_read_string(devc, "firmware-name", &val); in get_firmware_variant()
262 if (rv < 0) { in get_firmware_variant()
265 return rv; in get_firmware_variant()
287 int rv; in loader_cl_send() local
304 rv = ishtp_cl_send(loader_ishtp_cl, out_msg, out_size); in loader_cl_send()
305 if (rv < 0) { in loader_cl_send()
307 "ishtp_cl_send error %d\n", rv); in loader_cl_send()
308 return rv; in loader_cl_send()
474 int rv; in ish_query_loader_prop() local
481 rv = loader_cl_send(client_data, in ish_query_loader_prop()
486 if (rv < 0) { in ish_query_loader_prop()
489 return rv; in ish_query_loader_prop()
493 if (rv != sizeof(struct loader_xfer_query_response)) { in ish_query_loader_prop()
496 rv, sizeof(struct loader_xfer_query_response)); in ish_query_loader_prop()
557 int rv; in ish_fw_xfer_ishtp() local
597 rv = loader_cl_send(client_data, in ish_fw_xfer_ishtp()
602 if (rv < 0) { in ish_fw_xfer_ishtp()
616 return rv; in ish_fw_xfer_ishtp()
638 int rv; in ish_fw_xfer_direct_dma() local
699 rv = loader_cl_send(client_data, in ish_fw_xfer_direct_dma()
704 if (rv < 0) { in ish_fw_xfer_direct_dma()
714 return rv; in ish_fw_xfer_direct_dma()
750 int rv; in load_fw_from_host() local
762 rv = -ENOMEM; in load_fw_from_host()
767 rv = get_firmware_variant(client_data, filename); in load_fw_from_host()
768 if (rv < 0) in load_fw_from_host()
771 rv = request_firmware(&fw, filename, cl_data_to_dev(client_data)); in load_fw_from_host()
772 if (rv < 0) in load_fw_from_host()
777 rv = ish_query_loader_prop(client_data, fw, &fw_info); in load_fw_from_host()
778 if (rv < 0) in load_fw_from_host()
785 rv = ish_fw_xfer_direct_dma(client_data, fw, fw_info); in load_fw_from_host()
787 rv = ish_fw_xfer_ishtp(client_data, fw); in load_fw_from_host()
791 rv = -EINVAL; in load_fw_from_host()
793 if (rv < 0) in load_fw_from_host()
798 rv = ish_fw_start(client_data); in load_fw_from_host()
799 if (rv < 0) in load_fw_from_host()
818 rv); in load_fw_from_host()
822 "ISH host firmware load failed %d\n", rv); in load_fw_from_host()
824 return rv; in load_fw_from_host()
845 int rv; in loader_init() local
852 rv = ishtp_cl_link(loader_ishtp_cl); in loader_init()
853 if (rv < 0) { in loader_init()
855 return rv; in loader_init()
868 rv = -ENOENT; in loader_init()
876 rv = ishtp_cl_connect(loader_ishtp_cl); in loader_init()
877 if (rv < 0) { in loader_init()
890 return rv; in loader_init()
906 int rv; in reset_handler() local
931 rv = loader_init(loader_ishtp_cl, 1); in reset_handler()
932 if (rv < 0) { in reset_handler()
953 int rv; in loader_ishtp_cl_probe() local
977 rv = loader_init(loader_ishtp_cl, 0); in loader_ishtp_cl_probe()
978 if (rv < 0) { in loader_ishtp_cl_probe()
980 return rv; in loader_ishtp_cl_probe()