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 * 3. Neither the name of the University nor the names of its contributors
110 struct ofiocdesc *of;
119 of = (struct ofiocdesc *)data;
129 node = of->of_nodeid;
154 error = openfirm_getstr(of->of_namelen, of->of_name, &name);
159 of->of_buflen = len;
162 if (len > of->of_buflen) {
166 of->of_buflen = len;
172 error = copyout(value, of->of_buf, len);
180 * OF_setprop() will return the actual length of the text
187 if ((u_int)of->of_buflen > OFIOCMAXVALUE)
189 error = openfirm_getstr(of->of_namelen, of->of_name, &name);
192 value = malloc(of->of_buflen, M_TEMP, M_WAITOK);
193 error = copyin(of->of_buf, value, of->of_buflen);
196 len = OF_setprop(node, name, value, of->of_buflen);
199 of->of_buflen = len;
203 if (node == 0 || of->of_buflen < 0)
205 if (of->of_namelen != 0) {
206 error = openfirm_getstr(of->of_namelen, of->of_name,
221 if (len > of->of_buflen) {
225 * Instead of returning an error here, truncate the
231 len = of->of_buflen;
235 of->of_buflen = len;
236 error = copyout(newname, of->of_buf, len);
252 error = openfirm_getstr(of->of_namelen, of->of_name, &name);
260 of->of_nodeid = lastnode = node;