/u-boot/include/dm/ |
H A D | of_addr.h | 23 * @np: pointer to node to check 27 u64 of_translate_address(const struct device_node *np, const __be32 *in_addr); 41 * @np: ne 45 u64 of_translate_dma_address(const struct device_node *np, const __be32 *in_addr); 54 * @np: Pointer to device tree blob 60 int of_get_dma_range(const struct device_node *np, phys_addr_t *cpu, 70 * @np: Node to check 76 const __be32 *of_get_address(const struct device_node *np, int index, 89 * @np: node to check 94 int of_address_to_resource(const struct device_node *np, in [all...] |
H A D | of_access.h | 38 static inline void of_node_put(const struct device_node *np) { } argument 46 * @np: Node pointer to check 49 int of_n_addr_cells(const struct device_node *np); 57 * @np: Node pointer to check 60 int of_n_size_cells(const struct device_node *np); 67 * @np: Node pointer to check 70 int of_simple_addr_cells(const struct device_node *np); 77 * @np: Node pointer to check 80 int of_simple_size_cells(const struct device_node *np); 85 * @np 428 of_property_read_string_index(const struct device_node *np, const char *propname, int index, const char **output) argument 450 of_property_count_strings(const struct device_node *np, const char *propname) argument [all...] |
H A D | ofnode_decl.h | 47 * @np: Pointer to device node, used for live tree 52 struct device_node *np; member in union:ofnode_union 105 * @np: Pointer to roott device node, used for live tree 109 struct device_node *np; member in union:oftree_union
|
H A D | of.h | 85 * So when decoding the phandle in some-prop, np will point to wibble, 88 * @np: Node that the phandle refers to 93 struct device_node *np; member in struct:of_phandle_args 112 static inline const char *of_node_full_name(const struct device_node *np) argument 114 return np ? np->full_name : "<no-node>";
|
H A D | ofnode.h | 122 node.np = NULL; 166 return node.np; 178 return node.np != NULL; 210 node.np = NULL; 220 * @np: Live node pointer (can be NULL) 223 static inline ofnode np_to_ofnode(struct device_node *np) argument 227 node.np = np; 279 return tree.np; 295 tree.np [all...] |
/u-boot/drivers/core/ |
H A D | of_access.c | 58 * @np: Pointer to device_node that the alias stands for 65 struct device_node *np; member in struct:alias_prop 70 int of_n_addr_cells(const struct device_node *np) argument 75 if (np->parent) 76 np = np->parent; 77 ip = of_get_property(np, "#address-cells", NULL); 80 } while (np->parent); 86 int of_n_size_cells(const struct device_node *np) argument 91 if (np 102 of_simple_addr_cells(const struct device_node *np) argument 114 of_simple_size_cells(const struct device_node *np) argument 126 of_find_property(const struct device_node *np, const char *name, int *lenp) argument 149 struct device_node *np; local 169 of_get_property(const struct device_node *np, const char *name, int *lenp) argument 177 of_get_first_property(const struct device_node *np) argument 185 of_get_next_property(const struct device_node *np, const struct property *property) argument 194 of_get_property_by_prop(const struct device_node *np, const struct property *property, const char **name, int *lenp) argument 287 const struct device_node *np; local 350 struct device_node *np = NULL; local 410 struct device_node *np; local 436 struct device_node *np; local 451 struct device_node *np; local 476 of_find_property_value_of_size(const struct device_node *np, const char *propname, u32 len) argument 489 of_read_u8(const struct device_node *np, const char *propname, u8 *outp) argument 508 of_read_u16(const struct device_node *np, const char *propname, u16 *outp) argument 527 of_read_u32(const struct device_node *np, const char *propname, u32 *outp) argument 532 of_read_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz) argument 551 of_read_u32_index(const struct device_node *np, const char *propname, int index, u32 *outp) argument 573 of_read_u64_index(const struct device_node *np, const char *propname, int index, u64 *outp) argument 596 of_read_u64(const struct device_node *np, const char *propname, u64 *outp) argument 601 of_property_match_string(const struct device_node *np, const char *propname, const char *string) argument 643 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int skip) argument 669 __of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int cell_count, int index, struct of_phandle_args *out_args) argument 786 of_parse_phandle(const struct device_node *np, const char *phandle_name, int index) argument 801 of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int cell_count, int index, struct of_phandle_args *out_args) argument 813 of_count_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int cell_count) argument 821 of_alias_add(struct alias_prop *ap, struct device_node *np, int id, const char *stem, int stem_len) argument 857 struct device_node *np; local 895 of_alias_get_id(const struct device_node *np, const char *stem) argument 938 of_write_prop(struct device_node *np, const char *propname, int len, const void *value) argument 1044 __of_remove_property(struct device_node *np, struct property *prop) argument 1061 of_remove_property(struct device_node *np, struct property *prop) argument 1077 struct device_node *np, *prev; local [all...] |
H A D | ofnode.c | 146 of_live_free(tree.np); 226 node.np = NULL; 579 struct device_node *np = ofnode_to_np(node); local 581 for (np = np->child; np; np = np->sibling) { 582 if (!strcmp(subnode_name, np->name)) 585 subnode = np_to_ofnode(np); 1257 const struct device_node *np = ofnode_to_np(node); local 1281 const struct device_node *np = ofnode_to_np(node); local 1848 struct device_node *np, *child; local [all...] |
H 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, argument 55 *addrc = of_n_addr_cells(np); 57 *sizec = of_n_size_cells(np); 111 static struct of_bus *of_match_bus(struct device_node *np) argument 116 if (!of_busses[i].match || of_busses[i].match(np)) 160 static int of_empty_ranges_quirk(const struct device_node *np) argument
|
/u-boot/drivers/net/phy/ |
H A D | ncsi.c | 34 static void ncsi_send_ebf(unsigned int np, unsigned int nc); 35 static void ncsi_send_ae(unsigned int np, unsigned int nc); 36 static void ncsi_send_gls(unsigned int np, unsigned int nc); 37 static int ncsi_send_command(unsigned int np, unsigned int nc, unsigned int cmd, 94 unsigned int np, nc; local 99 np = ncsi_priv->current_package; 105 return np < NCSI_PACKAGE_MAX && nc < NCSI_CHANNEL_MAX && 106 ncsi_priv->packages[np].channels[nc].has_link; 228 unsigned int np, nc; local 230 np 241 unsigned int np, nc; local 252 unsigned int np, nc; local 263 unsigned int np, nc; local 276 unsigned int np, nc; local 303 unsigned int np, nc, i; local 332 unsigned int np, nc; local 355 unsigned int np, nc; local 396 unsigned int np; local 408 unsigned int np; local 437 int np, nc; local 519 ncsi_send_command(unsigned int np, unsigned int nc, unsigned int cmd, uchar *payload, int len, bool wait) argument 718 ncsi_send_sp(unsigned int np) argument 727 ncsi_send_dp(unsigned int np) argument 733 ncsi_send_gls(unsigned int np, unsigned int nc) argument 738 ncsi_send_cis(unsigned int np, unsigned int nc) argument 743 ncsi_send_ae(unsigned int np, unsigned int nc) argument 756 ncsi_send_ebf(unsigned int np, unsigned int nc) argument 769 ncsi_send_sma(unsigned int np, unsigned int nc) argument 795 unsigned int np, nc; local [all...] |
/u-boot/lib/ |
H A D | of_live.c | 55 struct device_node *np; local 101 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl, 106 fn = (char *)np + sizeof(*np); 108 np->name = pathp; 111 np->full_name = fn; 129 prev_pp = &np->properties; 131 np->parent = dad; 132 np->sibling = dad->child; 133 dad->child = np; 387 const struct device_node *np; local [all...] |
/u-boot/test/boot/ |
H A D | vbe_simple.c | 30 struct device_node *np; local 56 ut_assertok(unflatten_device_tree(fdt_buf, &np)); 57 fixup.tree = oftree_from_np(np);
|
/u-boot/drivers/memory/ |
H A D | ti-gpmc.c | 882 * @np: pointer to device-tree node for a gpmc child device 890 static void gpmc_read_settings_dt(ofnode np, struct gpmc_settings *p) argument 894 p->sync_read = ofnode_read_bool(np, "gpmc,sync-read"); 895 p->sync_write = ofnode_read_bool(np, "gpmc,sync-write"); 896 ofnode_read_u32(np, "gpmc,device-width", &p->device_width); 897 ofnode_read_u32(np, "gpmc,mux-add-data", &p->mux_add_data); 899 if (!ofnode_read_u32(np, "gpmc,burst-length", &p->burst_len)) { 900 p->burst_wrap = ofnode_read_bool(np, "gpmc,burst-wrap"); 901 p->burst_read = ofnode_read_bool(np, "gpmc,burst-read"); 902 p->burst_write = ofnode_read_bool(np, "gpm 919 gpmc_read_timings_dt(ofnode np, struct gpmc_timings *gpmc_t) argument [all...] |
/u-boot/arch/arm/mach-snapdragon/ |
H A D | of_fixup.c | 119 struct device_node *pd = NULL, *np = NULL; local 136 for_each_of_allnodes(np) { 137 if (!(prop = of_find_property(np, "power-domains", NULL))) 142 of_remove_property(np, prop);
|
/u-boot/board/gateworks/gw_ventana/ |
H A D | gw_ventana.c | 796 int np; local 801 np = fdt_subnode_offset(blob, par, node); 802 if (np >= 0) 803 return np; 804 np = fdt_add_subnode(blob, par, node); 805 if (np < 0) { 807 return np; 812 fdt_setprop(blob, np, "reg", reg, sizeof(reg)); 814 return np; 821 int k, np; local 850 fdt_fixup_gw16082(void *blob, int np, struct pci_dev *dev) argument 939 fdt_fixup_sky2(void *blob, int np, struct pci_dev *dev) argument 971 int i, np; local [all...] |
/u-boot/drivers/mtd/nand/raw/ |
H A D | sand_nand.c | 476 ofnode np; local 480 dev_for_each_subnode(np, dev) { 491 cs = ofnode_get_addr_size_index_notrans(np, 0, NULL); 494 ofnode_get_name(np)); 499 id = ofnode_read_prop(np, "sandbox,id", &id_len); 502 ofnode_get_name(np)); 507 onfi = ofnode_read_prop(np, "sandbox,onfi", &onfi_len); 515 ret = ofnode_read_u32(np, "sandbox,erasesize", &erasesize); 518 ofnode_get_name(np)); 522 ret = ofnode_read_u32(np, "sandbo [all...] |
/u-boot/cmd/ |
H A D | setexpr.c | 200 char *np; local 272 for (np = nbuf;;) { 273 char *p = memstr(np, nlen, backref, 2); 278 np = substitute(np, &nlen, 279 nbuf_size - (np - nbuf), 283 if (np == NULL)
|
/u-boot/drivers/usb/host/ |
H A D | ehci-mxs.c | 139 ofnode np = dev_ofnode(dev); local 144 mode = ofnode_read_string(np, "dr_mode"); 155 ret = ofnode_read_u32(np, "reg", &port->usb_regs); 160 ret = ofnode_read_u32(np, "fsl,usbphy", &phandle);
|
/u-boot/drivers/pci/ |
H A D | pcie_apple.c | 154 ofnode np; member in struct:apple_pcie_port 246 static int apple_pcie_setup_port(struct apple_pcie_priv *pcie, ofnode np) argument 255 ret = gpio_request_by_name_nodev(np, "reset-gpios", 0, &reset, 0); 263 ret = ofnode_read_u32_index(np, "reg", 0, &idx); 271 port->np = np;
|
/u-boot/arch/arm/mach-tegra/tegra124/ |
H A D | xusb-padctl.c | 333 struct device_node *np = of_find_compatible_node(NULL, NULL, local 336 debug("np=%p\n", np); 337 if (np) { 338 nodes[0] = np_to_ofnode(np);
|
/u-boot/include/linux/mfd/syscon/ |
H A D | atmel-smc.h | 117 atmel_hsmc_get_reg_layout(ofnode np);
|
/u-boot/arch/arm/mach-tegra/tegra210/ |
H A D | xusb-padctl.c | 425 struct device_node *np = of_find_compatible_node(NULL, NULL, local 428 debug("np=%p\n", np); 429 if (np) { 430 nodes[0] = np_to_ofnode(np);
|
/u-boot/drivers/mtd/nand/raw/atmel/ |
H A D | nand-controller.c | 1505 ofnode np, 1517 ofnode_for_each_subnode(n, ofnode_get_parent(np)) 1535 gpio_request_by_name_nodev(np, "det-gpios", 0, &nand->cdgpio, 1539 ret = ofnode_read_u32(np, "reg", &val); 1550 if (ofnode_read_resource(np, 0, &res)) { 1556 base = ofnode_translate_address(np, &faddr); 1559 if (!ofnode_read_u32(np, "atmel,rb", &val)) { 1566 ret = gpio_request_by_name_nodev(np, "rb-gpios", 0, 1575 gpio_request_by_name_nodev(np, "cs-gpios", 0, 1580 nand_set_flash_node(&nand->base, np); 1504 atmel_nand_create(struct atmel_nand_controller *nc, ofnode np, int reg_cells) argument 1662 ofnode np; local [all...] |
/u-boot/drivers/mfd/ |
H A D | atmel-smc.c | 339 * @np: the HSMC regmap 347 atmel_hsmc_get_reg_layout(ofnode np) argument 354 name = ofnode_get_property(np, "compatible", &len);
|
/u-boot/drivers/serial/ |
H A D | serial-uclass.c | 90 struct device_node *np = of_get_stdout(); local 92 if (np && !uclass_get_device_by_ofnode(UCLASS_SERIAL, 93 np_to_ofnode(np), &dev)) {
|
/u-boot/common/ |
H A D | cli_readline.c | 28 static char *delete_char (char *buffer, char *p, int *colp, int *np, int plen) argument 32 if (*np == 0) 53 (*np)--;
|