Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 12 of 12) sorted by relevance

/subsys/ipc/ipc_service/backends/
A Dipc_rpmsg_static_vrings.h144 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()
/subsys/net/lib/dns/
A Ddns_sd.c40 uint16_t buf_size,
50 uint16_t buf_size);
55 uint16_t buf_size,
326 if (offset > buf_size || total_size >= buf_size - offset) { in add_a_record()
403 if (offset > buf_size || name_size >= buf_size - offset) { in add_ptr_record()
494 if (offset > buf_size || total_size >= buf_size - offset) { in add_txt_record()
543 if (offset > buf_size || total_size >= buf_size - offset) { in add_aaaa_record()
607 if (offset > buf_size || total_size >= buf_size - offset) { in add_srv_record()
818 buf_size - offset); in dns_sd_handle_ptr_query()
886 if (offset > buf_size || name_size >= buf_size - offset) { in dns_sd_handle_service_type_enum()
[all …]
A Ddns_sd.h141 uint8_t *buf, uint16_t buf_size);
159 uint8_t *buf, uint16_t buf_size);
/subsys/shell/modules/
A Ddevice_service.c36 size_t buf_size; member
45 get_device_name(dev, ctx->buf, ctx->buf_size)); in cmd_device_list_visitor()
98 .buf_size = sizeof(buf), in cmd_device_list()
146 get_device_name(dev, ctx->buf, ctx->buf_size)); in cmd_device_check_deps()
177 .buf_size = sizeof(buf), in cmd_device_init()
/subsys/llext/
A Dllext_handlers.c18 ssize_t z_impl_llext_get_fn_table(struct llext *ext, bool is_init, void *buf, size_t buf_size) in z_impl_llext_get_fn_table() argument
36 if (buf_size < table_size) { in z_impl_llext_get_fn_table()
/subsys/net/lib/lwm2m/
A Dlwm2m_rw_senml_cbor.c73 static int path_to_string(char *buf, size_t buf_size, const struct lwm2m_obj_path *input,
1079 static int path_to_string(char *buf, size_t buf_size, const struct lwm2m_obj_path *input, in path_to_string() argument
1086 if (!buf || buf_size < sizeof("/") || !input) { in path_to_string()
1090 memset(buf, '\0', buf_size); in path_to_string()
1098 w = snprintk(&(buf[fpl]), buf_size - fpl, "/"); in path_to_string()
1101 w = snprintk(&(buf[fpl]), buf_size - fpl, "%" PRIu16 "/", input->obj_id); in path_to_string()
1104 w = snprintk(&(buf[fpl]), buf_size - fpl, "%" PRIu16 "/", in path_to_string()
1108 w = snprintk(&(buf[fpl]), buf_size - fpl, "%" PRIu16 "", input->res_id); in path_to_string()
1111 w = snprintk(&(buf[fpl]), buf_size - fpl, "/%" PRIu16 "", in path_to_string()
1119 if (w < 0 || w >= buf_size - fpl) { in path_to_string()
/subsys/storage/flash_map/
A Dflash_map.c87 off_t len, uint8_t *buf, size_t buf_size) in flash_area_copy() argument
96 buf_size); in flash_area_copy()
/subsys/modem/backends/
A Dmodem_backend_uart_async_hwfc.c409 int32_t buf_size = (int32_t)config->receive_buf_size; in modem_backend_uart_async_init() local
419 buf_size -= (config->receive_buf_size % (sizeof(uint32_t) * backend->async.rx_buf_count)); in modem_backend_uart_async_init()
420 backend->async.rx_buf_size = buf_size / backend->async.rx_buf_count; in modem_backend_uart_async_init()
A Dmodem_backend_uart_async.c119 const unsigned int buf_size = get_receive_buf_length(backend); in modem_backend_uart_async_event_handler() local
125 buf_size - received, (unsigned int)evt->data.rx.len); in modem_backend_uart_async_event_handler()
/subsys/modem/
A Dmodem_ppp.c414 ret = modem_pipe_receive(ppp->pipe, ppp->receive_buf, ppp->buf_size); in modem_ppp_process_handler()
494 return ppp->buf_size; in get_buf_size()
587 ring_buf_init(&ppp->transmit_rb, ppp->buf_size, ppp->transmit_buf); in modem_ppp_init_internal()
/subsys/logging/
A Dlog_core.c897 int log_mem_get_usage(uint32_t *buf_size, uint32_t *usage) in log_mem_get_usage() argument
899 __ASSERT_NO_MSG(buf_size != NULL); in log_mem_get_usage()
906 mpsc_pbuf_get_utilization(&log_buffer, buf_size, usage); in log_mem_get_usage()
/subsys/fb/
A Dcfb.c572 .buf_size = fb->size, in cfb_framebuffer_finalize()

Completed in 24 milliseconds