Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 25 of 115) sorted by relevance

12345

/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dsmp_test_util.c28 uint16_t *buffer_size, char *name, uint32_t max_size) in create_settings_mgmt_read_packet() argument
39 *buffer_size = (zse->payload_mut - buffer); in create_settings_mgmt_read_packet()
40 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size, SETTINGS_MGMT_ID_READ_WRITE, in create_settings_mgmt_read_packet()
42 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_settings_mgmt_read_packet()
43 *buffer_size += sizeof(struct smp_hdr); in create_settings_mgmt_read_packet()
49 uint16_t *buffer_size, char *name, const uint8_t *val, in create_settings_mgmt_write_packet() argument
61 *buffer_size = (zse->payload_mut - buffer); in create_settings_mgmt_write_packet()
62 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size, SETTINGS_MGMT_ID_READ_WRITE, in create_settings_mgmt_write_packet()
64 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_settings_mgmt_write_packet()
65 *buffer_size += sizeof(struct smp_hdr); in create_settings_mgmt_write_packet()
[all …]
Dsmp_test_util.h17 uint16_t *buffer_size, char *name, uint32_t max_size);
21 uint16_t *buffer_size, char *name, const uint8_t *val,
26 uint8_t *output_buffer, uint16_t *buffer_size, char *name);
30 uint8_t *output_buffer, uint16_t *buffer_size);
34 uint16_t *buffer_size);
38 uint16_t *buffer_size);
Dmain.c103 uint16_t buffer_size; in ZTEST() local
115 buffer_size = 0; in ZTEST()
121 ok = create_settings_mgmt_commit_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
129 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
183 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
233 uint16_t buffer_size; in ZTEST() local
245 buffer_size = 0; in ZTEST()
251 ok = create_settings_mgmt_save_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
259 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
313 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dsmp_test_util.c32 uint8_t *output_buffer, uint16_t *buffer_size) in create_mcumgr_datetime_get_packet() argument
39 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_datetime_get_packet()
40 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size, version2, false); in create_mcumgr_datetime_get_packet()
41 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_mcumgr_datetime_get_packet()
42 *buffer_size += sizeof(struct smp_hdr); in create_mcumgr_datetime_get_packet()
50 uint16_t *buffer_size) in create_mcumgr_datetime_set_packet_str() argument
57 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_datetime_set_packet_str()
58 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size, version2, true); in create_mcumgr_datetime_set_packet_str()
59 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_mcumgr_datetime_set_packet_str()
60 *buffer_size += sizeof(struct smp_hdr); in create_mcumgr_datetime_set_packet_str()
[all …]
Dmain.c151 uint16_t buffer_size; in ZTEST() local
168 buffer_size = 0; in ZTEST()
173 ok = create_mcumgr_datetime_get_packet(zse, false, buffer, buffer_out, &buffer_size); in ZTEST()
181 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
213 uint16_t buffer_size; in ZTEST() local
230 buffer_size = 0; in ZTEST()
235 ok = create_mcumgr_datetime_get_packet(zse, true, buffer, buffer_out, &buffer_size); in ZTEST()
243 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
277 uint16_t buffer_size; in ZTEST() local
294 buffer_size = 0; in ZTEST()
[all …]
Dsmp_test_util.h24 uint8_t *output_buffer, uint16_t *buffer_size);
29 uint16_t *buffer_size);
33 uint16_t *buffer_size);
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/cb_notifications/src/
Dsmp_test_util.c26 uint16_t *buffer_size) in create_mcumgr_format_packet() argument
35 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_format_packet()
36 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size); in create_mcumgr_format_packet()
37 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_mcumgr_format_packet()
38 *buffer_size += sizeof(struct smp_hdr); in create_mcumgr_format_packet()
Dmain.c102 uint16_t buffer_size; in ZTEST() local
109 buffer_size = 0; in ZTEST()
115 ok = create_mcumgr_format_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
123 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
148 uint16_t buffer_size; in ZTEST() local
155 buffer_size = 0; in ZTEST()
161 ok = create_mcumgr_format_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
169 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
194 uint16_t buffer_size; in ZTEST() local
201 buffer_size = 0; in ZTEST()
[all …]
Dsmp_test_util.h20 uint16_t *buffer_size);
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dsmp_test_util.c28 uint8_t *output_buffer, uint16_t *buffer_size) in create_mcumgr_format_packet() argument
37 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_format_packet()
38 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size); in create_mcumgr_format_packet()
39 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_mcumgr_format_packet()
40 *buffer_size += sizeof(struct smp_hdr); in create_mcumgr_format_packet()
Dmain.c143 (append_data->buffer_size - *append_data->output_length), in os_mgmt_info_custom_os_callback()
148 int_rc >= (append_data->buffer_size - *append_data->output_length)) { in os_mgmt_info_custom_os_callback()
198 (append_data->buffer_size - *append_data->output_length), in os_mgmt_info_custom_cmd_callback()
203 int_rc >= (append_data->buffer_size - *append_data->output_length)) { in os_mgmt_info_custom_cmd_callback()
229 uint16_t buffer_size; in ZTEST() local
261 ok = create_mcumgr_format_packet(zse, "s", buffer, buffer_out, &buffer_size); in ZTEST()
265 zassert_equal(sizeof(command), buffer_size, in ZTEST()
275 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
300 uint16_t buffer_size; in ZTEST() local
313 buffer_size = 0; in ZTEST()
[all …]
Dlimited.c43 uint16_t buffer_size; in ZTEST() local
56 buffer_size = 0; in ZTEST()
62 ok = create_mcumgr_format_packet(zse, query_kernel_name, buffer, buffer_out, &buffer_size); in ZTEST()
70 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
104 uint16_t buffer_size; in ZTEST() local
122 buffer_size = 0; in ZTEST()
128 ok = create_mcumgr_format_packet(zse, query_all, buffer, buffer_out, &buffer_size); in ZTEST()
136 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
Dbuild_date.c81 uint16_t buffer_size; in ZTEST() local
96 buffer_size = 0; in ZTEST()
102 ok = create_mcumgr_format_packet(zse, query_build_date, buffer, buffer_out, &buffer_size); in ZTEST()
110 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
157 uint16_t buffer_size; in ZTEST() local
172 buffer_size = 0; in ZTEST()
178 ok = create_mcumgr_format_packet(zse, query_all, buffer, buffer_out, &buffer_size); in ZTEST()
186 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
Dsmp_test_util.h20 uint8_t *output_buffer, uint16_t *buffer_size);
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/smp_version/src/
Dsmp_test_util.c29 uint8_t *output_buffer, uint16_t *buffer_size, uint8_t version) in create_mcumgr_format_packet() argument
38 *buffer_size = (zse->payload_mut - buffer); in create_mcumgr_format_packet()
39 smp_make_hdr((struct smp_hdr *)output_buffer, *buffer_size, version); in create_mcumgr_format_packet()
40 memcpy(&output_buffer[sizeof(struct smp_hdr)], buffer, *buffer_size); in create_mcumgr_format_packet()
41 *buffer_size += sizeof(struct smp_hdr); in create_mcumgr_format_packet()
Dmain.c105 uint16_t buffer_size; in ZTEST() local
123 buffer_size = 0; in ZTEST()
129 ok = create_mcumgr_format_packet(zse, query_fake, buffer, buffer_out, &buffer_size, in ZTEST()
138 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
192 uint16_t buffer_size; in ZTEST() local
210 buffer_size = 0; in ZTEST()
216 ok = create_mcumgr_format_packet(zse, query_fake, buffer, buffer_out, &buffer_size, in ZTEST()
225 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
278 uint16_t buffer_size; in ZTEST() local
296 buffer_size = 0; in ZTEST()
[all …]
Dsmp_test_util.h20 uint8_t *output_buffer, uint16_t *buffer_size, uint8_t version);
/Zephyr-Core-3.7.0/drivers/i2c/target/
Deeprom_target.c22 uint32_t buffer_size; member
31 uint32_t buffer_size; member
40 if (length > data->buffer_size) { in eeprom_target_program()
54 if (!data || offset >= data->buffer_size) { in eeprom_target_read()
136 data->buffer_idx = data->buffer_idx % data->buffer_size; in eeprom_target_write_received()
149 data->buffer_idx = (data->buffer_idx + 1) % data->buffer_size; in eeprom_target_read_processed()
195 *len = data->buffer_size; in eeprom_target_buf_read_requested()
244 data->buffer_size = cfg->buffer_size; in i2c_eeprom_target_init()
269 .buffer_size = DT_INST_PROP(inst, size), \
/Zephyr-Core-3.7.0/include/zephyr/shell/
Dshell_fprintf.h31 size_t buffer_size; member
56 .buffer_size = _size, \
/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/lib/
Dipc_rpmsg.c74 unsigned int buffer_size, in ipc_rpmsg_init() argument
93 config.h2r_buf_size = (uint32_t) buffer_size; in ipc_rpmsg_init()
94 config.r2h_buf_size = (uint32_t) buffer_size; in ipc_rpmsg_init()
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_api/src/
Dtest_adc.c127 .buffer_size = sizeof(m_sample_buffer), in test_task_one_channel()
154 .buffer_size = sizeof(m_sample_buffer), in test_task_multiple_channels()
201 .buffer_size = sizeof(m_sample_buffer), in test_task_asynchronous_call()
263 .buffer_size = sizeof(m_sample_buffer), in test_task_with_interval()
340 .buffer_size = sizeof(m_sample_buffer), in test_task_repeated_samplings()
373 .buffer_size = sizeof(m_sample_buffer), in test_task_invalid_request()
/Zephyr-Core-3.7.0/samples/modules/nanopb/src/
Dmain.c15 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()
/Zephyr-Core-3.7.0/samples/boards/google_twinkie_v2_pda/src/
Dmeas.c31 .buffer_size = sizeof(sample_buffer), in meas_vbus_v()
64 .buffer_size = sizeof(sample_buffer), in meas_vbus_c()
/Zephyr-Core-3.7.0/samples/subsys/mgmt/hawkbit/src/
Dmain.c43 int hawkbit_new_config_data_cb(const char *device_id, uint8_t *buffer, const size_t buffer_size) in hawkbit_new_config_data_cb() argument
52 buffer_size); in hawkbit_new_config_data_cb()
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_rescale/src/
Dmain.c68 .buffer_size = sizeof(calculated_voltage), in test_task_voltage_divider()
108 .buffer_size = sizeof(calculated_current), in test_task_current_sense_shunt()
148 .buffer_size = sizeof(calculated_current), in test_task_current_sense_amplifier()

12345