/Zephyr-Core-3.5.0/samples/drivers/display/src/ |
D | main.c | 29 size_t buf_size); 47 size_t buf_size) in fill_buffer_argb8888() argument 66 for (size_t idx = 0; idx < buf_size; idx += 4) { in fill_buffer_argb8888() 72 size_t buf_size) in fill_buffer_rgb888() argument 91 for (size_t idx = 0; idx < buf_size; idx += 3) { in fill_buffer_rgb888() 123 size_t buf_size) in fill_buffer_rgb565() argument 127 for (size_t idx = 0; idx < buf_size; idx += 2) { in fill_buffer_rgb565() 134 size_t buf_size) in fill_buffer_bgr565() argument 138 for (size_t idx = 0; idx < buf_size; idx += 2) { in fill_buffer_bgr565() 144 size_t buf_size) in fill_buffer_mono() argument [all …]
|
/Zephyr-Core-3.5.0/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.h | 144 static inline size_t vq_ring_size(unsigned int num, unsigned int buf_size) in vq_ring_size() argument 146 return ROUND_UP((buf_size * num), MEM_ALIGNMENT); in vq_ring_size() 149 static inline size_t shm_size(unsigned int num, unsigned int buf_size) in shm_size() argument 151 return (VRING_COUNT * (vq_ring_size(num, buf_size) + in shm_size() 155 static inline unsigned int optimal_num_desc(size_t mem_size, unsigned int buf_size) in optimal_num_desc() argument 162 while (available > shm_size(num_desc, buf_size)) { in optimal_num_desc()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/littlefs/src/ |
D | test_lfs_perf.c | 24 size_t buf_size, in write_read() argument 32 size_t total = nbuf * buf_size; in write_read() 68 buf = calloc(buf_size, sizeof(uint8_t)); in write_read() 70 TC_PRINT("Failed to allocate %zu-byte buffer\n", buf_size); in write_read() 74 for (size_t i = 0; i < buf_size; ++i) { in write_read() 79 nbuf, buf_size); in write_read() 89 rc = fs_write(&file, buf, buf_size); in write_read() 90 if (buf_size != rc) { in write_read() 116 tag, nbuf, buf_size, total, (t1 - t0), in write_read() 128 rc = fs_read(&file, buf, buf_size); in write_read() [all …]
|
/Zephyr-Core-3.5.0/drivers/modem/ |
D | modem_context.c | 23 int modem_context_sprint_ip_addr(const struct sockaddr *addr, char *buf, size_t buf_size) in modem_context_sprint_ip_addr() argument 28 if (buf_size < NET_IPV6_ADDR_LEN) { in modem_context_sprint_ip_addr() 33 buf, buf_size) == NULL) { in modem_context_sprint_ip_addr() 40 if (buf_size < NET_IPV4_ADDR_LEN) { in modem_context_sprint_ip_addr() 44 buf, buf_size) == NULL) { in modem_context_sprint_ip_addr() 52 if (buf_size < sizeof(unknown_str)) { in modem_context_sprint_ip_addr()
|
D | modem_context.h | 84 int modem_context_sprint_ip_addr(const struct sockaddr *addr, char *buf, size_t buf_size);
|
/Zephyr-Core-3.5.0/modules/lvgl/ |
D | lvgl.c | 136 uint32_t buf_size; in lvgl_allocate_rendering_buffers() local 150 buf_size = 4 * buf_nbr_pixels; in lvgl_allocate_rendering_buffers() 153 buf_size = 3 * buf_nbr_pixels; in lvgl_allocate_rendering_buffers() 156 buf_size = 2 * buf_nbr_pixels; in lvgl_allocate_rendering_buffers() 160 buf_size = buf_nbr_pixels / 8; in lvgl_allocate_rendering_buffers() 161 buf_size += (buf_nbr_pixels % 8) == 0 ? 0 : 1; in lvgl_allocate_rendering_buffers() 167 buf0 = LV_MEM_CUSTOM_ALLOC(buf_size); in lvgl_allocate_rendering_buffers() 174 buf1 = LV_MEM_CUSTOM_ALLOC(buf_size); in lvgl_allocate_rendering_buffers()
|
D | lvgl_display_16bit.c | 21 flush.desc.buf_size = w * 2U * h; in lvgl_flush_cb_16bit()
|
D | lvgl_display_32bit.c | 21 flush.desc.buf_size = w * 4U * h; in lvgl_flush_cb_32bit()
|
D | lvgl_display_24bit.c | 21 flush.desc.buf_size = w * 3U * h; in lvgl_flush_cb_24bit()
|
/Zephyr-Core-3.5.0/drivers/ethernet/ |
D | eth_nxp_s32_netc_priv.h | 51 #define _NETC_RING(n, idx, len, buf_size, prefix1, prefix2) \ argument 54 static uint8_t nxp_s32_eth##n##_##prefix2##ring##idx##_buf[len * buf_size] \ 57 #define NETC_RX_RING(n, idx, len, buf_size) _NETC_RING(n, idx, len, buf_size, Rx, rx) argument 58 #define NETC_TX_RING(n, idx, len, buf_size) _NETC_RING(n, idx, len, buf_size, Tx, tx) argument 95 void (*handler)(uint8_t chan, const uint32_t *buf, uint8_t buf_size);
|
D | eth_cyclonev.c | 644 uint32_t index, frame_length, rx_search, wrap, data_remaining, last_desc_index, buf_size; in eth_cyclonev_receive() local 695 buf_size = data_remaining; in eth_cyclonev_receive() 697 buf_size = ETH_BUFFER_SIZE; in eth_cyclonev_receive() 701 buf_size); in eth_cyclonev_receive() 703 data_remaining -= buf_size; in eth_cyclonev_receive() 716 buf_size = data_remaining; in eth_cyclonev_receive() 718 buf_size = ETH_BUFFER_SIZE; in eth_cyclonev_receive() 724 buf_size); in eth_cyclonev_receive() 726 data_remaining -= buf_size; in eth_cyclonev_receive()
|
/Zephyr-Core-3.5.0/subsys/net/lib/dns/ |
D | dns_sd.c | 37 uint16_t buf_offset, uint16_t buf_size); 40 uint16_t buf_size, 46 uint16_t buf_offset, uint16_t buf_size); 50 uint16_t buf_size); 55 uint16_t buf_size, 302 uint16_t buf_offset, uint16_t buf_size) in add_a_record() argument 321 if (offset > buf_size || total_size >= buf_size - offset) { in add_a_record() 323 total_size, (int)buf_size - (int)offset); in add_a_record() 351 uint8_t *buf, uint16_t buf_offset, uint16_t buf_size, in add_ptr_record() argument 398 if (offset > buf_size || name_size >= buf_size - offset) { in add_ptr_record() [all …]
|
D | dns_sd.h | 166 uint8_t *buf, uint16_t buf_size); 184 uint8_t *buf, uint16_t buf_size);
|
/Zephyr-Core-3.5.0/subsys/shell/modules/ |
D | device_service.c | 35 size_t buf_size; member 44 get_device_name(dev, ctx->buf, ctx->buf_size)); in cmd_device_list_visitor() 88 .buf_size = sizeof(buf), in cmd_device_list()
|
/Zephyr-Core-3.5.0/include/zephyr/modem/ |
D | ppp.h | 86 uint16_t buf_size; member 183 .buf_size = _buf_size, \
|
/Zephyr-Core-3.5.0/drivers/display/ |
D | display_sdl.c | 73 __ASSERT((desc->pitch * 4U * desc->height) <= desc->buf_size, in sdl_display_write_argb8888() 87 __ASSERT((desc->pitch * 3U * desc->height) <= desc->buf_size, in sdl_display_write_rgb888() 112 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, in sdl_display_write_rgb565() 137 __ASSERT((desc->pitch * 2U * desc->height) <= desc->buf_size, in sdl_display_write_bgr565() 165 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), in sdl_display_write_mono() 256 __ASSERT((desc->pitch * 3U * desc->height) <= desc->buf_size, in sdl_display_read()
|
D | display_max7219.c | 168 __ASSERT((desc->pitch * desc->height) <= (desc->buf_size * 8U), "Input buffer to small"); in max7219_write() 177 if (desc->width > desc->pitch || (desc->pitch * desc->height) > (desc->buf_size * 8U)) { in max7219_write() 357 .buf_size = dev_config->num_cascading * MAX7219_DIGITS_PER_DEVICE, in max7219_init()
|
/Zephyr-Core-3.5.0/tests/lib/cmsis_nn/src/ |
D | main.c | 191 int32_t buf_size = arm_convolve_s8_get_buffer_size(&input_dims, &filter_dims); in ZTEST() local 193 ctx.buf = malloc(buf_size); in ZTEST() 212 buf_size = arm_convolve_wrapper_s8_get_buffer_size(&conv_params, &input_dims, in ZTEST() 214 ctx.buf = malloc(buf_size); in ZTEST() 402 int32_t buf_size = arm_fully_connected_s8_get_buffer_size(&filter_dims); in ZTEST() local 404 ctx.buf = malloc(buf_size); in ZTEST() 405 ctx.size = buf_size; in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_senml_cbor.c | 73 static int path_to_string(char *buf, size_t buf_size, const struct lwm2m_obj_path *input, 1065 static int path_to_string(char *buf, size_t buf_size, const struct lwm2m_obj_path *input, in path_to_string() argument 1072 if (!buf || buf_size < sizeof("/") || !input) { in path_to_string() 1076 memset(buf, '\0', buf_size); in path_to_string() 1084 w = snprintk(&(buf[fpl]), buf_size - fpl, "/"); in path_to_string() 1087 w = snprintk(&(buf[fpl]), buf_size - fpl, "%" PRIu16 "/", input->obj_id); in path_to_string() 1090 w = snprintk(&(buf[fpl]), buf_size - fpl, "%" PRIu16 "/", in path_to_string() 1094 w = snprintk(&(buf[fpl]), buf_size - fpl, "%" PRIu16 "", input->res_id); in path_to_string() 1097 w = snprintk(&(buf[fpl]), buf_size - fpl, "/%" PRIu16 "", in path_to_string() 1105 if (w < 0 || w >= buf_size - fpl) { in path_to_string()
|
/Zephyr-Core-3.5.0/include/zephyr/data/ |
D | json.h | 704 ssize_t json_escape(char *str, size_t *len, size_t buf_size); 755 const void *val, char *buffer, size_t buf_size); 770 char *buffer, size_t buf_size);
|
/Zephyr-Core-3.5.0/include/zephyr/logging/ |
D | log_ctrl.h | 242 int log_mem_get_usage(uint32_t *buf_size, uint32_t *usage);
|
/Zephyr-Core-3.5.0/samples/boards/nrf/nrf_led_matrix/src/ |
D | main.c | 18 .buf_size = sizeof(buf), 42 .buf_size = sizeof(small_bufs[0]), in update_block_3x3()
|
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/common/include/ |
D | intel_adsp_hda.h | 153 uint32_t buf_size) in intel_adsp_hda_set_buffer() argument 161 uint32_t aligned_size = buf_size & HDA_ALIGN_MASK; in intel_adsp_hda_set_buffer() 167 __ASSERT(aligned_size == buf_size, in intel_adsp_hda_set_buffer()
|
/Zephyr-Core-3.5.0/tests/net/lib/dns_sd/src/ |
D | main.c | 32 uint16_t buf_offset, uint16_t buf_size); 35 uint16_t buf_size, 41 uint16_t buf_offset, uint16_t buf_size); 45 uint16_t buf_size); 50 uint16_t buf_size,
|
/Zephyr-Core-3.5.0/lib/os/ |
D | json.c | 840 ssize_t json_escape(char *str, size_t *len, size_t buf_size) in json_escape() argument 853 if (escaped_len >= buf_size) { in json_escape() 1115 const void *val, char *buffer, size_t buf_size) in json_obj_encode_buf() argument 1117 struct appender appender = { .buffer = buffer, .size = buf_size }; in json_obj_encode_buf() 1124 char *buffer, size_t buf_size) in json_arr_encode_buf() argument 1126 struct appender appender = { .buffer = buffer, .size = buf_size }; in json_arr_encode_buf()
|