Lines Matching refs:ofw

59 __FBSDID("$FreeBSD: stable/11/sys/dev/ofw/ofw_standard.c 331722 2018-03-29 02:50:57Z eadler $");
68 #include <dev/ofw/ofwvar.h>
69 #include <dev/ofw/openfirm.h>
73 static int ofw_std_init(ofw_t ofw, void *openfirm);
74 static int ofw_std_test(ofw_t ofw, const char *name);
75 static int ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns,
77 static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
78 static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
79 static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
80 static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
81 static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,
83 static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package,
85 static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous,
87 static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
89 static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf,
91 static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device);
92 static ssize_t ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance,
94 static ssize_t ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf,
96 static int ofw_std_call_method(ofw_t ofw, ihandle_t instance,
98 static ihandle_t ofw_std_open(ofw_t ofw, const char *device);
99 static void ofw_std_close(ofw_t ofw, ihandle_t instance);
100 static ssize_t ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr,
102 static ssize_t ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr,
104 static int ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos);
105 static caddr_t ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align);
106 static void ofw_std_release(ofw_t ofw, void *virt, size_t size);
107 static void ofw_std_enter(ofw_t ofw);
108 static void ofw_std_exit(ofw_t ofw);
153 ofw_std_init(ofw_t ofw, void *openfirm)
166 ofw_std_test(ofw_t ofw, const char *name)
187 ofw_std_interpret(ofw_t ofw, const char *cmd, int nreturns, cell_t *returns)
217 ofw_std_peer(ofw_t ofw, phandle_t node)
239 ofw_std_child(ofw_t ofw, phandle_t node)
261 ofw_std_parent(ofw_t ofw, phandle_t node)
283 ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance)
305 ofw_std_getproplen(ofw_t ofw, phandle_t package, const char *propname)
329 ofw_std_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf,
358 ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf,
386 ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
415 ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len)
441 ofw_std_finddevice(ofw_t ofw, const char *device)
463 ofw_std_instance_to_path(ofw_t ofw, ihandle_t instance, char *buf, size_t len)
489 ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf, size_t len)
515 ofw_std_call_method(ofw_t ofw, ihandle_t instance, const char *method,
558 ofw_std_open(ofw_t ofw, const char *device)
580 ofw_std_close(ofw_t ofw, ihandle_t instance)
599 ofw_std_read(ofw_t ofw, ihandle_t instance, void *addr, size_t len)
626 ofw_std_write(ofw_t ofw, ihandle_t instance, const void *addr, size_t len)
652 ofw_std_seek(ofw_t ofw, ihandle_t instance, uint64_t pos)
682 ofw_std_claim(ofw_t ofw, void *virt, size_t size, u_int align)
708 ofw_std_release(ofw_t ofw, void *virt, size_t size)
733 ofw_std_enter(ofw_t ofw)
751 ofw_std_exit(ofw_t ofw)