/u-boot/include/dm/ |
A D | of_access.h | 38 static inline void of_node_put(const struct device_node *np) { } in of_node_put() argument 49 int of_n_addr_cells(const struct device_node *np); 60 int of_n_size_cells(const struct device_node *np); 70 int of_simple_addr_cells(const struct device_node *np); 80 int of_simple_size_cells(const struct device_node *np); 90 struct property *of_find_property(const struct device_node *np, 141 const void *of_get_property_by_prop(const struct device_node *np, 187 bool of_device_is_available(const struct device_node *np); 195 struct device_node *of_get_parent(const struct device_node *np); 442 int of_parse_phandle_with_args(const struct device_node *np, [all …]
|
A D | of.h | 81 struct device_node *np; member 100 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument 102 return np ? np->full_name : "<no-node>"; in of_node_full_name()
|
A D | ofnode.h | 53 const struct device_node *np; member 102 return node.np; in ofnode_to_np() 130 return node.np != NULL; in ofnode_valid() 146 node.np = NULL; in offset_to_ofnode() 159 static inline ofnode np_to_ofnode(const struct device_node *np) in np_to_ofnode() argument 163 node.np = np; in np_to_ofnode() 215 node.np = NULL; in ofnode_null() 227 node.np = gd_of_root(); in ofnode_root() 398 return np_to_ofnode(node.np->child); in ofnode_first_subnode() 408 return np_to_ofnode(node.np->sibling); in ofnode_next_subnode()
|
/u-boot/drivers/core/ |
A D | of_access.c | 76 np = np->parent; in of_n_addr_cells() 92 np = np->parent; in of_n_size_cells() 131 if (!np) in of_find_property() 161 while (np->parent && !np->sibling) in of_find_all_nodes() 162 np = np->parent; in of_find_all_nodes() 179 if (!np) in of_get_first_property() 188 if (!np) in of_get_next_property() 385 if (!np) in of_find_node_opts_by_path() 391 np = __of_find_node_by_path(np, path); in of_find_node_opts_by_path() 770 ap->np = np; in of_alias_add() [all …]
|
A D | ofnode.c | 198 for (np = np->child; np; np = np->sibling) { in ofnode_find_subnode() 199 if (!strcmp(subnode_name, np->name)) in ofnode_find_subnode() 202 subnode = np_to_ofnode(np); in ofnode_find_subnode() 245 return np_to_ofnode(node.np->child); in ofnode_first_subnode() 255 return np_to_ofnode(node.np->sibling); in ofnode_next_subnode() 284 return strrchr(node.np->full_name, '/') + 1; in ofnode_get_name() 411 out->node = np_to_ofnode(in->np); in ofnode_from_of_phandle_args() 691 na = of_n_addr_cells(np); in ofnode_get_addr_size() 692 ns = of_n_size_cells(np); in ofnode_get_addr_size() 697 return of_translate_address(np, prop); in ofnode_get_addr_size() [all …]
|
A D | of_addr.c | 24 static struct of_bus *of_match_bus(struct device_node *np); 51 static void of_bus_default_count_cells(const struct device_node *np, in of_bus_default_count_cells() argument 55 *addrc = of_n_addr_cells(np); in of_bus_default_count_cells() 57 *sizec = of_n_size_cells(np); in of_bus_default_count_cells() 111 static struct of_bus *of_match_bus(struct device_node *np) in of_match_bus() argument 116 if (!of_busses[i].match || of_busses[i].match(np)) in of_match_bus() 122 static void dev_count_cells(const struct device_node *np, int *nap, int *nsp) in dev_count_cells() argument 124 of_bus_default_count_cells(np, nap, nsp); in dev_count_cells()
|
/u-boot/drivers/net/phy/ |
A D | ncsi.c | 93 unsigned int np, nc; in ncsi_active() local 227 unsigned int np, nc; in ncsi_rsp_ec() local 240 unsigned int np, nc; in ncsi_rsp_ecnt() local 283 np, nc); in ncsi_rsp_gc() 310 np, nc); in ncsi_rsp_gvi() 339 np, nc); in ncsi_rsp_gls() 395 unsigned int np; in ncsi_rsp_dp() local 407 unsigned int np; in ncsi_rsp_sp() local 427 ncsi_priv->packages[np].id = np; in ncsi_rsp_sp() 436 int np, nc; in ncsi_update_state() local [all …]
|
/u-boot/lib/ |
A D | of_live.c | 48 struct device_node *np; in unflatten_dt_node() local 99 fn = (char *)np + sizeof(*np); in unflatten_dt_node() 100 np->full_name = fn; in unflatten_dt_node() 120 np->parent = dad; in unflatten_dt_node() 122 dad->child = np; in unflatten_dt_node() 205 np->name = of_get_property(np, "name", NULL); in unflatten_dt_node() 206 np->type = of_get_property(np, "device_type", NULL); in unflatten_dt_node() 208 if (!np->name) in unflatten_dt_node() 210 if (!np->type) in unflatten_dt_node() 235 np->child = NULL; in unflatten_dt_node() [all …]
|
/u-boot/board/gateworks/gw_ventana/ |
A D | gw_ventana.c | 898 int np; in fdt_add_pci_node() local 904 if (np >= 0) in fdt_add_pci_node() 905 return np; in fdt_add_pci_node() 909 return np; in fdt_add_pci_node() 916 return np; in fdt_add_pci_node() 923 int k, np; in fdt_add_pci_path() local 927 if (np < 0) in fdt_add_pci_path() 928 return np; in fdt_add_pci_path() 938 np = fdt_add_pci_node(blob, np, bridges[k]); in fdt_add_pci_path() 943 return np; in fdt_add_pci_path() [all …]
|
/u-boot/cmd/ |
A D | setexpr.c | 196 char *np; in setexpr_regex_sub() local 270 for (np = nbuf;;) { in setexpr_regex_sub() 271 char *p = memstr(np, nlen, backref, 2); in setexpr_regex_sub() 276 np = substitute(np, &nlen, in setexpr_regex_sub() 277 nbuf_size - (np - nbuf), in setexpr_regex_sub() 281 if (np == NULL) in setexpr_regex_sub()
|
/u-boot/arch/arm/dts/ |
A D | bcm283x-rpi-usb-otg.dtsi | 5 g-np-tx-fifo-size = <32>;
|
A D | meson-axg-u-boot.dtsi | 35 g-np-tx-fifo-size = <128>;
|
/u-boot/arch/arm/mach-tegra/tegra124/ |
A D | xusb-padctl.c | 332 struct device_node *np = of_find_compatible_node(NULL, NULL, in tegra_xusb_padctl_init() local 335 debug("np=%p\n", np); in tegra_xusb_padctl_init() 336 if (np) { in tegra_xusb_padctl_init() 337 nodes[0] = np_to_ofnode(np); in tegra_xusb_padctl_init()
|
/u-boot/arch/arm/mach-tegra/tegra210/ |
A D | xusb-padctl.c | 424 struct device_node *np = of_find_compatible_node(NULL, NULL, in tegra_xusb_padctl_init() local 427 debug("np=%p\n", np); in tegra_xusb_padctl_init() 428 if (np) { in tegra_xusb_padctl_init() 429 nodes[0] = np_to_ofnode(np); in tegra_xusb_padctl_init()
|
/u-boot/common/ |
A D | cli_readline.c | 26 static char *delete_char (char *buffer, char *p, int *colp, int *np, int plen) in delete_char() argument 30 if (*np == 0) in delete_char() 51 (*np)--; in delete_char()
|
A D | command.c | 358 int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp) in cmd_auto_complete() argument 360 int n = *np, col = *colp; in cmd_auto_complete() 453 *np = n; in cmd_auto_complete()
|
/u-boot/drivers/serial/ |
A D | serial-uclass.c | 95 struct device_node *np = of_get_stdout(); in serial_find_console_or_panic() local 97 if (np && !uclass_get_device_by_ofnode(UCLASS_SERIAL, in serial_find_console_or_panic() 98 np_to_ofnode(np), &dev)) { in serial_find_console_or_panic()
|
/u-boot/include/linux/mtd/ |
A D | spinand.h | 424 const struct device_node *np) in spinand_set_of_node() argument 426 nanddev_set_of_node(&spinand->base, np); in spinand_set_of_node()
|
A D | spi-nor.h | 359 const struct device_node *np) in spi_nor_set_flash_node() argument 361 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
|
A D | nand.h | 401 const struct device_node *np) in nanddev_set_of_node() argument 403 mtd_set_of_node(nand->mtd, np); in nanddev_set_of_node()
|
/u-boot/drivers/pinctrl/rockchip/ |
A D | pinctrl-rockchip-core.c | 404 const struct device_node *np; local 444 np = ofnode_to_np(node); 445 for (pp = np->properties; pp; pp = pp->next) {
|
/u-boot/drivers/phy/ |
A D | phy-mtk-tphy.c | 257 const struct device_node *np; member 645 if (phy_np == tphy->phys[index]->np) { in mtk_phy_xlate() 722 instance->np = ofnode_to_np(subnode); in mtk_tphy_probe()
|
/u-boot/doc/device-tree-bindings/usb/ |
A D | dwc2.txt | 38 - g-np-tx-fifo-size: size of non-periodic tx fifo size in gadget mode.
|
/u-boot/arch/arm/mach-tegra/ |
A D | xusb-padctl-common.c | 284 debug("%s: i=%d, node=%p\n", __func__, i, nodes[i].np); in tegra_xusb_process_nodes()
|
/u-boot/include/ |
A D | command.h | 90 int cmd_auto_complete(const char *const prompt, char *buf, int *np,
|