Home | History | Annotate | Download | only in ofw

Lines Matching defs:of

5  *	The Regents of the University of California.  All rights reserved.
11 * All advertising materials mentioning features or use of this software
13 * This product includes software developed by the University of
19 * 1. Redistributions of source code must retain the above copyright
20 * notice, this list of conditions and the following disclaimer.
22 * notice, this list of conditions and the following disclaimer in the
24 * 3. Neither the name of the University nor the names of its contributors
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
131 struct ofiocdesc *of;
143 of = (struct ofiocdesc *)data;
144 node = of->of_nodeid;
164 error = openfirmgetstr(of->of_namelen, of->of_name, &name);
170 if (len > of->of_buflen) {
174 of->of_buflen = len;
186 error = copyout(value, of->of_buf, len);
195 error = openfirmgetstr(of->of_namelen, of->of_name, &name);
198 error = openfirmgetstr(of->of_buflen, of->of_buf, &value);
202 len = OF_setprop(node, name, value, of->of_buflen + 1);
207 * some OF implementations return the buffer length including
209 * FirmWorks OF used in Shark )
211 if ((len != (of->of_buflen + 1)) && (len != of->of_buflen))
221 if (of->of_namelen != 0) {
222 error = openfirmgetstr(of->of_namelen, of->of_name,
239 if (len > of->of_buflen)
240 len = of->of_buflen;
242 of->of_buflen = len;
243 error = copyout(newname, of->of_buf, len);
270 error = openfirmgetstr(of->of_namelen, of->of_name, &name);
278 of->of_nodeid = lastnode = node;