Home
last modified time | relevance | path

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

12345678910>>...147

/Zephyr-Core-3.6.0/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-Core-3.6.0/include/zephyr/kernel/
Dthread_stack.h97 #define Z_KERNEL_STACK_SIZE_ADJUST(size) (ROUND_UP(size, \ argument
107 #define Z_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[Z_KERNEL_STACK_SIZE_ADJUST(size)]
136 * @param size Size of the stack memory region
138 #define K_KERNEL_STACK_ARRAY_DECLARE(sym, nmemb, size) \ argument
140 sym[nmemb][Z_KERNEL_STACK_LEN(size)]
150 * @param size Size of the stack memory region
[all …]
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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_stm32.c35 /* BBRAM size in bytes. */
36 int size; member
39 static int bbram_stm32_read(const struct device *dev, size_t offset, size_t size, uint8_t *data) in bbram_stm32_read() argument
44 if (size < 1 || offset + size > config->size) { in bbram_stm32_read()
48 for (size_t read = 0; read < size; read += to_copy) { in bbram_stm32_read()
51 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - read); in bbram_stm32_read()
58 static int bbram_stm32_write(const struct device *dev, size_t offset, size_t size, in bbram_stm32_write() argument
64 if (size < 1 || offset + size > config->size) { in bbram_stm32_write()
68 for (size_t written = 0; written < size; written += to_copy) { in bbram_stm32_write()
71 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - written); in bbram_stm32_write()
[all …]
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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/soc/arm/microchip_mec/
DKconfig20 size of the firmware image. Enable this to invoke the mec_spi_gen tool
91 prompt "Flash size"
94 This sets the SPI flash size.
97 bool "SPI flash size 256K Bytes"
99 The SPI flash size is 256K Bytes.
102 bool "SPI flash size 512K Bytes"
104 The SPI flash size is 512K Bytes.
107 bool "SPI flash size 1M Bytes"
109 The SPI flash size is 1M Bytes.
112 bool "SPI flash size 2M Bytes"
[all …]
/Zephyr-Core-3.6.0/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-Core-3.6.0/include/zephyr/drivers/
Dretained_mem.h28 "Size of off_t must be equal or less than size of size_t");
39 * @brief Callback API to get size of retained memory area.
50 size_t size);
58 const uint8_t *buffer, size_t size);
79 retained_mem_size_api size; member
86 * @brief Returns the size of the retained memory area.
90 * @retval Positive value indicating size in bytes on success, else negative errno
99 return api->size(dev); in z_impl_retained_mem_size()
108 * @param size Size of data to read.
113 size_t size);
[all …]
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/
Dmain.c266 static void read_excess_bytes(uint16_t size) in read_excess_bytes() argument
268 if (size > 0) { in read_excess_bytes()
269 uint8_t buffer[size]; in read_excess_bytes()
271 edtt_read((uint8_t *)buffer, size, EDTTT_BLOCK); in read_excess_bytes()
272 printk("command size wrong! (%u extra bytes removed)", size); in read_excess_bytes()
279 static void switch_service_set(uint16_t size) in switch_service_set() argument
284 if (size > 0) { in switch_service_set()
287 size -= sizeof(set); in switch_service_set()
289 read_excess_bytes(size); in switch_service_set()
290 size = 0; in switch_service_set()
[all …]
/Zephyr-Core-3.6.0/tests/subsys/modem/mock/
Dmodem_backend_mock.c20 size_t size) in modem_backend_mock_update() argument
26 for (size_t i = 0; i < size; i++) { in modem_backend_mock_update()
39 static int modem_backend_mock_transmit(void *data, const uint8_t *buf, size_t size) in modem_backend_mock_transmit() argument
44 size = (mock->limit < size) ? mock->limit : size; in modem_backend_mock_transmit()
49 ret = ring_buf_put(&t_mock->rx_rb, buf, size); in modem_backend_mock_transmit()
55 ret = ring_buf_put(&mock->tx_rb, buf, size); in modem_backend_mock_transmit()
56 if (modem_backend_mock_update(mock, buf, size)) { in modem_backend_mock_transmit()
67 static int modem_backend_mock_receive(void *data, uint8_t *buf, size_t size) in modem_backend_mock_receive() argument
71 size = (mock->limit < size) ? mock->limit : size; in modem_backend_mock_receive()
72 return ring_buf_get(&mock->rx_rb, buf, size); in modem_backend_mock_receive()
[all …]
/Zephyr-Core-3.6.0/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>>...147