/freebsd-11-stable/contrib/dtc/libfdt/ |
H A D | fdt_overlay.c | 9 * overlay_get_target_phandle - retrieves the target phandle of a fragment 13 * overlay_get_target_phandle() retrieves the target phandle of an 14 * overlay fragment when that fragment uses a phandle (target 18 * the phandle pointed by the target property 19 * 0, if the phandle was not found 20 * -1, if the phandle was malformed 45 * done (through a phandle or a path) 54 uint32_t phandle; local 58 /* Try first to do a phandle based lookup */ 59 phandle 358 uint32_t phandle; local [all...] |
H A D | fdt_ro.c | 98 uint32_t phandle; local 106 phandle = fdt_get_phandle(fdt, offset); 107 if (phandle == (uint32_t)-1) 110 if (phandle > max_phandle) 111 max_phandle = phandle; 362 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); 364 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); 525 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument 529 if ((phandle == 0) || (phandle [all...] |
H A D | libfdt.h | 82 /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle. 83 * This can be caused either by an invalid phandle property 84 * length, or the phandle value was either 0 or -1, which are 138 * phandle available anymore without causing an overflow */ 301 * fdt_get_max_phandle - retrieves the highest phandle in a tree 304 * fdt_get_max_phandle retrieves the highest phandle in the given 309 * the highest phandle on success 310 * 0, if no phandle was found in the device tree 688 * fdt_get_phandle - retrieve the phandle of a given node 692 * fdt_get_phandle() retrieves the phandle o [all...] |
/freebsd-11-stable/sys/powerpc/ofw/ |
H A D | ofw_machdep.c | 161 phandle_t phandle; local 169 phandle = OF_finddevice("/"); 170 if (OF_getencprop(phandle, "#address-cells", &address_cells, 173 if (OF_getencprop(phandle, "#size-cells", &size_cells, 316 phandle_t phandle; local 326 for (phandle = OF_child(OF_peer(0)); phandle != 0; 327 phandle = OF_peer(phandle)) { 328 if (OF_getprop(phandle, "nam [all...] |
/freebsd-11-stable/sys/contrib/vchiq/interface/vchiq_arm/ |
H A D | vchiq_kern_lib.c | 226 VCHIQ_SERVICE_HANDLE_T *phandle) 236 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; 250 *phandle = service->handle; 271 VCHIQ_SERVICE_HANDLE_T *phandle) 280 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; 292 *phandle = service->handle; 297 *phandle = VCHIQ_SERVICE_HANDLE_INVALID; 223 vchiq_add_service( VCHIQ_INSTANCE_T instance, const VCHIQ_SERVICE_PARAMS_T *params, VCHIQ_SERVICE_HANDLE_T *phandle) argument 268 vchiq_open_service( VCHIQ_INSTANCE_T instance, const VCHIQ_SERVICE_PARAMS_T *params, VCHIQ_SERVICE_HANDLE_T *phandle) argument
|
/freebsd-11-stable/contrib/dtc/ |
H A D | checks.c | 410 cell_t phandle; local 426 /* "Set this node's phandle equal to some 427 * other node's phandle". That's nonsensical 432 /* But setting this node's phandle equal to its own 433 * phandle is allowed - that means allocate a unique 434 * phandle for this node, even if it's not otherwise 436 * we treat it as having no phandle data for now. */ 440 phandle = propval_cell(prop); 442 if ((phandle == 0) || (phandle 456 cell_t phandle, linux_phandle; local 530 cell_t phandle; local [all...] |
H A D | livetree.c | 510 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) argument 514 assert((phandle != 0) && (phandle != -1)); 516 if (tree->phandle == phandle) { 523 node = get_node_by_phandle(child, phandle); 543 static cell_t phandle = 1; /* FIXME: ick, static local */ local 545 if ((node->phandle != 0) && (node->phandle != -1)) 546 return node->phandle; [all...] |
H A D | dtc.h | 57 extern int phandle_format; /* Use linux,phandle or phandle properties */ 161 cell_t phandle; member in struct:node 221 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
|
/freebsd-11-stable/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 170 phandle_t phandle; local 179 phandle = OF_finddevice("/ibm,dynamic-reconfiguration-memory"); 180 if (phandle == -1) 184 res = OF_getencprop(phandle, "ibm,lmb-size", lmb_size, 202 len = OF_getproplen(phandle, "ibm,dynamic-memory"); 210 res = OF_getencprop(phandle, "ibm,dynamic-memory", arr, 279 phandle_t phandle; local 282 phandle = cpuref->cr_hwref; 284 OF_getencprop(phandle, "timebase-frequency", &ticks, sizeof(ticks));
|
H A D | xics.c | 162 phandle_t phandle = ofw_bus_get_node(dev); local 172 powerpc_register_pic(dev, OF_xref_from_node(phandle), MAX_XICP_IRQS, 182 phandle_t phandle = ofw_bus_get_node(dev); local 185 powerpc_register_pic(root_pic, OF_xref_from_node(phandle),
|
/freebsd-11-stable/sys/contrib/libfdt/ |
H A D | fdt_overlay.c | 60 * overlay_get_target_phandle - retrieves the target phandle of a fragment 64 * overlay_get_target_phandle() retrieves the target phandle of an 65 * overlay fragment when that fragment uses a phandle (target 69 * the phandle pointed by the target property 70 * 0, if the phandle was not found 71 * -1, if the phandle was malformed 97 * done (through a phandle or a path) 106 uint32_t phandle; local 110 /* Try first to do a phandle based lookup */ 111 phandle 419 uint32_t phandle; local [all...] |
H A D | fdt_ro.c | 99 uint32_t phandle; local 107 phandle = fdt_get_phandle(fdt, offset); 108 if (phandle == (uint32_t)-1) 111 if (phandle > max_phandle) 112 max_phandle = phandle; 432 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); 434 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); 595 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument 599 if ((phandle == 0) || (phandle [all...] |
H A D | libfdt.h | 82 /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle. 83 * This can be caused either by an invalid phandle property 84 * length, or the phandle value was either 0 or -1, which are 138 * phandle available anymore without causing an overflow */ 302 * fdt_get_max_phandle - retrieves the highest phandle in a tree 305 * fdt_get_max_phandle retrieves the highest phandle in the given 310 * the highest phandle on success 311 * 0, if no phandle was found in the device tree 702 * fdt_get_phandle - retrieve the phandle of a given node 706 * fdt_get_phandle() retrieves the phandle o [all...] |
/freebsd-11-stable/sys/dev/ofw/ |
H A D | ofw_fdt.c | 124 * We use the offset from fdtp to the node as the 'phandle' in OF interface. 126 * phandle is a u32 value, therefore we cannot use the pointer to node as 127 * phandle in 64 bit. We also do not use the usual fdt offset as phandle, 128 * as it can be 0, and the OF interface has special meaning for phandle 0. 373 phandle_t phandle; local 375 phandle = OF_instance_to_package(instance); 376 if (phandle == -1) 379 return (OF_package_to_path(phandle, buf, len));
|
H A D | openfirm.h | 132 * real phandle. If one can't be found (or running on OF implementations 180 bus_space_handle_t *phandle, bus_size_t *sz);
|
/freebsd-11-stable/lib/libusb/ |
H A D | libusb10_hotplug.c | 186 libusb_hotplug_callback_handle *phandle) 232 if (phandle != NULL) 233 *phandle = handle; 182 libusb_hotplug_register_callback(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *phandle) argument
|
/freebsd-11-stable/sys/powerpc/powermac/ |
H A D | platform_powermac.c | 218 phandle_t phandle; local 221 phandle = cpuref->cr_hwref; 223 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks));
|
/freebsd-11-stable/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-11-stable/usr.bin/dtc/ |
H A D | fdt.cc | 291 // If this is a phandle then we need to get the name of the 319 // If we already have some bytes, make the phandle a 1239 if ((p->get_key() == "phandle") || 1240 (p->get_key() == "linux,phandle")) 1244 fprintf(stderr, "Invalid phandle value for node %s. Should be a 4-byte value.\n", n->name.c_str()); 1249 uint32_t phandle = p->begin()->get_as_uint32(); local 1250 used_phandles.insert(std::make_pair(phandle, n.get())); 1270 device_tree::assign_phandle(node *n, uint32_t &phandle) argument 1272 // If there is an existing phandle, use it 1273 property_ptr p = n->get_property("phandle"); 1329 resolve_cross_references(uint32_t &phandle) argument 2024 uint32_t phandle = 1; local [all...] |
H A D | fdt.hh | 137 * This is a phandle reference. When parsed from source, the 140 * will contain a 32-bit integer that should match the phandle 167 * Returns true if this value is a phandle reference, false otherwise. 721 * Name that we should use for phandle nodes. 725 /** linux,phandle */ 727 /** phandle */ 804 * be replaced by the value of the phandle property in their 809 * The locations of all of the values that are supposed to become phandle 824 * A map of used phandle values to nodes. All phandles must be unique, 866 * used in resolving cross references. Also collects phandle [all...] |
/freebsd-11-stable/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-11-stable/sys/net/altq/ |
H A D | altq_subr.c | 1355 acc_add_filter(classifier, filter, class, phandle) 1359 u_long *phandle; 1473 *phandle = afp->f_handle;
|
/freebsd-11-stable/sys/compat/ndis/ |
H A D | subr_ntoskrnl.c | 3518 PsCreateSystemThread(handle, reqaccess, objattrs, phandle, 3523 ndis_handle phandle;
|