Home
last modified time | relevance | path

Searched full:node (Results 26 – 50 of 1779) sorted by relevance

12345678910>>...72

/openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/
H A D0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch21 @@ -123,7 +123,7 @@ static unsigned long bval(struct btree_geo *geo, unsigned long *node, int n)
22 return node[geo->no_pairs * geo->keylen + n];
25 -static void setkey(struct btree_geo *geo, unsigned long *node,
26 +static void _setkey(struct btree_geo *geo, unsigned long *node,
29 longcpy(bkey(geo, node, n), key, geo->keylen);
34 - setkey(geo, node, key, i);
35 + _setkey(geo, node, key, i);
38 node = (unsigned long *)bval(geo, node, i);
41 if (head->node) {
42 fill = getfill(geo, head->node, 0);
[all …]
/openbmc/qemu/hw/core/
H A Dnuma.c58 static int max_numa_nodeid; /* Highest specified NUMA node ID, plus one.
62 static void parse_numa_node(MachineState *ms, NumaNodeOptions *node, in parse_numa_node() argument
72 if (node->has_nodeid) { in parse_numa_node()
73 nodenr = node->nodeid; in parse_numa_node()
91 * HMAT is enabled and this node has no cpus, QEMU will raise error. in parse_numa_node()
94 if (node->has_initiator) { in parse_numa_node()
102 if (node->initiator >= MAX_NODES) { in parse_numa_node()
104 "between 0 and %d", node->initiator, in parse_numa_node()
109 numa_info[nodenr].initiator = node->initiator; in parse_numa_node()
112 for (cpus = node->cpus; cpus; cpus = cpus->next) { in parse_numa_node()
[all …]
/openbmc/u-boot/scripts/dtc/
H A Ddtc.h154 struct node { struct
158 struct node *children; argument
160 struct node *parent; argument
161 struct node *next_sibling; argument
202 struct node *build_node(struct property *proplist, struct node *children);
203 struct node *build_node_delete(void);
204 struct node *name_node(struct node *node, char *name);
205 struct node *chain_node(struct node *first, struct node *list);
206 struct node *merge_nodes(struct node *old_node, struct node *new_node);
207 struct node *add_orphan_node(struct node *old_node, struct node *new_node, char *ref);
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D3006 # Tests for dirty bitmaps migration with node aliases
43 self.vm_a.add_blockdev(f'node-name={self.src_node_name},'
48 self.vm_b.add_blockdev(f'node-name={self.dst_node_name},'
54 node=self.src_node_name,
63 node=self.src_node_name,
83 node=self.dst_node_name,
125 'node-name': node_name,
163 for node in mapping:
164 result += f" '{node['node-name']}' -> '{node['alias']}'\n"
166 assert isinstance(node['bitmaps'], list)
[all …]
H A D13945 def checkBlockDriverState(self, node, must_exist = True): argument
47 nodes = [x for x in result['return'] if x['node-name'] == node]
52 def addBlockDriverState(self, node): argument
53 file_node = '%s_file' % node
54 self.checkBlockDriverState(node, False)
57 'node-name': node,
59 'node-name': file_node,
62 self.checkBlockDriverState(node)
66 def addBlockDriverStateOverlay(self, node): argument
67 self.checkBlockDriverState(node, False)
[all …]
/openbmc/qemu/hw/9pfs/
H A D9p-synth.c29 /* Root node for synth file system */
48 V9fsSynthNode *node; in v9fs_add_dir_node() local
52 node = g_new0(V9fsSynthNode, 1); in v9fs_add_dir_node()
55 node->attr = attr; in v9fs_add_dir_node()
56 node->attr->nlink++; in v9fs_add_dir_node()
58 node->attr = &node->actual_attr; in v9fs_add_dir_node()
59 node->attr->inode = inode; in v9fs_add_dir_node()
60 node->attr->nlink = 1; in v9fs_add_dir_node()
62 node->attr->mode = mode; in v9fs_add_dir_node()
63 node->attr->write = NULL; in v9fs_add_dir_node()
[all …]
/openbmc/u-boot/arch/arm/mach-rockchip/
H A Drv1108-board.c24 int node, phy_node; in board_usb_init() local
28 /* find the usb_otg node */ in board_usb_init()
29 node = fdt_node_offset_by_compatible(blob, -1, "rockchip,rk3066-usb"); in board_usb_init()
30 while (node > 0) { in board_usb_init()
31 mode = fdt_getprop(blob, node, "dr_mode", NULL); in board_usb_init()
37 node = fdt_node_offset_by_compatible(blob, node, in board_usb_init()
46 rv1108_otg_data.regs_otg = fdtdec_get_addr(blob, node, "reg"); in board_usb_init()
48 node = fdtdec_lookup_phandle(blob, node, "phys"); in board_usb_init()
49 if (node <= 0) { in board_usb_init()
50 debug("phys node not found\n"); in board_usb_init()
[all …]
/openbmc/u-boot/tools/dtoc/
H A Dfdt_util.py95 def GetInt(node, propname, default=None): argument
99 node: Node object to read from
101 default: Default value to use if the node/property do not exist
106 prop = node.props.get(propname)
110 raise ValueError("Node '%s' property '%s' has list value: expecting "
111 "a single integer" % (node.name, propname))
115 def GetString(node, propname, default=None): argument
119 node: Node object to read from
121 default: Default value to use if the node/property do not exist
126 prop = node.props.get(propname)
[all …]
H A Dtest_fdt27 def _GetPropertyValue(dtb, node, prop_name): argument
35 node: Node to look in
43 prop = node.props[prop_name]
72 self.assertTrue(isinstance(root, fdt.Node))
76 node = self.dtb.GetNode('/spl-test')
77 self.assertTrue(isinstance(node, fdt.Node))
78 node = self.dtb.GetNode('/i2c@0/pmic@9')
79 self.assertTrue(isinstance(node, fdt.Node))
80 self.assertEqual('pmic@9', node.name)
105 node = self.dtb.GetNode('/spl-test')
[all …]
H A Dtest_fdt.py27 def _GetPropertyValue(dtb, node, prop_name): argument
35 node: Node to look in
43 prop = node.props[prop_name]
72 self.assertTrue(isinstance(root, fdt.Node))
76 node = self.dtb.GetNode('/spl-test')
77 self.assertTrue(isinstance(node, fdt.Node))
78 node = self.dtb.GetNode('/i2c@0/pmic@9')
79 self.assertTrue(isinstance(node, fdt.Node))
80 self.assertEqual('pmic@9', node.name)
105 node = self.dtb.GetNode('/spl-test')
[all …]
H A Dfdt.py15 # This deals with a device tree, presenting it as an assortment of Node and
40 def __init__(self, node, offset, name, bytes): argument
41 self._node = node
202 node = self._node
203 fdt_obj = node._fdt._fdt_obj
205 while fdt_obj.setprop(node.Offset(), self.name, self.bytes,
208 fdt_obj.setprop(node.Offset(), self.name, self.bytes)
210 fdt_obj.setprop(node.Offset(), self.name, self.bytes)
213 class Node: class
214 """A device tree node
[all …]
H A Ddtb_platdata.py110 def get_compat_name(node): argument
111 """Get a node's first compatible string as a C identifier
114 node: Node object to check
121 compat = node.props['compatible'].value
138 _valid_nodes: A list of Node object with compatible strings
203 """Check if a node contains phandles
205 We have no reliable way of detecting whether a node uses a phandle
231 raise ValueError("Cannot parse '%s' in node '%s'" %
236 raise ValueError("Node '%s' has no '%s' property" %
249 device tree root node, and progress from there.
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dqgraph.c38 char *before_cmd_line; /* added before node cmd_line */
51 QOSGraphNode *node; member
57 /* Each entry in these hash table will consist of <string, node/edge> pair. */
67 * from @source to @dest node, and inserts it in the
129 * create_node(): creates a node @name of type @type
131 * By default, node is not available.
136 g_printerr("Node %s already created\n", name); in create_node()
140 QOSGraphNode *node = g_new0(QOSGraphNode, 1); in create_node() local
141 node->type = type; in create_node()
142 node->available = false; in create_node()
[all …]
H A Dqgraph_internal.h45 /* node types*/
53 /* Graph Node */
58 char *name; /* used to identify the node */
84 * qos_graph_get_node(): returns the node mapped to that @key.
93 * qos_graph_has_node(): returns #TRUE if the node
94 * has map has a node mapped to that @key.
96 bool qos_graph_has_node(const char *node);
100 * of the node @node.
105 QOSNodeType qos_graph_get_node_type(const char *node);
109 * of the node @node.
[all …]
/openbmc/qemu/tests/qtest/
H A Dnuma-test.c28 cli = make_cli(data, "-machine smp.cpus=8 -numa node,nodeid=0,memdev=ram,cpus=0-3 " in test_mon_explicit()
29 "-numa node,nodeid=1,cpus=4-7"); in test_mon_explicit()
33 g_assert(strstr(s, "node 0 cpus: 0 1 2 3")); in test_mon_explicit()
34 g_assert(strstr(s, "node 1 cpus: 4 5 6 7")); in test_mon_explicit()
46 "-numa node,memdev=ram -numa node"); in test_def_cpu_split()
50 g_assert(strstr(s, "node 0 cpus: 0 2 4 6")); in test_def_cpu_split()
51 g_assert(strstr(s, "node 1 cpus: 1 3 5 7")); in test_def_cpu_split()
63 "-numa node,nodeid=0,memdev=ram,cpus=0-1 " in test_mon_partial()
64 "-numa node,nodeid=1,cpus=4-5 "); in test_mon_partial()
68 g_assert(strstr(s, "node 0 cpus: 0 1 2 3 6 7")); in test_mon_partial()
[all …]
/openbmc/qemu/hw/virtio/
H A Diothread-vq-mapping.c21 for (IOThreadVirtQueueMappingList *node = list; node; node = node->next) { in iothread_vq_mapping_validate() local
22 const char *name = node->value->iothread; in iothread_vq_mapping_validate()
37 if (node != list) { in iothread_vq_mapping_validate()
38 if (!!node->value->vqs != !!list->value->vqs) { in iothread_vq_mapping_validate()
45 for (vq = node->value->vqs; vq; vq = vq->next) { in iothread_vq_mapping_validate()
81 IOThreadVirtQueueMappingList *node; in iothread_vq_mapping_apply() local
89 for (node = list; node; node = node->next) { in iothread_vq_mapping_apply()
93 for (node = list; node; node = node->next) { in iothread_vq_mapping_apply()
94 IOThread *iothread = iothread_by_id(node->value->iothread); in iothread_vq_mapping_apply()
100 if (node->value->vqs) { in iothread_vq_mapping_apply()
[all …]
/openbmc/u-boot/fs/jffs2/
H A Djffs2_private.h18 int (*listCompare)(struct b_node *new, struct b_node *node);
42 hdr_crc(struct jffs2_unknown_node *node) in hdr_crc() argument
45 u32 crc = crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); in hdr_crc()
48 u32 crc = crc32_no_comp(~0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4); in hdr_crc()
52 if (node->hdr_crc != crc) { in hdr_crc()
60 dirent_crc(struct jffs2_raw_dirent *node) in dirent_crc() argument
62 …if (node->node_crc != crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_raw_dirent) - 8)… in dirent_crc()
70 dirent_name_crc(struct jffs2_raw_dirent *node) in dirent_name_crc() argument
72 if (node->name_crc != crc32_no_comp(0, (unsigned char *)&(node->name), node->nsize)) { in dirent_name_crc()
80 inode_crc(struct jffs2_raw_inode *node) in inode_crc() argument
[all …]
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dinactive-node-nbd.out6 === Creating export of inactive node ===
10 {"execute": "block-export-add", "arguments": {"id": "exp0", "node-name": "disk-fmt", "type": "nbd",…
14 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]}
21 {"execute": "blockdev-set-active", "arguments": {"active": false, "node-name": "disk-fmt"}}
24 {"execute": "block-export-add", "arguments": {"allow-inactive": false, "id": "exp0", "node-name": "…
28 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]}
35 {"execute": "blockdev-set-active", "arguments": {"active": false, "node-name": "disk-fmt"}}
38 {"execute": "block-export-add", "arguments": {"allow-inactive": true, "id": "exp0", "node-name": "d…
42 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]}
48 === Inactivating node with existing export ===
[all …]
/openbmc/boost-dbus/test/
H A DdbusPropertiesServer.cpp14 "<!DOCTYPE node PUBLIC "
26 EXPECT_EQ(foo.get_xml_for_path("/"), dbus_boilerplate + "<node></node>"); in TEST()
27 EXPECT_EQ(foo.get_xml_for_path(""), dbus_boilerplate + "<node></node>"); in TEST()
41 "<node><node " in TEST()
42 "name=\"org\"></node></node>"); in TEST()
44 "<node><node " in TEST()
45 "name=\"org\"></node></node>"); in TEST()
49 "<node><node " in TEST()
50 "name=\"freedesktop\"></node></node>"); in TEST()
53 "<node><node " in TEST()
[all …]
/openbmc/u-boot/include/
H A Dfdtdec.h169 int node; member
175 * fdtdec_parse_phandle_with_args() - Find a node pointed by phandle in a list
193 * To get a device_node of the `node2' node you may call this:
201 * @src_node: Offset of device tree node containing a list
225 * this function will return a pointer to the node the alias points to, and
226 * then update *upto to 1. Next time you call this function, the next node
235 * @return offset of next compatible node, or -FDT_ERR_NOTFOUND if no more
241 * Find the compatible ID for a given node.
243 * Generally each node has at least one compatible string attached to it.
248 * @param node Node containing compatible string to find
[all …]
/openbmc/u-boot/include/dm/
H A Dof_access.h23 * of_find_all_nodes - Get next node in global list
24 * @prev: Previous node or NULL to start iteration
27 * Returns a node pointer with refcount incremented, use
41 * of_n_addr_cells() - Get the number of address cells for a node
44 * which controls the given node.
46 * @np: Node pointer to check
47 * @return number of address cells this node uses
52 * of_n_size_cells() - Get the number of size cells for a node
55 * which controls the given node.
57 * @np: Node pointer to check
[all …]
/openbmc/u-boot/test/dm/
H A Dofnode.c25 ofnode node = ofnode_null(); in dm_test_ofnode_by_prop_value() local
27 /* Find first matching node, there should be at least one */ in dm_test_ofnode_by_prop_value()
28 node = ofnode_by_prop_value(node, propname, propval, sizeof(propval)); in dm_test_ofnode_by_prop_value()
29 ut_assert(ofnode_valid(node)); in dm_test_ofnode_by_prop_value()
30 str = ofnode_read_string(node, propname); in dm_test_ofnode_by_prop_value()
35 node = ofnode_by_prop_value(node, propname, propval, in dm_test_ofnode_by_prop_value()
37 if (!ofnode_valid(node)) in dm_test_ofnode_by_prop_value()
39 str = ofnode_read_string(node, propname); in dm_test_ofnode_by_prop_value()
50 ofnode node; in dm_test_ofnode_fmap() local
52 node = ofnode_path("/cros-ec/flash"); in dm_test_ofnode_fmap()
[all …]
/openbmc/u-boot/fs/ubifs/
H A Dubifs-media.h16 * with the UBIFS node magic number and have the same common header. Nodes
17 * always sit at 8-byte aligned positions on the media and node header sizes are
18 * also 8-byte aligned (except for the indexing node and the padding node).
24 /* UBIFS node magic number (must not have the padding byte first or last) */
67 * node uncompress, because it'll be read faster.
90 * the maximum amount of data which one data node can have or which can be
91 * attached to an inode node.
96 /* UBIFS padding byte pattern (must not be first or last byte of node magic) */
134 * LEB Properties Tree node types.
136 * UBIFS_LPT_PNODE: LPT leaf node (contains LEB properties)
[all …]
/openbmc/qemu/hw/xen/
H A Dxen-bus-helper.c51 const char *node, unsigned int owner, unsigned int domid, in xs_node_create() argument
54 trace_xs_node_create(node); in xs_node_create()
56 if (!qemu_xen_xs_create(h, tid, owner, domid, perms, node)) { in xs_node_create()
57 error_setg_errno(errp, errno, "failed to create node '%s'", node); in xs_node_create()
62 const char *node, Error **errp) in xs_node_destroy() argument
64 trace_xs_node_destroy(node); in xs_node_destroy()
66 if (!qemu_xen_xs_destroy(h, tid, node)) { in xs_node_destroy()
67 error_setg_errno(errp, errno, "failed to destroy node '%s'", node); in xs_node_destroy()
72 const char *node, const char *key, Error **errp, in xs_node_vprintf() argument
78 path = (strlen(node) != 0) ? g_strdup_printf("%s/%s", node, key) : in xs_node_vprintf()
[all …]
/openbmc/libbej/test/
H A Dbej_tree_test.cpp13 struct RedfishPropertyParent node; in TEST() local
14 bejTreeInitSet(&node, name); in TEST()
16 EXPECT_THAT(node.nodeAttr.name, name); in TEST()
17 EXPECT_THAT(node.nodeAttr.format.principalDataType, bejSet); in TEST()
18 EXPECT_THAT(node.nodeAttr.format.deferredBinding, 0); in TEST()
19 EXPECT_THAT(node.nodeAttr.format.readOnlyProperty, 0); in TEST()
20 EXPECT_THAT(node.nodeAttr.format.nullableProperty, 0); in TEST()
21 EXPECT_THAT(node.nodeAttr.sibling, nullptr); in TEST()
22 EXPECT_THAT(node.nChildren, 0); in TEST()
23 EXPECT_THAT(node.firstChild, nullptr); in TEST()
[all …]

12345678910>>...72