Lines Matching full:error
49 int error; in nvmf_connect() local
58 goto error; in nvmf_connect()
63 goto error; in nvmf_connect()
70 goto error; in nvmf_connect()
76 goto error; in nvmf_connect()
82 goto error; in nvmf_connect()
88 goto error; in nvmf_connect()
104 goto error; in nvmf_connect()
113 error = nvmf_capsule_append_data(cc, &data, sizeof(data), true); in nvmf_connect()
114 if (error != 0) { in nvmf_connect()
116 strerror(error)); in nvmf_connect()
117 goto error; in nvmf_connect()
120 error = nvmf_transmit_capsule(cc); in nvmf_connect()
121 if (error != 0) { in nvmf_connect()
124 goto error; in nvmf_connect()
127 error = nvmf_receive_capsule(qp, &rc); in nvmf_connect()
128 if (error != 0) { in nvmf_connect()
130 strerror(error)); in nvmf_connect()
131 goto error; in nvmf_connect()
144 goto error; in nvmf_connect()
149 goto error; in nvmf_connect()
154 goto error; in nvmf_connect()
161 goto error; in nvmf_connect()
172 goto error; in nvmf_connect()
181 error: in nvmf_connect()
202 int error; in nvmf_host_transmit_command() local
216 error = nvmf_transmit_capsule(nc); in nvmf_host_transmit_command()
217 if (error != 0) in nvmf_host_transmit_command()
218 return (error); in nvmf_host_transmit_command()
229 int error; in nvmf_host_receive_capsule() local
235 error = nvmf_receive_capsule(qp, &nc); in nvmf_host_receive_capsule()
236 if (error != 0) in nvmf_host_receive_capsule()
237 return (error); in nvmf_host_receive_capsule()
276 int error; in nvmf_host_wait_for_response() local
289 error = nvmf_host_receive_capsule(qp, &rc); in nvmf_host_wait_for_response()
290 if (error != 0) in nvmf_host_wait_for_response()
291 return (error); in nvmf_host_wait_for_response()
347 int error; in nvmf_read_property() local
356 error = nvmf_host_transmit_command(cc); in nvmf_read_property()
357 if (error != 0) { in nvmf_read_property()
359 return (error); in nvmf_read_property()
362 error = nvmf_host_wait_for_response(cc, &rc); in nvmf_read_property()
364 if (error != 0) in nvmf_read_property()
365 return (error); in nvmf_read_property()
414 int error; in nvmf_write_property() local
423 error = nvmf_host_transmit_command(cc); in nvmf_write_property()
424 if (error != 0) { in nvmf_write_property()
426 return (error); in nvmf_write_property()
429 error = nvmf_host_wait_for_response(cc, &rc); in nvmf_write_property()
431 if (error != 0) in nvmf_write_property()
432 return (error); in nvmf_write_property()
492 int error; in nvmf_host_identify_controller() local
507 error = nvmf_capsule_append_data(cc, cdata, sizeof(*cdata), false); in nvmf_host_identify_controller()
508 if (error != 0) { in nvmf_host_identify_controller()
510 return (error); in nvmf_host_identify_controller()
513 error = nvmf_host_transmit_command(cc); in nvmf_host_identify_controller()
514 if (error != 0) { in nvmf_host_identify_controller()
516 return (error); in nvmf_host_identify_controller()
519 error = nvmf_host_wait_for_response(cc, &rc); in nvmf_host_identify_controller()
521 if (error != 0) in nvmf_host_identify_controller()
522 return (error); in nvmf_host_identify_controller()
541 int error; in nvmf_host_identify_namespace() local
557 error = nvmf_capsule_append_data(cc, nsdata, sizeof(*nsdata), false); in nvmf_host_identify_namespace()
558 if (error != 0) { in nvmf_host_identify_namespace()
560 return (error); in nvmf_host_identify_namespace()
563 error = nvmf_host_transmit_command(cc); in nvmf_host_identify_namespace()
564 if (error != 0) { in nvmf_host_identify_namespace()
566 return (error); in nvmf_host_identify_namespace()
569 error = nvmf_host_wait_for_response(cc, &rc); in nvmf_host_identify_namespace()
571 if (error != 0) in nvmf_host_identify_namespace()
572 return (error); in nvmf_host_identify_namespace()
592 int error; in nvmf_get_discovery_log_page() local
609 error = nvmf_capsule_append_data(cc, buf, len, false); in nvmf_get_discovery_log_page()
610 if (error != 0) { in nvmf_get_discovery_log_page()
612 return (error); in nvmf_get_discovery_log_page()
615 error = nvmf_host_transmit_command(cc); in nvmf_get_discovery_log_page()
616 if (error != 0) { in nvmf_get_discovery_log_page()
618 return (error); in nvmf_get_discovery_log_page()
621 error = nvmf_host_wait_for_response(cc, &rc); in nvmf_get_discovery_log_page()
623 if (error != 0) in nvmf_get_discovery_log_page()
624 return (error); in nvmf_get_discovery_log_page()
648 int error; in nvmf_host_fetch_discovery_log_page() local
655 error = nvmf_get_discovery_log_page(qp, 0, &hdr, sizeof(hdr)); in nvmf_host_fetch_discovery_log_page()
656 if (error != 0) { in nvmf_host_fetch_discovery_log_page()
658 return (error); in nvmf_host_fetch_discovery_log_page()
684 error = nvmf_get_discovery_log_page(qp, sizeof(hdr), in nvmf_host_fetch_discovery_log_page()
686 if (error == EAGAIN) in nvmf_host_fetch_discovery_log_page()
688 if (error != 0) { in nvmf_host_fetch_discovery_log_page()
690 return (error); in nvmf_host_fetch_discovery_log_page()
694 error = nvmf_get_discovery_log_page(qp, 0, &hdr, sizeof(hdr)); in nvmf_host_fetch_discovery_log_page()
695 if (error != 0) { in nvmf_host_fetch_discovery_log_page()
697 return (error); in nvmf_host_fetch_discovery_log_page()
717 int error; in nvmf_host_request_queues() local
736 error = nvmf_host_transmit_command(cc); in nvmf_host_request_queues()
737 if (error != 0) { in nvmf_host_request_queues()
739 return (error); in nvmf_host_request_queues()
742 error = nvmf_host_wait_for_response(cc, &rc); in nvmf_host_request_queues()
744 if (error != 0) in nvmf_host_request_queues()
745 return (error); in nvmf_host_request_queues()
776 int error; in prepare_queues_for_handoff() local
794 error = nvmf_kernel_handoff_params(admin_qp, &nvl_qp); in prepare_queues_for_handoff()
795 if (error) { in prepare_queues_for_handoff()
797 return (error); in prepare_queues_for_handoff()
803 error = nvmf_kernel_handoff_params(io_queues[i], &nvl_qp); in prepare_queues_for_handoff()
804 if (error) { in prepare_queues_for_handoff()
806 return (error); in prepare_queues_for_handoff()
813 error = nvmf_pack_ioc_nvlist(nv, nvl); in prepare_queues_for_handoff()
815 return (error); in prepare_queues_for_handoff()
824 int error, fd; in nvmf_handoff_host() local
828 error = errno; in nvmf_handoff_host()
832 error = prepare_queues_for_handoff(&nv, admin_qp, num_queues, io_queues, in nvmf_handoff_host()
834 if (error != 0) in nvmf_handoff_host()
838 error = errno; in nvmf_handoff_host()
847 return (error); in nvmf_handoff_host()
853 int error, fd; in nvmf_disconnect_host() local
855 error = 0; in nvmf_disconnect_host()
858 error = errno; in nvmf_disconnect_host()
863 error = errno; in nvmf_disconnect_host()
868 return (error); in nvmf_disconnect_host()
874 int error, fd; in nvmf_disconnect_all() local
876 error = 0; in nvmf_disconnect_all()
879 error = errno; in nvmf_disconnect_all()
884 error = errno; in nvmf_disconnect_all()
889 return (error); in nvmf_disconnect_all()
897 int error; in nvmf_read_ioc_nv() local
906 error = errno; in nvmf_read_ioc_nv()
908 return (error); in nvmf_read_ioc_nv()
932 int error; in nvmf_reconnect_host() local
934 error = prepare_queues_for_handoff(&nv, admin_qp, num_queues, io_queues, in nvmf_reconnect_host()
936 if (error != 0) in nvmf_reconnect_host()
940 error = errno; in nvmf_reconnect_host()
947 return (error); in nvmf_reconnect_host()