Home
last modified time | relevance | path

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

12345678910>>...45

/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_uac2_macros.h28 #define ARRAY_ELEMENT_LESS_THAN_NEXT(node, prop, idx) \ argument
29 COND_CODE_1(IS_EQ(idx, UTIL_DEC(DT_PROP_LEN(node, prop))), \
31 ((DT_PROP_BY_IDX(node, prop, idx) < \
32 DT_PROP_BY_IDX(node, prop, UTIL_INC(idx)))))
33 #define IS_ARRAY_SORTED(node, prop) \ argument
34 DT_FOREACH_PROP_ELEM_SEP(node, prop, ARRAY_ELEMENT_LESS_THAN_NEXT, (&&))
118 #define DESCRIPTOR_NAME(prefix, node) uac2_## prefix ## _ ## node argument
231 #define AUDIO_STREAMING_DATA_ENDPOINT_CONTROLS(node) \ argument
232 CONTROL_BITS(node, pitch_control, 0) | \
233 CONTROL_BITS(node, data_overrun_control, 2) | \
[all …]
/Zephyr-latest/tests/unit/list/
Dslist.c14 sys_snode_t node; member
25 sys_snode_t *node; in verify_emptyness() local
48 SYS_SLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
56 SYS_SLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
65 SYS_SLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
74 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
87 sys_snode_t *node; in verify_content_amount() local
110 SYS_SLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
119 SYS_SLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
128 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
48 SYS_SFLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
56 SYS_SFLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
65 SYS_SFLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
74 SYS_SFLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
87 sys_sfnode_t *node; in verify_content_amount() local
110 SYS_SFLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
119 SYS_SFLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
128 SYS_SFLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
[all …]
Ddlist.c13 sys_dnode_t node; member
24 sys_dnode_t *node; in verify_emptyness() local
47 SYS_DLIST_FOR_EACH_NODE(list, node) { in verify_emptyness()
55 SYS_DLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_emptyness()
64 SYS_DLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_emptyness()
73 SYS_DLIST_FOR_EACH_CONTAINER_SAFE(list, cnode, s_cnode, node) { in verify_emptyness()
86 sys_dnode_t *node; in verify_content_amount() local
109 SYS_DLIST_FOR_EACH_NODE(list, node) { in verify_content_amount()
118 SYS_DLIST_FOR_EACH_NODE_SAFE(list, node, s_node) { in verify_content_amount()
127 SYS_DLIST_FOR_EACH_CONTAINER(list, cnode, node) { in verify_content_amount()
[all …]
/Zephyr-latest/include/zephyr/sensing/
Dsensing_sensor.h132 #define SENSING_SENSOR_INFO_NAME(node, idx) \ argument
133 _CONCAT(_CONCAT(__sensing_sensor_info_, idx), DEVICE_DT_NAME_GET(node))
145 #define SENSING_SENSOR_INFO_DEFINE(node, idx) \ argument
147 SENSING_SENSOR_INFO_NAME(node, idx)) = { \
148 .type = DT_PROP_BY_IDX(node, sensor_types, idx), \
149 .name = DT_NODE_FULL_NAME(node), \
150 .friendly_name = DT_PROP(node, friendly_name), \
151 .vendor = DT_NODE_VENDOR_OR(node, NULL), \
152 .model = DT_NODE_MODEL_OR(node, NULL), \
153 .minimal_interval = DT_PROP(node, minimal_interval), \
[all …]
/Zephyr-latest/include/zephyr/drivers/stepper/
Dstepper_trinamic.h83 #define CHECK_RAMP_DT_DATA(node) \ argument
84 COND_CODE_1(DT_PROP_EXISTS(node, vstart), \
85 BUILD_ASSERT(IN_RANGE(DT_PROP(node, vstart), TMC_RAMP_VSTART_MIN, \
87 COND_CODE_1(DT_PROP_EXISTS(node, v1), \
88 BUILD_ASSERT(IN_RANGE(DT_PROP(node, v1), TMC_RAMP_V1_MIN, \
90 COND_CODE_1(DT_PROP_EXISTS(node, vmax), \
91 BUILD_ASSERT(IN_RANGE(DT_PROP(node, vmax), TMC_RAMP_VMAX_MIN, \
93 COND_CODE_1(DT_PROP_EXISTS(node, a1), \
94 BUILD_ASSERT(IN_RANGE(DT_PROP(node, a1), TMC_RAMP_A1_MIN, \
96 COND_CODE_1(DT_PROP_EXISTS(node, amax), \
[all …]
/Zephyr-latest/scripts/kconfig/
Dkconfigfunctions.py68 node = edt.chosen_node(chosen)
69 if not node:
72 if "label" not in node.props:
73 return node.name
75 return node.props["label"].val
86 node = edt.chosen_node(chosen)
87 return "y" if node and node.status == "okay" else "n"
98 node = edt.chosen_node(chosen)
100 return node.path if node else ""
110 node = edt.chosen_node(chosen)
[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 …]
/Zephyr-latest/soc/silabs/common/
Dpinctrl_soc.h46 #define Z_PINCTRL_SILABS_MODE_INIT(node) \ argument
47 (DT_PROP(node, drive_push_pull) ? (4 + DT_PROP(node, silabs_alternate_port_control)) \
48 : DT_PROP(node, drive_open_source) ? (6 + DT_PROP(node, bias_pull_down)) \
49 : DT_PROP(node, drive_open_drain) \
50 ? (8 + DT_PROP(node, silabs_input_filter) + 2 * DT_PROP(node, bias_pull_up) + \
51 4 * DT_PROP(node, silabs_alternate_port_control)) \
52 : DT_PROP(node, input_enable) \
53 ? ((DT_PROP(node, bias_pull_down) || DT_PROP(node, bias_pull_up)) \
54 ? (2 + DT_PROP(node, silabs_input_filter)) \
58 #define Z_PINCTRL_SILABS_DOUT_INIT(node) \ argument
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_tx_queue/src/
Dmain.c34 struct node_tx *node; in ZTEST() local
40 node = ull_tx_q_dequeue(&tx_q); in ZTEST()
41 zassert_equal_ptr(node, NULL, ""); in ZTEST()
52 struct node_tx *node; in ZTEST() local
64 node = ull_tx_q_dequeue(&tx_q); in ZTEST()
65 zassert_equal_ptr(node, &ctrl_nodes1[i], NULL); in ZTEST()
69 node = ull_tx_q_dequeue(&tx_q); in ZTEST()
70 zassert_equal_ptr(node, NULL, ""); in ZTEST()
81 struct node_tx *node; in ZTEST() local
93 node = ull_tx_q_dequeue(&tx_q); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/sys/
Ddlist.h219 static inline void sys_dnode_init(sys_dnode_t *node) in sys_dnode_init() argument
221 node->next = NULL; in sys_dnode_init()
222 node->prev = NULL; in sys_dnode_init()
233 static inline bool sys_dnode_is_linked(const sys_dnode_t *node) in sys_dnode_is_linked() argument
235 return node->next != NULL; in sys_dnode_is_linked()
247 static inline bool sys_dlist_is_head(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_head() argument
249 return list->head == node; in sys_dlist_is_head()
261 static inline bool sys_dlist_is_tail(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_tail() argument
263 return list->tail == node; in sys_dlist_is_tail()
334 sys_dnode_t *node) in sys_dlist_peek_next_no_check() argument
[all …]
Drb.h110 typedef void (*rb_visit_t)(struct rbnode *node, void *cookie);
112 struct rbnode *z_rb_child(struct rbnode *node, uint8_t side);
113 int z_rb_is_black(struct rbnode *node);
115 void z_rb_walk(struct rbnode *node, rb_visit_t visit_fn, void *cookie);
122 void rb_insert(struct rbtree *tree, struct rbnode *node);
127 void rb_remove(struct rbtree *tree, struct rbnode *node);
154 bool rb_contains(struct rbtree *tree, struct rbnode *node);
179 #define _RB_FOREACH_INIT(tree, node) { \ argument
185 #define _RB_FOREACH_INIT(tree, node) { \ argument
216 #define RB_FOR_EACH(tree, node) \ argument
[all …]
Dsflist.h221 static inline sys_sfnode_t *z_sfnode_next_peek(sys_sfnode_t *node) in z_sfnode_next_peek() argument
223 return (sys_sfnode_t *)(node->next_and_flags & ~SYS_SFLIST_FLAGS_MASK); in z_sfnode_next_peek()
226 static inline uint8_t sys_sfnode_flags_get(sys_sfnode_t *node);
236 static inline void z_sflist_head_set(sys_sflist_t *list, sys_sfnode_t *node) in z_sflist_head_set() argument
238 list->head = node; in z_sflist_head_set()
241 static inline void z_sflist_tail_set(sys_sflist_t *list, sys_sfnode_t *node) in z_sflist_tail_set() argument
243 list->tail = node; in z_sflist_tail_set()
281 static inline uint8_t sys_sfnode_flags_get(sys_sfnode_t *node) in sys_sfnode_flags_get() argument
283 return node->next_and_flags & SYS_SFLIST_FLAGS_MASK; in sys_sfnode_flags_get()
300 static inline void sys_sfnode_init(sys_sfnode_t *node, uint8_t flags) in sys_sfnode_init() argument
[all …]
/Zephyr-latest/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 ZTEST()
67 SYS_DLIST_FOR_EACH_CONTAINER(&test_list, cnode, node) { in ZTEST()
78 SYS_DLIST_FOR_EACH_CONTAINER_SAFE(&test_list, cnode, s_cnode, node) { in ZTEST()
107 sys_dnode_t *node, *s_node; in ZTEST() local
123 sys_dlist_append(&test_list, &data_node[i].node); in ZTEST()
128 SYS_DLIST_FOR_EACH_NODE(&test_list, node) { in ZTEST()
129 val = CONTAINER_OF(node, struct container_node, node)->value; in ZTEST()
139 SYS_DLIST_FOR_EACH_NODE_SAFE(&test_list, node, s_node) { in ZTEST()
140 val = CONTAINER_OF(node, struct container_node, node)->value; in ZTEST()
[all …]
/Zephyr-latest/boards/native/nrf_bsim/
Dnrf5340bsim_nrf5340_cpuapp.dts50 /delete-node/ memory@20000000;
52 /delete-node/ dcnf@0;
53 /delete-node/ oscillator@4000;
54 /delete-node/ regulator@4000;
55 /delete-node/ ctrlap@6000;
56 /delete-node/ i2c@8000;
57 /delete-node/ spi@8000;
58 /delete-node/ i2c@9000;
59 /delete-node/ spi@9000;
60 /delete-node/ spi@a000;
[all …]
Dnrf54l15bsim_nrf54l15_cpuapp.dts24 /delete-node/ cpus;
25 /delete-node/ clocks;
26 /delete-node/ sw-pwm;
29 /delete-node/ memory@20000000;
30 /delete-node/ memory@2002f000;
32 /delete-node/ spi@4a000;
33 /delete-node/ vpr@4c000;
34 /delete-node/ mailbox@0;
35 /delete-node/ interrupt-controller@f0000000;
36 /delete-node/ i2c@c6000;
[all …]
/Zephyr-latest/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-latest/scripts/dts/
Dgen_defines.py51 sorted_nodes = sorted(edt.nodes, key=lambda node: node.dep_ordinal)
55 for node in sorted_nodes:
56 node.z_path_id = node_z_path_id(node)
60 for node in sorted_nodes:
61 if 'zephyr,memory-region' in node.props:
62 region = node.props['zephyr,memory-region'].val
66 regions[region] = node
68 for node in sorted_nodes:
69 write_node_comment(node)
84 if node.parent is not None:
[all …]
Dgen_dts_cmake.py104 for node in chosen_nodes:
105 path = chosen_nodes[node].path
110 for node in edt.nodes:
111 path = node.path
112 for alias in node.aliases:
116 for node in edt.nodes:
119 for label in node.labels:
122 for item in node.props:
124 if "phandle" not in node.props[item].type:
125 if "array" in node.props[item].type:
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Ddelayable_msg.c27 sys_snode_t node; member
32 sys_snode_t node; member
58 sys_slist_append(list, &ctx->node); in put_ctx_to_busy_list()
63 curr_ctx = CONTAINER_OF(curr, struct delayable_msg_ctx, node); in put_ctx_to_busy_list()
66 sys_slist_prepend(list, &ctx->node); in put_ctx_to_busy_list()
68 sys_slist_insert(list, prev, &ctx->node); in put_ctx_to_busy_list()
75 sys_slist_append(list, &ctx->node); in put_ctx_to_busy_list()
81 sys_snode_t *node = sys_slist_peek_head(&access_delayable_msg.busy_ctx); in peek_pending_msg() local
83 if (node) { in peek_pending_msg()
84 pending_msg = CONTAINER_OF(node, struct delayable_msg_ctx, node); in peek_pending_msg()
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py65 node = edt.get_node("/interrupt-parent-test/node")
67 assert node.interrupts == [
68 …edtlib.ControllerAndData(node=node, controller=controller, data={'one': 1, 'two': 2, 'three': 3}, …
69 …edtlib.ControllerAndData(node=node, controller=controller, data={'one': 4, 'two': 5, 'three': 6}, …
72 node = edt.get_node("/interrupts-extended-test/node")
76 assert node.interrupts == [
77 …edtlib.ControllerAndData(node=node, controller=controller_0, data={'one': 1}, name=None, basename=…
78 …edtlib.ControllerAndData(node=node, controller=controller_1, data={'one': 2, 'two': 3}, name=None,…
79 …edtlib.ControllerAndData(node=node, controller=controller_2, data={'one': 4, 'two': 5, 'three': 6}…
82 node = edt.get_node("/interrupt-map-test/node@0")
[all …]
/Zephyr-latest/soc/infineon/cat3/xmc4xxx/
Dpinctrl_soc.h17 #define Z_PINCTRL_STATE_PIN_INIT(node, pr, idx) \ argument
18 (DT_PROP_BY_PHANDLE_IDX(node, pr, idx, pinmux) | \
19 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, bias_pull_down) << XMC4XXX_PULL_DOWN_POS | \
20 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, bias_pull_up) << XMC4XXX_PULL_UP_POS | \
21 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, drive_push_pull) << XMC4XXX_PUSH_PULL_POS | \
22 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, drive_open_drain) << XMC4XXX_OPEN_DRAIN_POS | \
23 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, output_high) << XMC4XXX_OUT_HIGH_POS | \
24 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, output_low) << XMC4XXX_OUT_LOW_POS | \
25 DT_PROP_BY_PHANDLE_IDX(node, pr, idx, invert_input) << XMC4XXX_INV_INPUT_POS | \
26 DT_ENUM_IDX(DT_PHANDLE_BY_IDX(node, pr, idx), drive_strength) << XMC4XXX_DRIVE_POS | \
[all …]
/Zephyr-latest/lib/utils/
Drb.c79 static int find_and_stack(struct rbtree *tree, struct rbnode *node, in find_and_stack() argument
87 while (stack[sz - 1] != node) { in find_and_stack()
88 uint8_t side = tree->lessthan_fn(node, stack[sz - 1]) ? 0U : 1U; in find_and_stack()
160 struct rbnode *node = stack[stacksz - 1]; in fix_extra_red() local
164 CHECK((get_child(node, 0U) == NULL) || in fix_extra_red()
165 is_black(get_child(node, 0U))); in fix_extra_red()
166 CHECK((get_child(node, 1U) == NULL) || in fix_extra_red()
167 is_black(get_child(node, 1U))); in fix_extra_red()
200 uint8_t parent_side = get_side(parent, node); in fix_extra_red()
219 void rb_insert(struct rbtree *tree, struct rbnode *node) in rb_insert() argument
[all …]
/Zephyr-latest/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-latest/doc/build/dts/
Dmacros.bnf12 ; - a <node-macro>, generated for a particular node
14 dt-macro = node-macro / other-macro
17 ; node-macro: a macro related to a node
20 node-macro = property-macro
21 ; A macro about the pinctrl properties in a node.
22 node-macro =/ pinctrl-macro
23 ; A macro about the GPIO hog properties in a node.
24 node-macro =/ gpiohogs-macro
25 ; EXISTS macro: node exists in the devicetree
26 node-macro =/ %s"DT_N" path-id %s"_EXISTS"
[all …]

12345678910>>...45