| /subsys/modem/ |
| A D | modem_stats.c | 79 buffer->max_used = 0; in stats_buffer_get_and_clear_max_used() 91 LOG_ERR("%s: length (%u) exceeds size (%u)", buffer->name, length, buffer->size); in stats_buffer_log_invalid_length() 98 buffer->max_used = length; in stats_buffer_update_max_used() 108 buffer->size, percent_used(max_used, buffer->size)); in stats_buffer_print_to_shell() 121 if (buffer == NULL) { in stats_buffer_shell_cmd_handler() 126 while (buffer != NULL) { in stats_buffer_shell_cmd_handler() 129 buffer = stats_buffer_list_next(buffer); in stats_buffer_shell_cmd_handler() 145 buffer->name[sizeof(buffer->name) - 1] = '\0'; in stats_buffer_set_name() 146 strncpy(buffer->name, name, sizeof(buffer->name) - 1); in stats_buffer_set_name() 153 buffer->max_used = 0; in modem_stats_buffer_init() [all …]
|
| A D | Kconfig | 18 int "Modem chat log buffer size in bytes" 47 int "CMUX module work buffer size in bytes" 52 Size of the work buffer used by the CMUX module. 79 int "Network buffer fragment size" 91 scaling buffer sizes, as these are application specific. 94 int "Maximum string size of modem stats buffer name" 108 int "Modem U-BLOX log buffer size"
|
| /subsys/testsuite/coverage/ |
| A D | coverage.c | 65 if (buffer != NULL) { in write_u64() 150 write_u32(buffer, in gcov_populate_buffer() 154 write_u32(buffer, in gcov_populate_buffer() 158 write_u32(buffer, in gcov_populate_buffer() 163 write_u32(buffer, in gcov_populate_buffer() 175 write_u32(buffer, in gcov_populate_buffer() 179 write_u32(buffer, in gcov_populate_buffer() 183 write_u32(buffer, in gcov_populate_buffer() 187 write_u32(buffer, in gcov_populate_buffer() 191 write_u32(buffer, in gcov_populate_buffer() [all …]
|
| /subsys/net/lib/prometheus/ |
| A D | formatter.c | 31 size_t len = strlen(buffer); in write_metric_to_buffer() 36 buffer += len; in write_metric_to_buffer() 40 len = vsnprintf(buffer, buffer_size, format, args); in write_metric_to_buffer() 56 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 68 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 78 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 128 buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 148 buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 168 buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 204 buffer + *written, buffer_size - *written, in prometheus_format_one_metric() [all …]
|
| /subsys/logging/backends/ |
| A D | Kconfig.rtt | 13 is transferred to up-buffer at once depending on available space and 16 in up-buffer for a message and message is transferred to host. 25 bool "Drop messages that do not fit in up-buffer." 27 If there is not enough space in up-buffer for a message, drop it. 29 Increase up-buffer size helps to reduce dropping of messages. 37 bool "Overwrite messages if up-buffer full" 49 int "Size of internal buffer for storing messages." 59 int "Size of the output buffer" 90 terminal up-buffer and its settings. 93 int "Size of reserved up-buffer for logger output." [all …]
|
| /subsys/retention/ |
| A D | retention.c | 94 uint8_t buffer[CONFIG_RETENTION_BUFFER_SIZE]; in retention_checksum() local 99 uint16_t read_size = MIN((end - pos), sizeof(buffer)); in retention_checksum() 108 *output = (uint32_t)crc8(buffer, read_size, 0x12, in retention_checksum() 112 buffer, read_size); in retention_checksum() 187 uint8_t buffer[CONFIG_RETENTION_BUFFER_SIZE]; in retention_is_valid() local 280 (size_t)offset), buffer, size); in retention_read() 305 (size_t)offset), buffer, size); in retention_write() 369 uint8_t buffer[CONFIG_RETENTION_BUFFER_SIZE]; in retention_clear() local 372 memset(buffer, 0, sizeof(buffer)); in retention_clear() 380 MIN((config->size - pos), sizeof(buffer))); in retention_clear() [all …]
|
| /subsys/net/l2/ieee802154/ |
| A D | ieee802154_6lo_fragment.c | 352 pkt->buffer = frag; in fragment_append() 365 frag = pkt->buffer; in fragment_cached_pkt_len() 381 data = pkt->buffer->data; in fragment_cached_pkt_len() 386 pkt->buffer->data = data; in fragment_cached_pkt_len() 409 current = pkt->buffer; in fragment_move_back() 430 frag = pkt->buffer; in fragment_remove_headers() 450 current = pkt->buffer; in fragment_reconstruct_packet() 490 frag = pkt->buffer; in fragment_add_to_cache() 508 pkt->buffer = NULL; in fragment_add_to_cache() 517 pkt->buffer = frag; in fragment_add_to_cache() [all …]
|
| /subsys/settings/src/ |
| A D | settings_shell.c | 78 uint8_t buffer[SETTINGS_MAX_VAL_LEN]; in settings_read_callback() local 89 num_read_bytes = read_cb(cb_arg, buffer, num_read_bytes); in settings_read_callback() 103 shell_hexdump(params->shell_ptr, buffer, num_read_bytes); in settings_read_callback() 107 if (!isprint(buffer[i])) { in settings_read_callback() 112 shell_print(params->shell_ptr, "%.*s", (int)num_read_bytes, buffer); in settings_read_callback() 172 uint8_t buffer[CONFIG_SHELL_CMD_BUFF_SIZE / 2]; in cmd_write() local 187 value = buffer; in cmd_write() 188 value_len = hex2bin(argv[argc - 1], strlen(argv[argc - 1]), buffer, sizeof(buffer)); in cmd_write()
|
| /subsys/bindesc/ |
| A D | bindesc_read.c | 65 handle->buffer, BINDESC_ENTRY_HEADER_SIZE); in get_entry() 72 if (((const struct bindesc_entry *)handle->buffer)->len + BINDESC_ENTRY_HEADER_SIZE in get_entry() 73 > sizeof(handle->buffer)) { in get_entry() 79 handle->buffer + BINDESC_ENTRY_HEADER_SIZE, in get_entry() 80 ((const struct bindesc_entry *)handle->buffer)->len); in get_entry() 86 *entry = (const struct bindesc_entry *)handle->buffer; in get_entry() 137 retval = flash_read(flash_device, offset, handle->buffer, sizeof(BINDESC_MAGIC)); in bindesc_open_flash() 143 if (*(uint64_t *)handle->buffer != BINDESC_MAGIC) { in bindesc_open_flash()
|
| /subsys/ipc/ipc_service/backends/ |
| A D | ipc_icbmsg.c | 418 *buffer = block->data; in alloc_tx_buffer() 651 uint8_t *buffer; in match_bound_msg() local 659 buffer = block->data; in match_bound_msg() 700 uint8_t *buffer; in send_bound_message() local 849 uint8_t *buffer; in received_data() local 884 uint8_t *buffer; in received_release_data() local 890 if (buffer == NULL) { in received_release_data() 912 uint8_t *buffer; in received_bound() local 916 if (buffer == NULL) { in received_bound() 1059 uint8_t *buffer; in send() local [all …]
|
| A D | Kconfig | 20 bool "ICMSG backend with SPSC packet buffer" 27 on circular packet buffer. 37 on circular packet buffer. This enables endpoint discovery initiator 48 on circular packet buffer. This enables endpoint discovery follower
|
| /subsys/mgmt/updatehub/ |
| A D | updatehub_integrity.c | 43 const uint8_t *buffer, const uint32_t len) in updatehub_integrity_update() argument 47 if (ctx == NULL || buffer == NULL) { in updatehub_integrity_update() 57 ret = psa_hash_update(ctx, buffer, len); in updatehub_integrity_update() 62 ret = mbedtls_sha256_update(ctx, buffer, len); in updatehub_integrity_update()
|
| /subsys/tracing/ |
| A D | Kconfig | 92 Enable asynchronous tracing. This will buffer all the tracing 93 packets to the ring buffer first, tracing thread will try to 94 output as much data as possible from the buffer when tracing 112 every first packet put to tracing buffer. 115 int "Size of tracing buffer" 120 Size of tracing buffer. If TRACING_ASYNC is enabled, tracing buffer 121 is used as a ring buffer to buffer data packet and string packet. If 158 Use a ram buffer to output tracing data which can 180 int "Ram Tracing buffer size" 196 int "Size of tracing command buffer" [all …]
|
| /subsys/logging/ |
| A D | Kconfig.links | 14 int "Dedicated buffer size" 18 Dedicated buffer allows to maintain ordering of processed messages. 19 If 0, main buffer is used and messages are processed in the order of
|
| /subsys/net/lib/shell/ |
| A D | pkt.c | 19 if ((ptr < slab->buffer) || (ptr > slab->buffer + last_offset)) { in is_pkt_part_of_slab() 24 ptr_offset = ptr - slab->buffer; in is_pkt_part_of_slab() 106 struct net_buf *buf = pkt->buffer; in net_pkt_buffer_info() 131 struct net_buf *buf = pkt->buffer; in net_pkt_buffer_hexdump()
|
| /subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
| A D | fs_mgmt_hash_checksum_crc32.c | 23 uint8_t buffer[CONFIG_MCUMGR_GRP_FS_CHECKSUM_HASH_CHUNK_SIZE]; in fs_mgmt_hash_checksum_crc32() local 37 bytes_read = fs_read(file, buffer, read_size); in fs_mgmt_hash_checksum_crc32() 43 crc32 = crc32_ieee_update(crc32, buffer, bytes_read); in fs_mgmt_hash_checksum_crc32()
|
| /subsys/mgmt/ec_host_cmd/ |
| A D | Kconfig | 25 int "Buffer size in bytes for TX buffer shared by all EC host commands" 32 Buffer size in bytes for TX buffer defined by the host command handler. 33 Some backend layers can define their own buffer, so the size can be zero to 38 int "Buffer size in bytes for RX buffer shared by all EC host commands" 45 Buffer size in bytes for TX buffer defined by the host command handler. 46 Some backend layers can define their own buffer, so the size can be zero to 71 The handler defines common tx buffer 77 The handler defines common rx buffer
|
| /subsys/mgmt/mcumgr/transport/ |
| A D | Kconfig.uart | 41 reaches the end of a buffer, it will send event requesting next buffer, to be able to 42 receive data without stopping due to running out of buffer space. At least two buffers 46 int "Size of single async RX UART buffer" 49 The size of single buffer for asynchronous RX.
|
| /subsys/net/ip/ |
| A D | 6lo.c | 1386 frag = pkt->buffer; in uncompress_IPHC_header() 1394 cursor = pkt->buffer->data; in uncompress_IPHC_header() 1495 if (frag != pkt->buffer) { in uncompress_IPHC_header() 1517 if (frag != pkt->buffer) { in uncompress_IPHC_header() 1527 struct net_buf *buffer = pkt->buffer; in compress_ipv6_header() local 1530 memmove(buffer->data + 1U, buffer->data, buffer->len); in compress_ipv6_header() 1531 net_buf_add(buffer, 1U); in compress_ipv6_header() 1537 if (!buffer) { in compress_ipv6_header() 1542 net_buf_add(buffer, 1); in compress_ipv6_header() 1544 net_pkt_frag_insert(pkt, buffer); in compress_ipv6_header() [all …]
|
| /subsys/modem/backends/ |
| A D | modem_backend_uart_isr.c | 27 uint8_t *buffer; in modem_backend_uart_isr_irq_handler_receive_ready() local 31 size = ring_buf_put_claim(receive_rb, &buffer, UINT32_MAX); in modem_backend_uart_isr_irq_handler_receive_ready() 41 size = ring_buf_put_claim(receive_rb, &buffer, UINT32_MAX); in modem_backend_uart_isr_irq_handler_receive_ready() 44 ret = uart_fifo_read(backend->uart, buffer, size); in modem_backend_uart_isr_irq_handler_receive_ready() 68 uint8_t *buffer; in modem_backend_uart_isr_irq_handler_transmit_ready() local 77 size = ring_buf_get_claim(&backend->isr.transmit_rb, &buffer, UINT32_MAX); in modem_backend_uart_isr_irq_handler_transmit_ready() 78 ret = uart_fifo_fill(backend->uart, buffer, size); in modem_backend_uart_isr_irq_handler_transmit_ready()
|
| /subsys/debug/coredump/ |
| A D | coredump_shell.c | 294 ret = print_stored_dump(sh, copy->buffer, copy->length); in print_raw_data() 354 ret = print_coredump_hdr(sh, copy->buffer); in parse_and_print_coredump() 364 switch (copy->buffer[0]) { in parse_and_print_coredump() 367 (struct coredump_arch_hdr_t *)copy->buffer; in parse_and_print_coredump() 378 (struct coredump_threads_meta_hdr_t *)copy->buffer; in parse_and_print_coredump() 400 hdr = (struct coredump_mem_hdr_t *)copy->buffer; in parse_and_print_coredump() 458 .buffer = rbuf, in pretty_print_coredump() 501 .buffer = rbuf, in hex_print_coredump()
|
| /subsys/mgmt/mcumgr/grp/shell_mgmt/ |
| A D | Kconfig | 23 an internal memory buffer. This way, there is no interaction with 31 the CONFIG_SHELL_CMD_BUFF_SIZE, and a buffer for a command is allocated 38 # Show dummy shell buffer size here, will show help text of original prompt so 41 int "Shell output buffer size (Size of dummy buffer size)"
|
| /subsys/net/lib/mqtt/ |
| A D | mqtt.c | 770 static int read_publish_payload(struct mqtt_client *client, void *buffer, in read_publish_payload() argument 788 ret = mqtt_transport_read(client, buffer, length, shall_block); in read_publish_payload() 810 int mqtt_read_publish_payload(struct mqtt_client *client, void *buffer, in mqtt_read_publish_payload() argument 813 return read_publish_payload(client, buffer, length, false); in mqtt_read_publish_payload() 819 return read_publish_payload(client, buffer, length, true); in mqtt_read_publish_payload_blocking() 822 int mqtt_readall_publish_payload(struct mqtt_client *client, uint8_t *buffer, in mqtt_readall_publish_payload() argument 825 uint8_t *end = buffer + length; in mqtt_readall_publish_payload() 827 while (buffer < end) { in mqtt_readall_publish_payload() 828 int ret = mqtt_read_publish_payload_blocking(client, buffer, in mqtt_readall_publish_payload() 829 end - buffer); in mqtt_readall_publish_payload() [all …]
|
| /subsys/usb/device/ |
| A D | usb_transfer.c | 28 uint8_t *buffer; member 102 ret = usb_write(ep, trans->buffer, trans->bsize, &bytes); in usb_transfer_work() 110 trans->buffer += bytes; in usb_transfer_work() 114 ret = usb_dc_ep_read_wait(ep, trans->buffer, trans->bsize, in usb_transfer_work() 123 trans->buffer += bytes; in usb_transfer_work() 239 trans->buffer = data; in usb_transfer()
|
| /subsys/net/l2/virtual/ipip/ |
| A D | ipip.c | 176 net_buf_frag_add(tmp->buffer, pkt->buffer); in interface_send() 177 pkt->buffer = tmp->buffer; in interface_send() 178 tmp->buffer = NULL; in interface_send() 229 net_buf_frag_add(tmp->buffer, pkt->buffer); in interface_send() 230 pkt->buffer = tmp->buffer; in interface_send() 231 tmp->buffer = NULL; in interface_send()
|