Lines Matching defs:handle
138 if (OF_seek(dev->handle, pos) < 0)
140 n = OF_read(dev->handle, buf, size);
165 OF_close(op->handle);
166 op->handle = -1;
197 int handle, part;
203 if (ofdev.handle != -1)
236 if ((handle = OF_finddevice(fname)) == -1) {
241 if (OF_getprop(handle, "name", buf, sizeof buf) < 0)
244 if (OF_getprop(handle, "device_type", buf, sizeof buf) < 0)
255 if ((handle = OF_open(fname)) == -1)
258 ofdev.handle = handle;
327 OF_close(handle);
328 ofdev.handle = -1;