Lines Matching full:instance

212 /* Return the package handle that corresponds to an instance handle. */
214 OF_instance_to_package(ihandle_t instance) in OF_instance_to_package() argument
220 cell_t instance; in OF_instance_to_package() member
223 SETUP(args, "instance-to-package", 1, 1); in OF_instance_to_package()
225 args.instance = instance; in OF_instance_to_package()
383 /* Return the fully qualified pathname corresponding to an instance. */
385 OF_instance_to_path(ihandle_t instance, char *buf, int len) in OF_instance_to_path() argument
391 cell_t instance; in OF_instance_to_path() member
396 SETUP(args, "instance-to-path", 3, 1); in OF_instance_to_path()
398 args.instance = instance; in OF_instance_to_path()
429 /* Call the method in the scope of a given instance. */
431 OF_call_method(char *method, ihandle_t instance, int nargs, int nreturns, ...) in OF_call_method() argument
439 cell_t instance; in OF_call_method() member
449 args.instance = instance; in OF_call_method()
469 /* Open an instance for a device. */
478 cell_t instance; in OF_open() member
483 if (openfirmware(&args) == -1 || args.instance == 0) { in OF_open()
486 return (args.instance); in OF_open()
489 /* Close an instance. */
491 OF_close(ihandle_t instance) in OF_close() argument
497 cell_t instance; in OF_close() member
501 args.instance = instance; in OF_close()
505 /* Read from an instance. */
507 OF_read(ihandle_t instance, void *addr, int len) in OF_read() argument
513 cell_t instance; in OF_read() member
520 args.instance = instance; in OF_read()
525 printf("OF_read: called with instance=%08x, addr=%p, len=%d\n", in OF_read()
526 instance, addr, len); in OF_read()
533 printf("OF_read: returning instance=%d, addr=%p, len=%d, actual=%d\n", in OF_read()
534 args.instance, OUT(args.addr), OUT(args.len), OUT(args.actual)); in OF_read()
540 /* Write to an instance. */
542 OF_write(ihandle_t instance, void *addr, int len) in OF_write() argument
548 cell_t instance; in OF_write() member
555 args.instance = instance; in OF_write()
565 OF_seek(ihandle_t instance, uint64_t pos) in OF_seek() argument
571 cell_t instance; in OF_seek() member
578 args.instance = instance; in OF_seek()
588 OF_blocks(ihandle_t instance) in OF_blocks() argument
594 cell_t instance; in OF_blocks() member
600 args.instance = instance; in OF_blocks()
608 OF_block_size(ihandle_t instance) in OF_block_size() argument
614 cell_t instance; in OF_block_size() member
620 args.instance = instance; in OF_block_size()