Lines Matching defs:handle
160 if (prom_seek(dev->handle, pos) < 0)
165 n = prom_read(dev->handle, buf, size);
185 prom_close(op->handle);
186 op->handle = -1;
438 int handle, part, try = 0;
444 if (ofdev.handle != -1)
471 if ((handle = prom_finddevice(fname)) == -1)
474 if (_prom_getprop(handle, "name", b.buf, sizeof b.buf) < 0)
478 if (_prom_getprop(handle, "device_type", b.buf, sizeof b.buf) < 0)
490 handle = prom_open(fname);
491 if (handle != -1) {
492 OF_instance_to_path(handle, devname,
495 prom_close(handle);
514 if ((handle = prom_open(fname)) == -1) {
533 device_target_unit(fname, handle);
536 ofdev.handle = handle;
565 prom_close(handle);
566 if ((handle = prom_open(fname)) == -1) {
571 ofdev.handle = handle;
633 prom_close(handle);
634 ofdev.handle = -1;