Lines Matching defs:error

135 	int	error;
140 error = mod_install(&modlinkage);
141 if (error != 0) {
144 return (error);
159 int error;
161 error = mod_remove(&modlinkage);
162 if (error != 0) {
163 return (error);
177 int error = DDI_FAILURE;
182 error = DDI_SUCCESS;
187 error = DDI_SUCCESS;
193 return (error);
199 int error = DDI_FAILURE;
212 error = DDI_FAILURE;
217 error = DDI_SUCCESS;
221 error = DDI_FAILURE;
225 return (error);
231 int error = DDI_FAILURE;
240 error = DDI_SUCCESS;
243 error = DDI_FAILURE;
247 return (error);
322 fp->error = FC_ERROR;
338 (fp->error == FC_SUCCESS)) {
339 fp->error = FC_ERROR;
342 * else - fp->error already set by userland interpreter
475 * Copy in interpreter error status
505 * It's an error if we're not in state FC_STATE_READ_DONE
577 * It's an error if we're not in state FC_STATE_READ_DONE
621 int nresults, nargs, error;
630 * It's an error if we're not in state FC_STATE_IN_PROGRESS
669 * reset the error fields.
671 cp->error = fc_int2cell(0);
700 error = fp->ap_ops(fp->ap_dip, fp->handle, cp);
703 * If error is non-zero, we need to log the error and
704 * the service name, and write back the error to the
708 if (error || cp->error) {
711 cp->error = FC_ERR_SVC_NAME;
713 error = copyout(&cp->error, &ap->error, sizeof (fc_cell_t));
714 error |= copyout(&cp->nresults, &ap->nresults,
718 if (error) {
720 "fault copying out error result\n");
731 error = copyout(&cp->error, &ap->error, sizeof (fc_cell_t));
732 error |= copyout(&cp->priv_error, &ap->priv_error,
734 error |= copyout(&cp->nresults, &ap->nresults,
738 if (error) {
740 "fault copying out priv error result\n");
749 * returned, the two error fields and each of the results.
756 error = copyout(&cp->nresults, &ap->nresults, sizeof (fc_cell_t));
757 error |= copyout(&cp->error, &ap->error, sizeof (fc_cell_t));
758 error |= copyout(&cp->priv_error, &ap->priv_error, sizeof (fc_cell_t));
759 if ((error == 0) && cp->nresults)
760 error |= copyout(&fc_result(cp, 0), &(ap->v[nargs]),
766 if (error) {
787 * It's an error if we're not in state FC_STATE_IN_PROGRESS
839 * It's an error if we're not in state FC_STATE_IN_PROGRESS
884 * fc_set_fcode_error: Copy in fcode error.
886 * should have the appropriate error code set.
902 * It's an error if we're not in state FC_STATE_IN_PROGRESS.
917 * Get the error code from userland.
929 "invalid error code specified %i\n", status);
932 fp->error = status;