| /rk3399_rockchip-uboot/drivers/core/ |
| H A D | of_access.c | 62 struct device_node *np; member 67 int of_n_addr_cells(const struct device_node *np) in of_n_addr_cells() argument 72 if (np->parent) in of_n_addr_cells() 73 np = np->parent; in of_n_addr_cells() 74 ip = of_get_property(np, "#address-cells", NULL); in of_n_addr_cells() 77 } while (np->parent); in of_n_addr_cells() 83 int of_n_size_cells(const struct device_node *np) in of_n_size_cells() argument 88 if (np->parent) in of_n_size_cells() 89 np = np->parent; in of_n_size_cells() 90 ip = of_get_property(np, "#size-cells", NULL); in of_n_size_cells() [all …]
|
| H A D | root.c | 222 struct device_node *np; in dm_scan_fdt_live() local 225 for (np = node_parent->child; np; np = np->sibling) { in dm_scan_fdt_live() 227 (!of_find_property(np, "u-boot,dm-pre-reloc", NULL) && in dm_scan_fdt_live() 228 !of_find_property(np, "u-boot,dm-spl", NULL))) in dm_scan_fdt_live() 230 if (!of_device_is_available(np)) { in dm_scan_fdt_live() 234 err = lists_bind_fdt(parent, np_to_ofnode(np), NULL); in dm_scan_fdt_live() 237 debug("%s: ret=%d\n", np->name, ret); in dm_scan_fdt_live() 241 if (!pre_reloc_only && !strcmp(np->name, "firmware")) in dm_scan_fdt_live() 243 "firmware", np->name, np_to_ofnode(np), NULL); in dm_scan_fdt_live()
|
| H A D | ofnode.c | 129 const struct device_node *np = ofnode_to_np(node); in ofnode_find_subnode() local 131 for (np = np->child; np; np = np->sibling) { in ofnode_find_subnode() 132 if (!strcmp(subnode_name, np->name)) in ofnode_find_subnode() 135 subnode = np_to_ofnode(np); in ofnode_find_subnode() 182 return np_to_ofnode(node.np->child); in ofnode_first_subnode() 192 return np_to_ofnode(node.np->sibling); in ofnode_next_subnode() 219 return strrchr(node.np->full_name, '/') + 1; in ofnode_get_name() 344 out->node = np_to_ofnode(in->np); in ofnode_from_of_phandle_args() 578 const struct device_node *np = ofnode_to_np(node); in ofnode_get_addr_size() local 579 const __be32 *prop = of_get_property(np, property, &psize); in ofnode_get_addr_size() [all …]
|
| H A D | of_addr.c | 22 static struct of_bus *of_match_bus(struct device_node *np); 49 static void of_bus_default_count_cells(const struct device_node *np, in of_bus_default_count_cells() argument 53 *addrc = of_n_addr_cells(np); in of_bus_default_count_cells() 55 *sizec = of_n_size_cells(np); in of_bus_default_count_cells() 109 static struct of_bus *of_match_bus(struct device_node *np) in of_match_bus() argument 114 if (!of_busses[i].match || of_busses[i].match(np)) in of_match_bus() 120 static void dev_count_cells(const struct device_node *np, int *nap, int *nsp) in dev_count_cells() argument 122 of_bus_default_count_cells(np, nap, nsp); in dev_count_cells() 164 static int of_empty_ranges_quirk(const struct device_node *np) in of_empty_ranges_quirk() argument
|
| /rk3399_rockchip-uboot/include/dm/ |
| H A D | of_access.h | 39 static inline void of_node_put(const struct device_node *np) { } in of_node_put() argument 50 int of_n_addr_cells(const struct device_node *np); 61 int of_n_size_cells(const struct device_node *np); 71 int of_simple_addr_cells(const struct device_node *np); 81 int of_simple_size_cells(const struct device_node *np); 91 struct property *of_find_property(const struct device_node *np, 104 const void *of_get_property(const struct device_node *np, const char *name, 116 const struct property *of_get_first_property(const struct device_node *np); 128 const struct property *of_get_next_property(const struct device_node *np, 142 const void *of_get_property_by_prop(const struct device_node *np, [all …]
|
| H A D | of.h | 82 struct device_node *np; member 108 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument 110 return np ? np->full_name : "<no-node>"; in of_node_full_name()
|
| H A D | ofnode.h | 52 const struct device_node *np; /* will be used for future live tree */ member 101 return node.np; in ofnode_to_np() 129 return node.np != NULL; in ofnode_valid() 145 node.np = NULL; in offset_to_ofnode() 158 static inline ofnode np_to_ofnode(const struct device_node *np) in np_to_ofnode() argument 162 node.np = np; in np_to_ofnode() 214 node.np = NULL; in ofnode_null()
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | of_live.c | 50 struct device_node *np; in unflatten_dt_node() local 96 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl, in unflatten_dt_node() 101 fn = (char *)np + sizeof(*np); in unflatten_dt_node() 102 np->full_name = fn; in unflatten_dt_node() 120 prev_pp = &np->properties; in unflatten_dt_node() 122 np->parent = dad; in unflatten_dt_node() 123 np->sibling = dad->child; in unflatten_dt_node() 124 dad->child = np; in unflatten_dt_node() 157 if (np->phandle == 0) in unflatten_dt_node() 158 np->phandle = be32_to_cpup(p); in unflatten_dt_node() [all …]
|
| /rk3399_rockchip-uboot/drivers/video/drm/rk628/ |
| H A D | rk628.c | 73 ofnode np; in rk628_display_route_info_parse() local 93 np = dev_read_subnode(rk628->dev, "rk628-gvi-out"); in rk628_display_route_info_parse() 94 if (!ofnode_valid(np)) in rk628_display_route_info_parse() 95 np = dev_read_subnode(rk628->dev, "rk628-gvi"); in rk628_display_route_info_parse() 98 ret = rk628_gvi_parse(rk628, np); in rk628_display_route_info_parse() 101 np = dev_read_subnode(rk628->dev, "rk628-lvds-out"); in rk628_display_route_info_parse() 102 if (!ofnode_valid(np)) in rk628_display_route_info_parse() 103 np = dev_read_subnode(rk628->dev, "rk628-lvds"); in rk628_display_route_info_parse() 106 ret = rk628_lvds_parse(rk628, np); in rk628_display_route_info_parse() 109 np = dev_read_subnode(rk628->dev, "rk628-dsi-out"); in rk628_display_route_info_parse() [all …]
|
| H A D | panel.c | 105 ofnode np; in dsi_panel_get_cmds() local 110 np = ofnode_find_subnode(dsi_np, "rk628-panel"); in dsi_panel_get_cmds() 111 if (!ofnode_valid(np)) in dsi_panel_get_cmds() 114 data = ofnode_get_property(np, "panel-init-sequence", &len); in dsi_panel_get_cmds() 128 data = ofnode_get_property(np, "panel-exit-sequence", &len); in dsi_panel_get_cmds() 157 int rk628_panel_info_get(struct rk628 *rk628, ofnode np) in rk628_panel_info_get() argument 204 ret = dsi_panel_get_cmds(rk628, np); in rk628_panel_info_get()
|
| H A D | panel.h | 12 int rk628_panel_info_get(struct rk628 *rk628, ofnode np);
|
| /rk3399_rockchip-uboot/board/gateworks/gw_ventana/ |
| H A D | gw_ventana.c | 887 int np; in fdt_add_pci_node() local 892 np = fdt_subnode_offset(blob, par, node); in fdt_add_pci_node() 893 if (np >= 0) in fdt_add_pci_node() 894 return np; in fdt_add_pci_node() 895 np = fdt_add_subnode(blob, par, node); in fdt_add_pci_node() 896 if (np < 0) { in fdt_add_pci_node() 898 return np; in fdt_add_pci_node() 903 fdt_setprop(blob, np, "reg", reg, sizeof(reg)); in fdt_add_pci_node() 905 return np; in fdt_add_pci_node() 912 int k, np; in fdt_add_pci_path() local [all …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | setexpr.c | 179 char *np; in regex_sub() local 254 for (np = nbuf;;) { in regex_sub() 255 char *p = memstr(np, nlen, backref, 2); in regex_sub() 260 np = substitute(np, &nlen, in regex_sub() 265 if (np == NULL) in regex_sub()
|
| /rk3399_rockchip-uboot/scripts/ |
| H A D | fit-core.sh | 361 fdtput -tx ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 362 fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@np 369 fdtput -tx ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 372 fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@np 470 fdtput -tx ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 476 fdtput -tx ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 480 fdtput -r ${UBOOT_DTB} ${SIGNATURE_KEY_NODE}/hash@np 554 fdtput -tx ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 560 fdtput -tx ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 564 fdtput -r ${UBOOT_DTB} ${SIGNATURE_KEY_NODE}/hash@np
|
| H A D | fit-sign.sh | 373 fdtput -tx ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 374 fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@np 381 fdtput -tx ${SPL_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 384 fdtput -r ${SPL_DTB} ${SIGNATURE_KEY_NODE}/hash@np 496 fdtput -tx ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 502 fdtput -tx ${UBOOT_DTB} ${SIGNATURE_KEY_NODE} rsa,np 0x0 506 fdtput -r ${UBOOT_DTB} ${SIGNATURE_KEY_NODE}/hash@np
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra124/ |
| H A D | xusb-padctl.c | 330 struct device_node *np = of_find_compatible_node(NULL, NULL, in tegra_xusb_padctl_init() local 333 debug("np=%p\n", np); in tegra_xusb_padctl_init() 334 if (np) { in tegra_xusb_padctl_init() 335 nodes[0] = np_to_ofnode(np); in tegra_xusb_padctl_init()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra210/ |
| H A D | xusb-padctl.c | 436 struct device_node *np = of_find_compatible_node(NULL, NULL, in tegra_xusb_padctl_init() local 439 debug("np=%p\n", np); in tegra_xusb_padctl_init() 440 if (np) { in tegra_xusb_padctl_init() 441 nodes[0] = np_to_ofnode(np); in tegra_xusb_padctl_init()
|
| /rk3399_rockchip-uboot/drivers/video/drm/ |
| H A D | max96755f.c | 179 const struct device_node *np = ofnode_to_np(dev->node); in max96755f_bridge_probe() local 197 if (of_find_property(np, "maxim,dsi-lane-map", &len)) { in max96755f_bridge_probe() 205 ret = of_read_u32_array(np, "maxim,dsi-lane-map", in max96755f_bridge_probe()
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | mtd.h | 341 const struct device_node *np) in mtd_set_of_node() argument 343 mtd->dev->node.np = np; in mtd_set_of_node() 348 return mtd->dev->node.np; in mtd_get_of_node() 354 const struct device_node *np) in mtd_set_of_node() argument
|
| H A D | spi-nor.h | 354 const struct device_node *np) in spi_nor_set_flash_node() argument 356 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
|
| H A D | spinand.h | 494 const struct device_node *np) in spinand_set_of_node() argument 496 nanddev_set_of_node(&spinand->base, np); in spinand_set_of_node()
|
| /rk3399_rockchip-uboot/drivers/serial/ |
| H A D | serial-uclass.c | 89 struct device_node *np = of_get_stdout(); in serial_find_console_or_panic() local 91 if (np && !uclass_get_device_by_ofnode(UCLASS_SERIAL, in serial_find_console_or_panic() 92 np_to_ofnode(np), &dev)) { in serial_find_console_or_panic()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | cli_readline.c | 24 static char *delete_char (char *buffer, char *p, int *colp, int *np, int plen) in delete_char() argument 28 if (*np == 0) in delete_char() 49 (*np)--; in delete_char()
|
| H A D | command.c | 321 int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp) in cmd_auto_complete() argument 323 int n = *np, col = *colp; in cmd_auto_complete() 398 *np = n; in cmd_auto_complete()
|
| /rk3399_rockchip-uboot/drivers/power/io-domain/ |
| H A D | rockchip-io-domain.c | 592 ret = regulator_get_by_devname(snode.np->name, &sudev); in of_get_regulator() 596 sname, snode.np->full_name, ret); in of_get_regulator() 599 debug("IO-DOMAIN: supply: %s\n", snode.np->full_name); in of_get_regulator()
|