Home
last modified time | relevance | path

Searched refs:np (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/u-boot/drivers/core/
H A Dof_access.c61 struct device_node *np; member
66 int of_n_addr_cells(const struct device_node *np) in of_n_addr_cells() argument
71 if (np->parent) in of_n_addr_cells()
72 np = np->parent; in of_n_addr_cells()
73 ip = of_get_property(np, "#address-cells", NULL); in of_n_addr_cells()
76 } while (np->parent); in of_n_addr_cells()
82 int of_n_size_cells(const struct device_node *np) in of_n_size_cells() argument
87 if (np->parent) in of_n_size_cells()
88 np = np->parent; in of_n_size_cells()
89 ip = of_get_property(np, "#size-cells", NULL); in of_n_size_cells()
[all …]
H A Droot.c222 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 if (!strcmp(np->name, "chosen")) { in dm_scan_fdt_live()
230 err = dm_scan_fdt_live(parent, np, pre_reloc_only); in dm_scan_fdt_live()
236 if (!of_device_is_available(np)) { in dm_scan_fdt_live()
240 err = lists_bind_fdt(parent, np_to_ofnode(np), NULL, in dm_scan_fdt_live()
244 debug("%s: ret=%d\n", np->name, ret); in dm_scan_fdt_live()
355 return dm_scan_fdt_live(gd->dm_root, node.np, pre_reloc_only); in dm_scan_fdt_ofnode_path()
H A Dofnode.c145 const struct device_node *np = ofnode_to_np(node); in ofnode_find_subnode() local
147 for (np = np->child; np; np = np->sibling) { in ofnode_find_subnode()
148 if (!strcmp(subnode_name, np->name)) in ofnode_find_subnode()
151 subnode = np_to_ofnode(np); in ofnode_find_subnode()
183 return np_to_ofnode(node.np->child); in ofnode_first_subnode()
193 return np_to_ofnode(node.np->sibling); in ofnode_next_subnode()
217 return strrchr(node.np->full_name, '/') + 1; in ofnode_get_name()
353 out->node = np_to_ofnode(in->np); in ofnode_from_of_phandle_args()
541 const struct device_node *np = ofnode_to_np(node); in ofnode_get_addr_size() local
542 const __be32 *prop = of_get_property(np, property, &psize); in ofnode_get_addr_size()
[all …]
H A Dof_addr.c21 static struct of_bus *of_match_bus(struct device_node *np);
48 static void of_bus_default_count_cells(const struct device_node *np, in of_bus_default_count_cells() argument
52 *addrc = of_n_addr_cells(np); in of_bus_default_count_cells()
54 *sizec = of_n_size_cells(np); in of_bus_default_count_cells()
108 static struct of_bus *of_match_bus(struct device_node *np) in of_match_bus() argument
113 if (!of_busses[i].match || of_busses[i].match(np)) in of_match_bus()
119 static void dev_count_cells(const struct device_node *np, int *nap, int *nsp) in dev_count_cells() argument
121 of_bus_default_count_cells(np, nap, nsp); in dev_count_cells()
163 static int of_empty_ranges_quirk(const struct device_node *np) in of_empty_ranges_quirk() argument
/openbmc/u-boot/include/dm/
H A Dof_access.h38 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,
103 const void *of_get_property(const struct device_node *np, const char *name,
136 int of_device_is_compatible(const struct device_node *np, const char *compat,
147 bool of_device_is_available(const struct device_node *np);
155 struct device_node *of_get_parent(const struct device_node *np);
[all …]
H A Dof.h81 struct device_node *np; member
107 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument
109 return np ? np->full_name : "<no-node>"; in of_node_full_name()
H A Dofnode.h51 const struct device_node *np; /* will be used for future live tree */ member
75 return node.np; in ofnode_to_np()
103 return node.np != NULL; in ofnode_valid()
119 node.np = NULL; in offset_to_ofnode()
132 static inline ofnode np_to_ofnode(const struct device_node *np) in np_to_ofnode() argument
136 node.np = np; in np_to_ofnode()
188 node.np = NULL; in ofnode_null()
/openbmc/u-boot/drivers/net/phy/
H A Dncsi.c32 static void ncsi_send_ebf(unsigned int np, unsigned int nc);
33 static void ncsi_send_ae(unsigned int np, unsigned int nc);
34 static void ncsi_send_gls(unsigned int np, unsigned int nc);
35 static int ncsi_send_command(unsigned int np, unsigned int nc, unsigned int cmd,
92 unsigned int np, nc; in ncsi_active() local
97 np = ncsi_priv->current_package; in ncsi_active()
103 return np < NCSI_PACKAGE_MAX && nc < NCSI_CHANNEL_MAX && in ncsi_active()
104 ncsi_priv->packages[np].channels[nc].has_link; in ncsi_active()
226 unsigned int np, nc; in ncsi_rsp_ec() local
228 np = NCSI_PACKAGE_INDEX(rsp->common.channel); in ncsi_rsp_ec()
[all …]
/openbmc/u-boot/lib/
H A Dof_live.c47 struct device_node *np; in unflatten_dt_node() local
93 np = unflatten_dt_alloc(&mem, sizeof(struct device_node) + allocl, in unflatten_dt_node()
98 fn = (char *)np + sizeof(*np); in unflatten_dt_node()
99 np->full_name = fn; in unflatten_dt_node()
117 prev_pp = &np->properties; in unflatten_dt_node()
119 np->parent = dad; in unflatten_dt_node()
120 np->sibling = dad->child; in unflatten_dt_node()
121 dad->child = np; in unflatten_dt_node()
154 if (np->phandle == 0) in unflatten_dt_node()
155 np->phandle = be32_to_cpup(p); in unflatten_dt_node()
[all …]
/openbmc/u-boot/board/gateworks/gw_ventana/
H A Dgw_ventana.c892 int np; in fdt_add_pci_node() local
897 np = fdt_subnode_offset(blob, par, node); in fdt_add_pci_node()
898 if (np >= 0) in fdt_add_pci_node()
899 return np; in fdt_add_pci_node()
900 np = fdt_add_subnode(blob, par, node); in fdt_add_pci_node()
901 if (np < 0) { in fdt_add_pci_node()
903 return np; in fdt_add_pci_node()
908 fdt_setprop(blob, np, "reg", reg, sizeof(reg)); in fdt_add_pci_node()
910 return np; in fdt_add_pci_node()
917 int k, np; in fdt_add_pci_path() local
[all …]
/openbmc/qemu/scripts/
H A Danalyse-locks-simpletrace.py11 import numpy as np namespace
83 acquire_times = np.array(val["acquire_times"])
86 (acquire_times.min(), np.median(acquire_times),
89 held_times = np.array(val["held_times"])
92 (held_times.min(), np.median(held_times),
/openbmc/qemu/hw/net/
H A Dstellaris_enet.c73 uint32_t np; member
110 if (s->np > ARRAY_SIZE(s->rx)) { in stellaris_enet_post_load()
146 VMSTATE_UINT32(np, stellaris_enet_state),
237 if (s->np >= 31) { in stellaris_enet_receive()
242 n = s->next_packet + s->np; in stellaris_enet_receive()
256 s->np++; in stellaris_enet_receive()
281 return (s->np < 31); in stellaris_enet_can_receive()
304 if (s->np == 0) { in stellaris_enet_read()
319 s->np--; in stellaris_enet_read()
320 DPRINTF("RX done np=%d\n", s->np); in stellaris_enet_read()
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-pandas/
H A D0001-BLD-add-option-to-specify-numpy-header-location.patch38 -import numpy as np
41 + import numpy as np
42 + base_incdir = np.get_include()
50 - incdir = os.path.relpath(np.get_include())
53 - incdir = np.get_include()
/openbmc/u-boot/cmd/
H A Dsetexpr.c178 char *np; in regex_sub() local
253 for (np = nbuf;;) { in regex_sub()
254 char *p = memstr(np, nlen, backref, 2); in regex_sub()
259 np = substitute(np, &nlen, in regex_sub()
264 if (np == NULL) in regex_sub()
/openbmc/qemu/tests/functional/
H A Dtest_arm_integratorcp.py66 import numpy as np namespace
88 loc = np.where(result >= match_threshold)
H A Dtest_mips64el_malta.py136 import numpy as np namespace
169 loc = np.where(result >= match_threshold)
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/
H A Dxusb-padctl.c329 struct device_node *np = of_find_compatible_node(NULL, NULL, in tegra_xusb_padctl_init() local
332 debug("np=%p\n", np); in tegra_xusb_padctl_init()
333 if (np) { in tegra_xusb_padctl_init()
334 nodes[0] = np_to_ofnode(np); in tegra_xusb_padctl_init()
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/
H A Dxusb-padctl.c435 struct device_node *np = of_find_compatible_node(NULL, NULL, in tegra_xusb_padctl_init() local
438 debug("np=%p\n", np); in tegra_xusb_padctl_init()
439 if (np) { in tegra_xusb_padctl_init()
440 nodes[0] = np_to_ofnode(np); in tegra_xusb_padctl_init()
/openbmc/u-boot/include/linux/mtd/
H A Dmtd.h336 const struct device_node *np) in mtd_set_of_node() argument
338 mtd->dev->node.np = np; in mtd_set_of_node()
343 return mtd->dev->node.np; in mtd_get_of_node()
349 const struct device_node *np) in mtd_set_of_node() argument
H A Dspinand.h421 const struct device_node *np) in spinand_set_of_node() argument
423 nanddev_set_of_node(&spinand->base, np); in spinand_set_of_node()
H A Dspi-nor.h357 const struct device_node *np) in spi_nor_set_flash_node() argument
359 mtd_set_of_node(&nor->mtd, np); in spi_nor_set_flash_node()
H A Dnand.h400 const struct device_node *np) in nanddev_set_of_node() argument
402 mtd_set_of_node(nand->mtd, np); in nanddev_set_of_node()
/openbmc/u-boot/common/
H A Dcli_readline.c23 static char *delete_char (char *buffer, char *p, int *colp, int *np, int plen) in delete_char() argument
27 if (*np == 0) in delete_char()
48 (*np)--; in delete_char()
H A Dcommand.c349 int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp) in cmd_auto_complete() argument
351 int n = *np, col = *colp; in cmd_auto_complete()
439 *np = n; in cmd_auto_complete()
/openbmc/u-boot/drivers/serial/
H A Dserial-uclass.c90 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()

12