Home
last modified time | relevance | path

Searched full:node (Results 1 – 25 of 2066) sorted by relevance

12345678910>>...83

/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 …]
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 …]
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 …]
/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/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
65 f"between {regions[region].path} and {node.path}")
66 regions[region] = node
68 for node in sorted_nodes:
69 write_node_comment(node)
[all …]
/Zephyr-latest/include/zephyr/sys/
Ddlist.h39 struct _dnode *next; /* ptr to next node (sys_dnode_t) */
43 struct _dnode *prev; /* ptr to previous node (sys_dnode_t) */
52 * @brief Doubly-linked list node structure.
70 * @param __dn A sys_dnode_t pointer to peek each node of the list
77 * @brief Provide the primitive to iterate on a list, from a node in the list
86 * Like SYS_DLIST_FOR_EACH_NODE(), but __dn already contains a node in the list
93 * @param __dn A sys_dnode_t pointer to peek each node of the list;
94 * it contains the starting node, or NULL to start from the head
115 * @param __dn A sys_dnode_t pointer to peek each node of the list
125 * @brief Provide the primitive to resolve the container of a list node
[all …]
Dsflist.h15 * user "flags" bits for each node. They can be accessed and modified
43 /** Flagged single-linked list node structure. */
69 * @param __sn A sys_sfnode_t pointer to peek each node of the list
75 * @brief Provide the primitive to iterate on a list, from a node in the list
84 * Like SYS_SFLIST_FOR_EACH_NODE(), but __dn already contains a node in the list
91 * @param __sn A sys_sfnode_t pointer to peek each node of the list
92 * it contains the starting node, or NULL to start from the head
110 * @param __sn A sys_sfnode_t pointer to peek each node of the list
117 * @brief Provide the primitive to resolve the container of a list node
195 * These are the only functions that do not treat the list/node pointers
[all …]
Dslist.h38 /** Single-linked list node structure. */
64 * @param __sn A sys_snode_t pointer to peek each node of the list
70 * @brief Provide the primitive to iterate on a list, from a node in the list
79 * Like SYS_SLIST_FOR_EACH_NODE(), but __dn already contains a node in the list
86 * @param __sn A sys_snode_t pointer to peek each node of the list
87 * it contains the starting node, or NULL to start from the head
105 * @param __sn A sys_snode_t pointer to peek each node of the list
112 * @brief Provide the primitive to resolve the container of a list node
190 * These are the only functions that do not treat the list/node pointers
211 static inline sys_snode_t *z_snode_next_peek(sys_snode_t *node) in z_snode_next_peek() argument
[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/scripts/kconfig/
Dkconfigfunctions.py61 to an EDT node. If it finds an EDT node, it will look to see if that node
63 return the node's name in the devicetree.
68 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
81 that points to an enabled node, and "n" otherwise
86 node = edt.chosen_node(chosen)
87 return "y" if node and node.status == "okay" else "n"
[all …]
/Zephyr-latest/include/zephyr/sensing/
Dsensing_sensor.h84 sys_snode_t snode; /**< Node in the singly-linked list of connections. */
127 * This macro generates a name for a sensor info structure based on a node and an index.
129 * @param node The devicetree node identifier.
132 #define SENSING_SENSOR_INFO_NAME(node, idx) \ argument
133 _CONCAT(_CONCAT(__sensing_sensor_info_, idx), DEVICE_DT_NAME_GET(node))
138 * This macro defines a sensor info structure based on a node and an index.
142 * @param node The devicetree node identifier.
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), \
[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/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 …]
/Zephyr-latest/tests/benchmarks/data_structure_perf/dlist_perf/src/
Ddlist_perf.c21 sys_dnode_t node; member
26 * @brief Test whether dlist node struct is embeddedable
30 * dlist node.Appending nodes into the doubly-linked list
47 /* Initialize an user-defiend structure of contains dlist node */ in ZTEST()
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()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/beacon/
Dbeacon_interval.sh8 # setup two device, tx node provisioned node, rx node is not provisioned and only has
11 # tx node is able to adapt observed beacon interval and able to send at least one
12 # SNB in 600s. And veify tx node doesnn't send SNB faster than 10s.
14 # 1- rx node waits for the tx node to send the first SNB,
15 # rx node sends two SNBs with 20ms period, verifies that tx node only sends SNB 10s later,
16 # after rx node sends out beacon. rx node skips the 3rd SNB and verifies that tx nodes keeps
18 # 2- rx node sends SNBs with 4s period for 600s and verifies that tx node doesn't send any
/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/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/include/zephyr/devicetree/
Dio-channels.h27 * @brief Get the node identifier for the node referenced by an
36 * n: node {
45 * @param node_id node identifier for a node with an io-channels property
47 * @return the node identifier for the node referenced at index "idx"
54 * @brief Get the node identifier for the node referenced by an
63 * n: node {
73 * @param node_id node identifier for a node with an io-channels property
75 * as defined by the node's io-channel-names property
76 * @return the node identifier for the node referenced at the named element
84 * @param node_id node identifier for a node with an io-channels property
[all …]
Dfixed-partitions.h26 * @brief Get a node identifier for a fixed partition with
46 * DT_NODE_BY_FIXED_PARTITION_LABEL(mcuboot) // node identifier for boot_partition
47 * DT_NODE_BY_FIXED_PARTITION_LABEL(image_0) // node identifier for slot0_partition
50 * @return a node identifier for the partition with that label property
58 * @return 1 if any "fixed-partitions" child node has the given label,
65 * @brief Test if fixed-partition compatible node exists
67 * @param node_id DTS node to test
68 * @return 1 if node exists and is fixed-partition compatible, 0 otherwise.
75 * @param node_id node identifier for a fixed-partitions child node
81 * @brief Get the node identifier of the flash memory for a partition
[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))
25 /* Given a device tree node for an ethernet controller will
29 #define NODE_HAS_VALID_MAC_ADDR(node) \ argument
[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/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py50 …eprecated in 'properties:' in {hpath('test-bindings/deprecated.yaml')} for node /test-deprecated.",
51 "unit address and first address in 'reg' (0x1) don't match for /reg-zero-size-cells/node",
52 "unit address and first address in 'reg' (0x5) don't match for /reg-ranges/parent/node",
53 …address in 'reg' (0x30000000200000001) don't match for /reg-nested-ranges/grandparent/parent/node",
65 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 == [
[all …]
/Zephyr-latest/lib/utils/
Drb.c72 /* Searches the tree down to a node that is either identical with the
73 * "node" argument or has an empty/leaf child pointer where "node"
79 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()
122 * of either node. That is, it effects the following transition (or
153 /* The node at the top of the provided stack is red, and its parent is
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()
[all …]

12345678910>>...83