/linux/include/linux/ |
H A D | bootconfig.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 #define BOOTCONFIG_ALIGN_MASK (BOOTCONFIG_ALIGN - 1) 31 * xbc_calc_checksum() - Calculate checksum of bootconfig 44 while (size--) in xbc_calc_checksum() 53 uint16_t child; member 60 /* Maximum size of boot config is 32KB - 1 */ 61 #define XBC_DATA_MAX (XBC_VALUE - 1) 76 * xbc_node_is_value() - Test the node is a value node 83 return node->data & XBC_VALUE; in xbc_node_is_value() 87 * xbc_node_is_key() - Test the node is a key node [all …]
|
H A D | rbtree_augmented.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 20 * Please note - only struct rb_augment_callbacks and the prototypes for 24 * See Documentation/core-api/rbtree.rst for documentation and samples. 50 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 59 root->rb_leftmost = node; in rb_insert_augmented_cached() 60 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached() 68 struct rb_node **link = &tree->rb_root.rb_node; in rb_add_augmented_cached() 75 link = &parent->rb_left; in rb_add_augmented_cached() 77 link = &parent->rb_right; in rb_add_augmented_cached() 83 augment->propagate(parent, NULL); /* suboptimal */ in rb_add_augmented_cached() [all …]
|
/linux/Documentation/devicetree/bindings/pwm/ |
H A D | pwm-tipwmss.txt | 4 - compatible: Must be "ti,<soc>-pwmss". 5 for am33xx - compatible = "ti,am33xx-pwmss"; 6 for am4372 - compatible = "ti,am4372-pwmss","ti,am33xx-pwmss"; 7 for dra746 - compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss" 9 - reg: physical base address and size of the registers map. 10 - address-cells: Specify the number of u32 entries needed in child nodes. 12 - size-cells: specify number of u32 entries needed to specify child nodes size 14 - ranges: describes the address mapping of a memory-mapped bus. Should set to 15 physical address map of child's base address, physical address within 17 3 set of child register maps present, ECAP register space, EQEP [all …]
|
/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-mux.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-mux.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Rosin <peda@axentia.se> 13 An i2c bus multiplexer/switch will have several child busses that are numbered 14 uniquely in a device dependent manner. The nodes for an i2c bus 15 multiplexer/switch will have one child node for each child bus. 17 For i2c multiplexers/switches that have child nodes that are a mixture of both 18 i2c child busses and other child nodes, the 'i2c-mux' subnode can be used for [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 11 - Rafał Miłecki <rafal@milecki.pl> 14 Pin controller devices should contain the pin configuration nodes that client 17 The contents of each of those pin configuration child nodes is defined 22 The pin configuration nodes need not be direct children of the pin controller 24 whether there is any interaction between the child and intermediate parent 25 nodes, is again defined entirely by the binding for the individual pin [all …]
|
/linux/drivers/firewire/ |
H A D | core-topology.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2004-2006 Kristian Hoegsberg <krh@bitplanet.net> 11 #include <linux/firewire-constants.h> 23 #include "phy-packet-definitions.h" 34 node->color = color; in fw_node_create() 35 node->node_id = LOCAL_BUS | phy_packet_self_id_get_phy_id(sid); in fw_node_create() 36 node->link_on = phy_packet_self_id_zero_get_link_active(sid); in fw_node_create() 38 node->phy_speed = phy_packet_self_id_zero_get_scode(sid); in fw_node_create() 39 node->initiated_reset = phy_packet_self_id_zero_get_initiated_reset(sid); in fw_node_create() 40 node->port_count = port_count; in fw_node_create() [all …]
|
/linux/Documentation/devicetree/bindings/mtd/ |
H A D | samsung-s3c2410.txt | 4 - compatible : The possible values are: 5 "samsung,s3c2410-nand" 6 "samsung,s3c2412-nand" 7 "samsung,s3c2440-nand" 8 - reg : register's location and length. 9 - #address-cells, #size-cells : see nand-controller.yaml 10 - clocks : phandle to the nand controller clock 11 - clock-names : must contain "nand" 13 Optional child nodes: 14 Child nodes representing the available nand chips. [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | ti-aemif.txt | 4 provide a glue-less interface to a variety of asynchronous memory devices like 11 Davinci DM646x - http://www.ti.com/lit/ug/sprueq7c/sprueq7c.pdf 12 OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf 13 Kestone - http://www.ti.com/lit/ug/sprugz3a/sprugz3a.pdf 17 - compatible: "ti,davinci-aemif" 18 "ti,keystone-aemif" 19 "ti,da850-aemif" 21 - reg: contains offset/length value for AEMIF control registers 24 - #address-cells: Must be 2. The partition number has to be encoded in the 25 first address cell and it may accept values 0..N-1 [all …]
|
H A D | ti,gpmc-child.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ti,gpmc-child.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments GPMC Bus Child Nodes 10 - Tony Lindgren <tony@atomide.com> 11 - Roger Quadros <rogerq@kernel.org> 14 This binding is meant for the child nodes of the GPMC node. The node 23 # GPMC Timing properties for child nodes. All are optional and default to 0. 24 gpmc,sync-clk-ps: [all …]
|
/linux/lib/ |
H A D | radix-tree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/radix-tree.h> 30 #include "radix-tree.h" 38 * The radix tree is variable-height, so an insert operation not only has 48 #define RADIX_TREE_PRELOAD_SIZE (RADIX_TREE_MAX_PATH * 2 - 1) 54 #define IDR_INDEX_BITS (8 /* CHAR_BIT */ * sizeof(int) - 1) 57 #define IDR_PRELOAD_SIZE (IDR_MAX_PATH * 2 - 1) 60 * Per-cpu pool of preloaded nodes 82 return parent ? slot - parent->slots : 0; in get_slot_offset() 88 unsigned int offset = (index >> parent->shift) & RADIX_TREE_MAP_MASK; in radix_tree_descend() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | tps65912.txt | 4 - compatible : Should be "ti,tps65912". 5 - reg : Slave address or chip select number (I2C / SPI). 6 - interrupts : The interrupt line the device is connected to. 7 - interrupt-controller : Marks the device node as an interrupt controller. 8 - #interrupt-cells : The number of cells to describe an IRQ, should be 2. 11 masks from ../interrupt-controller/interrupts.txt. 12 - gpio-controller : Marks the device node as a GPIO Controller. 13 - #gpio-cells : Should be two. The first cell is the pin number and 16 - regulators: : List of child nodes that specify the regulator 17 initialization data. Child nodes must be named [all …]
|
/linux/Documentation/devicetree/bindings/spmi/ |
H A D | spmi.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Stephen Boyd <sboyd@kernel.org> 13 The System Power Management (SPMI) controller is a 2-wire bus defined 20 Each SPMI controller has zero or more child nodes (up to 16 ones), each 27 "#address-cells": 30 "#size-cells": 34 "@[0-9a-f]$": 35 description: up to 16 child PMIC nodes [all …]
|
/linux/arch/sparc/kernel/ |
H A D | cpumap.c | 1 // SPDX-License-Identifier: GPL-2.0 37 int child_start; /* Array index of the first child node */ 38 int child_end; /* Array index of the last child node */ 39 int rover; /* Child node iterator */ 45 int num_nodes; /* Number of nodes in a level in a cpuinfo tree */ 51 /* Offsets into nodes[] for each level of the tree */ 53 struct cpuinfo_node nodes[] __counted_by(total_nodes); 86 * nodes. 114 id = -EINVAL; in cpuinfo_id() 121 * end index, and number of nodes for each level in the cpuinfo tree. The [all …]
|
/linux/Documentation/devicetree/bindings/ |
H A D | example-schema.yaml | 1 # 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 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 <robh@kernel.org> 20 A more detailed multi-line description of the binding. 44 - items: 51 - enum: [all …]
|
/linux/kernel/bpf/ |
H A D | lpm_trie.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 struct lpm_trie_node __rcu *child[2]; 51 * lead to more nodes containing more specific matches. Each node also stores 58 * [0xc0, 0xa8, 0x00, 0x00] in big-endian notation. This documentation will 59 * stick to IP-address notation for readability though. 63 * child pointers are %NULL. 65 * +- 26 struct lpm_trie_node __rcu *child[2]; global() member [all...] |
/linux/drivers/base/ |
H A D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * property.c - Unified device property interface. 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 51 * fwnode_property_present - check if a property of a firmware node is present 69 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present() 74 * device_property_read_bool - Return the value for a boolean property of a device [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/fsl/ |
H A D | fsl,imx-weim-peripherals.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/fsl/fsl,imx-weim-peripherals.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: i.MX WEIM Bus Peripheral Nodes 10 - Shawn Guo <shawnguo@kernel.org> 11 - Sascha Hauer <s.hauer@pengutronix.de> 14 This binding is meant for the child nodes of the WEIM node. The node 23 fsl,weim-cs-timing: 24 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
/linux/drivers/of/ |
H A D | fdt.c | 1 // SPDX-License-Identifier: GPL-2.0 43 * of_fdt_limit_memory - limit the number of regions in the /memory node 105 pprev = &np->properties; in populate_properties() 133 * ePAPR-style "phandle" properties, or the in populate_properties() 140 if (!np->phandle) in populate_properties() 141 np->phandle = be32_to_cpup(val); in populate_properties() 149 np->phandle = be32_to_cpup(val); in populate_properties() 151 pp->name = (char *)pname; in populate_properties() 152 pp->length = sz; in populate_properties() 153 pp->value = (__be32 *)val; in populate_properties() [all …]
|
/linux/drivers/md/bcache/ |
H A D | btree.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * pointers are in the leaves; interior nodes only have pointers to the child 10 * nodes. 12 * In the interior nodes, a struct bkey always points to a child btree node, and 13 * the key is the highest key in the child node - except that the highest key in 15 * of the child node - this would allow us to have variable sized btree nodes 18 * Btree nodes are themselves log structured, but this is hidden fairly 19 * thoroughly. Btree nodes on disk will in practice have extents that overlap 21 * overlapping extents - when we read in a btree node from disk, the first thing 31 * Btree nodes are cached in memory; traversing the btree might require reading [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | nswalk.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: nswalk - Functions for walking the ACPI namespace 6 * Copyright (C) 2000 - 2025, Intel Corp. 21 * PARAMETERS: parent_node - Parent node whose children we are 23 * child_node - Previous child that was found. 24 * The NEXT child will be returned 26 * RETURN: struct acpi_namespace_node - Pointer to the NEXT child or NULL if 45 return (parent_node->child); in acpi_ns_get_next_node() 50 return (child_node->peer); in acpi_ns_get_next_node() 57 * PARAMETERS: type - Type of node to be searched for [all …]
|
/linux/fs/jffs2/ |
H A D | build.c | 2 * JFFS2 -- Journalling Flash File System, Version 2. 4 * Copyright © 2001-2007 Red Hat, Inc. 5 * Copyright © 2004-2010 David Woodhouse <dwmw2@infradead.org> 29 for (; *i < c->inocache_hashsize; (*i)++) { in first_inode_chain() 30 if (c->inocache_list[*i]) in first_inode_chain() 31 return c->inocache_list[*i]; in first_inode_chain() 40 if (ic->next) in next_inode() 41 return ic->next; in next_inode() 58 dbg_fsbuild("building directory inode #%u\n", ic->ino); in jffs2_build_inode_pass1() 60 /* For each child, increase nlink */ in jffs2_build_inode_pass1() [all …]
|
/linux/tools/include/linux/ |
H A D | rbtree_augmented.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 22 * Please note - only struct rb_augment_callbacks and the prototypes for 26 * See Documentation/core-api/rbtree.rst for documentation and samples. 52 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 61 root->rb_leftmost = node; in rb_insert_augmented_cached() 62 rb_insert_augmented(node, &root->rb_roo in rb_insert_augmented_cached() 190 struct rb_node *child = node->rb_right; __rb_erase_augmented() local [all...] |
/linux/arch/powerpc/platforms/pseries/ |
H A D | dlpar.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #include <asm/rtas-work-area.h> 45 kfree(prop->name); in dlpar_free_cc_property() 46 kfree(prop->value); in dlpar_free_cc_property() 60 name = (char *)ccwa + be32_to_cpu(ccwa->name_offset); in dlpar_parse_cc_property() 61 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property() 62 if (!prop->name) { in dlpar_parse_cc_property() 67 prop->length = be32_to_cpu(ccwa->prop_length); in dlpar_parse_cc_property() 68 value = (char *)ccwa + be32_to_cpu(ccwa->prop_offset); in dlpar_parse_cc_property() 69 prop->value = kmemdup(value, prop->length, GFP_KERNEL); in dlpar_parse_cc_property() [all …]
|
/linux/drivers/pci/hotplug/ |
H A D | pnv_php.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 #include <asm/pnv-pci.h> 20 #include <asm/ppc-pci.h> 27 ((sl)->pdev ? pci_warn((sl)->pdev, x) : dev_warn(&(sl)->bus->dev, x)) 47 struct pci_dev *pdev = php_slot->pdev; in pnv_php_disable_irq() 50 if (php_slot->irq > 0) { in pnv_php_disable_irq() 57 free_irq(php_slot->irq, php_slot); in pnv_php_disable_irq() 58 php_slot->irq = 0; in pnv_php_disable_irq() 62 if (pdev->msix_enabled) in pnv_php_disable_irq() 64 else if (pdev->msi_enabled) in pnv_php_disable_irq() [all …]
|
/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | mpc5200.txt | 2 ---------------------------- 4 (c) 2006-2009 Secret Lab Technologies Ltd 8 ------------------ 9 For mpc5200 on-chip devices, the format for each compatible value is 10 <chip>-<device>[-<mode>]. The OS should be able to match a device driver 21 "fsl,mpc5200-<device>". 29 compatible = "fsl,mpc5200b-<device>","fsl,mpc5200-<device>"; 34 ie. ethernet on mpc5200: compatible = "fsl,mpc5200-fec"; 35 ethernet on mpc5200b: compatible = "fsl,mpc5200b-fec", "fsl,mpc5200-fec"; 39 "fsl,mpc5200-psc-i2s", not "fsl,mpc5200-i2s". This convention is chosen to [all …]
|