Lines Matching defs:error

45 nvmf_io_complete(void *arg, size_t xfered, int error)
50 status->io_error = error;
121 int error;
123 error = nvmf_read_property(sc, NVMF_PROP_CC, 4, &cc);
124 if (error != 0) {
131 error = nvmf_write_property(sc, NVMF_PROP_CC, 4, cc);
132 if (error != 0)
194 int error;
202 error = copyin(hh->cdata, ivars->cdata, sizeof(*ivars->cdata));
203 if (error != 0)
209 error = copyin(hh->io, ivars->io_params, len);
210 if (error != 0)
214 error = EINVAL;
220 error = EINVAL;
231 return (error);
324 "IDENTIFY active namespaces failed with I/O error %d\n",
363 "IDENTIFY namespace %u failed with I/O error %d\n",
431 int error;
452 error = nvmf_establish_connection(sc, ivars);
453 if (error != 0)
456 error = nvmf_read_property(sc, NVMF_PROP_CAP, 8, &sc->cap);
457 if (error != 0) {
459 error = ENXIO;
463 error = nvmf_read_property(sc, NVMF_PROP_VS, 4, &val);
464 if (error != 0) {
466 error = ENXIO;
479 error = nvmf_init_sim(sc);
480 if (error != 0)
483 error = nvmf_start_aer(sc);
484 if (error != 0) {
500 error = make_dev_s(&mda, &sc->cdev, "%s", device_get_nameunit(dev));
501 if (error != 0) {
535 return (error);
564 * transport error occurs during detach.
574 * Transport error occurred during attach (nvmf_add_namespaces).
611 int error;
620 error = nvmf_init_ivars(&ivars, hh);
621 if (error != 0)
622 return (error);
626 error = EBUSY;
641 error = EINVAL;
650 error = nvmf_establish_connection(sc, &ivars);
651 if (error != 0)
654 error = nvmf_start_aer(sc);
655 if (error != 0)
671 return (error);
746 "IDENTIFY namespace %u failed with I/O error %d\n",
789 int error;
803 error = copyin(pt->buf, buf, pt->len);
804 if (error != 0) {
806 return (error);
833 error = ECONNABORTED;
834 goto error;
851 error = status.io_error;
852 if (error == 0 && pt->len != 0 && pt->is_read != 0)
853 error = copyout(buf, pt->buf, pt->len);
854 error:
856 return (error);