Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/Zephyr-Core-2.7.6/tests/unit/list/
Ddlist.c13 sys_dnode_t node; member
24 sys_dnode_t *node; in verify_emptyness() local
43 SYS_DLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
51 SYS_DLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
60 SYS_DLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
69 SYS_DLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
82 sys_dnode_t *node; in verify_content_amount() local
101 SYS_DLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
110 SYS_DLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
119 SYS_DLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
[all …]
Dslist.c14 sys_snode_t node; member
25 sys_snode_t *node; in verify_emptyness() local
44 SYS_SLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
52 SYS_SLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
61 SYS_SLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
70 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
83 sys_snode_t *node; in verify_content_amount() local
102 SYS_SLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
111 SYS_SLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
120 SYS_SLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
[all …]
Dsflist.c14 sys_sfnode_t node; member
25 sys_sfnode_t *node; in verify_emptyness() local
44 SYS_SFLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
52 SYS_SFLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
61 SYS_SFLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
70 SYS_SFLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
83 sys_sfnode_t *node; in verify_content_amount() local
102 SYS_SFLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
111 SYS_SFLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
120 SYS_SFLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
[all …]
/Zephyr-Core-2.7.6/scripts/kconfig/
Dkconfigfunctions.py57 node = edt.chosen_node(chosen)
58 if not node:
61 if "label" not in node.props:
64 return node.props["label"].val
75 node = edt.chosen_node(chosen)
76 return "y" if node and node.status == "okay" else "n"
87 node = edt.chosen_node(chosen)
89 return node.path if node else ""
92 def dt_node_enabled(kconf, name, node): argument
108 if node.startswith("/"):
[all …]
Dguiconfig.py284 _id_to_node = {str(id(node)): node for node in _kconf.node_iter()}
580 for node in _kconf.node_iter():
581 item = node.item
582 insert("", "end", iid=id_(node),
685 for node in _shown_full_nodes(menu):
686 _add_to_tree(node, _kconf.top_node)
690 if node.list and not isinstance(node.item, Symbol):
691 if _tree.item(id(node), "open"):
692 _build_full_tree(node)
696 shown = _shown_menu_nodes(node)
[all …]
Dmenuconfig.py1134 for node in choice.selection.nodes:
1135 if node in _shown:
1136 _sel_node_i = _shown.index(node)
1141 def _jump_to(node): argument
1156 jump_into = (isinstance(node.item, Choice) or node.item == MENU) and \
1157 node.list
1162 _cur_menu = node
1163 node = node.list
1165 _cur_menu = _parent_menu(node)
1168 if node not in _shown:
[all …]
Dkconfiglib.py1605 node = self.top_node
1608 if node.list:
1609 node = node.list
1610 elif node.next:
1611 node = node.next
1613 while node.parent:
1614 node = node.parent
1617 if node.item is MENU and expr_value(node.dep) and \
1618 expr_value(node.visibility) and \
1619 node is not self.top_node:
[all …]
/Zephyr-Core-2.7.6/include/sys/
Ddlist.h215 static inline void sys_dnode_init(sys_dnode_t *node) in sys_dnode_init() argument
217 node->next = NULL; in sys_dnode_init()
218 node->prev = NULL; in sys_dnode_init()
229 static inline bool sys_dnode_is_linked(const sys_dnode_t *node) in sys_dnode_is_linked() argument
231 return node->next != NULL; in sys_dnode_is_linked()
243 static inline bool sys_dlist_is_head(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_head() argument
245 return list->head == node; in sys_dlist_is_head()
257 static inline bool sys_dlist_is_tail(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_tail() argument
259 return list->tail == node; in sys_dlist_is_tail()
330 sys_dnode_t *node) in sys_dlist_peek_next_no_check() argument
[all …]
Drb.h93 typedef void (*rb_visit_t)(struct rbnode *node, void *cookie);
95 struct rbnode *z_rb_child(struct rbnode *node, uint8_t side);
96 int z_rb_is_black(struct rbnode *node);
98 void z_rb_walk(struct rbnode *node, rb_visit_t visit_fn, void *cookie);
105 void rb_insert(struct rbtree *tree, struct rbnode *node);
110 void rb_remove(struct rbtree *tree, struct rbnode *node);
137 bool rb_contains(struct rbtree *tree, struct rbnode *node);
162 #define _RB_FOREACH_INIT(tree, node) { \ argument
168 #define _RB_FOREACH_INIT(tree, node) { \ argument
199 #define RB_FOR_EACH(tree, node) \ argument
[all …]
Dsflist.h211 static inline sys_sfnode_t *z_sfnode_next_peek(sys_sfnode_t *node) in z_sfnode_next_peek() argument
213 return (sys_sfnode_t *)(node->next_and_flags & ~SYS_SFLIST_FLAGS_MASK); in z_sfnode_next_peek()
216 static inline uint8_t sys_sfnode_flags_get(sys_sfnode_t *node);
226 static inline void z_sflist_head_set(sys_sflist_t *list, sys_sfnode_t *node) in z_sflist_head_set() argument
228 list->head = node; in z_sflist_head_set()
231 static inline void z_sflist_tail_set(sys_sflist_t *list, sys_sfnode_t *node) in z_sflist_tail_set() argument
233 list->tail = node; in z_sflist_tail_set()
270 static inline uint8_t sys_sfnode_flags_get(sys_sfnode_t *node) in sys_sfnode_flags_get() argument
272 return node->next_and_flags & SYS_SFLIST_FLAGS_MASK; in sys_sfnode_flags_get()
288 static inline void sys_sfnode_init(sys_sfnode_t *node, uint8_t flags) in sys_sfnode_init() argument
[all …]
Dlist_gen.h66 sys_ ## __lname ## _peek_next_no_check(sys_ ## __nname ## _t *node) \
68 return z_ ## __nname ## _next_peek(node); \
73 sys_ ## __lname ## _peek_next(sys_ ## __nname ## _t *node) \
75 return node != NULL ? \
76 sys_ ## __lname ## _peek_next_no_check(node) : \
83 sys_ ## __nname ## _t *node) \
85 z_ ## __nname ## _next_set(node, \
87 z_ ## __lname ## _head_set(list, node); \
98 sys_ ## __nname ## _t *node) \
100 z_ ## __nname ## _next_set(node, NULL); \
[all …]
Dslist.h204 static inline sys_snode_t *z_snode_next_peek(sys_snode_t *node) in z_snode_next_peek() argument
206 return node->next; in z_snode_next_peek()
214 static inline void z_slist_head_set(sys_slist_t *list, sys_snode_t *node) in z_slist_head_set() argument
216 list->head = node; in z_slist_head_set()
219 static inline void z_slist_tail_set(sys_slist_t *list, sys_snode_t *node) in z_slist_tail_set() argument
221 list->tail = node; in z_slist_tail_set()
272 static inline sys_snode_t *sys_slist_peek_next_no_check(sys_snode_t *node);
283 static inline sys_snode_t *sys_slist_peek_next(sys_snode_t *node);
296 sys_snode_t *node);
309 sys_snode_t *node);
[all …]
/Zephyr-Core-2.7.6/tests/benchmarks/data_structure_perf/dlist_perf/src/
Ddlist_perf.c21 sys_dnode_t node; member
62 sys_dlist_append(&test_list, &data_node[i].node); in test_dlist_container()
67 SYS_DLIST_FOR_EACH_CONTAINER(&test_list, cnode, node) { in test_dlist_container()
78 SYS_DLIST_FOR_EACH_CONTAINER_SAFE(&test_list, cnode, s_cnode, node) { in test_dlist_container()
107 sys_dnode_t *node, *s_node; in test_dlist_for_each() local
123 sys_dlist_append(&test_list, &data_node[i].node); in test_dlist_for_each()
128 SYS_DLIST_FOR_EACH_NODE(&test_list, node) { in test_dlist_for_each()
129 val = CONTAINER_OF(node, struct container_node, node)->value; in test_dlist_for_each()
139 SYS_DLIST_FOR_EACH_NODE_SAFE(&test_list, node, s_node) { in test_dlist_for_each()
140 val = CONTAINER_OF(node, struct container_node, node)->value; in test_dlist_for_each()
[all …]
/Zephyr-Core-2.7.6/boards/posix/nrf52_bsim/
Dnrf52_bsim.dts38 /delete-node/ flash-controller@4001e000;
39 /delete-node/ memory@20000000;
40 /delete-node/ adc@40007000;
41 /delete-node/ uart@40002000;
42 /delete-node/ gpiote@40006000;
43 /delete-node/ gpio@50000000;
44 /delete-node/ i2c@40003000;
45 /delete-node/ i2c@40004000;
46 /delete-node/ pwm@4001c000;
47 /delete-node/ pwm@40021000;
[all …]
/Zephyr-Core-2.7.6/scripts/dts/
Dgen_defines.py99 nodes, key=lambda node: 0 if node.status == "okay" else 1)
107 for node in sorted(edt.nodes, key=lambda node: node.dep_ordinal):
108 node.z_path_id = node_z_path_id(node)
110 for node in sorted(edt.nodes, key=lambda node: node.dep_ordinal):
111 write_node_comment(node)
120 if node.parent is not None:
125 write_child_functions(node)
126 write_child_functions_status_okay(node)
127 write_dep_info(node)
128 write_idents_and_existence(node)
[all …]
Dgen_dts_cmake.py86 for node in edt.chosen_nodes:
87 path = edt.chosen_nodes[node].path
90 for node in edt.nodes:
93 for label in node.labels:
96 for item in node.props:
98 if "phandle" not in node.props[item].type:
99 if "array" in node.props[item].type:
102 for val in node.props[item].val:
105 cmake_value = node.props[item].val
112 if node.regs is not None:
[all …]
/Zephyr-Core-2.7.6/drivers/ethernet/
Deth.h14 #define NODE_MAC_ADDR_OCTET(node, n) DT_PROP_BY_IDX(node, local_mac_address, n) argument
17 #define NODE_MAC_ADDR_NULL(node) \ argument
18 ((NODE_MAC_ADDR_OCTET(node, 0) == 0) && \
19 (NODE_MAC_ADDR_OCTET(node, 1) == 0) && \
20 (NODE_MAC_ADDR_OCTET(node, 2) == 0) && \
21 (NODE_MAC_ADDR_OCTET(node, 3) == 0) && \
22 (NODE_MAC_ADDR_OCTET(node, 4) == 0) && \
23 (NODE_MAC_ADDR_OCTET(node, 5) == 0))
29 #define NODE_HAS_VALID_MAC_ADDR(node) \ argument
30 UTIL_AND(DT_NODE_HAS_PROP(node, local_mac_address),\
[all …]
/Zephyr-Core-2.7.6/lib/os/
Drb.c79 static int find_and_stack(struct rbtree *tree, struct rbnode *node, in find_and_stack() argument
86 while (stack[sz - 1] != node) { in find_and_stack()
87 uint8_t side = tree->lessthan_fn(node, stack[sz - 1]) ? 0U : 1U; in find_and_stack()
158 struct rbnode *node = stack[stacksz - 1]; in fix_extra_red() local
162 CHECK((get_child(node, 0U) == NULL) || in fix_extra_red()
163 is_black(get_child(node, 0U))); in fix_extra_red()
164 CHECK((get_child(node, 1U) == NULL) || in fix_extra_red()
165 is_black(get_child(node, 1U))); in fix_extra_red()
198 uint8_t parent_side = get_side(parent, node); in fix_extra_red()
202 node = stack[stacksz - 1]; in fix_extra_red()
[all …]
/Zephyr-Core-2.7.6/tests/unit/rbtree/
Dmain.c29 void set_node_mask(int node, int val) in set_node_mask() argument
31 unsigned int *p = &node_mask[node / 32]; in set_node_mask()
32 unsigned int bit = 1u << (node % 32); in set_node_mask()
38 int get_node_mask(int node) in get_node_mask() argument
40 unsigned int *p = &node_mask[node / 32]; in get_node_mask()
41 unsigned int bit = 1u << (node % 32); in get_node_mask()
77 void visit_node(struct rbnode *node, void *cookie) in visit_node() argument
83 walked_nodes[*nwalked] = node; in visit_node()
92 void check_rbnode(struct rbnode *node, int blacks_above) in check_rbnode() argument
94 int side, bheight = blacks_above + z_rb_is_black(node); in check_rbnode()
[all …]
/Zephyr-Core-2.7.6/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py235 node = prop.to_path()
240 ret[name] = self._node2enode[node]
276 for node in self.nodes:
278 for child in node.children.values():
279 self._graph.add_edge(child, node)
283 for prop in node.props.values():
285 self._graph.add_edge(node, prop.val)
288 self._graph.add_edge(node, phandle_node)
293 self._graph.add_edge(node, cd.controller)
297 for intr in node.interrupts:
[all …]
/Zephyr-Core-2.7.6/doc/guides/dts/
Dmacros.bnf13 ; - a <node-macro>, generated for a particular node
15 dt-macro = node-macro / other-macro
18 ; node-macro: a macro related to a node
21 node-macro = property-macro
22 ; A macro about the pinctrl properties in a node.
23 node-macro =/ pinctrl-macro
24 ; EXISTS macro: node exists in the devicetree
25 node-macro =/ %s"DT_N" path-id %s"_EXISTS"
26 ; Bus macros: the plain BUS is a way to access a node's bus controller.
27 ; The additional dt-name suffix is added to match that node's bus type;
[all …]
/Zephyr-Core-2.7.6/tests/subsys/modbus/src/
Dtest_modbus_client.c14 const static uint8_t node = MB_TEST_NODE_ADDR; variable
32 err = modbus_write_coil(client_iface, node, idx, true); in test_coil_wr_rd()
36 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in test_coil_wr_rd()
43 err = modbus_write_coils(client_iface, node, 0, coil, numof); in test_coil_wr_rd()
48 err = modbus_write_coils(client_iface, node, 0, coil, coil_qty); in test_coil_wr_rd()
51 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in test_coil_wr_rd()
57 err = modbus_write_coil(client_iface, node, offset_oor, true); in test_coil_wr_rd()
60 err = modbus_write_coils(client_iface, node, offset_oor, coil, coil_qty); in test_coil_wr_rd()
70 err = modbus_read_dinputs(client_iface, node, 0, di, di_qty); in test_di_rd()
76 err = modbus_read_dinputs(client_iface, node, 0, di, di_qty + 1); in test_di_rd()
[all …]
/Zephyr-Core-2.7.6/scripts/footprint/
Dfpdiff.py46 for node in PreOrderIter(root1):
48 n = find(root2, lambda node2: node2.identifier == node.identifier)
50 if n.size != node.size:
51 diff = n.size - node.size
61 if not node.children:
64 for node in PreOrderIter(root2):
65 n = find(root1, lambda node2: node2.identifier == node.identifier)
67 if not node.children and node.size != 0:
Dupload_data.py69 zr = find(root, lambda node: node.name == 'ZEPHYR_BASE')
70 ws = find(root, lambda node: node.name == 'WORKSPACE')
78 for node in PreOrderIter(root, maxlevel=2):
79 if node.name not in ['WORKSPACE', 'ZEPHYR_BASE']:
80 if node.name in ['Root', 'Symbols']:
81 data['all'] = node.size
83 data[node.name] = node.size
87 for node in PreOrderIter(t, maxlevel=2):
88 if node.name == root:
90 comp = node.name
[all …]
/Zephyr-Core-2.7.6/samples/subsys/modbus/rtu_client/src/
Dmain.c41 static uint8_t node = 1; in main() local
50 err = modbus_write_holding_regs(client_iface, node, 0, holding_reg, in main()
57 err = modbus_read_holding_regs(client_iface, node, 0, holding_reg, in main()
70 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in main()
78 err = modbus_write_coil(client_iface, node, addr++, true); in main()
85 err = modbus_write_coil(client_iface, node, addr++, true); in main()
92 err = modbus_write_coil(client_iface, node, addr++, true); in main()
99 err = modbus_read_coils(client_iface, node, 0, coil, coil_qty); in main()
108 err = modbus_write_coils(client_iface, node, 0, coil, coil_qty); in main()

12345678910>>...16