/freebsd-13-stable/usr.sbin/ofwdump/ |
H A D | ofw_util.h | 36 phandle_t ofw_root(int); 37 phandle_t ofw_optnode(int); 38 phandle_t ofw_peer(int, phandle_t); 39 phandle_t ofw_child(int, phandle_t); 40 phandle_t ofw_finddevice(int, const char *); 42 int ofw_firstprop(int, phandle_t, char *, int); 43 int ofw_nextprop(int, phandle_t, const char *, char *, int); 44 int ofw_getprop(int, phandle_t, cons [all...] |
H A D | ofw_util.c | 68 phandle_t 75 phandle_t 78 phandle_t rv; 84 phandle_t 85 ofw_peer(int fd, phandle_t node) 87 phandle_t rv; 94 phandle_t 95 ofw_child(int fd, phandle_t node) 97 phandle_t rv; 104 phandle_t [all...] |
/freebsd-13-stable/sys/dev/ofw/ |
H A D | ofw_graph.h | 35 phandle_t ofw_graph_get_port_by_idx(phandle_t node, uint32_t idx); 36 phandle_t ofw_graph_get_remote_endpoint(phandle_t endpoint); 37 size_t ofw_graph_port_get_num_endpoints(phandle_t port); 38 phandle_t ofw_graph_get_endpoint_by_idx(phandle_t port, uint32_t idx); 39 phandle_t ofw_graph_get_remote_parent(phandle_t remote); 41 device_t ofw_graph_get_device_by_port_ep(phandle_t nod [all...] |
H A D | ofw_bus_subr.h | 62 phandle_t iparent; 76 int ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *, phandle_t); 89 void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int); 90 int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int, 91 void *, int, void *, int, phandle_t *); 93 void *, void *, int, phandle_t *); 96 int ofw_bus_msimap(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_ [all...] |
H A D | openfirm.h | 73 typedef uint32_t phandle_t; typedef 105 phandle_t OF_peer(phandle_t node); 106 phandle_t OF_child(phandle_t node); 107 phandle_t OF_parent(phandle_t node); 108 ssize_t OF_getproplen(phandle_t node, const char *propname); 109 ssize_t OF_getprop(phandle_t node, const char *propname, void *buf, 111 ssize_t OF_getencprop(phandle_t nod [all...] |
H A D | ofw_graph.c | 50 phandle_t 51 ofw_graph_get_port_by_idx(phandle_t node, uint32_t idx) 53 phandle_t ports, child; 80 ofw_graph_port_get_num_endpoints(phandle_t port) 82 phandle_t child; 102 phandle_t 103 ofw_graph_get_endpoint_by_idx(phandle_t port, uint32_t idx) 105 phandle_t endpoint, child; 125 phandle_t 126 ofw_graph_get_remote_endpoint(phandle_t endpoin [all...] |
H A D | ofw_cpu.h | 35 typedef boolean_t (*ofw_cpu_foreach_cb)(u_int, phandle_t, u_int, pcell_t *);
|
H A D | ofw_subr.h | 46 int ofw_reg_to_paddr(phandle_t _dev, int _regno, bus_addr_t *_paddr,
|
H A D | openfirmio.h | 48 phandle_t of_nodeid; /* passed or returned node id */ 64 #define OFIOCGETOPTNODE _IOR(OFIOC_BASE, 4, phandle_t) 66 #define OFIOCGETNEXT _IOWR(OFIOC_BASE, 5, phandle_t) 68 #define OFIOCGETCHILD _IOWR(OFIOC_BASE, 6, phandle_t)
|
H A D | ofw_fdt.c | 68 static phandle_t ofw_fdt_peer(ofw_t, phandle_t); 69 static phandle_t ofw_fdt_child(ofw_t, phandle_t); 70 static phandle_t ofw_fdt_parent(ofw_t, phandle_t); 71 static phandle_t ofw_fdt_instance_to_package(ofw_t, ihandle_t); 72 static ssize_t ofw_fdt_getproplen(ofw_t, phandle_t, const char *); 73 static ssize_t ofw_fdt_getprop(ofw_t, phandle_t, const char *, void *, size_t); 74 static int ofw_fdt_nextprop(ofw_t, phandle_t, cons [all...] |
H A D | openfirm.c | 93 phandle_t xref; 94 phandle_t node; 119 xrefinfo_create(phandle_t node) 122 phandle_t child, xref; 166 if ((find_by == FIND_BY_XREF && (phandle_t)key == xi->xref) || 167 (find_by == FIND_BY_NODE && (phandle_t)key == xi->node) || 178 xrefinfo_add(phandle_t node, phandle_t xref, device_t dev) 232 phandle_t chosen; 323 phandle_t [all...] |
/freebsd-13-stable/stand/libofw/ |
H A D | openfirm.h | 69 typedef unsigned int phandle_t; typedef 73 extern phandle_t chosen; 88 phandle_t OF_peer(phandle_t); 89 phandle_t OF_child(phandle_t); 90 phandle_t OF_parent(phandle_t); 91 phandle_t OF_instance_to_package(ihandle_t); 92 int OF_getproplen(phandle_t, cons [all...] |
/freebsd-13-stable/sys/dev/extres/nvmem/ |
H A D | nvmem.h | 31 int nvmem_get_cell_len(phandle_t node, const char *name); 32 int nvmem_read_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen); 33 int nvmem_read_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen); 34 int nvmem_write_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen); 35 int nvmem_write_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen);
|
H A D | nvmem.c | 43 nvmem_get_cell_node(phandle_t node, int idx, phandle_t *cell) 45 phandle_t *p_cell; 46 phandle_t cell_node; 73 nvmem_get_cell_len(phandle_t node, const char *name) 75 phandle_t cell_node; 98 nvmem_read_cell_by_idx(phandle_t node, int idx, void *cell, size_t buflen) 100 phandle_t cell_node; 136 nvmem_read_cell_by_name(phandle_t node, const char *name, void *cell, size_t buflen) 148 nvmem_write_cell_by_idx(phandle_t nod [all...] |
/freebsd-13-stable/sys/dev/fdt/ |
H A D | fdt_common.h | 52 typedef int (*fdt_pic_decode_t)(phandle_t, pcell_t *, int *, int *, int *); 57 typedef void (*fdt_fixup_t)(phandle_t); 82 int fdt_addrsize_cells(phandle_t, int *, int *); 85 phandle_t fdt_find_compatible(phandle_t, const char *, int); 86 phandle_t fdt_depth_search_compatible(phandle_t, const char *, int); 90 int fdt_get_phyaddr(phandle_t, device_t, int *, void **); 91 int fdt_get_range(phandle_t, int, u_long *, u_long *); 93 int fdt_regsize(phandle_t, u_lon [all...] |
H A D | simplebus.h | 46 phandle_t node; 61 void simplebus_init(device_t dev, phandle_t node); 62 device_t simplebus_add_device(device_t dev, phandle_t node, u_int order, 64 struct simplebus_devinfo *simplebus_setup_dinfo(device_t dev, phandle_t node, 66 int simplebus_fill_ranges(phandle_t node,
|
/freebsd-13-stable/sys/dev/pwm/ |
H A D | ofw_pwm.h | 45 int pwm_get_by_ofw_propidx(device_t consumer, phandle_t node, 47 int pwm_get_by_ofw_idx(device_t consumer, phandle_t node, int idx, 49 int pwm_get_by_ofw_property(device_t consumer, phandle_t node, 51 int pwm_get_by_ofw_name(device_t consumer, phandle_t node, const char *name,
|
H A D | ofw_pwm.c | 43 pwm_get_by_ofw_propidx(device_t consumer, phandle_t node, 46 phandle_t xref; 74 pwm_get_by_ofw_idx(device_t consumer, phandle_t node, int idx, 82 pwm_get_by_ofw_property(device_t consumer, phandle_t node, 90 pwm_get_by_ofw_name(device_t consumer, phandle_t node, const char *name,
|
/freebsd-13-stable/sys/dev/extres/syscon/ |
H A D | syscon.h | 47 phandle_t ofw_node; /* OFW node for syscon */ 72 syscon_class_t syscon_class, phandle_t node); 73 phandle_t syscon_get_ofw_node(struct syscon *syscon); 74 int syscon_get_by_ofw_property(device_t consumer, phandle_t node, char *name, 76 int syscon_get_by_ofw_node(device_t cdev, phandle_t node, struct syscon **syscon);
|
/freebsd-13-stable/sys/dev/uart/ |
H A D | uart_cpu_fdt.h | 55 int uart_fdt_get_clock(phandle_t node, pcell_t *cell); 56 int uart_fdt_get_shift(phandle_t node, pcell_t *cell); 57 int uart_fdt_get_io_width(phandle_t node, pcell_t *cell);
|
/freebsd-13-stable/sys/dev/mii/ |
H A D | mii_fdt.h | 40 phandle_t macnode; /* Node (not xref) of parent MAC */ 41 phandle_t phynode; /* Node (not xref) of PHY */ 67 mii_contype_t mii_fdt_get_contype(phandle_t macnode);
|
/freebsd-13-stable/sys/dev/usb/ |
H A D | usb_fdt_support.h | 46 phandle_t usb_fdt_get_node(device_t dev, struct usb_device* udev);
|
/freebsd-13-stable/sys/dev/extres/phy/ |
H A D | phy.h | 46 phandle_t ofw_node; /* OFW node of phy */ 72 phandle_t phynode_get_ofw_node(struct phynode *phynode); 86 int phy_get_by_ofw_name(device_t consumer, phandle_t node, char *name, 88 int phy_get_by_ofw_idx(device_t consumer, phandle_t node, int idx, phy_t *phy); 89 int phy_get_by_ofw_property(device_t consumer, phandle_t node, char *name,
|
/freebsd-13-stable/sys/powerpc/psim/ |
H A D | iobusvar.h | 49 IOBUS_ACCESSOR(node, NODE, phandle_t) 60 phandle_t id_node;
|
/freebsd-13-stable/sys/arm64/coresight/ |
H A D | coresight_fdt.c | 50 coresight_fdt_get_ports(phandle_t dev_node, 53 phandle_t node, child; 55 phandle_t xref; 58 phandle_t endpoint_child; 111 coresight_fdt_get_cpu(phandle_t node, 114 phandle_t cpu_node; 134 phandle_t node;
|