/freebsd-10.1-release/sys/powerpc/pseries/ |
H A D | xics.c | 162 phandle_t phandle = ofw_bus_get_node(dev); local 172 if (OF_getproplen(phandle, "ibm,phandle") > 0) 173 OF_getprop(phandle, "ibm,phandle", &phandle, sizeof(phandle)); 175 powerpc_register_pic(dev, phandle, MAX_XICP_IRQS, 185 phandle_t phandle = ofw_bus_get_node(dev); local 187 if (OF_getproplen(phandle, "ib [all...] |
H A D | platform_chrp.c | 164 phandle_t phandle; local 173 phandle = OF_finddevice("/ibm,dynamic-reconfiguration-memory"); 174 if (phandle == -1) 178 res = OF_getprop(phandle, "ibm,lmb-size", lmb_size, sizeof(lmb_size)); 195 len = OF_getproplen(phandle, "ibm,dynamic-memory"); 203 res = OF_getprop(phandle, "ibm,dynamic-memory", &arr, 272 phandle_t phandle; local 275 phandle = cpuref->cr_hwref; 277 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks));
|
/freebsd-10.1-release/sys/powerpc/ofw/ |
H A D | ofw_machdep.c | 147 phandle_t phandle; local 156 phandle = OF_finddevice("/"); 157 if (OF_getprop(phandle, "#address-cells", &address_cells, 160 if (OF_getprop(phandle, "#size-cells", &size_cells, 229 phandle_t phandle; local 239 for (phandle = OF_child(OF_peer(0)); phandle != 0; 240 phandle = OF_peer(phandle)) { 241 if (OF_getprop(phandle, "nam [all...] |
/freebsd-10.1-release/contrib/dtc/ |
H A D | livetree.c | 491 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) argument 495 assert((phandle != 0) && (phandle != -1)); 497 if (tree->phandle == phandle) { 504 node = get_node_by_phandle(child, phandle); 522 static cell_t phandle = 1; /* FIXME: ick, static local */ local 524 if ((node->phandle != 0) && (node->phandle != -1)) 525 return node->phandle; [all...] |
H A D | checks.c | 368 cell_t phandle; local 370 if (!streq(prop->name, "phandle") 371 && !streq(prop->name, "linux,phandle")) 384 /* "Set this node's phandle equal to some 385 * other node's phandle". That's nonsensical 391 /* But setting this node's phandle equal to its own 392 * phandle is allowed - that means allocate a unique 393 * phandle for this node, even if it's not otherwise 399 phandle = propval_cell(prop); 401 if ((phandle 461 cell_t phandle; local [all...] |
H A D | dtc.h | 56 extern int phandle_format; /* Use linux,phandle or phandle properties */ 157 cell_t phandle; member in struct:node 215 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
|
/freebsd-10.1-release/sys/dev/ofw/ |
H A D | ofw_fdt.c | 114 * We use the offset from fdtp to the node as the 'phandle' in OF interface. 116 * phandle is a u32 value, therefore we cannot use the pointer to node as 117 * phandle in 64 bit. We also do not use the usual fdt offset as phandle, 118 * as it can be 0, and the OF interface has special meaning for phandle 0. 356 phandle_t phandle; local 358 phandle = OF_instance_to_package(instance); 359 if (phandle == -1) 362 return (OF_package_to_path(phandle, buf, len));
|
/freebsd-10.1-release/sys/powerpc/powermac/ |
H A D | platform_powermac.c | 208 phandle_t phandle; local 211 phandle = cpuref->cr_hwref; 213 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks));
|
/freebsd-10.1-release/contrib/dtc/libfdt/ |
H A D | fdt_ro.c | 330 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); 332 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); 493 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument 497 if ((phandle == 0) || (phandle == -1)) 511 if (fdt_get_phandle(fdt, offset) == phandle)
|
H A D | libfdt.h | 82 /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle 83 * value. phandle values of 0 and -1 are not permitted. */ 573 * fdt_get_phandle - retrieve the phandle of a given node 577 * fdt_get_phandle() retrieves the phandle of the device tree node at 581 * the phandle of the node at nodeoffset, on success (!= 0, != -1) 582 * 0, if the node has no phandle, or another error occurs 759 * fdt_node_offset_by_phandle - find the node with a given phandle 761 * @phandle: phandle value 764 * which has the given phandle valu [all...] |
/freebsd-10.1-release/sys/contrib/libfdt/ |
H A D | fdt_ro.c | 330 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); 332 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); 493 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument 497 if ((phandle == 0) || (phandle == -1)) 511 if (fdt_get_phandle(fdt, offset) == phandle)
|
H A D | libfdt.h | 82 /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle 83 * value. phandle values of 0 and -1 are not permitted. */ 551 * fdt_get_phandle - retrieve the phandle of a given node 555 * fdt_get_phandle() retrieves the phandle of the device tree node at 559 * the phandle of the node at nodeoffset, on success (!= 0, != -1) 560 * 0, if the node has no phandle, or another error occurs 737 * fdt_node_offset_by_phandle - find the node with a given phandle 739 * @phandle: phandle value 742 * which has the given phandle valu [all...] |
/freebsd-10.1-release/contrib/dtc/Documentation/ |
H A D | dtc-paper.tex | 36 \newcommand{\phandle}{\texttt{linux,phandle}\xspace} 277 tree. In OF, each node in the tree has an associated phandle, a 284 phandle of the interrupt controller that handles interrupts from this 290 In the flattened tree, a node's phandle is represented by a special 291 \phandle property. When the kernel generates a flattened tree from 292 OF, it adds a \phandle property to each node, containing the phandle 294 only nodes that are actually referred to by phandle need to have this 466 output tree, the value of the referenced node's phandle i [all...] |
/freebsd-10.1-release/usr.bin/dtc/ |
H A D | fdt.cc | 248 // If this is a phandle then we need to get the name of the 263 // If we already have some bytes, make the phandle a 939 if ((*i)->get_key() == string("phandle") || 940 (*i)->get_key() == string("linux,phandle")) 944 fprintf(stderr, "Invalid phandle value for node "); 951 uint32_t phandle = (*i)->begin()->get_as_uint32(); local 952 used_phandles.insert(std::make_pair(phandle, n)); 985 uint32_t phandle = 1; local 998 // If there is an existing phandle, use it 999 property *p = target->get_property("phandle"); [all...] |
/freebsd-10.1-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-helper-board.c | 207 int aliases, eth, phy, phy_parent, phandle, ret; local 249 phandle = cvmx_be32_to_cpu(*phy_handle); 250 phy = fdt_node_offset_by_phandle(fdt_addr, phandle);
|
/freebsd-10.1-release/sys/contrib/altq/altq/ |
H A D | altq_subr.c | 1348 acc_add_filter(classifier, filter, class, phandle) 1352 u_long *phandle; 1470 *phandle = afp->f_handle;
|
/freebsd-10.1-release/sys/compat/ndis/ |
H A D | subr_ntoskrnl.c | 3521 PsCreateSystemThread(handle, reqaccess, objattrs, phandle, 3526 ndis_handle phandle;
|