Home
last modified time | relevance | path

Searched +full:a +full:- +full:child +full:- +full:node +full:- +full:property (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/linux-6.14.4/scripts/dtc/
Dlivetree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 if (streq(new->label, label)) { in add_label()
20 new->deleted = 0; in add_label()
26 new->label = label; in add_label()
27 new->next = *labels; in add_label()
36 label->deleted = 1; in delete_labels()
39 struct property *build_property(const char *name, struct data val, in build_property()
42 struct property *new = xmalloc(sizeof(*new)); in build_property()
46 new->name = xstrdup(name); in build_property()
47 new->val = val; in build_property()
[all …]
Dchecks.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 fprintf(stderr, "=== %s: ", (c)->name); \
29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
62 struct node *node, in check_msg() argument
63 struct property *prop, in check_msg()
71 if (!(c->warn && (quiet < 1)) && !(c->error && (quiet < 2))) in check_msg()
74 if (prop && prop->srcpos) in check_msg()
75 pos = prop->srcpos; in check_msg()
76 else if (node && node->srcpos) in check_msg()
77 pos = node->srcpos; in check_msg()
[all …]
/linux-6.14.4/drivers/base/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0
3 * property.c - Unified device property interface.
15 #include <linux/property.h>
23 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode()
24 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode()
30 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode_const()
31 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode_const()
36 * device_property_present - check if a property of a device is present
37 * @dev: Device whose property is being checked
38 * @propname: Name of the property
[all …]
/linux-6.14.4/include/linux/
Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
20 #include <linux/property.h>
28 struct property { struct
32 struct property *next; argument
54 struct property *properties; argument
55 struct property *deadprops; /* removed properties */
57 struct device_node *child; member
91 struct device_node *node; member
96 struct property *prop;
[all …]
Dproperty.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * property.h - Unified device property interface.
84 if (fwnode_property_present(fwnode, "big-endian")) in fwnode_device_is_big_endian()
87 fwnode_property_present(fwnode, "native-endian")) in fwnode_device_is_big_endian()
99 * device_is_big_endian - check if a device has BE registers
102 * Returns: true if the device has a "big-endian" property, or if the kernel
103 * was compiled for BE *and* the device has a "native-endian" property.
115 * device_is_compatible - match 'compatible' property of the device with a given string
117 * @compat: The string to match 'compatible' property with
162 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
[all …]
Dof_graph.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd.
19 * struct of_endpoint - the OF graph endpoint data structure
20 * @port: identifier (value of reg property) of a port this endpoint belongs to
21 * @id: identifier (value of reg property) of this endpoint
31 * for_each_endpoint_of_node - iterate over every endpoint in a device node
32 * @parent: parent device node containing ports and endpoints
33 * @child: loop variable pointing to the current endpoint node
35 * When breaking out of the loop, of_node_put(child) has to be called manually.
37 #define for_each_endpoint_of_node(parent, child) \ argument
[all …]
/linux-6.14.4/drivers/of/
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
54 /* use when traversing tree through the child, sibling,
67 node_name = kbasename(np->full_name); in of_node_name_eq()
68 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
79 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
99 for (; np; np = np->parent) { in of_bus_n_addr_cells()
100 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells()
103 * Default root value and walking parent nodes for "#address-cells" in of_bus_n_addr_cells()
108 "Missing '#address-cells' in %pOF\n", np); in of_bus_n_addr_cells()
[all …]
Dresolver.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com>
25 struct device_node *node; in live_tree_max_phandle() local
31 for_each_of_allnodes(node) { in live_tree_max_phandle()
32 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle()
33 node->phandle > phandle) in live_tree_max_phandle()
34 phandle = node->phandle; in live_tree_max_phandle()
44 struct device_node *child; in adjust_overlay_phandles() local
45 const struct property *prop; in adjust_overlay_phandles()
48 /* adjust node's phandle in node */ in adjust_overlay_phandles()
[all …]
Dof_reserved_mem.c1 // SPDX-License-Identifier: GPL-2.0+
46 return -ENOMEM; in early_init_dt_alloc_reserved_memory_arch()
62 * alloc_reserved_mem_array() - allocate memory for the reserved_mem
79 pr_err("Failed to allocate memory for reserved_mem array with err: %d", -EOVERFLOW); in alloc_reserved_mem_array()
85 pr_err("Failed to allocate memory for reserved_mem array with err: %d", -ENOMEM); in alloc_reserved_mem_array()
93 pr_err("Failed to allocate memory for reserved_mem array with err: %d", -EOVERFLOW); in alloc_reserved_mem_array()
97 memset_size = alloc_size - copy_size; in alloc_reserved_mem_array()
107 * fdt_reserved_mem_save_node() - save fdt node for second pass initialization
109 static void __init fdt_reserved_mem_save_node(unsigned long node, const char *uname, in fdt_reserved_mem_save_node() argument
119 rmem->fdt_node = node; in fdt_reserved_mem_save_node()
[all …]
Dunittest.c1 // SPDX-License-Identifier: GPL-2.0
6 #define pr_fmt(fmt) "### dt-test ### " fmt
10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */
29 #include <linux/i2c-mux.h>
54 #define OF_KREF_READ(NODE) kref_read(&(NODE)->kobj.kref) argument
56 #define OF_KREF_READ(NODE) 1 argument
60 * Expected message may have a message level other than KERN_INFO.
85 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
88 "find /testcase-data failed\n"); in of_unittest_find_node_by_name()
[all …]
Ddynamic.c1 // SPDX-License-Identifier: GPL-2.0
28 * of_node_get() - Increment refcount of a node
29 * @node: Node to inc refcount, NULL is supported to simplify writing of
32 * Return: The node with refcount incremented.
34 struct device_node *of_node_get(struct device_node *node) in of_node_get() argument
36 if (node) in of_node_get()
37 kobject_get(&node->kobj); in of_node_get()
38 return node; in of_node_get()
43 * of_node_put() - Decrement refcount of a node
44 * @node: Node to dec refcount, NULL is supported to simplify writing of
[all …]
Dfdt.c1 // SPDX-License-Identifier: GPL-2.0
42 * of_fdt_limit_memory - limit the number of regions in the /memory node
46 * memory entries in the /memory node. This function may be called
68 bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument
70 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available()
100 struct property *pp, **pprev = NULL; in populate_properties()
104 pprev = &np->properties; in populate_properties()
114 pr_warn("Cannot locate property at 0x%x\n", cur); in populate_properties()
119 pr_warn("Cannot find property name at 0x%x\n", cur); in populate_properties()
126 pp = unflatten_dt_alloc(mem, sizeof(struct property), in populate_properties()
[all …]
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0+
3 * drivers/of/property.c - Procedures for accessing and interpreting
7 * file contains the OF property as well as the OF graph interface
11 * Copyright (C) 1996-2005 Paul Mackerras.
35 * of_property_read_bool - Find a property
36 * @np: device node from which the property value is to be read.
37 * @propname: name of the property to be searched.
39 * Search for a boolean property in a device node. Usage on non-boolean
40 * property types is deprecated.
42 * Return: true if the property exists false otherwise.
[all …]
/linux-6.14.4/drivers/acpi/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2014 - 2023, Intel Corporation
31 * not defined without a warning. For instance if any of the properties
32 * from different GUID appear in a property list of another, it will be
38 * https://github.com/UEFI/DSD-Guide/blob/main/src/dsd-guide.adoc
41 /* ACPI _DSD device properties GUID [1]: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */
44 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */
47 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */
50 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */
53 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/
Dexample-schema.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 # All the top-level keys are standard json-schema keywords except for
8 # $id is a unique identifier based on the filename. There may or may not be a
10 $id: http://devicetree.org/schemas/example-schema.yaml#
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: http://devicetree.org/meta-schemas/core.yaml#
17 - Rob Herring <[email protected]>
20 A more detailed multi-line description of the binding.
26 begin with a tab character.
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/crypto/
Dfsl-sec6.txt4 -SEC 6 Node
5 -Job Ring Node
6 -Full Example
9 SEC 6 Node
13 Node defines the base address of the SEC 6 block.
16 For example, In C293, we could see three SEC 6 node.
20 - compatible
23 Definition: Must include "fsl,sec-v6.0".
25 - fsl,sec-era
28 Definition: A standard property. Define the 'ERA' of the SEC
[all …]
/linux-6.14.4/drivers/regulator/
Dof_regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 [PM_SUSPEND_STANDBY] = "regulator-state-standby",
20 [PM_SUSPEND_MEM] = "regulator-state-mem",
21 [PM_SUSPEND_MAX] = "regulator-state-disk",
41 "regulator-oc-%s-microamp", in of_get_regulator_prot_limits()
42 "regulator-ov-%s-microvolt", in of_get_regulator_prot_limits()
43 "regulator-temp-%s-kelvin", in of_get_regulator_prot_limits()
44 "regulator-uv-%s-microvolt", in of_get_regulator_prot_limits()
47 &constraints->over_curr_limits, in of_get_regulator_prot_limits()
48 &constraints->over_voltage_limits, in of_get_regulator_prot_limits()
[all …]
/linux-6.14.4/drivers/usb/core/
Dof.c1 // SPDX-License-Identifier: GPL-2.0
15 * usb_of_get_device_node() - get a USB device node
17 * @port1: one-based index of port
19 * Look up the node of a USB device given its parent hub device and one-based
22 * Return: A pointer to the node with incremented refcount if found, or
27 struct device_node *node; in usb_of_get_device_node() local
30 for_each_child_of_node(hub->dev.of_node, node) { in usb_of_get_device_node()
31 if (of_property_read_u32(node, "reg", &reg)) in usb_of_get_device_node()
35 return node; in usb_of_get_device_node()
43 * usb_of_has_combined_node() - determine whether a device has a combined node
[all …]
/linux-6.14.4/drivers/net/mdio/
Dof_mdio.c1 // SPDX-License-Identifier: GPL-2.0-only
31 * ethernet-phy-idAAAA.BBBB */
38 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument
41 of_fwnode_handle(child), in of_mdiobus_phy_device_register()
47 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument
49 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy()
53 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument
55 struct fwnode_handle *fwnode = of_fwnode_handle(child); in of_mdiobus_register_device()
63 /* Associate the OF node with the device structure so it in of_mdiobus_register_device()
67 device_set_node(&mdiodev->dev, fwnode); in of_mdiobus_register_device()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/powerpc/fsl/
Dpamu.txt5 The PAMU is an I/O MMU that provides device-to-memory access control and
10 - compatible : <string>
11 First entry is a version-specific string, such as
12 "fsl,pamu-v1.0". The second is "fsl,pamu".
13 - ranges : <prop-encoded-array>
14 A standard property. Utilized to describe the memory mapped
20 - interrupts : <prop-encoded-array>
25 - #address-cells: <u32>
26 A standard property.
27 - #size-cells : <u32>
[all …]
Draideng.txt3 RAID Engine nodes are defined to describe on-chip RAID accelerators. Each RAID
4 Engine should have a separate node.
11 - compatible: Should contain "fsl,raideng-v1.0" as the value
15 - reg: offset and length of the register set for the device
16 - ranges: standard ranges property specifying the translation
17 between child address space and parent address space
22 compatible = "fsl,raideng-v1.0";
23 #address-cells = <1>;
24 #size-cells = <1>;
30 There must be a sub-node for each job queue present in RAID Engine
[all …]
Dsrio.txt3 RapidIO port node:
5 - compatible
11 Optionally, a compatible string of "fsl,srio-vX.Y" where X is Major
15 - reg
17 Value type: <prop-encoded-array>
18 Definition: A standard property. Specifies the physical address and
22 - interrupts
24 Value type: <prop_encoded-array>
26 value of the interrupts property consists of one interrupt
28 binding document describing the node's interrupt parent.
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/mailbox/
Dti,omap-mailbox.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mailbox/ti,omap-mailbox.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Suman Anna <s-[email protected]>
14 processors using a queued mailbox interrupt mechanism. The IP block is
16 interconnect bus. The communication is achieved through a set of registers
19 Each mailbox IP block/cluster has a certain number of h/w fifo queues and
21 controller within a processor subsystem, and there can be more than one line
22 going to a specific processor's interrupt controller. The interrupt line
[all …]
/linux-6.14.4/arch/m68k/include/asm/
Doplib.h1 /* SPDX-License-Identifier: GPL-2.0 */
31 /* Root node of the prom device tree, this stays constant after
37 * and usage utility functions. Only prom-lib should use these,
55 * virtual address you pass is a request and the prom may put your mappings
67 * of the string is different on V0 vs. V2->higher proms. The caller must
72 /* Close a previously opened device described by the passed integer
77 /* Do a seek operation on the device described by the passed integer
85 /* This function returns a V0 format memory descriptor table, it has three
88 * areas which are allocated by the prom. So, in a sense the physical
89 * available is a calculation of the total physical minus the physical mapped
[all …]
/linux-6.14.4/arch/powerpc/kernel/
Dpci_of_scan.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <asm/pci-bridge.h>
20 * get_int_prop - Decode a u32 from a device tree property
34 * pci_parse_of_flags - Parse the flags cell of a device tree PCI address
35 * @addr0: value of 1st cell of a device tree PCI address.
36 * @bridge: Set this flag if the address is from a bridge 'ranges' property
38 * PCI Bus Binding to IEEE Std 1275-1994
49 * t is 1 if the address is aliased (for non-relocatable I/O),
54 * 10 denotes 32-bit-address Memory Space
55 * 11 denotes 64-bit-address Memory Space
[all …]

12345678910>>...16