/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ |
D | smp_test_util.c | 28 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 …]
|
D | smp_test_util.h | 17 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);
|
D | main.c | 103 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/ |
D | smp_test_util.c | 32 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 …]
|
D | main.c | 151 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 …]
|
D | smp_test_util.h | 24 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/ |
D | smp_test_util.c | 26 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()
|
D | main.c | 102 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 …]
|
D | smp_test_util.h | 20 uint16_t *buffer_size);
|
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/ |
D | smp_test_util.c | 28 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()
|
D | main.c | 143 (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 …]
|
D | limited.c | 43 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()
|
D | build_date.c | 81 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()
|
D | smp_test_util.h | 20 uint8_t *output_buffer, uint16_t *buffer_size);
|
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/smp_version/src/ |
D | smp_test_util.c | 29 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()
|
D | main.c | 105 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 …]
|
D | smp_test_util.h | 20 uint8_t *output_buffer, uint16_t *buffer_size, uint8_t version);
|
/Zephyr-Core-3.7.0/drivers/i2c/target/ |
D | eeprom_target.c | 22 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/ |
D | shell_fprintf.h | 31 size_t buffer_size; member 56 .buffer_size = _size, \
|
/Zephyr-Core-3.7.0/subsys/ipc/ipc_service/lib/ |
D | ipc_rpmsg.c | 74 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/ |
D | test_adc.c | 127 .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/ |
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()
|
/Zephyr-Core-3.7.0/samples/boards/google_twinkie_v2_pda/src/ |
D | meas.c | 31 .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/ |
D | main.c | 43 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/ |
D | main.c | 68 .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()
|