Home
last modified time | relevance | path

Searched refs:phandle_t (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/freebsd/sys/dev/ofw/
H A Dofw_bus_subr.h60 phandle_t iparent;
74 int ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *, phandle_t);
88 void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int);
89 int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int,
90 void *, int, void *, int, phandle_t *);
92 void *, void *, int, phandle_t *);
95 int ofw_bus_msimap(phandle_t, uint16_t, phandle_t *, uint32_t *);
96 int ofw_bus_iommu_map(phandle_t, uint16_t, phandle_t *, uint32_t *);
99 int ofw_bus_reg_to_rl(device_t, phandle_t, pcell_t, pcell_t,
101 int ofw_bus_assigned_addresses_to_rl(device_t, phandle_t, pcell_t, pcell_t,
[all …]
H A Dopenfirm.h71 typedef uint32_t phandle_t; typedef
103 phandle_t OF_peer(phandle_t node);
104 phandle_t OF_child(phandle_t node);
105 phandle_t OF_parent(phandle_t node);
106 ssize_t OF_getproplen(phandle_t node, const char *propname);
107 ssize_t OF_getprop(phandle_t node, const char *propname, void *buf,
109 ssize_t OF_getencprop(phandle_t nod
[all...]
H A Dofw_graph.c46 phandle_t
47 ofw_graph_get_port_by_idx(phandle_t node, uint32_t idx) in ofw_graph_get_port_by_idx()
49 phandle_t ports, child; in ofw_graph_get_port_by_idx()
84 ofw_graph_port_get_num_endpoints(phandle_t port) in ofw_graph_port_get_num_endpoints()
86 phandle_t child; in ofw_graph_port_get_num_endpoints()
106 phandle_t
107 ofw_graph_get_endpoint_by_idx(phandle_t port, uint32_t idx) in ofw_graph_get_endpoint_by_idx()
109 phandle_t endpoint, child; in ofw_graph_get_endpoint_by_idx()
129 phandle_t
130 ofw_graph_get_remote_endpoint(phandle_t endpoint) in ofw_graph_get_remote_endpoint()
[all …]
H A Dopenfirm.c91 phandle_t xref;
92 phandle_t node;
117 xrefinfo_create(phandle_t node) in xrefinfo_create()
120 phandle_t child, xref; in xrefinfo_create()
164 if ((find_by == FIND_BY_XREF && (phandle_t)key == xi->xref) || in xrefinfo_find()
165 (find_by == FIND_BY_NODE && (phandle_t)key == xi->node) || in xrefinfo_find()
176 xrefinfo_add(phandle_t node, phandle_t xref, device_t dev) in xrefinfo_add()
230 phandle_t chosen; in OF_init()
321 phandle_t
[all...]
H A Dofw_fdt.c65 static phandle_t ofw_fdt_peer(ofw_t, phandle_t);
66 static phandle_t ofw_fdt_child(ofw_t, phandle_t);
67 static phandle_t ofw_fdt_parent(ofw_t, phandle_t);
68 static phandle_t ofw_fdt_instance_to_package(ofw_t, ihandle_t);
69 static ssize_t ofw_fdt_getproplen(ofw_t, phandle_t, const char *);
70 static ssize_t ofw_fdt_getprop(ofw_t, phandle_t, const char *, void *, size_t);
71 static int ofw_fdt_nextprop(ofw_t, phandle_t, const char *, char *, size_t);
72 static int ofw_fdt_setprop(ofw_t, phandle_t, const char *, const void *,
75 static phandle_t ofw_fdt_finddevice(ofw_t, const char *);
77 static ssize_t ofw_fdt_package_to_path(ofw_t, phandle_t, char *, size_t);
[all …]
H A Dofw_graph.h33 phandle_t ofw_graph_get_port_by_idx(phandle_t node, uint32_t idx);
34 phandle_t ofw_graph_get_remote_endpoint(phandle_t endpoint);
35 size_t ofw_graph_port_get_num_endpoints(phandle_t port);
36 phandle_t ofw_graph_get_endpoint_by_idx(phandle_t port, uint32_t idx);
37 phandle_t ofw_graph_get_remote_parent(phandle_t remote);
39 device_t ofw_graph_get_device_by_port_ep(phandle_t node, uint32_t port_id, uint32_t ep_id);
H A Dofw_bus_subr.c53 ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *obd, phandle_t node) in ofw_bus_gen_setup_devinfo()
154 phandle_t
161 return ((phandle_t)-1); in ofw_bus_gen_get_node()
202 ofw_bus_node_status_okay(phandle_t node) in ofw_bus_node_status_okay()
246 ofw_bus_node_is_compatible(phandle_t node, const char *compatstr) in ofw_bus_node_is_compatible()
267 phandle_t node; in ofw_bus_is_compatible()
319 phandle_t node; in ofw_bus_has_prop()
328 ofw_bus_setup_iinfo(phandle_t node, struct ofw_bus_iinfo *ii, int intrsz) in ofw_bus_setup_iinfo()
353 ofw_bus_lookup_imap(phandle_t node, struct ofw_bus_iinfo *ii, void *reg, in ofw_bus_lookup_imap()
355 phandle_t *iparent) in ofw_bus_lookup_imap()
[all …]
H A Dofw_standard.c76 static phandle_t ofw_std_peer(ofw_t ofw, phandle_t node);
77 static phandle_t ofw_std_child(ofw_t ofw, phandle_t node);
78 static phandle_t ofw_std_parent(ofw_t ofw, phandle_t node);
79 static phandle_t ofw_std_instance_to_package(ofw_t ofw, ihandle_t instance);
80 static ssize_t ofw_std_getproplen(ofw_t ofw, phandle_t package,
82 static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package,
84 static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous,
86 static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname,
90 static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device);
93 static ssize_t ofw_std_package_to_path(ofw_t ofw, phandle_t package, char *buf,
[all …]
H A Dopenfirmio.c70 static phandle_t lastnode; /* speed hack */
72 static int openfirm_checkid(phandle_t, phandle_t);
80 openfirm_checkid(phandle_t sid, phandle_t tid) in openfirm_checkid()
111 phandle_t node; in openfirm_ioctl()
122 *(phandle_t *) data = OF_finddevice("/options"); in openfirm_ioctl()
133 node = *(phandle_t *)data; in openfirm_ioctl()
241 *(phandle_t *)data = lastnode = node; in openfirm_ioctl()
248 *(phandle_t *)data = lastnode = node; in openfirm_ioctl()
/freebsd/stand/libofw/
H A Dopenfirm.h66 typedef uint32_t phandle_t; typedef
70 extern phandle_t chosen;
85 phandle_t OF_peer(phandle_t);
86 phandle_t OF_child(phandle_t);
87 phandle_t OF_parent(phandle_t);
88 phandle_t OF_instance_to_package(ihandle_t);
89 int OF_getproplen(phandle_t, const char *);
90 int OF_getprop(phandle_t, const char *, void *, int);
91 int OF_getencprop(phandle_t, const char *, cell_t *, int);
92 int OF_nextprop(phandle_t, const char *, char *);
[all …]
/freebsd/usr.sbin/ofwdump/
H A Dofw_util.h34 phandle_t ofw_root(int);
35 phandle_t ofw_optnode(int);
36 phandle_t ofw_peer(int, phandle_t);
37 phandle_t ofw_child(int, phandle_t);
38 phandle_t ofw_finddevice(int, const char *);
40 int ofw_firstprop(int, phandle_t, char *, int);
41 int ofw_nextprop(int, phandle_t, const char *, char *, int);
42 int ofw_getprop(int, phandle_t, const char *, void *, int);
43 int ofw_setprop(int, phandle_t, const char *, const void *, int);
44 int ofw_getproplen(int, phandle_t, const char *);
[all …]
H A Dofw_util.c65 phandle_t
72 phandle_t
75 phandle_t rv; in ofw_optnode()
81 phandle_t
82 ofw_peer(int fd, phandle_t node) in ofw_peer()
84 phandle_t rv; in ofw_peer()
91 phandle_t
92 ofw_child(int fd, phandle_t node) in ofw_child()
94 phandle_t rv; in ofw_child()
101 phandle_t
[all …]
/freebsd/sys/dev/fdt/
H A Dfdt_common.h49 typedef int (*fdt_pic_decode_t)(phandle_t, pcell_t *, int *, int *, int *);
54 typedef void (*fdt_fixup_t)(phandle_t);
79 int fdt_addrsize_cells(phandle_t, int *, int *);
82 phandle_t fdt_find_compatible(phandle_t, const char *, int);
83 phandle_t fdt_depth_search_compatible(phandle_t, const char *, int);
87 int fdt_get_phyaddr(phandle_t, device_t, int *, void **);
88 int fdt_get_range(phandle_t, int, u_long *, u_long *);
90 int fdt_regsize(phandle_t, u_long *, u_long *);
91 int fdt_is_compatible_strict(phandle_t, const char *);
92 int fdt_parent_addr_cells(phandle_t);
H A Dfdt_common.c72 fdt_get_range_by_busaddr(phandle_t node, u_long addr, u_long *base, in fdt_get_range_by_busaddr()
147 fdt_get_range(phandle_t node, int range_id, u_long *base, u_long *size) in fdt_get_range()
205 phandle_t node; in fdt_immr_addr()
235 fdt_is_compatible_strict(phandle_t node, const char *compatible) in fdt_is_compatible_strict()
252 phandle_t
253 fdt_find_compatible(phandle_t start, const char *compat, int strict) in fdt_find_compatible()
255 phandle_t child; in fdt_find_compatible()
271 phandle_t
272 fdt_depth_search_compatible(phandle_t start, const char *compat, int strict) in fdt_depth_search_compatible()
274 phandle_t child, node; in fdt_depth_search_compatible()
[all …]
H A Dsimplebus.h44 phandle_t node;
59 void simplebus_init(device_t dev, phandle_t node);
60 device_t simplebus_add_device(device_t dev, phandle_t node, u_int order,
62 struct simplebus_devinfo *simplebus_setup_dinfo(device_t dev, phandle_t node,
64 int simplebus_fill_ranges(phandle_t node,
/freebsd/sys/dev/nvmem/
H A Dnvmem.c40 nvmem_get_cell_node(phandle_t node, int idx, phandle_t *cell) in nvmem_get_cell_node()
42 phandle_t *p_cell; in nvmem_get_cell_node()
43 phandle_t cell_node; in nvmem_get_cell_node()
70 nvmem_get_cell_len(phandle_t node, const char *name) in nvmem_get_cell_len()
72 phandle_t cell_node; in nvmem_get_cell_len()
95 nvmem_read_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen) in nvmem_read_cell_by_idx()
97 phandle_t cell_node; in nvmem_read_cell_by_idx()
133 nvmem_read_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen) in nvmem_read_cell_by_name()
145 nvmem_write_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen) in nvmem_write_cell_by_idx()
147 phandle_t cell_node, prov_node; in nvmem_write_cell_by_idx()
[all …]
H A Dnvmem.h29 int nvmem_get_cell_len(phandle_t node, const char *name);
30 int nvmem_read_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen);
31 int nvmem_read_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen);
32 int nvmem_write_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen);
33 int nvmem_write_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen);
/freebsd/sys/dev/sff/
H A Dsfp_fdt.c44 phandle_t ofw_node;
45 phandle_t i2c_bus;
47 phandle_t mod_def;
48 phandle_t los;
49 phandle_t tx_fault;
50 phandle_t tx_disable;
51 phandle_t rx_rate;
52 phandle_t tx_rate;
59 phandle_t node; in sfp_fdt_probe()
/freebsd/sys/arm64/coresight/
H A Dcoresight_fdt.c47 coresight_fdt_get_ports(phandle_t dev_node, in coresight_fdt_get_ports()
50 phandle_t node, child; in coresight_fdt_get_ports()
52 phandle_t xref; in coresight_fdt_get_ports()
55 phandle_t endpoint_child; in coresight_fdt_get_ports()
108 coresight_fdt_get_cpu(phandle_t node, in coresight_fdt_get_cpu()
111 phandle_t cpu_node; in coresight_fdt_get_cpu()
131 phandle_t node; in coresight_fdt_get_platform_data()
/freebsd/sys/dev/uart/
H A Duart_bus_fdt.c67 uart_fdt_get_clock(phandle_t node, pcell_t *cell) in uart_fdt_get_clock()
84 uart_fdt_get_shift(phandle_t node, pcell_t *cell) in uart_fdt_get_shift()
93 uart_fdt_get_io_width(phandle_t node, pcell_t *cell) in uart_fdt_get_io_width()
116 phandle_chosen_propdev(phandle_t chosen, const char *name, phandle_t *node) in phandle_chosen_propdev()
138 uart_fdt_find_compatible(phandle_t node, const struct ofw_compat_data *cd) in uart_fdt_find_compatible()
150 uart_fdt_find_by_node(phandle_t node, int class_list) in uart_fdt_find_by_node()
182 phandle_t node, chosen; in uart_cpu_fdt_probe()
270 phandle_t node; in uart_fdt_probe()
H A Duart_cpu_powerpc.c53 ofw_get_uart_console(phandle_t opts, phandle_t *result, const char *inputdev, in ofw_get_uart_console()
57 phandle_t input; in ofw_get_uart_console()
77 ofw_get_console_phandle_path(phandle_t node, phandle_t *result, in ofw_get_console_phandle_path()
82 phandle_t ref; in ofw_get_console_phandle_path()
84 phandle_t output; in ofw_get_console_phandle_path()
113 phandle_t input, opts, chosen; in uart_cpu_getdev()
/freebsd/sys/dev/syscon/
H A Dsyscon.h45 phandle_t ofw_node; /* OFW node for syscon */
70 syscon_class_t syscon_class, phandle_t node);
71 phandle_t syscon_get_ofw_node(struct syscon *syscon);
72 int syscon_get_by_ofw_property(device_t consumer, phandle_t node, char *name,
74 int syscon_get_by_ofw_node(device_t cdev, phandle_t node, struct syscon **syscon);
/freebsd/sys/dev/neta/
H A Dif_mvneta_fdt.c70 STATIC boolean_t mvneta_find_ethernet_prop_switch(phandle_t, phandle_t);
149 phandle_t node, child, phy_handle; in mvneta_fdt_phy_acquire()
234 phandle_t node; in mvneta_fdt_mac_address()
260 mvneta_find_ethernet_prop_switch(phandle_t ethernet, phandle_t node) in mvneta_find_ethernet_prop_switch()
263 phandle_t child, switch_eth_handle, switch_eth; in mvneta_find_ethernet_prop_switch()
288 phandle_t node; in mvneta_has_switch_fdt()
/freebsd/sys/dev/usb/
H A Dusb_fdt_support.c53 static phandle_t
54 find_udev_in_children(phandle_t parent, struct usb_device *udev) in find_udev_in_children()
56 phandle_t child; in find_udev_in_children()
100 phandle_t node; in usb_fdt_get_mac_addr()
120 phandle_t
125 phandle_t controller_node, node; in usb_fdt_get_node()
/freebsd/sys/dev/gpio/
H A Dofw_gpiobus.c44 device_t, phandle_t);
46 static int ofw_gpiobus_parse_gpios_impl(device_t, phandle_t, char *,
58 gpio_pin_get_by_ofw_propidx(device_t consumer, phandle_t cnode, in gpio_pin_get_by_ofw_propidx()
61 phandle_t xref; in gpio_pin_get_by_ofw_propidx()
108 gpio_pin_get_by_ofw_idx(device_t consumer, phandle_t node, in gpio_pin_get_by_ofw_idx()
116 gpio_pin_get_by_ofw_property(device_t consumer, phandle_t node, in gpio_pin_get_by_ofw_property()
124 gpio_pin_get_by_ofw_name(device_t consumer, phandle_t node, in gpio_pin_get_by_ofw_name()
142 ofw_gpiobus_add_fdt_child(device_t bus, const char *drvname, phandle_t child) in ofw_gpiobus_add_fdt_child()
194 phandle_t node; in ofw_gpiobus_register_provider()
204 phandle_t node; in ofw_gpiobus_unregister_provider()
[all …]

12345678910>>...22