Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 2026) sorted by relevance

12345678910>>...82

/Zephyr-Core-3.5.0/include/zephyr/arch/xtensa/
Dcache.h26 static ALWAYS_INLINE int arch_dcache_flush_range(void *addr, size_t bytes) in arch_dcache_flush_range()
29 size_t step = XCHAL_DCACHE_LINESIZE; in arch_dcache_flush_range()
30 size_t first = ROUND_DOWN(addr, step); in arch_dcache_flush_range()
31 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_range()
32 size_t line; in arch_dcache_flush_range()
41 static ALWAYS_INLINE int arch_dcache_flush_and_invd_range(void *addr, size_t bytes) in arch_dcache_flush_and_invd_range()
44 size_t step = XCHAL_DCACHE_LINESIZE; in arch_dcache_flush_and_invd_range()
45 size_t first = ROUND_DOWN(addr, step); in arch_dcache_flush_and_invd_range()
46 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_and_invd_range()
47 size_t line; in arch_dcache_flush_and_invd_range()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dbitarray.h96 int sys_bitarray_set_bit(sys_bitarray_t *bitarray, size_t bit);
108 int sys_bitarray_clear_bit(sys_bitarray_t *bitarray, size_t bit);
121 int sys_bitarray_test_bit(sys_bitarray_t *bitarray, size_t bit, int *val);
134 int sys_bitarray_test_and_set_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val);
147 int sys_bitarray_test_and_clear_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val);
168 int sys_bitarray_alloc(sys_bitarray_t *bitarray, size_t num_bits,
169 size_t *offset);
186 int sys_bitarray_free(sys_bitarray_t *bitarray, size_t num_bits,
187 size_t offset);
202 bool sys_bitarray_is_region_set(sys_bitarray_t *bitarray, size_t num_bits,
[all …]
Dsys_heap.h59 size_t init_bytes;
102 void sys_heap_init(struct sys_heap *heap, void *mem, size_t bytes);
121 void *sys_heap_alloc(struct sys_heap *heap, size_t bytes);
136 void *sys_heap_aligned_alloc(struct sys_heap *heap, size_t align, size_t bytes);
177 size_t align, size_t bytes);
196 size_t sys_heap_usable_size(struct sys_heap *heap, void *mem);
242 void sys_heap_stress(void *(*alloc_fn)(void *arg, size_t bytes),
244 void *arg, size_t total_bytes,
246 void *scratch_mem, size_t scratch_bytes,
Dbase64.h62 int base64_encode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src,
63 size_t slen);
81 int base64_decode(uint8_t *dst, size_t dlen, size_t *olen, const uint8_t *src,
82 size_t slen);
Dcrc.h82 uint16_t crc16(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
112 uint16_t crc16_reflect(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
128 uint8_t crc8(const uint8_t *src, size_t len, uint8_t polynomial, uint8_t initial_value,
162 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len);
199 uint16_t crc16_itu_t(uint16_t seed, const uint8_t *src, size_t len);
212 static inline uint16_t crc16_ansi(const uint8_t *src, size_t len) in crc16_ansi()
226 uint32_t crc32_ieee(const uint8_t *data, size_t len);
238 uint32_t crc32_ieee_update(uint32_t crc, const uint8_t *data, size_t len);
253 size_t len, bool first_pkt, bool last_pkt);
266 uint8_t crc8_ccitt(uint8_t initial_value, const void *buf, size_t len);
[all …]
/Zephyr-Core-3.5.0/subsys/settings/src/
Dsettings_priv.h28 size_t *len),
30 char const *buf, size_t len),
31 size_t (*get_len_cb)(void *ctx),
34 int settings_line_write(const char *name, const char *value, size_t val_len,
38 int settings_line_len_calc(const char *name, size_t val_len);
57 size_t val_len;
66 size_t len; /* len of line without len value */
85 int settings_line_raw_read(off_t seek, char *out, size_t len_req,
86 size_t *len_read, void *cb_arg);
92 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req,
[all …]
Dsettings_line.c18 int (*read_cb)(void *ctx, off_t off, char *buf, size_t *len);
19 int (*write_cb)(void *ctx, off_t off, char const *buf, size_t len);
20 size_t (*get_len_cb)(void *ctx);
24 int settings_line_write(const char *name, const char *value, size_t val_len, in settings_line_write()
27 size_t w_size, rem, add; in settings_line_write()
125 size_t len_read; in settings_next_line_ctx()
150 int settings_line_len_calc(const char *name, size_t val_len) in settings_line_len_calc()
172 static int settings_line_raw_read_until(off_t seek, char *out, size_t len_req, in settings_line_raw_read_until()
173 size_t *len_read, char const *until_char, in settings_line_raw_read_until()
176 size_t rem_size, len; in settings_line_raw_read_until()
[all …]
/Zephyr-Core-3.5.0/lib/libc/minimal/include/
Dstring.h21 extern int strerror_r(int errnum, char *strerrbuf, size_t buflen);
23 size_t n);
26 extern size_t strlen(const char *s);
27 extern size_t strnlen(const char *s, size_t maxlen);
29 extern int strncmp(const char *s1, const char *s2, size_t n);
34 size_t n);
37 extern size_t strspn(const char *s, const char *accept);
38 extern size_t strcspn(const char *s, const char *reject);
40 extern int memcmp(const void *m1, const void *m2, size_t n);
41 extern void *memmove(void *d, const void *s, size_t n);
[all …]
Dstdlib.h25 void *malloc(size_t size);
26 void *aligned_alloc(size_t alignment, size_t size); /* From C11 */
29 void *calloc(size_t nmemb, size_t size);
30 void *realloc(void *ptr, size_t size);
31 void *reallocarray(void *ptr, size_t nmemb, size_t size);
34 size_t count, size_t size,
37 void qsort_r(void *base, size_t nmemb, size_t size,
39 void qsort(void *base, size_t nmemb, size_t size,
/Zephyr-Core-3.5.0/include/zephyr/storage/
Dstream_flash.h46 typedef int (*stream_flash_callback_t)(uint8_t *buf, size_t len, size_t offset);
56 size_t buf_len; /* Length of write buffer */
57 size_t buf_bytes; /* Number of bytes currently stored in write buf */
59 size_t bytes_written; /* Number of bytes written to flash */
60 size_t offset; /* Offset from base of flash device to write area */
61 size_t available; /* Available bytes in write area */
85 uint8_t *buf, size_t buf_len, size_t offset, size_t size,
96 size_t stream_flash_bytes_written(struct stream_flash_ctx *ctx);
116 size_t len, bool flush);
/Zephyr-Core-3.5.0/lib/cpp/minimal/
Dcpp_new.cpp22 NODISCARD void* operator new(size_t size) in operator new()
27 NODISCARD void* operator new[](size_t size) in operator new[]()
32 NODISCARD void* operator new(std::size_t size, const std::nothrow_t& tag) NOEXCEPT in operator new()
37 NODISCARD void* operator new[](std::size_t size, const std::nothrow_t& tag) NOEXCEPT in operator new[]()
43 NODISCARD void* operator new(size_t size, std::align_val_t al) in operator new()
45 return aligned_alloc(static_cast<size_t>(al), size); in operator new()
48 NODISCARD void* operator new[](std::size_t size, std::align_val_t al) in operator new[]()
50 return aligned_alloc(static_cast<size_t>(al), size); in operator new[]()
53 NODISCARD void* operator new(std::size_t size, std::align_val_t al, in operator new()
56 return aligned_alloc(static_cast<size_t>(al), size); in operator new()
[all …]
/Zephyr-Core-3.5.0/drivers/mm/
Dmm_drv_common.h69 static inline bool sys_mm_drv_is_size_aligned(size_t size) in sys_mm_drv_is_size_aligned()
87 bool sys_mm_drv_is_addr_array_aligned(uintptr_t *addr, size_t cnt);
98 bool sys_mm_drv_is_virt_region_mapped(void *virt, size_t size);
109 bool sys_mm_drv_is_virt_region_unmapped(void *virt, size_t size);
135 size_t size, uint32_t flags);
161 size_t cnt, uint32_t flags);
184 int sys_mm_drv_simple_unmap_region(void *virt, size_t size);
210 int sys_mm_drv_simple_remap_region(void *virt_old, size_t size,
239 int sys_mm_drv_simple_move_region(void *virt_old, size_t size,
269 int sys_mm_drv_simple_move_array(void *virt_old, size_t size,
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Dcache.h96 int cache_data_flush_range(void *addr, size_t size);
118 int cache_data_invd_range(void *addr, size_t size);
140 int cache_data_flush_and_invd_range(void *addr, size_t size);
156 size_t cache_data_line_size_get(void);
230 int cache_instr_flush_range(void *addr, size_t size);
252 int cache_instr_invd_range(void *addr, size_t size);
274 int cache_instr_flush_and_invd_range(void *addr, size_t size);
290 size_t cache_instr_line_size_get(void);
Dbbram.h55 typedef int (*bbram_api_get_size_t)(const struct device *dev, size_t *size);
63 typedef int (*bbram_api_read_t)(const struct device *dev, size_t offset, size_t size,
72 typedef int (*bbram_api_write_t)(const struct device *dev, size_t offset, size_t size,
159 __syscall int bbram_get_size(const struct device *dev, size_t *size);
161 static inline int z_impl_bbram_get_size(const struct device *dev, size_t *size) in z_impl_bbram_get_size()
182 __syscall int bbram_read(const struct device *dev, size_t offset, size_t size,
185 static inline int z_impl_bbram_read(const struct device *dev, size_t offset, in z_impl_bbram_read()
186 size_t size, uint8_t *data) in z_impl_bbram_read()
207 __syscall int bbram_write(const struct device *dev, size_t offset, size_t size,
210 static inline int z_impl_bbram_write(const struct device *dev, size_t offset, in z_impl_bbram_write()
[all …]
/Zephyr-Core-3.5.0/tests/subsys/modem/mock/
Dmodem_backend_mock.h24 size_t get_size;
28 size_t put_size;
40 size_t transaction_match_cnt;
43 size_t limit;
48 size_t rx_buf_size;
50 size_t tx_buf_size;
51 size_t limit;
59 int modem_backend_mock_get(struct modem_backend_mock *mock, uint8_t *buf, size_t size);
61 void modem_backend_mock_put(struct modem_backend_mock *mock, const uint8_t *buf, size_t size);
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/
Dmpl.c29 int cmd_mpl_test_set_media_state(const struct shell *sh, size_t argc, in cmd_mpl_test_set_media_state()
54 int cmd_mpl_test_unset_parent_group(const struct shell *sh, size_t argc, in cmd_mpl_test_unset_parent_group()
65 int cmd_mpl_debug_dump_state(const struct shell *sh, size_t argc, in cmd_mpl_debug_dump_state()
74 int cmd_media_proxy_pl_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_media_proxy_pl_init()
89 int cmd_mpl_test_player_name_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_name_cb()
97 int cmd_mpl_test_player_icon_url_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_icon_url_cb()
105 int cmd_mpl_test_track_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_track_changed_cb()
112 int cmd_mpl_test_title_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_title_changed_cb()
119 int cmd_mpl_test_duration_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_duration_changed_cb()
126 int cmd_mpl_test_position_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_position_changed_cb()
[all …]
Daudio.h27 ssize_t audio_ad_data_add(struct bt_data *data, const size_t data_size, const bool discoverable,
29 ssize_t audio_pa_data_add(struct bt_data *data_array, const size_t data_array_size);
30 ssize_t csis_ad_data_add(struct bt_data *data, const size_t data_size, const bool discoverable);
31 size_t cap_acceptor_ad_data_add(struct bt_data data[], size_t data_size, bool discoverable);
77 size_t lc3_sdu_cnt;
82 size_t lost_pkts;
83 size_t err_pkts;
84 size_t dup_psn;
85 size_t rx_cnt;
86 size_t dup_ts;
[all …]
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/filtering/src/
Dmisc_q15.c21 size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_correlate_q15()
22 size_t ref_length) in test_arm_correlate_q15()
78 size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_q15()
79 size_t ref_length) in test_arm_conv_q15()
136 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_q15()
137 size_t ref_length) in test_arm_conv_partial_q15()
173 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_fast_q15()
174 size_t ref_length) in test_arm_conv_partial_fast_q15()
210 size_t first, size_t in1_length, size_t in2_length, const q15_t *ref, in test_arm_conv_partial_opt_q15()
211 size_t ref_length) in test_arm_conv_partial_opt_q15()
[all …]
Dmisc_q7.c20 size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_correlate_q7()
21 size_t ref_length) in test_arm_correlate_q7()
77 size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_q7()
78 size_t ref_length) in test_arm_conv_q7()
135 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_q7()
136 size_t ref_length) in test_arm_conv_partial_q7()
172 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_opt_q7()
173 size_t ref_length) in test_arm_conv_partial_opt_q7()
215 size_t first, size_t in1_length, size_t in2_length, const q7_t *ref, in test_arm_conv_partial_q7()
216 size_t ref_length) in test_arm_conv_partial_q7()
[all …]
/Zephyr-Core-3.5.0/kernel/include/
Dkernel_tls.h29 static inline size_t z_tls_data_size(void) in z_tls_data_size()
31 size_t tdata_size = ROUND_UP(__tdata_size, __tdata_align); in z_tls_data_size()
32 size_t tbss_size = ROUND_UP(__tbss_size, __tbss_align); in z_tls_data_size()
47 size_t tdata_size = (size_t)__tdata_size; in z_tls_copy()
48 size_t tbss_size = (size_t)__tbss_size; in z_tls_copy()
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/common/
Dtest_common.h119 size_t length, const float64_t *a, const float64_t *b) in test_equal_f64()
121 size_t index; in test_equal_f64()
133 size_t length, const float32_t *a, const float32_t *b) in test_equal_f32()
135 size_t index; in test_equal_f32()
148 size_t length, const float16_t *a, const float16_t *b) in test_equal_f16()
150 size_t index; in test_equal_f16()
163 size_t length, const q63_t *a, const q63_t *b) in test_equal_q63()
165 size_t index; in test_equal_q63()
177 size_t length, const q31_t *a, const q31_t *b) in test_equal_q31()
179 size_t index; in test_equal_q31()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/mm/
Dsystem_mm.h107 size_t size, uint32_t flags);
131 size_t cnt, uint32_t flags);
178 int sys_mm_drv_unmap_region(void *virt, size_t size);
226 int sys_mm_drv_remap_region(void *virt_old, size_t size, void *virt_new);
259 int sys_mm_drv_move_region(void *virt_old, size_t size, void *virt_new,
294 int sys_mm_drv_move_array(void *virt_old, size_t size, void *virt_new,
295 uintptr_t *phys_new, size_t phys_cnt);
341 int sys_mm_drv_update_region_flags(void *virt, size_t size, uint32_t flags);
351 size_t size; /**< @brief Size of the memory region */
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/
Dcrypto.h39 int bt_rand(void *buf, size_t len);
93 size_t len, const uint8_t *aad, size_t aad_len,
94 uint8_t *plaintext, size_t mic_size);
117 const uint8_t *plaintext, size_t len, const uint8_t *aad,
118 size_t aad_len, uint8_t *enc_data, size_t mic_size);
/Zephyr-Core-3.5.0/tests/lib/heap/src/
Dmain.c38 # define MEMSZ (1024 * (size_t) CONFIG_SRAM_SIZE)
68 static size_t fill_token(void *p, size_t sz) in fill_token()
70 size_t pi = (size_t) p; in fill_token()
80 static void fill_block(void *p, size_t sz) in fill_block()
86 size_t tok = fill_token(p, sz); in fill_block()
88 ((size_t *)p)[0] = sz; in fill_block()
90 if (sz >= 2 * sizeof(size_t)) { in fill_block()
91 ((size_t *)p)[1] = tok; in fill_block()
94 if (sz > 3*sizeof(size_t)) { in fill_block()
95 ((size_t *)p)[sz / sizeof(size_t) - 1] = tok; in fill_block()
[all …]
/Zephyr-Core-3.5.0/lib/os/
Dbitarray.c20 size_t sidx, eidx;
23 size_t soff, eoff;
31 size_t offset, size_t num_bits) in setup_bundle_data()
65 static bool match_region(sys_bitarray_t *bitarray, size_t offset, in match_region()
66 size_t num_bits, bool match_set, in match_region()
68 size_t *mismatch) in match_region()
70 size_t idx; in match_region()
73 size_t mismatch_bundle_idx; in match_region()
74 size_t mismatch_bit_off; in match_region()
172 static void set_region(sys_bitarray_t *bitarray, size_t offset, in set_region()
[all …]

12345678910>>...82