/Zephyr-latest/lib/os/ |
D | mpsc_pbuf.c | 10 #define MPSC_PBUF_DBG(buffer, ...) do { \ argument 13 if (buffer) { \ 14 mpsc_state_print(buffer); \ 19 static inline void mpsc_state_print(struct mpsc_pbuf_buffer *buffer) in mpsc_state_print() argument 23 buffer->wr_idx, buffer->tmp_wr_idx, in mpsc_state_print() 24 buffer->rd_idx, buffer->tmp_rd_idx); in mpsc_state_print() 28 void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer, in mpsc_pbuf_init() argument 31 memset(buffer, 0, offsetof(struct mpsc_pbuf_buffer, buf)); in mpsc_pbuf_init() 32 buffer->get_wlen = cfg->get_wlen; in mpsc_pbuf_init() 33 buffer->notify_drop = cfg->notify_drop; in mpsc_pbuf_init() [all …]
|
/Zephyr-latest/tests/lib/sprintf/src/ |
D | main.c | 105 char buffer[400]; in ZTEST() local 123 sprintf(buffer, "%e", var.d); in ZTEST() 124 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 125 "sprintf(inf) - incorrect output '%s'\n", buffer); in ZTEST() 127 sprintf(buffer, "%E", var.d); in ZTEST() 128 zassert_true((strcmp(buffer, "INF") == 0), in ZTEST() 129 "sprintf(INF) - incorrect output '%s'\n", buffer); in ZTEST() 131 sprintf(buffer, "%f", var.d); in ZTEST() 132 zassert_true((strcmp(buffer, "inf") == 0), in ZTEST() 133 "sprintf(inf) - incorrect output '%s'\n", buffer); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/dsp/print_format/src/ |
D | main.c | 21 char buffer[256]; in ZTEST() local 24 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 0)); in ZTEST() 25 assert_strings("0.119999", buffer); in ZTEST() 27 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 1)); in ZTEST() 28 assert_strings("0.239999", buffer); in ZTEST() 30 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, -2)); in ZTEST() 31 assert_strings("0.029999", buffer); in ZTEST() 33 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, 0)); in ZTEST() 34 assert_strings("0.1199", buffer); in ZTEST() 36 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, 1)); in ZTEST() [all …]
|
/Zephyr-latest/subsys/modem/ |
D | modem_stats.c | 26 static void stats_buffer_list_append(struct modem_stats_buffer *buffer) in stats_buffer_list_append() argument 29 sys_slist_append(&stats_buffer_list, &buffer->node); in stats_buffer_list_append() 44 static struct modem_stats_buffer *stats_buffer_list_next(struct modem_stats_buffer *buffer) in stats_buffer_list_next() argument 49 next = stats_buffer_from_node(sys_slist_peek_next(&buffer->node)); in stats_buffer_list_next() 74 static void stats_buffer_get_and_clear_max_used(struct modem_stats_buffer *buffer, in stats_buffer_get_and_clear_max_used() argument 78 *max_used = buffer->max_used; in stats_buffer_get_and_clear_max_used() 79 buffer->max_used = 0; in stats_buffer_get_and_clear_max_used() 83 static bool stats_buffer_length_is_valid(const struct modem_stats_buffer *buffer, uint32_t length) in stats_buffer_length_is_valid() argument 85 return length <= buffer->size; in stats_buffer_length_is_valid() 88 static void stats_buffer_log_invalid_length(const struct modem_stats_buffer *buffer, in stats_buffer_log_invalid_length() argument [all …]
|
/Zephyr-latest/samples/boards/espressif/flash_encryption/src/ |
D | main.c | 26 uint8_t buffer[32]; in main() local 37 buffer[k] = k; in main() 39 LOG_HEXDUMP_INF(buffer, sizeof(buffer), "WRITE BUFFER CONTENT"); in main() 45 flash_write(flash_device, address, &buffer, sizeof(buffer)); in main() 48 memset(buffer, 0, sizeof(buffer)); in main() 49 esp_flash_read(NULL, &buffer, address, sizeof(buffer)); in main() 50 LOG_HEXDUMP_INF(buffer, sizeof(buffer), "FLASH RAW DATA (Encrypted)"); in main() 53 memset(buffer, 0, sizeof(buffer)); in main() 54 flash_read(flash_device, address, &buffer, sizeof(buffer)); in main() 55 LOG_HEXDUMP_INF(buffer, sizeof(buffer), "FLASH DECRYPTED DATA"); in main()
|
/Zephyr-latest/tests/lib/mpsc_pbuf/src/ |
D | main.c | 59 static void drop(const struct mpsc_pbuf_buffer *buffer, const union mpsc_pbuf_generic *item) in drop() argument 90 static void init(struct mpsc_pbuf_buffer *buffer, uint32_t wlen, bool overwrite) in init() argument 96 mpsc_pbuf_init(buffer, &mpsc_buf_cfg); in init() 116 struct mpsc_pbuf_buffer buffer; in item_put_no_overwrite() local 118 init(&buffer, 4 - !pow2, false); in item_put_no_overwrite() 120 int repeat = buffer.size*2; in item_put_no_overwrite() 127 mpsc_pbuf_put_word(&buffer, test_1word.item); in item_put_no_overwrite() 129 t = (union test_item *)mpsc_pbuf_claim(&buffer); in item_put_no_overwrite() 132 mpsc_pbuf_free(&buffer, &t->item); in item_put_no_overwrite() 136 zassert_is_null(mpsc_pbuf_claim(&buffer)); in item_put_no_overwrite() [all …]
|
/Zephyr-latest/tests/unit/base64/ |
D | main.c | 68 unsigned char buffer[128]; in ZTEST() local 75 rc = base64_encode(buffer, sizeof(buffer), &len, src, 64); in ZTEST() 77 rc = memcmp(base64_test_enc, buffer, 88); in ZTEST() 83 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST() 85 rc = memcmp(base64_test_dec, buffer, 64); in ZTEST() 89 rc = base64_encode(buffer, sizeof(buffer), &len, src, 0); in ZTEST() 94 rc = base64_encode(buffer, sizeof(buffer), &len, src, slen); in ZTEST() 101 rc = base64_encode(buffer, sizeof(buffer), &len, src, slen); in ZTEST() 107 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST() 111 rc = base64_decode(buffer, sizeof(buffer), &len, src, 88); in ZTEST() [all …]
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | fpu.c | 17 void z_arm_save_fp_context(struct fpu_ctx_full *buffer) in z_arm_save_fp_context() argument 20 __ASSERT_NO_MSG(buffer != NULL); in z_arm_save_fp_context() 29 :: "r" (buffer->caller_saved), "r" (buffer->callee_saved) : in z_arm_save_fp_context() 32 buffer->fpscr = __get_FPSCR(); in z_arm_save_fp_context() 33 buffer->ctx_saved = true; in z_arm_save_fp_context() 46 void z_arm_restore_fp_context(const struct fpu_ctx_full *buffer) in z_arm_restore_fp_context() argument 49 if (buffer->ctx_saved) { in z_arm_restore_fp_context() 56 __set_FPSCR(buffer->fpscr); in z_arm_restore_fp_context() 61 :: "r" (buffer->caller_saved), "r" (buffer->callee_saved) : in z_arm_restore_fp_context()
|
/Zephyr-latest/drivers/misc/ft8xx/ |
D | ft8xx_common.c | 23 uint8_t buffer[2]; in ft8xx_wr16() local 25 *(uint16_t *)buffer = sys_cpu_to_le16(data); in ft8xx_wr16() 26 err = ft8xx_drv_write(address, buffer, sizeof(buffer)); in ft8xx_wr16() 33 uint8_t buffer[4]; in ft8xx_wr32() local 35 *(uint32_t *)buffer = sys_cpu_to_le32(data); in ft8xx_wr32() 36 err = ft8xx_drv_write(address, buffer, sizeof(buffer)); in ft8xx_wr32() 54 uint8_t buffer[2] = {0}; in ft8xx_rd16() local 56 err = ft8xx_drv_read(address, buffer, sizeof(buffer)); in ft8xx_rd16() 59 return sys_le16_to_cpu(*(const uint16_t *)buffer); in ft8xx_rd16() 65 uint8_t buffer[4] = {0}; in ft8xx_rd32() local [all …]
|
/Zephyr-latest/tests/drivers/retained_mem/api/src/ |
D | main.c | 21 static uint8_t buffer[1]; variable 30 static uint8_t buffer[10]; variable 40 memset(buffer, 0, sizeof(buffer)); in ZTEST() 42 rc = retained_mem_read(retained_mem_test_device, 0, buffer, sizeof(buffer)); in ZTEST() 45 zassert_mem_equal(data, buffer, sizeof(data), "Expected written data to match"); in ZTEST() 66 rc = retained_mem_read(retained_mem_test_device, 0, buffer, sizeof(buffer)); in ZTEST() 69 zassert_mem_equal(data, buffer, sizeof(data), "Expected written data to match"); in ZTEST() 74 rc = retained_mem_read(retained_mem_test_device, 0, buffer, sizeof(buffer)); in ZTEST() 77 zassert_mem_equal(empty_data, buffer, sizeof(empty_data), "Expected data to be 0x00's"); in ZTEST()
|
/Zephyr-latest/tests/modules/nanopb/src/ |
D | main.c | 21 uint8_t buffer[SimpleMessage_size]; in ZTEST() local 24 for (size_t i = 0; i < sizeof(msg.buffer); ++i) { in ZTEST() 25 msg.buffer[i] = i; in ZTEST() 28 pb_ostream_t ostream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in ZTEST() 36 pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written); in ZTEST() 41 for (size_t i = 0; i < sizeof(msg.buffer); ++i) { in ZTEST() 42 zassert_equal(msg.buffer[i], i); in ZTEST() 48 uint8_t buffer[ComplexMessage_size]; in ZTEST() local 55 pb_ostream_t ostream = pb_ostream_from_buffer(buffer, sizeof(buffer)); in ZTEST() 63 pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written); in ZTEST() [all …]
|
/Zephyr-latest/samples/boards/espressif/flash_memory_mapped/src/ |
D | main.c | 21 uint8_t buffer[32]; in main() local 43 memset(buffer, 0, sizeof(buffer)); in main() 45 buffer[k] = k; in main() 47 flash_write(flash_device, address, buffer, 32); in main() 50 memset(buffer, 0, sizeof(buffer)); in main() 51 flash_read(flash_device, address, buffer, 32); in main() 52 LOG_HEXDUMP_INF(buffer, 32, "flash read using flash API"); in main() 56 if (memcmp(buffer, mem_ptr, 32) == 0) { in main()
|
/Zephyr-latest/include/zephyr/sys/ |
D | mpsc_pbuf.h | 86 typedef void (*mpsc_pbuf_notify_drop)(const struct mpsc_pbuf_buffer *buffer, 152 void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer, 171 union mpsc_pbuf_generic *mpsc_pbuf_alloc(struct mpsc_pbuf_buffer *buffer, 180 void mpsc_pbuf_commit(struct mpsc_pbuf_buffer *buffer, 193 void mpsc_pbuf_put_word(struct mpsc_pbuf_buffer *buffer, 208 void mpsc_pbuf_put_word_ext(struct mpsc_pbuf_buffer *buffer, 223 void mpsc_pbuf_put_data(struct mpsc_pbuf_buffer *buffer, 232 const union mpsc_pbuf_generic *mpsc_pbuf_claim(struct mpsc_pbuf_buffer *buffer); 240 void mpsc_pbuf_free(struct mpsc_pbuf_buffer *buffer, 250 bool mpsc_pbuf_is_pending(struct mpsc_pbuf_buffer *buffer); [all …]
|
/Zephyr-latest/modules/canopennode/ |
D | CO_driver.c | 92 CO_CANrx_t *buffer; in canopen_rx_callback() local 100 buffer = &CANmodule->rx_array[i]; in canopen_rx_callback() 102 if (buffer->filter_id == -ENOSPC || buffer->pFunct == NULL) { in canopen_rx_callback() 106 if (((frame->id ^ buffer->ident) & buffer->mask) == 0U) { in canopen_rx_callback() 108 if (buffer->rtr && ((frame->flags & CAN_FRAME_RTR) == 0U)) { in canopen_rx_callback() 115 buffer->pFunct(buffer->object, &rxMsg); in canopen_rx_callback() 148 CO_CANtx_t *buffer; in canopen_tx_retry() local 157 buffer = &CANmodule->tx_array[i]; in canopen_tx_retry() 158 if (buffer->bufferFull) { in canopen_tx_retry() 159 frame.id = buffer->ident; in canopen_tx_retry() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_decoder.c | 138 static int lsm6dsv16x_decoder_get_frame_count(const uint8_t *buffer, in lsm6dsv16x_decoder_get_frame_count() argument 142 struct lsm6dsv16x_fifo_data *data = (struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decoder_get_frame_count() 171 const struct lsm6dsv16x_fifo_data *edata = (const struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decoder_get_frame_count() 181 buffer += sizeof(struct lsm6dsv16x_fifo_data); in lsm6dsv16x_decoder_get_frame_count() 182 buffer_end = buffer + LSM6DSV16X_FIFO_SIZE(edata->fifo_count); in lsm6dsv16x_decoder_get_frame_count() 185 while (buffer < buffer_end) { in lsm6dsv16x_decoder_get_frame_count() 186 fifo_tag = (buffer[0] >> 3); in lsm6dsv16x_decoder_get_frame_count() 213 buffer += LSM6DSV16X_FIFO_ITEM_LEN; in lsm6dsv16x_decoder_get_frame_count() 255 static int lsm6dsv16x_decode_fifo(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in lsm6dsv16x_decode_fifo() argument 258 const struct lsm6dsv16x_fifo_data *edata = (const struct lsm6dsv16x_fifo_data *)buffer; in lsm6dsv16x_decode_fifo() [all …]
|
/Zephyr-latest/subsys/testsuite/coverage/ |
D | coverage.c | 63 static inline void write_u64(void *buffer, size_t *off, uint64_t v) in write_u64() argument 65 if (buffer != NULL) { in write_u64() 66 memcpy((uint8_t *)buffer + *off, (uint8_t *)&v, sizeof(v)); in write_u64() 77 static inline void write_u32(void *buffer, size_t *off, uint32_t v) in write_u32() argument 79 if (buffer != NULL) { in write_u32() 80 memcpy((uint8_t *)buffer + *off, (uint8_t *)&v, sizeof(v)); in write_u32() 140 size_t gcov_populate_buffer(uint8_t *buffer, struct gcov_info *info) in gcov_populate_buffer() argument 150 write_u32(buffer, in gcov_populate_buffer() 154 write_u32(buffer, in gcov_populate_buffer() 158 write_u32(buffer, in gcov_populate_buffer() [all …]
|
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/src/ |
D | broadcaster.c | 116 static size_t get_chars(char *buffer, size_t max_size) in get_chars() argument 127 buffer[pos++] = c; in get_chars() 130 buffer[pos] = '\0'; in get_chars() 137 char buffer[4]; in parse_rtn_arg() local 144 char_count = get_chars(buffer, sizeof(buffer) - 1); in parse_rtn_arg() 149 rtn = strtoul(buffer, NULL, 0); in parse_rtn_arg() 160 char buffer[9]; in parse_interval_arg() local 167 char_count = get_chars(buffer, sizeof(buffer) - 1); in parse_interval_arg() 172 interval = strtoul(buffer, NULL, 0); in parse_interval_arg() 183 char buffer[6]; in parse_latency_arg() local [all …]
|
/Zephyr-latest/samples/modules/nanopb/src/ |
D | main.c | 15 bool encode_message(uint8_t *buffer, size_t buffer_size, size_t *message_length) in encode_message() argument 29 pb_ostream_t stream = pb_ostream_from_buffer(buffer, buffer_size); in encode_message() 34 message.buffer[i] = (uint8_t)(i * 2); in encode_message() 51 bool decode_message(uint8_t *buffer, size_t message_length) in decode_message() argument 59 pb_istream_t stream = pb_istream_from_buffer(buffer, message_length); in decode_message() 70 printk("%s%d", ((i == 0) ? "" : ", "), (int) message.buffer[i]); in decode_message() 86 uint8_t buffer[SimpleMessage_size]; in main() local 90 if (!encode_message(buffer, sizeof(buffer), &message_length)) { in main() 99 decode_message(buffer, message_length); in main()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ |
D | smp_test_util.c | 27 bool create_settings_mgmt_read_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_settings_mgmt_read_packet() argument 39 *buffer_size = (zse->payload_mut - buffer); in create_settings_mgmt_read_packet() 42 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_settings_mgmt_read_packet() 48 bool create_settings_mgmt_write_packet(zcbor_state_t *zse, uint8_t *buffer, uint8_t *output_buffer, in create_settings_mgmt_write_packet() argument 61 *buffer_size = (zse->payload_mut - buffer); in create_settings_mgmt_write_packet() 64 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_settings_mgmt_write_packet() 70 bool create_settings_mgmt_delete_packet(zcbor_state_t *zse, uint8_t *buffer, in create_settings_mgmt_delete_packet() argument 80 *buffer_size = (zse->payload_mut - buffer); in create_settings_mgmt_delete_packet() 82 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_settings_mgmt_delete_packet() 88 bool create_settings_mgmt_commit_packet(zcbor_state_t *zse, uint8_t *buffer, in create_settings_mgmt_commit_packet() argument [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/ |
D | main.c | 226 uint8_t buffer[ZCBOR_BUFFER_SIZE]; in ZTEST() local 259 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 261 ok = create_mcumgr_format_packet(zse, "s", buffer, buffer_out, &buffer_size); in ZTEST() 297 uint8_t buffer[ZCBOR_BUFFER_SIZE]; in ZTEST() local 311 memset(buffer, 0, sizeof(buffer)); in ZTEST() 317 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 319 ok = create_mcumgr_format_packet(zse, query_kernel_name, buffer, buffer_out, &buffer_size); in ZTEST() 358 uint8_t buffer[ZCBOR_BUFFER_SIZE]; in ZTEST() local 372 memset(buffer, 0, sizeof(buffer)); in ZTEST() 378 zcbor_new_encode_state(zse, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() [all …]
|
/Zephyr-latest/drivers/bbram/ |
D | bbram_microchip_mcp7940n.c | 39 uint8_t buffer; in microchip_mcp7940n_bbram_init() local 50 &buffer); in microchip_mcp7940n_bbram_init() 71 uint8_t buffer; in microchip_mcp7940n_bbram_is_invalid() local 78 &buffer); in microchip_mcp7940n_bbram_is_invalid() 81 if ((buffer & MICROCHIP_MCP7940N_RTCWKDAY_PWRFAIL_BIT)) { in microchip_mcp7940n_bbram_is_invalid() 84 buffer &= (buffer ^ MICROCHIP_MCP7940N_RTCWKDAY_PWRFAIL_BIT); in microchip_mcp7940n_bbram_is_invalid() 88 buffer); in microchip_mcp7940n_bbram_is_invalid() 112 uint8_t buffer; in microchip_mcp7940n_bbram_check_standby_power() local 119 &buffer); in microchip_mcp7940n_bbram_check_standby_power() 122 if (!(buffer & MICROCHIP_MCP7940N_RTCWKDAY_VBATEN_BIT)) { in microchip_mcp7940n_bbram_check_standby_power() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl345/ |
D | adxl345_decoder.c | 88 static int adxl345_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl345_decode_stream() argument 91 const struct adxl345_fifo_data *enc_data = (const struct adxl345_fifo_data *)buffer; in adxl345_decode_stream() 93 buffer + sizeof(struct adxl345_fifo_data) + enc_data->fifo_byte_count; in adxl345_decode_stream() 108 buffer += sizeof(struct adxl345_fifo_data); in adxl345_decode_stream() 115 if ((uint8_t *)*fit >= buffer) { in adxl345_decode_stream() 116 sample_num = ((uint8_t *)*fit - buffer) / sample_set_size; in adxl345_decode_stream() 119 while (count < max_count && buffer < buffer_end) { in adxl345_decode_stream() 120 const uint8_t *sample_end = buffer; in adxl345_decode_stream() 124 if ((uintptr_t)buffer < *fit) { in adxl345_decode_stream() 126 buffer = sample_end; in adxl345_decode_stream() [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_decoder.c | 35 static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec chan_spec, in adxl372_decode_stream() argument 38 const struct adxl372_fifo_data *enc_data = (const struct adxl372_fifo_data *)buffer; in adxl372_decode_stream() 40 buffer + sizeof(struct adxl372_fifo_data) + enc_data->fifo_byte_count; in adxl372_decode_stream() 55 buffer += sizeof(struct adxl372_fifo_data); in adxl372_decode_stream() 61 if ((uint8_t *)*fit >= buffer) { in adxl372_decode_stream() 62 sample_num = ((uint8_t *)*fit - buffer) / sample_set_size; in adxl372_decode_stream() 65 while (count < max_count && buffer < buffer_end) { in adxl372_decode_stream() 66 const uint8_t *sample_end = buffer; in adxl372_decode_stream() 70 if ((uintptr_t)buffer < *fit) { in adxl372_decode_stream() 72 buffer = sample_end; in adxl372_decode_stream() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/zcbor_bulk/src/ |
D | main.c | 39 uint8_t buffer[512]; in ZTEST() local 52 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 63 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 80 uint8_t buffer[512]; in ZTEST() local 93 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 104 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 121 uint8_t buffer[512]; in ZTEST() local 134 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 143 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 153 uint8_t buffer[512]; in ZTEST() local [all …]
|
/Zephyr-latest/subsys/net/lib/prometheus/ |
D | formatter.c | 27 static int write_metric_to_buffer(char *buffer, size_t buffer_size, const char *format, ...) in write_metric_to_buffer() argument 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() 49 int prometheus_format_one_metric(struct prometheus_metric *metric, char *buffer, in prometheus_format_one_metric() argument 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() 88 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric() 98 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric() [all …]
|