Home | History | Annotate | Download | only in eeprom

Lines Matching defs:ofio

94 	struct ofiocdesc ofio;
113 memset(&ofio, 0, sizeof(ofio));
114 ofio.of_nodeid = optnode;
115 ofio.of_name = keyword;
116 ofio.of_namelen = strlen(ofio.of_name);
122 ofio.of_buf = &ofio_buf[0];
123 ofio.of_buflen = sizeof(ofio_buf);
124 if (ioctl(fd, OFIOCGET, (char *)&ofio) < 0) {
129 if (ofio.of_buflen <= 0) {
135 (*ex->ex_handler)(ex, &ofio, NULL);
137 printf("%s\n", ofio.of_buf);
141 (*ex->ex_handler)(ex, &ofio, arg);
143 ofio.of_buf = arg;
144 ofio.of_buflen = strlen(arg);
147 if (ioctl(fd, OFIOCSET, (char *)&ofio) < 0) {
155 (*ex->ex_handler)(ex, &ofio, NULL);
157 printf("%s\n", ofio.of_buf);
160 ofio.of_buf = &ofio_buf[0];
161 ofio.of_buflen = sizeof(ofio_buf);
162 if (ioctl(fd, OFIOCGET, (char *)&ofio) < 0) {
167 if (ofio.of_buflen <= 0) {
174 (*ex->ex_handler)(ex, &ofio, NULL);
176 printf("%s=%s\n", keyword, ofio.of_buf);