Lines Matching refs:instance

82 static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
94 static ssize_t ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance,
98 static int ofw_std_call_method(ofw_t ofw, ihandle_t instance,
101 static void ofw_std_close(ofw_t ofw, ihandle_t instance);
102 static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr,
104 static ssize_t ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr,
106 static int ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos);
283 /* Return the package handle that corresponds to an instance handle. */
285 ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
291 cell_t instance;
294 (cell_t)"instance-to-package",
299 args.instance = instance;
463 /* Return the fully qualified pathname corresponding to an instance. */
465 ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
471 cell_t instance;
476 (cell_t)"instance-to-path",
481 args.instance = instance;
515 /* Call the method in the scope of a given instance. */
517 ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method,
525 cell_t instance;
540 args.instance = instance;
558 /* Open an instance for a device. */
567 cell_t instance;
575 if (openfirmware(&args) == -1 || args.instance == 0)
577 return (args.instance);
580 /* Close an instance. */
582 ofw_std_close(ofw_t ofw, ihandle_t instance)
588 cell_t instance;
595 args.instance = instance;
599 /* Read from an instance. */
601 ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
607 cell_t instance;
617 args.instance = instance;
626 /* Write to an instance. */
628 ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
634 cell_t instance;
644 args.instance = instance;
654 ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
660 cell_t instance;
670 args.instance = instance;