/Linux-v6.6/include/linux/ |
D | bootconfig.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 #define BOOTCONFIG_ALIGN_MASK (BOOTCONFIG_ALIGN - 1) 30 * xbc_calc_checksum() - Calculate checksum of bootconfig 43 while (size--) in xbc_calc_checksum() 49 /* XBC tree node */ 52 uint16_t child; member 59 /* Maximum size of boot config is 32KB - 1 */ 60 #define XBC_DATA_MAX (XBC_VALUE - 1) 66 /* Node tree access raw APIs */ 68 int __init xbc_node_index(struct xbc_node *node); [all …]
|
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. 28 void (*propagate)(struct rb_node *node, struct rb_node *stop); 33 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, 40 * leading to the inserted node, then call rb_link_node() as usual and 47 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() argument 50 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 54 rb_insert_augmented_cached(struct rb_node *node, in rb_insert_augmented_cached() argument 59 root->rb_leftmost = node; in rb_insert_augmented_cached() [all …]
|
D | of_graph.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd. 18 * struct of_endpoint - the OF graph endpoint data structure 30 * for_each_endpoint_of_node - iterate over every endpoint in a device node 31 * @parent: parent device node containing ports and endpoints 32 * @child: loop variable pointing to the current endpoint node 34 * When breaking out of the loop, of_node_put(child) has to be called manually. 36 #define for_each_endpoint_of_node(parent, child) \ argument 37 for (child = of_graph_get_next_endpoint(parent, NULL); child != NULL; \ 38 child = of_graph_get_next_endpoint(parent, child)) [all …]
|
/Linux-v6.6/kernel/bpf/ |
D | lpm_trie.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 /* Intermediate node */ 26 struct lpm_trie_node __rcu *child[2]; member 49 * lead to more nodes containing more specific matches. Each node also stores 56 * [0xc0, 0xa8, 0x00, 0x00] in big-endian notation. This documentation will 57 * stick to IP-address notation for readability though. 59 * As the trie is empty initially, the new node (1) will be places as root 60 * node, denoted as (R) in the example below. As there are no other node, both 61 * child pointers are %NULL. 63 * +----------------+ [all …]
|
/Linux-v6.6/tools/include/linux/ |
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. 30 void (*propagate)(struct rb_node *node, struct rb_node *stop); 35 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, 42 * leading to the inserted node, then call rb_link_node() as usual and 49 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() argument 52 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 56 rb_insert_augmented_cached(struct rb_node *node, in rb_insert_augmented_cached() argument 61 root->rb_leftmost = node; in rb_insert_augmented_cached() [all …]
|
/Linux-v6.6/drivers/firmware/efi/ |
D | dev-path-parser.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * dev-path-parser.c - EFI Device Path parser 15 static long __init parse_acpi_path(const struct efi_dev_path *node, in parse_acpi_path() argument 16 struct device *parent, struct device **child) in parse_acpi_path() argument 24 if (node->header.length != 12) in parse_acpi_path() 25 return -EINVAL; in parse_acpi_path() 28 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path() 29 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path() 30 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path() 31 node->acpi.hid >> 16); in parse_acpi_path() [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | htb.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 16 u32 classid; /* 16-bit, except root. */ 36 struct mlx5e_qos_node *node = NULL; in mlx5e_htb_enumerate_leaves() local 39 hash_for_each(htb->qos_tc2node, bkt, node, hnode) { in mlx5e_htb_enumerate_leaves() 40 if (node->qid == MLX5E_QOS_QID_INNER) in mlx5e_htb_enumerate_leaves() 42 err = callback(data, node->qid, node->hw_id); in mlx5e_htb_enumerate_leaves() 53 last = find_last_bit(htb->qos_used_qids, mlx5e_qos_max_leaf_nodes(htb->mdev)); in mlx5e_htb_cur_leaf_nodes() 54 return last == mlx5e_qos_max_leaf_nodes(htb->mdev) ? 0 : last + 1; in mlx5e_htb_cur_leaf_nodes() 59 int size = mlx5e_qos_max_leaf_nodes(htb->mdev); in mlx5e_htb_find_unused_qos_qid() 60 struct mlx5e_priv *priv = htb->priv; in mlx5e_htb_find_unused_qos_qid() [all …]
|
/Linux-v6.6/lib/ |
D | bootconfig.c | 1 // SPDX-License-Identifier: GPL-2.0 17 /* embedded_bootconfig_data is defined in bootconfig-data.S */ 23 *size = embedded_bootconfig_data_end - embedded_bootconfig_data; in xbc_get_embedded_bootconfig() 40 * Extra Boot Config (XBC) is given as tree-structured ascii text of 41 * key-value pairs on memory. 42 * xbc_parse() parses the text to build a simple tree. Each tree node is 43 * simply a key word or a value. A key node may have a next key node or/and 44 * a child node (both key and value). A value node may have a next value 45 * node (for array). 82 * xbc_get_info() - Get the information of loaded boot config [all …]
|
D | radix-tree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/radix-tree.h> 30 #include "radix-tree.h" 33 * Radix tree node cache. 38 * The radix tree is variable-height, so an insert operation not only has 45 * of RADIX_TREE_MAX_PATH size to be created, with only the root node shared. 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 [all …]
|
/Linux-v6.6/drivers/acpi/acpica/ |
D | nsalloc.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: nsalloc - Namespace allocation and deletion utilities 19 * PARAMETERS: name - Name of the new node (4 char ACPI name) 21 * RETURN: New namespace node (Null on failure) 23 * DESCRIPTION: Create a namespace node 28 struct acpi_namespace_node *node; in acpi_ns_create_node() local 35 node = acpi_os_acquire_object(acpi_gbl_namespace_cache); in acpi_ns_create_node() 36 if (!node) { in acpi_ns_create_node() 40 ACPI_MEM_TRACKING(acpi_gbl_ns_node_list->total_allocated++); in acpi_ns_create_node() 43 temp = acpi_gbl_ns_node_list->total_allocated - in acpi_ns_create_node() [all …]
|
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 - 2023, 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 29 * DESCRIPTION: Return the next peer node within the namespace. If Handle 30 * is valid, Scope is ignored. Otherwise, the first node 45 return (parent_node->child); in acpi_ns_get_next_node() [all …]
|
/Linux-v6.6/scripts/dtc/ |
D | livetree.c | 1 // 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() 46 new->name = name; in build_property() 47 new->val = val; in build_property() 48 new->srcpos = srcpos_copy(srcpos); in build_property() 59 new->name = name; in build_property_delete() [all …]
|
/Linux-v6.6/drivers/firewire/ |
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> 66 shift -= 2; in count_ports() 96 shift = 16 - ((port_index + 5) & 7) * 2; in get_port_type() 102 struct fw_node *node; in fw_node_create() local 104 node = kzalloc(struct_size(node, ports, port_count), GFP_ATOMIC); in fw_node_create() 105 if (node == NULL) in fw_node_create() 108 node->color = color; in fw_node_create() 109 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create() [all …]
|
/Linux-v6.6/tools/perf/util/ |
D | callchain.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2009-2011, Frederic Weisbecker <fweisbec@gmail.com> 5 * Handle the callchains from the stream in an ad-hoc radix tree and then 53 * -e cycles/call-graph=dwarf/ 61 /* Used for thread-local struct callchain_cursor. */ 87 return -1; in parse_callchain_mode() 102 return -1; in parse_callchain_order() 123 return -1; in parse_callchain_sort_key() 140 return -1; in parse_callchain_value() 166 return -1; in get_stack_size() [all …]
|
/Linux-v6.6/drivers/base/ |
D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * property.c - Unified device property interface. 22 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode() 23 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode() 29 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode_const() 30 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode_const() 35 * device_property_present - check if a property of a device is present 50 * fwnode_property_present - check if a property of a firmware node is present 51 * @fwnode: Firmware node whose property to check 68 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present() [all …]
|
/Linux-v6.6/drivers/net/mdio/ |
D | of_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 * ethernet-phy-idAAAA.BBBB */ 37 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument 40 of_fwnode_handle(child), in of_mdiobus_phy_device_register() 46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument 48 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy() 52 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument 54 struct fwnode_handle *fwnode = of_fwnode_handle(child); in of_mdiobus_register_device() 62 /* Associate the OF node with the device structure so it in of_mdiobus_register_device() 66 device_set_node(&mdiodev->dev, fwnode); in of_mdiobus_register_device() [all …]
|
/Linux-v6.6/drivers/regulator/ |
D | of_regulator.c | 1 // 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-v6.6/drivers/powercap/ |
D | dtpm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 * parent node is a virtual description of the aggregation of the 42 return -ENOSYS; in get_time_window_us() 47 return -ENOSYS; in set_time_window_us() 54 *max_power_uw = dtpm->power_max - dtpm->power_min; in get_max_power_range_uw() 61 struct dtpm *child; in __get_power_uw() local 65 if (dtpm->ops) { in __get_power_uw() 66 *power_uw = dtpm->ops->get_power_uw(dtpm); in __get_power_uw() 72 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw() 73 ret = __get_power_uw(child, &power); in __get_power_uw() [all …]
|
/Linux-v6.6/drivers/mtd/ |
D | mtdpart.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> 31 kfree(mtd->name); in free_partition() 37 WARN_ON(!list_empty(&mtd->part.node)); in release_mtd_partition() 46 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition() 47 master->writesize : master->erasesize; in allocate_partition() 49 parent->part.size : parent->size; in allocate_partition() 50 struct mtd_info *child; in allocate_partition() local 56 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition() 57 name = kstrdup(part->name, GFP_KERNEL); in allocate_partition() [all …]
|
/Linux-v6.6/Documentation/networking/ |
D | fib_trie.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 LC-trie implementation notes 7 Node types 8 ---------- 10 An end node with data. This has a copy of the relevant key, along 14 trie node or tnode 15 An internal node, holding an array of child (leaf or tnode) pointers, 19 ------------------------ 22 child array - the "child index". See Level Compression. 26 the child array. See Path Compression. [all …]
|
/Linux-v6.6/drivers/of/ |
D | resolver.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 24 struct device_node *node; in live_tree_max_phandle() local 30 for_each_of_allnodes(node) { in live_tree_max_phandle() 31 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle() 32 node->phandle > phandle) in live_tree_max_phandle() 33 phandle = node->phandle; in live_tree_max_phandle() 43 struct device_node *child; in adjust_overlay_phandles() local 47 /* adjust node's phandle in node */ in adjust_overlay_phandles() 48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles() [all …]
|
D | fdt.c | 1 // SPDX-License-Identifier: GPL-2.0 36 * of_fdt_limit_memory - limit the number of regions in the /memory node 40 * memory entries in the /memory node. This function may be called 60 "#address-cells", NULL); in of_fdt_limit_memory() 65 "#size-cells", NULL); in of_fdt_limit_memory() 83 static bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument 85 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available() 119 pprev = &np->properties; in populate_properties() 147 * ePAPR-style "phandle" properties, or the in populate_properties() 154 if (!np->phandle) in populate_properties() [all …]
|
D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 53 /* use when traversing tree through the child, sibling, 66 node_name = kbasename(np->full_name); in of_node_name_eq() 67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 93 for (; np; np = np->parent) in of_bus_n_addr_cells() 94 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells() 97 /* No #address-cells property for the root node */ in of_bus_n_addr_cells() 103 if (np->parent) in of_n_addr_cells() [all …]
|
/Linux-v6.6/drivers/cpuidle/ |
D | dt_idle_genpd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #define pr_fmt(fmt) "dt-idle-genpd: " fmt 38 ret = -ENOMEM; in pd_parse_state_nodes() 48 i--; in pd_parse_state_nodes() 49 for (; i >= 0; i--) in pd_parse_state_nodes() 86 pd_free_states(pd->states, pd->state_count); in dt_idle_pd_free() 87 kfree(pd->name); in dt_idle_pd_free() 102 pd->name = kasprintf(GFP_KERNEL, "%pOF", np); in dt_idle_pd_alloc() 103 if (!pd->name) in dt_idle_pd_alloc() 108 * for those being compatible with "domain-idle-state". in dt_idle_pd_alloc() [all …]
|
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/core/ |
D | object.c | 35 struct rb_node *node = client->objroot.rb_node; in nvkm_object_search() local 36 while (node) { in nvkm_object_search() 37 object = rb_entry(node, typeof(*object), node); in nvkm_object_search() 38 if (handle < object->object) in nvkm_object_search() 39 node = node->rb_left; in nvkm_object_search() 41 if (handle > object->object) in nvkm_object_search() 42 node = node->rb_right; in nvkm_object_search() 46 return ERR_PTR(-ENOENT); in nvkm_object_search() 48 object = &client->object; in nvkm_object_search() 52 if (unlikely(func && object->func != func)) in nvkm_object_search() [all …]
|