Lines Matching refs:ofio1
223 struct ofiocdesc ofio1, ofio2;
234 memset(&ofio1, 0, sizeof(ofio1));
240 ofio1.of_nodeid = ofio2.of_nodeid = optnode;
242 ofio1.of_name = buf1;
243 ofio1.of_buf = buf2;
249 * For reference: ofio1 is for obtaining the name. Pass the
260 ofio1.of_namelen = strlen(ofio1.of_name);
261 ofio1.of_buflen = sizeof(buf2);
263 if (ioctl(fd, OFIOCNEXTPROP, (char *)&ofio1) < 0) {
272 * of ofio1. If the length of the name is 0, there
275 strcpy(ofio2.of_name, ofio1.of_buf); /* XXX strcpy is safe */
300 * ofio1 so that we may obtain the next name.
302 memset(ofio1.of_name, 0, sizeof(buf1));
303 memset(ofio1.of_buf, 0, sizeof(buf2));
304 strcpy(ofio1.of_name, ofio2.of_name); /* XXX strcpy is safe */