/openbmc/libbej/src/ |
H A D | bej_encoder_core.c | 17 RETURN_IF_IERROR(output->recvOutput(&nnintLengthByte, sizeof(uint8_t), in bejEncodeNnint() 18 output->handlerContext)); in bejEncodeNnint() 20 return output->recvOutput(&value, nnintLengthByte, output->handlerContext); in bejEncodeNnint() 29 return output->recvOutput(format, sizeof(struct BejTupleF), in bejEncodeFormat() 30 output->handlerContext); in bejEncodeFormat() 40 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.sequenceNumber, output)); in bejEncodeBejSetOrArray() 42 RETURN_IF_IERROR(bejEncodeFormat(&node->nodeAttr.format, output)); in bejEncodeBejSetOrArray() 44 RETURN_IF_IERROR(bejEncodeNnint(node->metaData.vSize, output)); in bejEncodeBejSetOrArray() 45 // Encode the child count in bejEncodeBejSetOrArray() 46 return bejEncodeNnint(node->nChildren, output); in bejEncodeBejSetOrArray() [all …]
|
H A D | bej_encoder_metadata.c | 21 * byte2: integer length [0-8]] 40 * @param[in] name - property name. 55 * @param[in] dictionaries - available dictionaries for encoding. 56 * @param[in] parentDictionary - dictionary used for the parent of this node. 57 * @param[in] nodeName - name of the interested node. Can be NULL if the node 72 // annotation. Therefore the child (this node) should be an annotation too in bejGetRelatedDictionary() 75 if (parentDictionary == dictionaries->annotationDictionary) in bejGetRelatedDictionary() 77 return dictionaries->annotationDictionary; in bejGetRelatedDictionary() 79 return bejIsAnnotation(nodeName) ? dictionaries->annotationDictionary in bejGetRelatedDictionary() 80 : dictionaries->schemaDictionary; in bejGetRelatedDictionary() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-fsi.txt | 1 Device-tree bindings for FSI-attached I2C master and busses 2 ----------------------------------------------------------- 5 - compatible = "ibm,i2c-fsi"; 6 - reg = < address size >; : The FSI CFAM address and address 8 - #address-cells = <1>; : Number of address cells in child 9 nodes. 10 - #size-cells = <0>; : Number of size cells in child nodes. 11 - child nodes : Nodes to describe busses off the I2C 14 Child node required properties: 15 - reg = < port number > : The port number on the I2C master. [all …]
|
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 …]
|
/openbmc/linux/include/linux/ |
H A 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() 52 uint16_t child; member 59 /* Maximum size of boot config is 32KB - 1 */ 60 #define XBC_DATA_MAX (XBC_VALUE - 1) 75 * xbc_node_is_value() - Test the node is a value node 82 return node->data & XBC_VALUE; in xbc_node_is_value() 86 * xbc_node_is_key() - Test the node is a key node [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/doc/device-tree-bindings/i2c/ |
H A D | i2c-mux.txt | 3 An i2c bus multiplexer/switch will have several child busses that are 4 numbered uniquely in a device dependent manner. The nodes for an i2c bus 5 multiplexer/switch will have one child node for each child 9 - #address-cells = <1>; 10 - #size-cells = <0>; 12 Required properties for child nodes: 13 - #address-cells = <1>; 14 - #size-cells = <0>; 15 - reg : The sub-bus number. 17 Optional properties for child nodes: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/cpu/ |
H A D | cpu-topology.txt | 6 1 - Introduction 12 - socket 13 - cluster 14 - core 15 - thread 18 symmetric multi-threading (SMT) is supported or not. 20 For instance in a system where CPUs support SMT, "cpu" nodes represent all 22 In systems where SMT is not supported "cpu" nodes represent all cores present 25 CPU topology bindings allow one to associate cpu nodes with hierarchical groups 27 tree nodes. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | arm,pl172.txt | 5 - compatible: Must be "arm,primecell" and exactly one from 8 - reg: Must contains offset/length value for controller. 10 - #address-cells: Must be 2. The partition number has to be encoded in the 11 first address cell and it may accept values 0..N-1 12 (N - total number of partitions). The second cell is the 15 - #size-cells: Must be set to 1. 17 - ranges: Must contain one or more chip select memory regions. 19 - clocks: Must contain references to controller clocks. 21 - clock-names: Must contain "mpmcclk" and "apb_pclk". 23 - clock-ranges: Empty property indicating that child nodes can inherit [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/w1/ |
H A D | w1-gpio.txt | 1 W1 gpio device binding - one wire protocol over bitbanged gpio 5 Child nodes are required in device tree. The driver will detect 6 the devices serial number and then search in the child nodes in the device tree 9 Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers 12 - drivers/w1/w1-gpio.c 14 Software w1 device-tree node properties: 16 * compatible = "w1-gpio"; 26 compatible = "w1-gpio"; 30 Example with child: 33 compatible = "w1-gpio";
|
H A D | mxc-w1.txt | 4 Child nodes are required in device tree. The driver will detect 5 the devices serial number and then search in the child nodes in the device tree 8 Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers 11 - drivers/w1/mxc_w1.c 14 - compatible : should be one of 15 "fsl,imx21-owire", "fsl,imx27-owire", "fsl,imx31-owire", "fsl,imx25-owire" 16 "fsl,imx25-owire", "fsl,imx35-owire", "fsl,imx50-owire", "fsl,imx53-owire" 18 - reg : Address and length of the register set for the device 25 compatible = "fsl,imx53-owire"; 29 Example with child: [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/bmcweb/http/ |
H A D | routing.hpp | 63 Trie() : nodes(1) {} in Trie() 70 optimizeNode(nodes[node.stringParamChild]); in optimizeNode() 74 optimizeNode(nodes[node.pathParamChild]); in optimizeNode() 87 Node& child = nodes[kv.second]; in optimizeNode() local 88 if (child.isSimpleNode()) in optimizeNode() 91 child.children) in optimizeNode() 111 optimizeNode(nodes[kv.second]); in optimizeNode() 133 const Node& child = nodes[kv.second]; in findRouteIndexesHelper() local 136 if (child.ruleIndex != 0 && fragment != "/") in findRouteIndexesHelper() 138 routeIndexes.push_back(child.ruleIndex); in findRouteIndexesHelper() [all …]
|
/openbmc/linux/Documentation/devicetree/ |
H A D | of_unittest.rst | 1 .. SPDX-License-Identifier: GPL-2.0 18 (1) Documentation/devicetree/usage-model.rst 45 from 'scripts/dtc/of_unittest_expect --help'. 48 3. Test-data 51 The Device Tree Source file (drivers/of/unittest-data/testcases.dts) contains 56 drivers/of/unittest-data/tests-interrupts.dtsi 57 drivers/of/unittest-data/tests-platform.dtsi 58 drivers/of/unittest-data/tests-phandle.dtsi 59 drivers/of/unittest-data/tests-match.dtsi 81 ------------------------- [all …]
|
/openbmc/u-boot/include/power/ |
H A D | pmic.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Copyright (C) 2014-2015 Samsung Electronics 6 * Copyright (C) 2011-2012 Samsung Electronics 89 * U-Boot PMIC Framework 92 * UCLASS_PMIC - This is designed to provide an I/O interface for PMIC devices. 94 * For the multi-function PMIC devices, this can be used as parent I/O device 95 * for each IC's interface. Then, each child uses its parent for read/write. 100 * |_ BUS 0 device (e.g. I2C0) - UCLASS_I2C/SPI/... 101 * | |_ PMIC device (READ/WRITE ops) - UCLASS_PMIC 102 * | |_ REGULATOR device (ldo/buck/... ops) - UCLASS_REGULATOR [all …]
|
/openbmc/linux/drivers/of/ |
H A D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 #include <linux/dma-mapping.h> 27 { .compatible = "simple-bus", }, 28 { .compatible = "simple-mfd", }, 31 { .compatible = "arm,amba-bus", }, 37 * of_find_device_by_node - Find the platform_device associated with a node 56 BUG_ON(ofdev->dev.of_node == NULL); in of_device_add() 60 ofdev->name = dev_name(&ofdev->dev); in of_device_add() 61 ofdev->id = PLATFORM_DEVID_NONE; in of_device_add() 68 set_dev_node(&ofdev->dev, of_node_to_nid(ofdev->dev.of_node)); in of_device_add() [all …]
|
/openbmc/qemu/util/ |
H A D | interval-tree.c | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 #include "qemu/interval-tree.h" 10 * For now, don't expose Linux Red-Black Trees separately, but retain the 18 * red-black trees properties: https://en.wikipedia.org/wiki/Rbtree 25 * of black nodes. 28 * consecutive red nodes in a path and every red node is therefore followed by 29 * a black. So if B is the number of black nodes on every simple path (as per 32 * We shall indicate color with case, where black nodes are uppercase and red 33 * nodes will be lowercase. Unknown color nodes shall be drawn as red within 42 * These two requirements will allow lockless iteration of the tree -- not [all …]
|
/openbmc/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> 66 shift -= 2; in count_ports() 96 shift = 16 - ((port_index + 5) & 7) * 2; in get_port_type() 108 node->color = color; in fw_node_create() 109 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create() 110 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create() 111 node->phy_speed = SELF_ID_PHY_SPEED(sid); in fw_node_create() 112 node->initiated_reset = SELF_ID_PHY_INITIATOR(sid); in fw_node_create() [all …]
|
/openbmc/linux/Documentation/sphinx/ |
H A D | rstFlatTable.py | 2 # -*- coding: utf-8; mode: python -*- 6 flat-table 9 Implementation of the ``flat-table`` reST-directive. 14 The ``flat-table`` (:py:class:`FlatTable`) is a double-stage list similar to 15 the ``list-table`` with some additional features: 17 * *column-span*: with the role ``cspan`` a cell can be extended through 20 * *row-span*: with the role ``rspan`` a cell can be extended through 24 right side of that table-row. With Option ``:fill-cells:`` this behavior 30 * header-rows: [int] count of header rows 31 * stub-columns: [int] count of stub columns [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/static/js/ |
H A D | jquery.treetable.js | 3 * http://ludo.cubicphuse.nl/jquery-treetable 38 Node.prototype.addChild = function(child) { argument 39 return this.children.push(child); 131 Node.prototype.removeChild = function(child) { argument 132 var i = $.inArray(child, this.children); 200 var child, _i, _len, _ref, _results; 204 child = _ref[_i]; 205 _results.push(child.hide()); 229 var child, _i, _len, _ref, _results; 233 child = _ref[_i]; [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/drivers/power/domain/ |
H A D | imx8-power-domain.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <power-domain-uclass.h> 10 #include <asm/arch/power-domain.h> 11 #include <dm/device-internal.h> 37 struct udevice *dev = power_domain->dev; in imx8_power_domain_on() 57 debug("%s(power_domain=%s) resource_id %d\n", __func__, dev->name, in imx8_power_domain_on() 58 pdata->resource_id); in imx8_power_domain_on() 61 if (ppriv->state_on) in imx8_power_domain_on() 64 if (pdata->resource_id != SC_R_LAST) { in imx8_power_domain_on() 65 ret = sc_pm_set_resource_power_mode(-1, pdata->resource_id, in imx8_power_domain_on() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ina3221.txt | 5 - compatible: Must be "ti,ina3221" 6 - reg: I2C address 9 - ti,single-shot: This chip has two power modes: single-shot (chip takes one 13 but the single-shot mode is more power-friendly and useful 14 for battery-powered device which cares power consumptions 16 If this property is present, the single-shot mode will be 19 = The node contains optional child nodes for three channels = 20 = Each child node describes the information of input source = 22 - #address-cells: Required only if a child node is present. Must be 1. 23 - #size-cells: Required only if a child node is present. Must be 0. [all …]
|
/openbmc/u-boot/Documentation/sphinx/ |
H A D | rstFlatTable.py | 2 # -*- coding: utf-8; mode: python -*- 6 flat-table 9 Implementation of the ``flat-table`` reST-directive. 14 The ``flat-table`` (:py:class:`FlatTable`) is a double-stage list similar to 15 the ``list-table`` with some additional features: 17 * *column-span*: with the role ``cspan`` a cell can be extended through 20 * *row-span*: with the role ``rspan`` a cell can be extended through 24 right side of that table-row. With Option ``:fill-cells:`` this behavior 30 * header-rows: [int] count of header rows 31 * stub-columns: [int] count of stub columns [all …]
|