Home
last modified time | relevance | path

Searched full:it (Results 1 – 25 of 3793) sorted by relevance

12345678910>>...152

/Zephyr-latest/lib/hash/
Dhash_map_cxx.cpp15 static void sys_hashmap_cxx_iter_next(struct sys_hashmap_iterator *it) in sys_hashmap_cxx_iter_next() argument
17 cxx_map *umap = static_cast<cxx_map *>(it->map->data->buckets); in sys_hashmap_cxx_iter_next()
21 __ASSERT(it->size == it->map->data->size, "Concurrent modification!"); in sys_hashmap_cxx_iter_next()
22 __ASSERT(sys_hashmap_iterator_has_next(it), "Attempt to access beyond current bound!"); in sys_hashmap_cxx_iter_next()
25 for (size_t i = 0; i < it->pos; ++i, it2++) in sys_hashmap_cxx_iter_next()
28 it->key = it2->first; in sys_hashmap_cxx_iter_next()
29 it->value = it2->second; in sys_hashmap_cxx_iter_next()
30 ++it->pos; in sys_hashmap_cxx_iter_next()
37 static void sys_hashmap_cxx_iter(const struct sys_hashmap *map, struct sys_hashmap_iterator *it) in sys_hashmap_cxx_iter() argument
39 it->map = map; in sys_hashmap_cxx_iter()
[all …]
Dhash_map_sc.c135 static void sys_hashmap_sc_iter_next(struct sys_hashmap_iterator *it) in sys_hashmap_sc_iter_next() argument
140 const struct sys_hashmap *map = it->map; in sys_hashmap_sc_iter_next()
143 __ASSERT(it->size == map->data->size, "Concurrent modification!"); in sys_hashmap_sc_iter_next()
144 __ASSERT(sys_hashmap_iterator_has_next(it), "Attempt to access beyond current bound!"); in sys_hashmap_sc_iter_next()
146 if (it->pos == 0) { in sys_hashmap_sc_iter_next()
148 it->state = buckets; in sys_hashmap_sc_iter_next()
152 for (bucket = it->state; bucket < &buckets[map->data->n_buckets]; ++bucket) { in sys_hashmap_sc_iter_next()
155 if (entry->key == it->key) { in sys_hashmap_sc_iter_next()
164 it->state = bucket; in sys_hashmap_sc_iter_next()
165 it->key = entry->key; in sys_hashmap_sc_iter_next()
[all …]
/Zephyr-latest/tests/bluetooth/host/keys/mocks/
Dkeys_help_utils.c31 for (size_t it = 0; it < size; it++) { in fill_key_pool_by_id_addr() local
32 params_vector = &src[it]; in fill_key_pool_by_id_addr()
35 refs[it] = bt_keys_get_addr(id, addr); in fill_key_pool_by_id_addr()
36 if (refs[it] == NULL) { in fill_key_pool_by_id_addr()
37 printk("'%s' Failed to add key %d to the keys pool\n", __func__, it); in fill_key_pool_by_id_addr()
57 for (size_t it = 0; it < size; it++) { in fill_key_pool_by_id_addr_type() local
58 params_vector = &src[it]; in fill_key_pool_by_id_addr_type()
62 refs[it] = bt_keys_get_type(type, id, addr); in fill_key_pool_by_id_addr_type()
63 if (refs[it] == NULL) { in fill_key_pool_by_id_addr_type()
64 printk("'%s' Failed to add key %d to the keys pool\n", __func__, it); in fill_key_pool_by_id_addr_type()
/Zephyr-latest/include/zephyr/sys/
Dsys_io.h92 * This functions takes the designated bit starting from port and sets it to 1.
102 * This functions takes the designated bit starting from port and sets it to 0.
110 * @brief Test the bit from port if it is set or not
113 * current setting. It will return the current setting.
118 * @return 1 if it is set, 0 otherwise
123 * @brief Test the bit from port and set it
126 * current setting and sets it. It will return the previous setting.
131 * @return 1 if it was set, 0 otherwise
136 * @brief Test the bit from port and clear it
139 * current setting and clears it. It will return the previous setting.
[all …]
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_irk/src/
Dmain.c127 for (size_t it = 0; it < ARRAY_SIZE(returned_keys_refs); it++) { in rpa_resolving_ts_setup() local
128 returned_keys_refs[it]->irk.val[0] = it; in rpa_resolving_ts_setup()
190 for (size_t it = 0; it < ARRAY_SIZE(testing_id_addr_type_lut); it++) { in ZTEST() local
192 params_vector = &testing_id_addr_type_lut[it]; in ZTEST()
198 params_it = it; in ZTEST()
201 expected_key_ref = returned_keys_refs[it]; in ZTEST()
214 "bt_keys_find_irk() returned a NULL reference %d", it); in ZTEST()
224 "bt_keys_find_irk() returned a non-valid reference %d", it); in ZTEST()
244 for (size_t it = 0; it < ARRAY_SIZE(returned_keys_refs); it++) { in no_resolving_ts_setup() local
245 returned_keys_refs[it]->irk.val[0] = it; in no_resolving_ts_setup()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/transport/include/mgmt/mcumgr/transport/
Dsmp_reassembly.h21 * Note: for efficiency there is no NULL check on @p smpt pointer and it is caller's responsibility
22 * to validate the pointer before passing it to this function.
29 * The function adds data to the end of current re-assembly buffer; it will allocate new buffer
39 * Note: For efficiency there are ot NULL checks on @p smpt and @p buf pointers and it is caller's
46 * CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE, which means there is no way to fit it in
61 * Note: for efficiency there is no NULL check on @p smpt pointer and it is caller's responsibility
62 * to validate the pointer before passing it to this function.
72 * Checks if the packet has enough data to be re-assembled and passes it for further processing.
76 * in which case it is users responsibility to use the user data, passed with the packet, to notify
82 * Note: for efficiency there is no NULL check on @p smpt pointer and it is caller's responsibility
[all …]
/Zephyr-latest/cmake/modules/
DFindBabbleSim.cmake14 # We first try to find it via the environment variables BSIM_OUT_PATH and BSIM_COMPONENTS_PATH.
15 # If these are not set, as a fallback we attempt to find it through west, in case the user
49 and build it with\n\
64 # Let's check that it is new enough and built,
68 # Do NOT use it outside of this module. It uses variables internal to it
71 message(FATAL_ERROR "Please ensure you have the latest babblesim and rebuild it."
72 "If you got it from Zephyr's manifest, you can do:\n\
79 # Do NOT use it outside of this module. It uses variables internal to it
/Zephyr-latest/drivers/ieee802154/
DKconfig.cc252018 The default value should be sufficient, but in case it proves to be
19 a too little one, this option makes it easy to play with the size.
25 Set the initialization priority number. Do not mess with it unless
28 might need it too). And of course it has to start before the net stack.
82 Set the initialization priority number. Do not mess with it unless
83 you know what you are doing. It should be initialized after CC2520
84 as it shares the same runtime context.
DKconfig.rf2xx20 The default value should be sufficient, but in case it proves to be
21 a too little one, this option makes it easy to play with the size.
27 Set the initialization priority number. Do not mess with it unless
30 might need it too). And of course it has to start before the net stack.
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt.rst15 a means to hold the packet, write and read it, as well as necessary
19 The data structure and the whole API around it are defined in
44 Note, however, one will rarely have to use it, as the core provides
54 needs various metadata information to become relevant as well. It
55 requires at least to get the network interface it is meant to be sent
56 through or through which it was received. As this is a very common
78 :ref:`net_buf_interface` for more information). However, it mostly
94 once via :c:func:`net_pkt_alloc_with_buffer`. It is actually the most
140 :c:func:`net_pkt_alloc_buffer`, as it will take into account the
141 existing buffer. It will also account for the header space if
[all …]
/Zephyr-latest/doc/connectivity/networking/
Dnet_pkt_processing_stats.rst33 The TX time tells how long it took for network packet from its creation to
34 when it was sent to the network. The RX time tells the time from its creation
35 to when it was passed to the application. The values are in microseconds. The
53 The numbers inside the brackets contain information how many microseconds it
60 * Packet is about to be placed to transmit queue. The time it took from network
63 queue. It took **15** microseconds from previous state.
65 network packet. It took **23** microseconds from previous state.
66 * In total it took on average **60** microseconds to get the network packet
74 * Packet is about to be placed to receive queue. The time it took from network
77 queue. It took **6** microseconds from previous state.
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/misc/sample_test/
Dprj.conf4 # If the test is a stress or robustness test, it is also a good idea to set the
18 # This is the object of the test. Commenting it out should make the test fail.
26 # the test will have a hard time understanding what the problem is if it's
38 # It is not strictly necessary, leave it disabled if you don't need it.
42 # If a debugger is connected to the app, it will automatically be stopped.
46 # It's OK to leave useful debug options commented out, with a short comment
/Zephyr-latest/include/zephyr/logging/
Dlog_backend_net.h20 * @details This function allows the user to set an IPv4 or IPv6 address at runtime. It can be
21 * called either before or after the backend has been initialized. If it gets called when
22 * the net logger backend context is running, it'll release it and create another one with
34 * @details This function allows the user to set an IPv4 or IPv6 address at runtime. It can be
35 * called either before or after the backend has been initialized. If it gets called when
36 * the net logger backend context is running, it'll release it and create another one with
48 * @details This function allows to update the hostname displayed by the logging backend. It will be
/Zephyr-latest/drivers/timer/
DKconfig.riscv_machine20 timer driver. It provides the standard "system clock driver" interfaces.
32 When N=2, it is divided by 4, and when N=5, it is divided by 32.
34 It is normal configuration for RISC-V machine clock.
38 and it is desirable usage that references it with using a function such as
/Zephyr-latest/samples/subsys/usb/common/
Dsample_usbd.h15 * new experimental USB device stack, you should not use it in your own
21 * USB device. It configures sample's device context, default string descriptors,
23 * finally initializes USB device. It is limited to a single device with a
27 * It returns the configured and initialized USB device context on success,
28 * otherwise it returns NULL.
34 * initialize the device. It allows the application to set additional features,
/Zephyr-latest/drivers/espi/
DKconfig.espi_emul11 it does not talk to real hardware. Instead it talks to emulation
12 drivers that pretend to be devices on the emulated eSPI bus. It is
16 number of required pins. It includes the functionality of LPC, SMB, SPI
18 specification for more details (it is good for the introduction as well)
/Zephyr-latest/doc/services/ipc/ipc_service/backends/
Dipc_service_icbmsg.rst9 It also supports multiple endpoints.
24 …If there are not enough sequential blocks, it waits using the timeout provided in the parameter th…
26 For the zero-copy case, this is done by the caller, otherwise, it is copied automatically.
30 …The size of the ICMsg queue is large enough to hold messages for all blocks, so it will never over…
34 * When the backend receives this message, it deallocates all blocks.
35 It is done internally by the backend and it is invisible to the caller.
45 You can skip it if none of the communication sides is using data cache on shared memory.
99 Internally, it uses ICMsg for control messages.
115 It is calculated using the following algorithm:
174 The following steps describe it:
[all …]
/Zephyr-latest/arch/xtensa/core/
DREADME_WINDOWS.rst33 There is an ENTRY instruction that does the rotation. It adds CALLINC
36 immediate offset from it to make space for the new frame.
38 There is a RETW instruction that undoes the rotation. It reads the
44 return value format and is used immediately, so it makes more sense
45 for it to use processor state instead.
51 WINDOWSTART stores a bitmask with one bit per hardware quad (so it's 8
56 each call frame that is live in hardware registers, and it will be
62 indicating it's valid. If it does not, the registers must have been
69 registers, but it's possible to hit registers 12 out from WINDOWBASE,
70 so it's actually possible to trap again when the instruction restarts
[all …]
/Zephyr-latest/doc/develop/api/
Dterminology.rst25 if the function may return before the operation it initializes is
47 is invoked by a thread it is possible for that thread to be suspended as
78 unless that thread has explicitly invoked an operation that caused it to
83 suspend, wait, or invoke :c:func:`k_yield` before it can complete
108 long as it can be completed immediately, and to return an error code
109 rather than sleep if it cannot.
111 It is use of the no-wait feature that allows functions like
112 :c:func:`k_sem_take` to be invoked from ISRs, since it is not
126 The isr-ok attribute is used on a function to indicate that it works
127 whether it is being invoked from interrupt or thread context.
[all …]
/Zephyr-latest/soc/nordic/nrf53/
Dnrf53_cpunet_mgmt.h19 * This function shall be used to control the network CPU exclusively. Internally, it keeps track of
20 * the requests to enable or disable nRF53 network CPU. It guarantees to enable the network CPU if
21 * at least one user requests it and to keep it enabled until all users release it.
/Zephyr-latest/samples/subsys/nvs/src/
Dmain.c7 * and writing data it also shows how data can be deleted from flash.
20 * Every reboot increases the values of the reboot_counter and updates it in
27 * basic nvs_read() function as it has been deleted. It is possible to read the
102 * read it from flash, since we don't know the size read the in main()
106 if (rc > 0) { /* item was found, show it */ in main()
108 } else {/* item was not found, add it */ in main()
114 /* KEY_ID is used to store a key, lets see if we can read it from flash in main()
117 if (rc > 0) { /* item was found, show it */ in main()
123 } else {/* item was not found, add it */ in main()
124 printk("No key found, adding it at id %d\n", KEY_ID); in main()
[all …]
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/
Dutil.c55 * - It shall have no more than six consecutive zeros or ones.
56 * - It shall not be the advertising channel packets' Access Address.
57 * - It shall not be a sequence that differs from the advertising channel
59 * - It shall not have all four octets equal.
60 * - It shall have no more than 24 transitions.
61 * - It shall have a minimum of two transitions in the most significant six
65 * - It shall have at least three ones in the least significant 8 bits.
66 * - It shall have no more than eleven transitions in the least significant 16
130 /* It shall have no more than six consecutive zeros or ones. */ in util_aa_le32()
131 /* It shall have a minimum of two transitions in the most in util_aa_le32()
[all …]
/Zephyr-latest/samples/drivers/ipm/ipm_imx/
DREADME.rst10 Messaging Unit peripheral. It reads the received data from the Messaging Unit
11 using the IPM and transmits it back unchanged. The information about
13 it blocks until the data are read by the remote side.
29 The sample requires that data are being sent by the remote core so it can echo
30 it back. The other core is usually not running Zephyr but Linux on i.MX
34 It can be built as follows:
43 for how to load the Zephyr binary to the desired core and execute it.
48 The remote code is in the form of a loadable Linux kernel module. It creates
52 The remote code and the instructions how to build and run it are located at:
/Zephyr-latest/subsys/secure_storage/
DKconfig11 It allows making use of the PSA Secure Storage API and persistent keys in the PSA Crypto
13 It is configurable and different implementations can be used to accommodate the varying
17 secure the data stored through it at rest.
36 It calls into the transform and store modules, which
59 ITS data before it's written to and after it's read from NVM.
60 Zephyr's ITS implementation calls into it.
71 Zephyr's ITS implementation calls into it.
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_update_usage/src/
Dtest_suite_save_aging_counter.c18 * It is defined in main.c.
23 * It is defined in main.c.
60 for (size_t it = 0; it < ARRAY_SIZE(testing_id_addr_pair_lut); it++) { in ZTEST() local
61 params_vector = &testing_id_addr_pair_lut[it]; in ZTEST()
64 expected_updated_keys = returned_keys_refs[it]; in ZTEST()

12345678910>>...152