Lines Matching refs:ofio
96 struct ofiocdesc ofio;
115 memset(&ofio, 0, sizeof(ofio));
116 ofio.of_nodeid = optnode;
117 ofio.of_name = keyword;
118 ofio.of_namelen = strlen(ofio.of_name);
124 ofio.of_buf = &ofio_buf[0];
125 ofio.of_buflen = sizeof(ofio_buf);
126 if (ioctl(fd, OFIOCGET, (char *)&ofio) < 0) {
131 if (ofio.of_buflen <= 0) {
137 (*ex->ex_handler)(ex, &ofio, NULL);
139 printf("%s\n", ofio.of_buf);
143 (*ex->ex_handler)(ex, &ofio, arg);
145 ofio.of_buf = arg;
146 ofio.of_buflen = strlen(arg);
149 if (ioctl(fd, OFIOCSET, (char *)&ofio) < 0) {
157 (*ex->ex_handler)(ex, &ofio, NULL);
159 printf("%s\n", ofio.of_buf);
162 ofio.of_buf = &ofio_buf[0];
163 ofio.of_buflen = sizeof(ofio_buf);
164 if (ioctl(fd, OFIOCGET, (char *)&ofio) < 0) {
169 if (ofio.of_buflen <= 0) {
176 (*ex->ex_handler)(ex, &ofio, NULL);
178 printf("%s=%s\n", keyword, ofio.of_buf);