Home
last modified time | relevance | path

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

12345678910>>...98

/Zephyr-latest/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);
185 int sys_bitarray_xor(sys_bitarray_t *dst, sys_bitarray_t *other, size_t num_bits, size_t offset);
206 int sys_bitarray_find_nth_set(sys_bitarray_t *bitarray, size_t n, size_t num_bits, size_t offset,
207 size_t *found_at);
[all …]
Dsys_heap.h60 size_t init_bytes;
109 void sys_heap_init(struct sys_heap *heap, void *mem, size_t bytes);
128 void *sys_heap_alloc(struct sys_heap *heap, size_t bytes);
143 void *sys_heap_aligned_alloc(struct sys_heap *heap, size_t align, size_t bytes);
179 size_t align, size_t bytes);
198 size_t sys_heap_usable_size(struct sys_heap *heap, void *mem);
252 void sys_heap_stress(void *(*alloc_fn)(void *arg, size_t bytes),
254 void *arg, size_t total_bytes,
256 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);
/Zephyr-latest/include/zephyr/net/
Dwifi_credentials.h54 size_t ssid_len; /**< Length of the SSID */
72 size_t password_len; /**< Length of the password */
81 size_t identity_len; /**< Length of the identity */
82 size_t anonymous_identity_len; /**< Length of the anonymous identity */
83 size_t password_len; /**< Length of the password */
84 size_t ca_cert_len; /**< Length of the CA certificate */
85 size_t client_cert_len; /**< Length of the client certificate */
86 size_t private_key_len; /**< Length of the private key */
87 size_t private_key_pw_len; /**< Length of the private key password */
110 int wifi_credentials_get_by_ssid_personal(const char *ssid, size_t ssid_len,
[all …]
/Zephyr-latest/include/zephyr/arch/xtensa/
Dcache.h28 static ALWAYS_INLINE int arch_dcache_flush_range(void *addr, size_t bytes) in arch_dcache_flush_range()
31 size_t step = XCHAL_DCACHE_LINESIZE; in arch_dcache_flush_range()
32 size_t first = ROUND_DOWN(addr, step); in arch_dcache_flush_range()
33 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_range()
34 size_t line; in arch_dcache_flush_range()
44 static ALWAYS_INLINE int arch_dcache_flush_and_invd_range(void *addr, size_t bytes) in arch_dcache_flush_and_invd_range()
47 size_t step = XCHAL_DCACHE_LINESIZE; in arch_dcache_flush_and_invd_range()
48 size_t first = ROUND_DOWN(addr, step); in arch_dcache_flush_and_invd_range()
49 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_and_invd_range()
50 size_t line; in arch_dcache_flush_and_invd_range()
[all …]
/Zephyr-latest/include/zephyr/storage/
Dstream_flash.h48 typedef int (*stream_flash_callback_t)(uint8_t *buf, size_t len, size_t offset);
58 size_t buf_len; /* Length of write buffer */
59 size_t buf_bytes; /* Number of bytes currently stored in write buf */
61 size_t bytes_written; /* Number of bytes written to flash */
62 size_t offset; /* Offset from base of flash device to write area */
63 size_t available; /* Available bytes in write area */
70 size_t write_block_size; /* Offset/size device write alignment */
93 uint8_t *buf, size_t buf_len, size_t offset, size_t size,
104 size_t stream_flash_bytes_written(const struct stream_flash_ctx *ctx);
128 size_t len, bool flush);
/Zephyr-latest/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.h27 void *malloc(size_t size);
28 void *aligned_alloc(size_t alignment, size_t size); /* From C11 */
31 void *calloc(size_t nmemb, size_t size);
32 void *realloc(void *ptr, size_t size);
33 void *reallocarray(void *ptr, size_t nmemb, size_t size);
36 size_t count, size_t size,
39 void qsort_r(void *base, size_t nmemb, size_t size,
41 void qsort(void *base, size_t nmemb, size_t size,
82 int getenv_r(const char *name, char *buf, size_t len);
/Zephyr-latest/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-latest/subsys/settings/src/
Dsettings_priv.h20 int settings_line_write(const char *name, const char *value, size_t val_len,
24 int settings_line_len_calc(const char *name, size_t val_len);
43 size_t val_len;
52 size_t len; /* len of line without len value */
71 int settings_line_raw_read(off_t seek, char *out, size_t len_req,
72 size_t *len_read, void *cb_arg);
78 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req,
79 size_t *len_read, void *cb_arg);
94 int settings_line_name_read(char *out, size_t len_req, size_t *len_read,
97 size_t settings_line_val_get_len(off_t val_off, void *read_cb_ctx);
[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-latest/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-latest/subsys/net/lib/wifi_credentials/
Dwifi_credentials_internal.h18 void wifi_credentials_cache_ssid(size_t idx, const struct wifi_credentials_header *buf);
25 void wifi_credentials_uncache_ssid(size_t idx);
35 int wifi_credentials_store_entry(size_t idx, const void *buf, size_t buf_len);
43 int wifi_credentials_delete_entry(size_t idx);
53 int wifi_credentials_load_entry(size_t idx, void *buf, size_t buf_len);
/Zephyr-latest/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-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h75 size_t length, const float64_t *a, const float64_t *b) in test_equal_f64()
77 size_t index; in test_equal_f64()
89 size_t length, const float32_t *a, const float32_t *b) in test_equal_f32()
91 size_t index; in test_equal_f32()
104 size_t length, const float16_t *a, const float16_t *b) in test_equal_f16()
106 size_t index; in test_equal_f16()
119 size_t length, const q63_t *a, const q63_t *b) in test_equal_q63()
121 size_t index; in test_equal_q63()
133 size_t length, const q31_t *a, const q31_t *b) in test_equal_q31()
135 size_t index; in test_equal_q31()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dmpl.c33 int cmd_mpl_test_set_media_state(const struct shell *sh, size_t argc, in cmd_mpl_test_set_media_state()
58 int cmd_mpl_test_unset_parent_group(const struct shell *sh, size_t argc, in cmd_mpl_test_unset_parent_group()
69 int cmd_mpl_debug_dump_state(const struct shell *sh, size_t argc, in cmd_mpl_debug_dump_state()
78 int cmd_media_proxy_pl_init(const struct shell *sh, size_t argc, char *argv[]) in cmd_media_proxy_pl_init()
93 int cmd_mpl_test_player_name_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_name_cb()
101 int cmd_mpl_test_player_icon_url_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_player_icon_url_cb()
109 int cmd_mpl_test_track_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_track_changed_cb()
116 int cmd_mpl_test_title_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_title_changed_cb()
123 int cmd_mpl_test_duration_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_duration_changed_cb()
130 int cmd_mpl_test_position_changed_cb(const struct shell *sh, size_t argc, in cmd_mpl_test_position_changed_cb()
[all …]
/Zephyr-latest/tests/drivers/flash/erase_blocks/src/
Dmain.c46 for (size_t i = 0; i < sizeof(test_write_block); i++) { in test_flash_fill_test_write_block()
57 static bool test_flash_mem_is_set_to(const uint8_t *data, uint8_t to, size_t size) in test_flash_mem_is_set_to()
59 for (size_t i = 0; i < size; i++) { in test_flash_mem_is_set_to()
68 static bool test_flash_is_erased(off_t offset, size_t size) in test_flash_is_erased()
72 size_t remaining; in test_flash_is_erased()
73 size_t readsize; in test_flash_is_erased()
76 remaining = size - (size_t)offset; in test_flash_is_erased()
119 static void test_flash_write_block_at_offset(off_t offset, size_t size) in test_flash_write_block_at_offset()
122 "Failed to write block at offset %zu, of size %zu", (size_t)offset, size); in test_flash_write_block_at_offset()
124 "Failed to read block at offset %zu, of size %zu", (size_t)offset, size); in test_flash_write_block_at_offset()
[all …]
/Zephyr-latest/tests/subsys/modem/mock/
Dmodem_backend_mock.h17 size_t get_size;
21 size_t put_size;
34 size_t transaction_match_cnt;
37 size_t limit;
44 size_t rx_buf_size;
46 size_t tx_buf_size;
47 size_t limit;
55 int modem_backend_mock_get(struct modem_backend_mock *mock, uint8_t *buf, size_t size);
57 void modem_backend_mock_put(struct modem_backend_mock *mock, const uint8_t *buf, size_t size);
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Dutils.h18 uint32_t image_pixel(const uint32_t *img, size_t width, int x, int y);
20 bool verify_image(int x, int y, const uint32_t *img, size_t width, size_t height);
21 bool verify_color_inside_rect(int x, int y, size_t width, size_t height, uint32_t color);
22 bool verify_color_outside_rect(int x, int y, size_t width, size_t height, uint32_t color);
23 bool verify_image_and_bg(int x, int y, const uint32_t *img, size_t width, size_t height,
/Zephyr-latest/include/zephyr/kernel/
Dmm.h149 size_t k_mem_free_get(void);
190 static inline void *k_mem_map(size_t size, uint32_t flags) in k_mem_map()
236 static inline void *k_mem_map_unpaged(uintptr_t location, size_t size, uint32_t flags) in k_mem_map_unpaged()
256 static inline void k_mem_unmap(void *addr, size_t size) in k_mem_unmap()
276 int k_mem_update_flags(void *addr, size_t size, uint32_t flags);
291 size_t k_mem_region_align(uintptr_t *aligned_addr, size_t *aligned_size,
292 uintptr_t addr, size_t size, size_t align);
/Zephyr-latest/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 …]
/Zephyr-latest/kernel/include/
Dkernel_tls.h29 static inline size_t z_tls_data_size(void) in z_tls_data_size()
31 return (size_t)(uintptr_t)__tdata_size + in z_tls_data_size()
32 (size_t)(uintptr_t)__tbss_size; in z_tls_data_size()
46 memcpy(dest, __tdata_start, (size_t)(uintptr_t)__tdata_size); in z_tls_copy()
49 dest += (size_t)(uintptr_t)__tdata_size; in z_tls_copy()
50 memset(dest, 0, (size_t)(uintptr_t)__tbss_size); in z_tls_copy()
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/
Dps.h17 psa_status_t secure_storage_ps_set(const psa_storage_uid_t uid, size_t data_length,
21 psa_status_t secure_storage_ps_get(const psa_storage_uid_t uid, size_t data_offset,
22 size_t data_length, void *p_data, size_t *p_data_length);
32 psa_status_t secure_storage_ps_create(psa_storage_uid_t uid, size_t capacity,
36 psa_status_t secure_storage_ps_set_extended(psa_storage_uid_t uid, size_t data_offset,
37 size_t data_length, const void *p_data);
/Zephyr-latest/subsys/lorawan/services/
Dfrag_decoder_lowmem.c28 static inline size_t matrix_location_to_index(size_t x, size_t y, size_t m) in matrix_location_to_index()
37 static bool triangular_matrix_get_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_get_entry()
41 size_t bit; in triangular_matrix_get_entry()
50 static void triangular_matrix_set_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_set_entry()
60 static void triangular_matrix_clear_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_clear_entry()
71 static inline bool bit_get(struct sys_bitarray *bitmap, size_t index) in bit_get()
80 static inline void bit_set(struct sys_bitarray *bitmap, size_t index) in bit_set()
88 static inline void bit_clear(struct sys_bitarray *bitmap, size_t index) in bit_clear()
96 static inline size_t bit_count_ones(struct sys_bitarray *bitmap, size_t index) in bit_count_ones()
98 size_t count; in bit_count_ones()
[all …]

12345678910>>...98