Lines Matching defs:of
8 * The Regents of the University of California. All rights reserved.
14 * All advertising materials mentioning features or use of this software
16 * This product includes software developed by the University of
22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
25 * notice, this list of conditions and the following disclaimer in the
27 * 4. Neither the name of the University nor the names of its contributors
114 struct ofiocdesc *of;
123 of = (struct ofiocdesc *)data;
133 node = of->of_nodeid;
159 error = openfirm_getstr(of->of_namelen, of->of_name, &name);
164 of->of_buflen = len;
167 if (len > of->of_buflen) {
171 of->of_buflen = len;
181 error = copyout(value, of->of_buf, len);
189 * OF_setprop() will return the actual length of the text
196 if ((u_int)of->of_buflen > OFIOCMAXVALUE)
198 error = openfirm_getstr(of->of_namelen, of->of_name, &name);
201 value = malloc(of->of_buflen, M_TEMP, M_WAITOK);
206 error = copyin(of->of_buf, value, of->of_buflen);
209 len = OF_setprop(node, name, value, of->of_buflen);
212 of->of_buflen = len;
216 if (node == 0 || of->of_buflen < 0)
218 if (of->of_namelen != 0) {
219 error = openfirm_getstr(of->of_namelen, of->of_name,
234 if (len > of->of_buflen)
235 len = of->of_buflen;
237 of->of_buflen = len;
238 error = copyout(newname, of->of_buf, len);
254 error = openfirm_getstr(of->of_namelen, of->of_name, &name);
262 of->of_nodeid = lastnode = node;