Lines Matching +defs:error +defs:value
108 int error;
116 error = copyin(user, cp, len);
118 return (error);
132 int node, len, ok, error, s;
133 char *name, *value;
155 name = value = NULL;
156 error = 0;
164 error = openfirmgetstr(of->of_namelen, of->of_name, &name);
165 if (error)
171 error = ENOMEM;
175 /* -1 means no entry; 0 means no value */
178 value = malloc(len, M_TEMP, M_WAITOK);
179 if (value == NULL) {
180 error = ENOMEM;
184 len = OF_getprop(node, name, (void *)value, len);
186 error = copyout(value, of->of_buf, len);
195 error = openfirmgetstr(of->of_namelen, of->of_name, &name);
196 if (error)
198 error = openfirmgetstr(of->of_buflen, of->of_buf, &value);
199 if (error)
202 len = OF_setprop(node, name, value, of->of_buflen + 1);
212 error = EINVAL;
222 error = openfirmgetstr(of->of_namelen, of->of_name,
224 if (error)
231 error = ENOENT;
235 error = EINVAL;
243 error = copyout(newname, of->of_buf, len);
270 error = openfirmgetstr(of->of_namelen, of->of_name, &name);
271 if (error)
275 error = ENOENT;
287 if (value)
288 free(value, M_TEMP);
290 return (error);