Lines Matching full:instance

79 static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
91 static ssize_t ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance,
95 static int ofw_std_call_method(ofw_t ofw, ihandle_t instance,
98 static void ofw_std_close(ofw_t ofw, ihandle_t instance);
99 static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr,
101 static ssize_t ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr,
103 static int ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos);
279 /* Return the package handle that corresponds to an instance handle. */
281 ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance) in ofw_std_instance_to_package() argument
287 cell_t instance; in ofw_std_instance_to_package() member
290 (cell_t)"instance-to-package", in ofw_std_instance_to_package()
295 args.instance = instance; in ofw_std_instance_to_package()
459 /* Return the fully qualified pathname corresponding to an instance. */
461 ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len) in ofw_std_instance_to_path() argument
467 cell_t instance; in ofw_std_instance_to_path() member
472 (cell_t)"instance-to-path", in ofw_std_instance_to_path()
477 args.instance = instance; in ofw_std_instance_to_path()
511 /* Call the method in the scope of a given instance. */
513 ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method, in ofw_std_call_method() argument
521 cell_t instance; in ofw_std_call_method() member
536 args.instance = instance; in ofw_std_call_method()
554 /* Open an instance for a device. */
563 cell_t instance; in ofw_std_open() member
571 if (openfirmware(&args) == -1 || args.instance == 0) in ofw_std_open()
573 return (args.instance); in ofw_std_open()
576 /* Close an instance. */
578 ofw_std_close(ofw_t ofw, ihandle_t instance) in ofw_std_close() argument
584 cell_t instance; in ofw_std_close() member
591 args.instance = instance; in ofw_std_close()
595 /* Read from an instance. */
597 ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len) in ofw_std_read() argument
603 cell_t instance; in ofw_std_read() member
613 args.instance = instance; in ofw_std_read()
622 /* Write to an instance. */
624 ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len) in ofw_std_write() argument
630 cell_t instance; in ofw_std_write() member
640 args.instance = instance; in ofw_std_write()
650 ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos) in ofw_std_seek() argument
656 cell_t instance; in ofw_std_seek() member
666 args.instance = instance; in ofw_std_seek()