Home
last modified time | relevance | path

Searched full:size (Results 1 – 25 of 3827) sorted by relevance

12345678910>>...154

/Zephyr-latest/lib/utils/
Dring_buffer.c12 uint32_t ring_buf_put_claim(struct ring_buf *buf, uint8_t **data, uint32_t size) in ring_buf_put_claim() argument
19 if (unlikely(wrap_size >= buf->size)) { in ring_buf_put_claim()
21 wrap_size -= buf->size; in ring_buf_put_claim()
22 base += buf->size; in ring_buf_put_claim()
24 wrap_size = buf->size - wrap_size; in ring_buf_put_claim()
27 size = MIN(size, free_space); in ring_buf_put_claim()
28 size = MIN(size, wrap_size); in ring_buf_put_claim()
31 buf->put_head += size; in ring_buf_put_claim()
33 return size; in ring_buf_put_claim()
36 int ring_buf_put_finish(struct ring_buf *buf, uint32_t size) in ring_buf_put_finish() argument
[all …]
/Zephyr-latest/include/zephyr/kernel/
Dthread_stack.h97 #define Z_KERNEL_STACK_SIZE_ADJUST(size) (ROUND_UP(size, \ argument
107 #define K_KERNEL_STACK_LEN(size) \ argument
108 ROUND_UP(Z_KERNEL_STACK_SIZE_ADJUST(size), Z_KERNEL_STACK_OBJ_ALIGN)
122 * @param size Size of the stack memory region
124 #define K_KERNEL_STACK_DECLARE(sym, size) \ argument
126 sym[K_KERNEL_STACK_LEN(size)]
136 * @param size Size of the stack memory region
138 #define K_KERNEL_STACK_ARRAY_DECLARE(sym, nmemb, size) \ argument
140 sym[nmemb][K_KERNEL_STACK_LEN(size)]
150 * @param size Size of the stack memory region
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/hci_test_app/src/
Dmain.c65 static void read_excess_bytes(uint16_t size) in read_excess_bytes() argument
67 if (size > 0) { in read_excess_bytes()
68 uint8_t buffer[size]; in read_excess_bytes()
70 edtt_read((uint8_t *)buffer, size, EDTTT_BLOCK); in read_excess_bytes()
71 LOG_ERR("command size wrong! (%u extra bytes removed)", size); in read_excess_bytes()
82 uint16_t size = sys_cpu_to_le16(sizeof(le_error)); in error_response() local
85 edtt_write((uint8_t *)&size, sizeof(size), EDTTT_BLOCK); in error_response()
179 static void echo(uint16_t size) in echo() argument
182 uint16_t le_size = sys_cpu_to_le16(size); in echo()
187 if (size > 0) { in echo()
[all …]
/Zephyr-latest/tests/drivers/flash_api/src/
Dmain.c21 /* Some size */
22 uint64_t size; member
25 .size = 0,
29 static int some_get_size(const struct device *dev, uint64_t *size) in some_get_size() argument
33 *size = simulated_values.size; in some_get_size()
38 static int enotsup_get_size(const struct device *dev, uint64_t *size) in enotsup_get_size() argument
85 uint64_t size = 0; in ZTEST() local
87 simulated_values.size = 45; in ZTEST()
88 zassert_ok(flash_get_size(&size_fun_dev, &size), "Expected success"); in ZTEST()
89 zassert_equal(size, simulated_values.size, "Size mismatch"); in ZTEST()
[all …]
/Zephyr-latest/subsys/tracing/include/
Dtracing_buffer.h37 * @brief Get tracing buffer capacity (max size).
48 * @param size Requested buffer size (in bytes).
50 * @return Size of allocated buffer which can be smaller than
53 uint32_t tracing_buffer_put_claim(uint8_t **data, uint32_t size);
58 * @param size Number of bytes written to the allocated buffer.
61 * @retval -EINVAL Given @a size exceeds free space of tracing buffer.
63 int tracing_buffer_put_finish(uint32_t size);
69 * @param size Data size (in bytes).
73 uint32_t tracing_buffer_put(uint8_t *data, uint32_t size);
80 * @param size Requested buffer size (in bytes).
[all …]
/Zephyr-latest/lib/cpp/minimal/
Dcpp_new.cpp22 NODISCARD void* operator new(size_t size) in operator new() argument
24 return malloc(size); in operator new()
27 NODISCARD void* operator new[](size_t size) in operator new[]() argument
29 return malloc(size); in operator new[]()
32 NODISCARD void* operator new(std::size_t size, const std::nothrow_t& tag) NOEXCEPT in operator new() argument
34 return malloc(size); in operator new()
37 NODISCARD void* operator new[](std::size_t size, const std::nothrow_t& tag) NOEXCEPT in operator new[]() argument
39 return malloc(size); in operator new[]()
43 NODISCARD void* operator new(size_t size, std::align_val_t al) in operator new() argument
45 return aligned_alloc(static_cast<size_t>(al), size); in operator new()
[all …]
/Zephyr-latest/subsys/tracing/
Dtracing_buffer.c20 uint32_t tracing_buffer_put_claim(uint8_t **data, uint32_t size) in tracing_buffer_put_claim() argument
22 return ring_buf_put_claim(&tracing_ring_buf, data, size); in tracing_buffer_put_claim()
25 int tracing_buffer_put_finish(uint32_t size) in tracing_buffer_put_finish() argument
27 return ring_buf_put_finish(&tracing_ring_buf, size); in tracing_buffer_put_finish()
30 uint32_t tracing_buffer_put(uint8_t *data, uint32_t size) in tracing_buffer_put() argument
32 return ring_buf_put(&tracing_ring_buf, data, size); in tracing_buffer_put()
35 uint32_t tracing_buffer_get_claim(uint8_t **data, uint32_t size) in tracing_buffer_get_claim() argument
37 return ring_buf_get_claim(&tracing_ring_buf, data, size); in tracing_buffer_get_claim()
40 int tracing_buffer_get_finish(uint32_t size) in tracing_buffer_get_finish() argument
42 return ring_buf_get_finish(&tracing_ring_buf, size); in tracing_buffer_get_finish()
[all …]
/Zephyr-latest/subsys/shell/modules/kernel_service/thread/
Dstacks.c27 size_t size = thread->stack_info.size; in shell_stack_dump() local
34 "Unable to determine unused stack size (%d)\n", in shell_stack_dump()
41 /* Calculate the real size reserved for the stack */ in shell_stack_dump()
42 pcnt = ((size - unused) * 100U) / size; in shell_stack_dump()
46 "(real size %4zu):\tunused %4zu\tusage %4zu / %4zu (%2u %%)", in shell_stack_dump()
47 thread, tname ? tname : "NA", size, unused, size - unused, size, pcnt); in shell_stack_dump()
76 size_t size = K_KERNEL_STACK_SIZEOF(z_interrupt_stacks[i]); in cmd_kernel_thread_stacks() local
77 int err = z_stack_space_get(buf, size, &unused); in cmd_kernel_thread_stacks()
83 "%p IRQ %02d %s(real size %4zu):\tunused %4zu\tusage %4zu / %4zu (%2zu %%)", in cmd_kernel_thread_stacks()
84 &z_interrupt_stacks[i], i, pad, size, unused, size - unused, size, in cmd_kernel_thread_stacks()
[all …]
/Zephyr-latest/scripts/native_simulator/common/src/
Dnsi_host_trampolines.c14 void *nsi_host_calloc(unsigned long nmemb, unsigned long size) in nsi_host_calloc() argument
16 return calloc(nmemb, size); in nsi_host_calloc()
29 char *nsi_host_getcwd(char *buf, unsigned long size) in nsi_host_getcwd() argument
31 return getcwd(buf, size); in nsi_host_getcwd()
39 void *nsi_host_malloc(unsigned long size) in nsi_host_malloc() argument
41 return malloc(size); in nsi_host_malloc()
54 long nsi_host_read(int fd, void *buffer, unsigned long size) in nsi_host_read() argument
56 return read(fd, buffer, size); in nsi_host_read()
59 void *nsi_host_realloc(void *ptr, unsigned long size) in nsi_host_realloc() argument
61 return realloc(ptr, size); in nsi_host_realloc()
[all …]
/Zephyr-latest/drivers/bbram/
Dbbram_xec.c21 /** BBRAM size (Unit:bytes) */
22 int size; member
39 static int bbram_xec_get_size(const struct device *dev, size_t *size) in bbram_xec_get_size() argument
43 *size = dcfg->size; in bbram_xec_get_size()
47 static int bbram_xec_read(const struct device *dev, size_t offset, size_t size, in bbram_xec_read() argument
52 if (size < 1 || offset + size > dcfg->size) { in bbram_xec_read()
57 bytecpy(data, dcfg->base + offset, size); in bbram_xec_read()
61 static int bbram_xec_write(const struct device *dev, size_t offset, size_t size, in bbram_xec_write() argument
66 if (size < 1 || offset + size > dcfg->size) { in bbram_xec_write()
71 bytecpy(dcfg->base + offset, data, size); in bbram_xec_write()
[all …]
Dbbram_it8xxx2.c37 static int bbram_it8xxx2_read(const struct device *dev, size_t offset, size_t size, uint8_t *data) in bbram_it8xxx2_read() argument
41 if (size < 1 || offset + size > config->size) { in bbram_it8xxx2_read()
45 bytecpy(data, ((uint8_t *)config->base_addr + offset), size); in bbram_it8xxx2_read()
49 static int bbram_it8xxx2_write(const struct device *dev, size_t offset, size_t size, in bbram_it8xxx2_write() argument
54 if (size < 1 || offset + size > config->size) { in bbram_it8xxx2_write()
58 bytecpy(((uint8_t *)config->base_addr + offset), data, size); in bbram_it8xxx2_write()
62 static int bbram_it8xxx2_size(const struct device *dev, size_t *size) in bbram_it8xxx2_size() argument
66 *size = config->size; in bbram_it8xxx2_size()
84 int size = config->size; in bbram_it8xxx2_init() local
94 for (int i = 0; i < size; i++) { in bbram_it8xxx2_init()
Dbbram_emul.c16 /** BBRAM size (Unit:bytes) */
17 int size; member
86 static int bbram_emul_get_size(const struct device *dev, size_t *size) in bbram_emul_get_size() argument
90 *size = config->size; in bbram_emul_get_size()
94 static int bbram_emul_read(const struct device *dev, size_t offset, size_t size, in bbram_emul_read() argument
100 if (size < 1 || offset + size > config->size || bbram_emul_check_invalid(dev)) { in bbram_emul_read()
104 memcpy(data, dev_data->data + offset, size); in bbram_emul_read()
108 static int bbram_emul_write(const struct device *dev, size_t offset, size_t size, in bbram_emul_write() argument
114 if (size < 1 || offset + size > config->size || bbram_emul_check_invalid(dev)) { in bbram_emul_write()
118 memcpy(dev_data->data + offset, data, size); in bbram_emul_write()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_gecko.c33 static bool write_range_is_valid(off_t offset, uint32_t size);
34 static bool read_range_is_valid(off_t offset, uint32_t size);
35 static int erase_flash_block(off_t offset, size_t size);
40 size_t size) in flash_gecko_read() argument
42 if (!read_range_is_valid(offset, size)) { in flash_gecko_read()
46 if (!size) { in flash_gecko_read()
50 memcpy(data, (uint8_t *)CONFIG_FLASH_BASE_ADDRESS + offset, size); in flash_gecko_read()
56 const void *data, size_t size) in flash_gecko_write() argument
63 if (!write_range_is_valid(offset, size)) { in flash_gecko_write()
67 if (!size) { in flash_gecko_write()
[all …]
Dflash_smartbond.c32 static bool range_is_valid(off_t offset, uint32_t size) in range_is_valid() argument
34 return (offset + size) <= (CONFIG_FLASH_SIZE * 1024); in range_is_valid()
102 static __ramfunc size_t qspic_write_page(uint32_t address, const uint8_t *data, size_t size) in qspic_write_page() argument
107 size = MIN(size, FLASH_PAGE_SIZE - (address & (FLASH_PAGE_SIZE - 1))); in qspic_write_page()
108 written = size; in qspic_write_page()
115 while (size >= 4) { in qspic_write_page()
118 size -= 4; in qspic_write_page()
121 while (size) { in qspic_write_page()
124 size--; in qspic_write_page()
132 static __ramfunc void qspic_write(uint32_t address, const uint8_t *data, size_t size) in qspic_write() argument
[all …]
/Zephyr-latest/subsys/fs/ext2/
Dext2_bitmap.h15 * NOTICE: Assumed size of the bitmap is 256 B (1024 bits).
24 * @param size Size of bitmap in bytes
29 int ext2_bitmap_set(uint8_t *bm, uint32_t index, uint32_t size);
36 * @param size Size of bitmap in bytes
41 int ext2_bitmap_unset(uint8_t *bm, uint32_t index, uint32_t size);
47 * @param size Size of bitmap in bytes
52 int32_t ext2_bitmap_find_free(uint8_t *bm, uint32_t size);
58 * @param size Size of bitmap in bits
62 uint32_t ext2_bitmap_count_set(uint8_t *bm, uint32_t size);
/Zephyr-latest/drivers/cache/
Dcache_handlers.c10 static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size) in z_vrfy_sys_cache_data_flush_range() argument
12 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); in z_vrfy_sys_cache_data_flush_range()
14 return z_impl_sys_cache_data_flush_range(addr, size); in z_vrfy_sys_cache_data_flush_range()
18 static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size) in z_vrfy_sys_cache_data_invd_range() argument
20 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); in z_vrfy_sys_cache_data_invd_range()
22 return z_impl_sys_cache_data_invd_range(addr, size); in z_vrfy_sys_cache_data_invd_range()
26 static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size) in z_vrfy_sys_cache_data_flush_and_invd_range() argument
28 K_OOPS(K_SYSCALL_MEMORY_WRITE(addr, size)); in z_vrfy_sys_cache_data_flush_and_invd_range()
30 return z_impl_sys_cache_data_flush_and_invd_range(addr, size); in z_vrfy_sys_cache_data_flush_and_invd_range()
/Zephyr-latest/dts/bindings/misc/
Dzephyr,flash-disk.yaml23 sector-size:
27 Emulated block device sector size in bytes.
29 cache-size:
33 Size of statically allocated buffer size in bytes. The size should be
35 should be at least the erase-block-size, on storage backends with
37 erase-block-size. The cache-size property is ignored if the partition
/Zephyr-latest/include/zephyr/arch/
Dcache.h97 * @p addr or a padded @p size is not strictly necessary.
100 * @param size Range size.
106 int arch_dcache_flush_range(void *addr, size_t size);
108 #define cache_data_flush_range(addr, size) arch_dcache_flush_range(addr, size) argument
120 * line and/or @p size is not a multiple of the cache line size the
124 * @param size Range size.
130 int arch_dcache_invd_range(void *addr, size_t size);
132 #define cache_data_invd_range(addr, size) arch_dcache_invd_range(addr, size) argument
144 * time, so having an aligned @p addr or a padded @p size is not strictly
148 * @param size Range size.
[all …]
/Zephyr-latest/include/zephyr/arch/arc/
Darch.h110 * For regions that are NOT the minimum size, this define has no semantics
111 * on ARC MPUv2 as its regions must be power of two size and aligned to their
112 * own size. On ARC MPUv4, region sizes are arbitrary and this just indicates
113 * the required size granularity.
142 * +------------+ <- thread.stack_info.start + thread.stack_info.size
172 * +------------+ <- thread.stack_info.start + thread.stack_info.size
176 #define ARCH_THREAD_STACK_OBJ_ALIGN(size) Z_ARC_MPU_ALIGN argument
178 * so round its size up to the required granularity of the MPU
180 #define ARCH_THREAD_STACK_SIZE_ADJUST(size) \ argument
181 (ROUND_UP((size), Z_ARC_MPU_ALIGN))
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dretained_mem.h28 "Size of off_t must be equal or less than size of size_t");
41 * @brief Callback API to get size of retained memory area.
52 size_t size);
60 const uint8_t *buffer, size_t size);
81 retained_mem_size_api size; member
88 * @brief Returns the size of the retained memory area.
92 * @retval Positive value indicating size in bytes on success, else negative errno
101 return api->size(dev); in z_impl_retained_mem_size()
110 * @param size Size of data to read.
115 size_t size);
[all …]
/Zephyr-latest/samples/subsys/zbus/dyn_channel/
Dsample.yaml10 - "W: size=01"
13 - "W: size=02"
16 - "W: size=03"
19 - "W: size=04"
22 - "W: size=05"
25 - "W: size=06"
28 - "W: size=07"
31 - "W: size=08"
34 - "W: size=09"
38 - "W: size=10"
[all …]
DREADME.rst28 W: size=01
31 W: size=02
34 W: size=03
37 W: size=04
40 W: size=05
43 W: size=06
46 W: size=07
49 W: size=08
52 W: size=09
56 W: size=10
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_tx_queue/src/
Dmain.c29 #define SIZE 10U macro
53 struct node_tx ctrl_nodes1[SIZE] = { 0 }; in ZTEST()
58 for (int i = 0U; i < SIZE; i++) { in ZTEST()
63 for (int i = 0U; i < SIZE; i++) { in ZTEST()
82 struct node_tx nodes[SIZE] = { 0 }; in ZTEST()
87 for (int i = 0U; i < SIZE; i++) { in ZTEST()
92 for (int i = 0U; i < SIZE; i++) { in ZTEST()
111 struct node_tx ctrl_nodes1[SIZE] = { 0 }; in ZTEST()
112 struct node_tx data_nodes1[SIZE] = { 0 }; in ZTEST()
117 for (int i = 0U; i < SIZE; i++) { in ZTEST()
[all …]
/Zephyr-latest/dts/riscv/starfive/
Djh7110-visionfive-v2.dtsi14 #size-cells = <2>;
20 #size-cells = <0>;
38 d-cache-block-size = <64>;
40 d-cache-size = <32768>;
42 d-tlb-size = <40>;
43 i-cache-block-size = <64>;
45 i-cache-size = <32768>;
47 i-tlb-size = <40>;
63 d-cache-block-size = <64>;
65 d-cache-size = <32768>;
[all …]
/Zephyr-latest/arch/arm/core/cortex_m/
Dcache.c49 int arch_dcache_flush_range(void *start_addr, size_t size) in arch_dcache_flush_range() argument
51 SCB_CleanDCache_by_Addr(start_addr, size); in arch_dcache_flush_range()
56 int arch_dcache_invd_range(void *start_addr, size_t size) in arch_dcache_invd_range() argument
58 SCB_InvalidateDCache_by_Addr(start_addr, size); in arch_dcache_invd_range()
63 int arch_dcache_flush_and_invd_range(void *start_addr, size_t size) in arch_dcache_flush_and_invd_range() argument
65 SCB_CleanInvalidateDCache_by_Addr(start_addr, size); in arch_dcache_flush_and_invd_range()
97 int arch_icache_flush_range(void *start_addr, size_t size) in arch_icache_flush_range() argument
102 int arch_icache_invd_range(void *start_addr, size_t size) in arch_icache_invd_range() argument
104 SCB_InvalidateICache_by_Addr(start_addr, size); in arch_icache_invd_range()
109 int arch_icache_flush_and_invd_range(void *start_addr, size_t size) in arch_icache_flush_and_invd_range() argument

12345678910>>...154