Home
last modified time | relevance | path

Searched refs:contexts (Results 1 – 25 of 54) sorted by relevance

123

/Zephyr-latest/drivers/modem/
Dmodem_context.c21 static struct modem_context *contexts[CONFIG_MODEM_CONTEXT_MAX_NUM]; variable
87 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in modem_context_from_iface_dev()
88 if (contexts[i] && contexts[i]->iface.dev == dev) { in modem_context_from_iface_dev()
89 return contexts[i]; in modem_context_from_iface_dev()
110 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in modem_context_get()
111 if (!contexts[i]) { in modem_context_get()
112 contexts[i] = ctx; in modem_context_get()
122 if (id >= 0 && id < ARRAY_SIZE(contexts)) { in modem_context_from_id()
123 return contexts[id]; in modem_context_from_id()
Dmodem_receiver.c28 static struct mdm_receiver_context *contexts[MAX_MDM_CTX]; variable
42 if (contexts[i] && contexts[i]->uart_dev == dev) { in context_from_dev()
43 return contexts[i]; in context_from_dev()
65 if (!contexts[i]) { in mdm_receiver_get()
66 contexts[i] = ctx; in mdm_receiver_get()
159 return contexts[id]; in mdm_receiver_context_from_id()
DKconfig31 int "Maximum number of modem receiver contexts"
36 Maximum number of modem receiver contexts to handle. For most
53 int "Maximum number of modem contexts"
56 Maximum number of modem contexts to handle. For most
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dpacs.h176 enum bt_audio_context contexts);
203 enum bt_audio_context *contexts);
230 enum bt_audio_context contexts);
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/multilink_peripheral/src/
Ddut.c42 static struct test_ctx contexts[CONFIG_BT_MAX_CONN]; variable
95 TEST_ASSERT(PART_OF_ARRAY(contexts, ctx), "memory corruption"); in get_ctx_from_chan()
156 for (size_t i = 0; i < ARRAY_SIZE(contexts); i++) { in alloc_ctx()
157 struct test_ctx *context = &contexts[i]; in alloc_ctx()
178 for (size_t i = 0; i < ARRAY_SIZE(contexts); i++) { in get_ctx_from_address()
179 struct test_ctx *context = &contexts[i]; in get_ctx_from_address()
262 for (size_t i = 0; i < ARRAY_SIZE(contexts); i++) { in all_data_transferred()
263 total_sdu_count += contexts[i].sdu_count; in all_data_transferred()
/Zephyr-latest/subsys/testsuite/include/zephyr/
Dfff_extensions.h82 CONTEXTTYPE * const contexts = \
89 CONTEXTTYPE * const CONTEXTPTRNAME = &contexts[seq_idx]; \
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/
Dmain.c68 static struct test_ctx contexts[L2CAP_CHANS]; variable
75 TEST_ASSERT(ctx >= &contexts[0] && ctx <= &contexts[L2CAP_CHANS], "memory corruption"); in get_ctx()
207 struct bt_l2cap_le_chan *le_chan = &contexts[i].le_chan; in alloc_test_context()
213 memset(&contexts[i], 0, sizeof(struct test_ctx)); in alloc_test_context()
214 k_work_init_delayable(&contexts[i].work_item, deferred_send); in alloc_test_context()
216 return &contexts[i]; in alloc_test_context()
442 contexts[i].tx_left = SDU_NUM; in test_central_main()
443 l2cap_chan_send(&contexts[i].le_chan.chan, tx_data, sizeof(tx_data)); in test_central_main()
454 remaining_tx_total += contexts[i].tx_left; in test_central_main()
/Zephyr-latest/subsys/net/ip/
Dnet_context.c81 static struct net_context contexts[NET_MAX_CONTEXT]; variable
187 if (!net_context_is_used(&contexts[i])) { in check_used_port()
191 if (context != NULL && context == &contexts[i]) { in check_used_port()
195 if (!(net_context_get_proto(&contexts[i]) == proto && in check_used_port()
197 contexts[i].local)->sin_port == local_port)) { in check_used_port()
201 if (net_context_is_bound_to_iface(&contexts[i])) { in check_used_port()
202 if (iface != NULL && iface != net_context_get_iface(&contexts[i])) { in check_used_port()
209 if (net_sin6_ptr(&contexts[i].local)->sin6_addr == NULL || in check_used_port()
210 net_sin6_ptr(&contexts[i].local)->sin6_family != AF_INET6) { in check_used_port()
215 net_sin6_ptr(&contexts[i].local)->sin6_addr) || in check_used_port()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dmain.c53 static struct test_ctx contexts[L2CAP_CHANS]; variable
60 TEST_ASSERT(ctx >= &contexts[0] && in get_ctx()
61 ctx <= &contexts[L2CAP_CHANS], "memory corruption"); in get_ctx()
155 struct bt_l2cap_le_chan *le_chan = &contexts[i].le_chan; in alloc_test_context()
161 memset(&contexts[i], 0, sizeof(struct test_ctx)); in alloc_test_context()
163 return &contexts[i]; in alloc_test_context()
410 contexts[i].tx_left = SDU_NUM; in test_central_main()
411 l2cap_chan_send(&contexts[i].le_chan.chan, tx_data, sizeof(tx_data)); in test_central_main()
428 remaining_tx_total += contexts[i].tx_left; in test_central_main()
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket.c50 static struct websocket_context contexts[CONFIG_WEBSOCKET_MAX_CONTEXTS]; variable
112 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in websocket_get()
113 if (websocket_context_is_used(&contexts[i])) { in websocket_get()
117 websocket_context_ref(&contexts[i]); in websocket_get()
118 ctx = &contexts[i]; in websocket_get()
134 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in websocket_find()
135 if (!websocket_context_is_used(&contexts[i])) { in websocket_find()
139 if (contexts[i].real_sock != real_sock) { in websocket_find()
143 ctx = &contexts[i]; in websocket_find()
680 if (!PART_OF_ARRAY(contexts, ctx)) { in websocket_send_msg()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dpacs.c329 static int set_available_contexts(uint16_t contexts, uint16_t *available, in set_available_contexts() argument
332 if (contexts & ~supported) { in set_available_contexts()
336 if (contexts == *available) { in set_available_contexts()
340 *available = contexts; in set_available_contexts()
348 static int set_supported_contexts(uint16_t contexts, uint16_t *supported, in set_supported_contexts() argument
356 contexts |= BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED; in set_supported_contexts()
358 if (*supported == contexts) { in set_supported_contexts()
362 *supported = contexts; in set_supported_contexts()
365 if ((contexts & *available) != *available) { in set_supported_contexts()
366 err = set_available_contexts(contexts & *available, available, contexts); in set_supported_contexts()
[all …]
Dhas.c202 } contexts[CONFIG_BT_MAX_PAIRED]; variable
227 for (size_t i = 0; i < ARRAY_SIZE(contexts); i++) { in context_find()
228 if (bt_addr_le_eq(&contexts[i].addr, addr)) { in context_find()
229 return &contexts[i]; in context_find()
514 for (size_t i = 0U; i < ARRAY_SIZE(contexts); i++) { in notify()
515 atomic_set_bit(contexts[i].flags, flag); in notify()
791 for (size_t i = 0U; i < ARRAY_SIZE(contexts); i++) { in control_point_send_all()
792 struct client_context *context = &contexts[i]; in control_point_send_all()
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/
Dmsg.rst8 contexts.
/Zephyr-latest/drivers/timer/
DKconfig.nrf_rtc35 higher priority contexts (including ZLIs) that might preempt the
/Zephyr-latest/tests/net/context/src/
Dmain.c129 struct net_context *contexts[CONFIG_NET_MAX_CONTEXTS]; in ZTEST() local
133 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in ZTEST()
135 IPPROTO_UDP, &contexts[i]); in ZTEST()
144 for (i = 0; i < ARRAY_SIZE(contexts); i++) { in ZTEST()
145 ret = net_context_put(contexts[i]); in ZTEST()
/Zephyr-latest/doc/kernel/services/other/
Datomic.rst21 even if higher priority contexts also manipulate the same variable.
98 to guarantee a reliable picture across contexts. Any
/Zephyr-latest/doc/kernel/data_structures/
Dindex.rst19 behind this design is to allow the collections to be used in contexts
/Zephyr-latest/doc/connectivity/bluetooth/
Dbluetooth-ctlr-arch.rst144 Three main execution contexts
176 …* Mem pool used to implement procedure contexts resource - instantiated in both a local and a remo…
213 …* Since we have resource handling re. procedure contexts and terminate must always be available th…
277 * Mayfly are multi-instance scalable ISR execution contexts
/Zephyr-latest/subsys/net/l2/ieee802154/
DKconfig.radio41 and fits low duty-cycle contexts where the radio spectrum is not
/Zephyr-latest/lib/utils/
DKconfig48 "windows", generally for transmit to non-Zephyr contexts that
/Zephyr-latest/subsys/canbus/isotp/
DKconfig121 bool "Buffered tx contexts"
124 This option enables buffered sending contexts. This makes send and
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dbap.rst201 Streaming audio contexts:
254 Streaming audio contexts:
365 Preferred audio contexts:
412 Streaming audio contexts:
427 Streaming audio contexts:
/Zephyr-latest/tests/subsys/ipc/ipc_sessions/interoperability/
DKconfig.icmsg_v111 multiple contexts. Mutex is used to guard access to the memory.
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dfetch_and_get.rst23 It should be noted that calling fetch and get from multiple contexts without
/Zephyr-latest/subsys/net/lib/lwm2m/
DKconfig377 int "Maximum # of LwM2M block contexts used for outgoing messages"
380 Maximum number of CoAP block contexts needed to split messages into blocks for
389 to optimize the configuration of number of block contexts and indirectly
394 int "Maximum # of LwM2M block1 contexts"
397 This value sets up the maximum number of block1 contexts for

123