| /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); 490 int of_parse_phandle_with_args(const struct device_node *np, [all …]
|
| A D | of_addr.h | 27 u64 of_translate_address(const struct device_node *np, const __be32 *in_addr); 45 u64 of_translate_dma_address(const struct device_node *np, const __be32 *in_addr); 60 int of_get_dma_range(const struct device_node *np, phys_addr_t *cpu, 76 const __be32 *of_get_address(const struct device_node *np, int index, 94 int of_address_to_resource(const struct device_node *np, int index,
|
| A D | of.h | 91 struct device_node *np; member 110 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument 112 return np ? np->full_name : "<no-node>"; in of_node_full_name()
|
| A D | ofnode.h | 120 node.np = NULL; in noffset_to_ofnode() 143 return node.np; in ofnode_to_np() 155 return node.np != NULL; in ofnode_valid() 187 node.np = NULL; in offset_to_ofnode() 204 node.np = np; in np_to_ofnode() 256 return tree.np; in oftree_valid() 272 tree.np = NULL; in oftree_null() 290 node.np = NULL; in ofnode_null() 302 node.np = gd_of_root(); in ofnode_root() 333 tree.np = gd_of_root(); in oftree_default() [all …]
|
| A D | ofnode_decl.h | 52 struct device_node *np; member 109 struct device_node *np; member
|
| /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() 391 if (!np) in of_find_node_opts_by_path() 397 np = __of_find_node_by_path(np, path); in of_find_node_opts_by_path() 813 ap->np = np; in of_alias_add() [all …]
|
| A D | ofnode.c | 153 node.np = NULL; in noffset_to_ofnode() 455 for (np = np->child; np; np = np->sibling) { in ofnode_find_subnode() 459 subnode = np_to_ofnode(np); in ofnode_find_subnode() 513 return np_to_ofnode(node.np->child); in ofnode_first_subnode() 552 return node.np->name; in ofnode_get_name() 565 strcpy(buf, node.np->full_name); in ofnode_get_path() 768 out->node = np_to_ofnode(in->np); in ofnode_from_of_phandle_args() 828 return np_to_ofnode(tree.np); in oftree_root() 1110 na = of_n_addr_cells(np); in ofnode_get_addr_size() 1111 ns = of_n_size_cells(np); in ofnode_get_addr_size() [all …]
|
| A D | of_addr.c | 23 static struct of_bus *of_match_bus(struct device_node *np); 50 static void of_bus_default_count_cells(const struct device_node *np, in of_bus_default_count_cells() argument 54 *addrc = of_n_addr_cells(np); in of_bus_default_count_cells() 56 *sizec = of_n_size_cells(np); in of_bus_default_count_cells() 110 static struct of_bus *of_match_bus(struct device_node *np) in of_match_bus() argument 115 if (!of_busses[i].match || of_busses[i].match(np)) in of_match_bus() 159 static int of_empty_ranges_quirk(const struct device_node *np) in of_empty_ranges_quirk() argument
|
| /u-boot/drivers/net/phy/ |
| A D | ncsi.c | 94 unsigned int np, nc; in ncsi_active() local 228 unsigned int np, nc; in ncsi_rsp_ec() local 241 unsigned int np, nc; in ncsi_rsp_ecnt() local 284 np, nc); in ncsi_rsp_gc() 311 np, nc); in ncsi_rsp_gvi() 340 np, nc); in ncsi_rsp_gls() 396 unsigned int np; in ncsi_rsp_dp() local 408 unsigned int np; in ncsi_rsp_sp() local 428 ncsi_priv->packages[np].id = np; in ncsi_rsp_sp() 437 int np, nc; in ncsi_update_state() local [all …]
|
| /u-boot/lib/ |
| A D | of_live.c | 99 fn = (char *)np + sizeof(*np); in unflatten_dt_node() 101 np->name = pathp; in unflatten_dt_node() 104 np->full_name = fn; in unflatten_dt_node() 124 np->parent = dad; in unflatten_dt_node() 126 dad->child = np; in unflatten_dt_node() 210 np->name = of_get_property(np, "name", NULL); in unflatten_dt_node() 211 np->type = of_get_property(np, "device_type", NULL); in unflatten_dt_node() 213 if (!np->name) in unflatten_dt_node() 215 if (!np->type) in unflatten_dt_node() 240 np->child = NULL; in unflatten_dt_node() [all …]
|
| /u-boot/drivers/memory/ |
| A D | ti-gpmc.c | 909 p->wait_on_read = ofnode_read_bool(np, in gpmc_read_settings_dt() 911 p->wait_on_write = ofnode_read_bool(np, in gpmc_read_settings_dt() 919 static void gpmc_read_timings_dt(ofnode np, in gpmc_read_timings_dt() argument 941 ofnode_read_u32(np, "gpmc,adv-aad-mux-on-ns", in gpmc_read_timings_dt() 955 ofnode_read_u32(np, "gpmc,oe-aad-mux-on-ns", in gpmc_read_timings_dt() 957 ofnode_read_u32(np, "gpmc,oe-aad-mux-off-ns", in gpmc_read_timings_dt() 961 ofnode_read_u32(np, "gpmc,page-burst-access-ns", in gpmc_read_timings_dt() 966 ofnode_read_u32(np, "gpmc,bus-turnaround-ns", in gpmc_read_timings_dt() 970 ofnode_read_u32(np, "gpmc,wait-monitoring-ns", in gpmc_read_timings_dt() 972 ofnode_read_u32(np, "gpmc,clk-activation-ns", in gpmc_read_timings_dt() [all …]
|
| /u-boot/board/gateworks/gw_ventana/ |
| A D | gw_ventana.c | 796 int np; in fdt_add_pci_node() local 802 if (np >= 0) in fdt_add_pci_node() 803 return np; in fdt_add_pci_node() 807 return np; in fdt_add_pci_node() 814 return np; in fdt_add_pci_node() 821 int k, np; in fdt_add_pci_path() local 825 if (np < 0) in fdt_add_pci_path() 826 return np; in fdt_add_pci_path() 836 np = fdt_add_pci_node(blob, np, bridges[k]); in fdt_add_pci_path() 841 return np; in fdt_add_pci_path() [all …]
|
| /u-boot/test/boot/ |
| A D | vbe_simple.c | 30 struct device_node *np; in vbe_simple_test_base() local 56 ut_assertok(unflatten_device_tree(fdt_buf, &np)); in vbe_simple_test_base() 57 fixup.tree = oftree_from_np(np); in vbe_simple_test_base()
|
| /u-boot/cmd/ |
| A D | setexpr.c | 200 char *np; in setexpr_regex_sub() local 274 for (np = nbuf;;) { in setexpr_regex_sub() 275 char *p = memstr(np, nlen, backref, 2); in setexpr_regex_sub() 280 np = substitute(np, &nlen, in setexpr_regex_sub() 281 nbuf_size - (np - nbuf), in setexpr_regex_sub() 285 if (np == NULL) in setexpr_regex_sub()
|
| /u-boot/drivers/pci/ |
| A D | pcie_apple.c | 154 ofnode np; member 246 static int apple_pcie_setup_port(struct apple_pcie_priv *pcie, ofnode np) in apple_pcie_setup_port() argument 255 ret = gpio_request_by_name_nodev(np, "reset-gpios", 0, &reset, 0); in apple_pcie_setup_port() 263 ret = ofnode_read_u32_index(np, "reg", 0, &idx); in apple_pcie_setup_port() 271 port->np = np; in apple_pcie_setup_port()
|
| /u-boot/arch/arm/dts/ |
| A D | bcm283x-rpi-usb-peripheral.dtsi | 5 g-np-tx-fifo-size = <32>;
|
| A D | bcm283x-rpi-usb-otg.dtsi | 5 g-np-tx-fifo-size = <32>;
|
| /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()
|
| /u-boot/drivers/mtd/nand/raw/atmel/ |
| A D | nand-controller.c | 1543 ofnode np, in atmel_nand_create() argument 1577 ret = ofnode_read_u32(np, "reg", &val); in atmel_nand_create() 1588 if (ofnode_read_resource(np, 0, &res)) { in atmel_nand_create() 1594 base = ofnode_translate_address(np, &faddr); in atmel_nand_create() 1597 if (!ofnode_read_u32(np, "atmel,rb", &val)) { in atmel_nand_create() 1604 gpio_request_by_name_nodev(np, "rb-gpios", 0, in atmel_nand_create() 1610 gpio_request_by_name_nodev(np, "cs-gpios", 0, in atmel_nand_create() 1615 nand_set_flash_node(&nand->base, np); in atmel_nand_create() 1697 ofnode np; in atmel_nand_controller_add_nands() local 1706 np = nc->dev->node_; in atmel_nand_controller_add_nands() [all …]
|
| /u-boot/drivers/mfd/ |
| A D | atmel-smc.c | 347 atmel_hsmc_get_reg_layout(ofnode np) in atmel_hsmc_get_reg_layout() argument 354 name = ofnode_get_property(np, "compatible", &len); in atmel_hsmc_get_reg_layout()
|
| /u-boot/drivers/serial/ |
| A D | serial-uclass.c | 90 struct device_node *np = of_get_stdout(); in serial_find_console_or_panic() local 92 if (np && !uclass_get_device_by_ofnode(UCLASS_SERIAL, in serial_find_console_or_panic() 93 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()
|
| /u-boot/include/linux/mfd/syscon/ |
| A D | atmel-smc.h | 117 atmel_hsmc_get_reg_layout(ofnode np);
|