Home
last modified time | relevance | path

Searched refs:phandle (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-10-stable/sys/powerpc/pseries/
Dxics.c162 phandle_t phandle = ofw_bus_get_node(dev); in xicp_attach() local
172 if (OF_getproplen(phandle, "ibm,phandle") > 0) in xicp_attach()
173 OF_getprop(phandle, "ibm,phandle", &phandle, sizeof(phandle)); in xicp_attach()
175 powerpc_register_pic(dev, phandle, MAX_XICP_IRQS, in xicp_attach()
185 phandle_t phandle = ofw_bus_get_node(dev); in xics_attach() local
187 if (OF_getproplen(phandle, "ibm,phandle") > 0) in xics_attach()
188 OF_getprop(phandle, "ibm,phandle", &phandle, sizeof(phandle)); in xics_attach()
191 powerpc_register_pic(root_pic, phandle, MAX_XICP_IRQS, in xics_attach()
Dplatform_chrp.c164 phandle_t phandle; in parse_drconf_memory() local
173 phandle = OF_finddevice("/ibm,dynamic-reconfiguration-memory"); in parse_drconf_memory()
174 if (phandle == -1) in parse_drconf_memory()
178 res = OF_getprop(phandle, "ibm,lmb-size", lmb_size, sizeof(lmb_size)); in parse_drconf_memory()
195 len = OF_getproplen(phandle, "ibm,dynamic-memory"); in parse_drconf_memory()
203 res = OF_getprop(phandle, "ibm,dynamic-memory", &arr, in parse_drconf_memory()
272 phandle_t phandle; in chrp_timebase_freq() local
275 phandle = cpuref->cr_hwref; in chrp_timebase_freq()
277 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in chrp_timebase_freq()
/freebsd-10-stable/sys/powerpc/ofw/
Dofw_machdep.c147 phandle_t phandle; in parse_ofw_memory() local
156 phandle = OF_finddevice("/"); in parse_ofw_memory()
157 if (OF_getprop(phandle, "#address-cells", &address_cells, in parse_ofw_memory()
160 if (OF_getprop(phandle, "#size-cells", &size_cells, in parse_ofw_memory()
229 phandle_t phandle; in ofw_mem_regions() local
239 for (phandle = OF_child(OF_peer(0)); phandle != 0; in ofw_mem_regions()
240 phandle = OF_peer(phandle)) { in ofw_mem_regions()
241 if (OF_getprop(phandle, "name", name, sizeof(name)) <= 0) in ofw_mem_regions()
246 res = parse_ofw_memory(phandle, "reg", &memp[msz]); in ofw_mem_regions()
248 if (OF_getproplen(phandle, "available") >= 0) in ofw_mem_regions()
[all …]
/freebsd-10-stable/contrib/dtc/
Dlivetree.c491 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
495 assert((phandle != 0) && (phandle != -1)); in get_node_by_phandle()
497 if (tree->phandle == phandle) { in get_node_by_phandle()
504 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()
522 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local
524 if ((node->phandle != 0) && (node->phandle != -1)) in get_node_phandle()
525 return node->phandle; in get_node_phandle()
527 while (get_node_by_phandle(root, phandle)) in get_node_phandle()
528 phandle++; in get_node_phandle()
530 node->phandle = phandle; in get_node_phandle()
[all …]
Dchecks.c368 cell_t phandle; in check_explicit_phandles() local
399 phandle = propval_cell(prop); in check_explicit_phandles()
401 if ((phandle == 0) || (phandle == -1)) { in check_explicit_phandles()
403 node->fullpath, phandle, prop->name); in check_explicit_phandles()
407 if (node->phandle && (node->phandle != phandle)) in check_explicit_phandles()
411 other = get_node_by_phandle(root, phandle); in check_explicit_phandles()
414 node->fullpath, phandle, other->fullpath); in check_explicit_phandles()
418 node->phandle = phandle; in check_explicit_phandles()
461 cell_t phandle; in fixup_phandle_references() local
473 phandle = get_node_phandle(dt, refnode); in fixup_phandle_references()
[all …]
Ddtc.h157 cell_t phandle; member
215 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
/freebsd-10-stable/sys/dev/ofw/
Dofw_fdt.c356 phandle_t phandle; in ofw_fdt_instance_to_path() local
358 phandle = OF_instance_to_package(instance); in ofw_fdt_instance_to_path()
359 if (phandle == -1) in ofw_fdt_instance_to_path()
362 return (OF_package_to_path(phandle, buf, len)); in ofw_fdt_instance_to_path()
/freebsd-10-stable/sys/gnu/dts/arm/
Dexynos5250.dtsi212 samsung,syscon-phandle = <&pmu_system_controller>;
284 samsung,syscon-phandle = <&pmu_system_controller>;
298 samsung,sysreg-phandle = <&sysreg_system_controller>;
312 samsung,sysreg-phandle = <&sysreg_system_controller>;
326 samsung,sysreg-phandle = <&sysreg_system_controller>;
340 samsung,sysreg-phandle = <&sysreg_system_controller>;
618 samsung,sysreg-phandle = <&sysreg_system_controller>;
619 samsung,pmureg-phandle = <&pmu_system_controller>;
728 samsung,syscon-phandle = <&pmu_system_controller>;
765 samsung,syscon-phandle = <&pmu_system_controller>;
Dexynos5420.dtsi569 samsung,syscon-phandle = <&pmu_system_controller>;
583 samsung,sysreg-phandle = <&sysreg_system_controller>;
597 samsung,sysreg-phandle = <&sysreg_system_controller>;
611 samsung,sysreg-phandle = <&sysreg_system_controller>;
625 samsung,sysreg-phandle = <&sysreg_system_controller>;
730 samsung,syscon-phandle = <&pmu_system_controller>;
825 samsung,syscon-phandle = <&pmu_system_controller>;
924 samsung,sysreg-phandle = <&sysreg_system_controller>;
925 samsung,pmureg-phandle = <&pmu_system_controller>;
Dexynos4x12.dtsi133 samsung,syscon-phandle = <&pmu_system_controller>;
288 samsung,sysreg-phandle = <&sys_reg>;
Dexynos3250.dtsi301 samsung,pmureg-phandle = <&pmu_system_controller>;
346 samsung,syscon-phandle = <&pmu_system_controller>;
Dexynos4415.dtsi363 samsung,pmureg-phandle = <&pmu_system_controller>;
364 samsung,sysreg-phandle = <&sysreg_system_controller>;
/freebsd-10-stable/lib/libusb/
Dlibusb10_hotplug.c186 libusb_hotplug_callback_handle *phandle) in libusb_hotplug_register_callback() argument
232 if (phandle != NULL) in libusb_hotplug_register_callback()
233 *phandle = handle; in libusb_hotplug_register_callback()
/freebsd-10-stable/sys/contrib/libfdt/
Dfdt_ro.c493 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
497 if ((phandle == 0) || (phandle == -1)) in fdt_node_offset_by_phandle()
511 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
Dlibfdt.h755 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
/freebsd-10-stable/contrib/dtc/libfdt/
Dfdt_ro.c493 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
497 if ((phandle == 0) || (phandle == -1)) in fdt_node_offset_by_phandle()
511 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
Dlibfdt.h777 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
/freebsd-10-stable/sys/powerpc/powermac/
Dplatform_powermac.c208 phandle_t phandle; in powermac_timebase_freq() local
211 phandle = cpuref->cr_hwref; in powermac_timebase_freq()
213 OF_getprop(phandle, "timebase-frequency", &ticks, sizeof(ticks)); in powermac_timebase_freq()
/freebsd-10-stable/sys/boot/fdt/dts/
Dbindings-gpio.txt62 The first cell of the GPIO specifier is phandle of the node's
74 <phandle pin dir flags>
/freebsd-10-stable/contrib/dtc/Documentation/
Dmanual.txt506 node is required to have a "linux,phandle" property. Real open
507 firmware implementations provide a unique "phandle" value for every
509 "linux,phandle" properties. However, this is made optional if the
511 referencing another node via "phandle" is when laying out the
515 This "linux, phandle" property is a 32-bit value that uniquely
528 purposefully kept the "name" and "linux,phandle" properties which
538 |- linux,phandle = <0>
542 | | - linux,phandle = <1>
552 | |- linux,phandle = <2>
558 | |- linux,phandle = <3>
[all …]
Ddtc-paper.tex36 \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 is included in
467 the property. If that node doesn't have an explicit phandle property,
468 \dtc will automatically create a unique phandle for it. This approach
[all …]
/freebsd-10-stable/usr.bin/dtc/
Dfdt.cc951 uint32_t phandle = (*i)->begin()->get_as_uint32(); in collect_names_recursive() local
952 used_phandles.insert(std::make_pair(phandle, n)); in collect_names_recursive()
985 uint32_t phandle = 1; in resolve_cross_references() local
1008 while (used_phandles.find(phandle) != used_phandles.end()) in resolve_cross_references()
1020 phandle++; in resolve_cross_references()
1022 push_big_endian(v.byte_data, phandle++); in resolve_cross_references()
/freebsd-10-stable/sys/powerpc/psim/
Dpsim-tree27 # CPU definition. The phandle property is to help nexus.c locate the
/freebsd-10-stable/sys/dev/fdt/
Dfdt_pinctrl_if.m39 # Set pins to the specified configuration. The cfgxref arg is an xref phandle
/freebsd-10-stable/sys/contrib/octeon-sdk/
Dcvmx-helper-board.c207 int aliases, eth, phy, phy_parent, phandle, ret; in __get_phy_info_from_dt() local
249 phandle = cvmx_be32_to_cpu(*phy_handle); in __get_phy_info_from_dt()
250 phy = fdt_node_offset_by_phandle(fdt_addr, phandle); in __get_phy_info_from_dt()

12