/Zephyr-latest/tests/subsys/secure_storage/psa/its/src/ |
D | custom_transform.c | 9 secure_storage_its_uid_t uid, size_t data_len, const void *data, in secure_storage_its_transform_to_store() argument 14 *stored_data_len = data_len + sizeof(secure_storage_packed_create_flags_t); in secure_storage_its_transform_to_store() 15 __ASSERT_NO_MSG(data_len <= CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE); in secure_storage_its_transform_to_store() 17 memcpy(stored_data, data, data_len); in secure_storage_its_transform_to_store() 18 *(secure_storage_packed_create_flags_t *)(&stored_data[data_len]) = create_flags; in secure_storage_its_transform_to_store() 25 size_t data_size, void *data, size_t *data_len, in secure_storage_its_transform_from_store() argument 28 *data_len = stored_data_len - sizeof(secure_storage_packed_create_flags_t); in secure_storage_its_transform_from_store() 29 __ASSERT_NO_MSG(data_size >= *data_len); in secure_storage_its_transform_from_store() 30 memcpy(data, stored_data, *data_len); in secure_storage_its_transform_from_store() 31 *create_flags = *(secure_storage_packed_create_flags_t *)(&stored_data[*data_len]); in secure_storage_its_transform_from_store()
|
/Zephyr-latest/lib/os/ |
D | cbprintf_nano.c | 82 int min_width, precision, data_len; in z_cbvprintf_impl() local 213 data_len = 3; in z_cbvprintf_impl() 223 data_len = 3; in z_cbvprintf_impl() 248 data_len = convert_value(d, 10, 0, buf + sizeof(buf) - 1); in z_cbvprintf_impl() 249 data = buf + sizeof(buf) - data_len; in z_cbvprintf_impl() 264 data_len = 5; in z_cbvprintf_impl() 277 data_len = 3; in z_cbvprintf_impl() 289 data_len = convert_value(x, 16, ALPHA(*fmt), in z_cbvprintf_impl() 291 data = buf + sizeof(buf) - data_len; in z_cbvprintf_impl() 299 data_len = strlen(data); in z_cbvprintf_impl() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | data.c | 37 data.data_len = len - 1; in bt_data_parse() 53 total_len += sizeof(data[i].data_len) + sizeof(data[i].type) + data[i].data_len; in bt_data_get_len() 71 uint8_t ad_data_len = input->data_len; in bt_data_serialize() 72 uint8_t data_len = ad_data_len + 1; in bt_data_serialize() local 74 output[0] = data_len; in bt_data_serialize() 79 return data_len + 1; in bt_data_serialize()
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_native_posix.c | 57 uint32_t data_len; member 331 const uint32_t data_len, uint32_t * const ret_bytes) in usb_dc_ep_write() argument 333 LOG_DBG("ep %x len %u", ep, data_len); in usb_dc_ep_write() 352 if (!usbip_send_common(ep, data_len)) { in usb_dc_ep_write() 356 if (usbip_send(ep, data, data_len) != data_len) { in usb_dc_ep_write() 363 if (data_len > ARRAY_SIZE(ctrl->buf)) { in usb_dc_ep_write() 367 memcpy(ctrl->buf, data, data_len); in usb_dc_ep_write() 368 ctrl->buf_len = data_len; in usb_dc_ep_write() 372 *ret_bytes = data_len; in usb_dc_ep_write() 409 *read_bytes = usbip_ctrl.out_ep_ctrl[ep_idx].data_len; in usb_dc_ep_read_wait() [all …]
|
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/ |
D | firmware_update.c | 33 uint16_t res_inst_id, size_t *data_len) in firmware_get_buf() argument 35 *data_len = sizeof(firmware_buf); in firmware_get_buf() 41 uint16_t data_len, bool last_block, in firmware_block_received_cb() argument 45 crc = crc32_ieee(data, data_len); in firmware_block_received_cb() 47 crc = crc32_ieee_update(crc, data, data_len); in firmware_block_received_cb() 50 offset, data_len, last_block, crc); in firmware_block_received_cb()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_common.c | 37 data->data_len); in print_ltv_elem() 38 print_hex(data->data, data->data_len); in print_ltv_elem() 59 codec_cap->cid, codec_cap->vid, codec_cap->data_len); in print_codec_cap() 62 print_ltv_array("data", codec_cap->data, codec_cap->data_len); in print_codec_cap() 65 print_hex(codec_cap->data, codec_cap->data_len); in print_codec_cap() 75 codec_cfg->cid, codec_cfg->vid, codec_cfg->data_len); in print_codec_cfg() 78 print_ltv_array("data", codec_cfg->data, codec_cfg->data_len); in print_codec_cfg() 81 print_hex(codec_cfg->data, codec_cfg->data_len); in print_codec_cfg()
|
/Zephyr-latest/tests/net/socket/tls_configurations/src/ |
D | main.c | 186 size_t data_len; in main() local 202 data_len = sizeof(TEST_STRING) - 1; in main() 213 ret = send(socket_fd, test_buf, data_len, 0); in main() 223 ret = recv(socket_fd, test_buf, data_len, MSG_WAITALL); in main() 232 if (ret != data_len) { in main() 233 LOG_ERR("Sent %d bytes, but received %d", data_len, ret); in main() 240 ret = memcmp(TEST_STRING, test_buf, data_len); in main() 243 LOG_HEXDUMP_ERR(test_buf, data_len, "Received:"); in main() 244 LOG_HEXDUMP_ERR(TEST_STRING, data_len, "Expected:"); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/long_ad/src/ |
D | advertiser.c | 59 uint8_t data_len; in ad_deserialize() local 66 data_len = input[idx] - 1; in ad_deserialize() 70 if (data_len + 2 > input_size - idx) { in ad_deserialize() 74 data_len + 1, input_size - idx); in ad_deserialize() 80 output[ad_len].data_len = data_len; in ad_deserialize() 83 idx += data_len + 2; in ad_deserialize()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | audio.c | 59 data.data_len = len - sizeof(data.type); in bt_audio_data_parse() 61 if (data.data_len > 0) { in bt_audio_data_parse() 74 i += data.data_len; in bt_audio_data_parse() 83 uint8_t data_len; member 93 param->data_len = data->data_len; in parse_cb() 107 .data_len = 0U, in bt_audio_data_get_val() 139 return param.data_len; in bt_audio_data_get_val() 168 bool bt_audio_valid_ltv(const uint8_t *data, uint8_t data_len) in bt_audio_valid_ltv() argument 170 return bt_audio_data_parse(data, data_len, valid_ltv_cb, NULL) == 0; in bt_audio_valid_ltv()
|
D | codec.c | 129 size_t data_len) in ltv_set_val() argument 141 if (data_len == value_len) { in ltv_set_val() 142 memcpy(value, data, data_len); in ltv_set_val() 144 const int16_t diff = data_len - value_len; in ltv_set_val() 154 new_next_data_start = value + data_len; in ltv_set_val() 164 memcpy(value, data, data_len); in ltv_set_val() 176 data_len, buf->len, buf->size); in ltv_set_val() 184 memcpy(value, data, data_len); in ltv_set_val() 198 new_buf_len = buf->len + 1 /* len */ + sizeof(type) + data_len; in ltv_set_val() 200 net_buf_simple_add_u8(buf, data_len + sizeof(type)); /* len */ in ltv_set_val() [all …]
|
/Zephyr-latest/samples/bluetooth/central_gatt_write/src/ |
D | gatt_write_common.c | 187 static uint16_t data_len; in write_cmd() local 202 data_len--; in write_cmd() 203 if (data_len <= 1) { in write_cmd() 204 data_len = 1; in write_cmd() 208 data_len++; in write_cmd() 209 if (data_len >= data_len_max) { in write_cmd() 210 data_len = data_len_max; in write_cmd() 216 data_len = data_len_max; in write_cmd() 224 err = bt_gatt_write_without_response_cb(conn, 0x0001, data, data_len, in write_cmd() 226 (void *)((uint32_t)data_len)); in write_cmd()
|
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/ |
D | main.c | 73 i < sizeof(host_to_dut->header) + host_to_dut->header.data_len; in update_host_to_dut_checksum() 83 expected_dut_to_host->header.data_len; in update_dut_to_host_checksum() 117 expected_dut_to_host->header.data_len; in expected_tx_size() 133 expected_dut_to_host->header.data_len = 0; in verify_tx_error() 171 host_to_dut->header.data_len = sizeof(host_to_dut->add); in ZTEST() 179 expected_dut_to_host->header.data_len = in ZTEST() 192 host_to_dut->header.data_len = sizeof(host_to_dut->add); in ZTEST() 200 expected_dut_to_host->header.data_len = in ZTEST() 213 host_to_dut->header.data_len = sizeof(host_to_dut->add); in ZTEST() 227 host_to_dut->header.data_len = sizeof(host_to_dut->add); in ZTEST() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/ |
D | cis_peripheral.c | 39 static void iso_print_data(uint8_t *data, size_t data_len) in iso_print_data() argument 46 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data() 47 if (data_len > max_octets) { in iso_print_data() 48 if (data_len > (max_octets * 2)) { in iso_print_data() 55 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data() 56 MIN(max_octets, data_len - max_octets), data_str + str_len, in iso_print_data()
|
/Zephyr-latest/samples/net/lwm2m_client/src/ |
D | firmware_update.c | 35 uint16_t res_inst_id, size_t *data_len) in firmware_get_buf() argument 37 *data_len = sizeof(firmware_buf); in firmware_get_buf() 43 uint16_t data_len, bool last_block, in firmware_block_received_cb() argument 47 offset, data_len, last_block); in firmware_block_received_cb()
|
D | timer.c | 19 uint8_t *data, uint16_t data_len, bool last_block, in timer_on_off_validate_cb() argument 24 if (data_len != 1) { in timer_on_off_validate_cb() 36 uint8_t *data, uint16_t data_len, bool last_block, in timer_digital_state_cb() argument
|
/Zephyr-latest/samples/subsys/llext/edk/app/src/ |
D | pubsub.c | 124 int z_impl_publish(enum Channels channel, void *data, size_t data_len) in z_impl_publish() argument 138 size_t data_len) in z_vrfy_publish() argument 143 copy_data = k_usermode_alloc_from_copy(data, data_len); in z_vrfy_publish() 148 ret = z_impl_publish(channel, copy_data, data_len); in z_vrfy_publish() 157 int z_impl_receive(enum Channels channel, void *data, size_t data_len) in z_impl_receive() argument 166 if (data_len < msg_size) { in z_impl_receive() 177 size_t data_len) in z_vrfy_receive() argument 179 if (K_SYSCALL_MEMORY_WRITE(data, data_len)) { in z_vrfy_receive() 183 return z_impl_receive(channel, data, data_len); in z_vrfy_receive()
|
/Zephyr-latest/samples/bluetooth/iso_peripheral/src/ |
D | main.c | 71 static void iso_print_data(uint8_t *data, size_t data_len) in iso_print_data() argument 78 str_len = bin2hex(data, MIN(max_octets, data_len), data_str, sizeof(data_str)); in iso_print_data() 79 if (data_len > max_octets) { in iso_print_data() 80 if (data_len > (max_octets * 2)) { in iso_print_data() 87 str_len += bin2hex(data + (data_len - MIN(max_octets, data_len - max_octets)), in iso_print_data() 88 MIN(max_octets, data_len - max_octets), in iso_print_data()
|
/Zephyr-latest/modules/hal_nordic/nrf_802154/serialization/platform/ |
D | nrf_802154_spinel_response_notifier.c | 113 size_t data_len) in nrf_802154_spinel_response_notifier_property_notify() argument 121 assert(data_len <= sizeof(notify_buff.buff.data)); in nrf_802154_spinel_response_notifier_property_notify() 123 memcpy(notify_buff.buff.data, p_data, data_len); in nrf_802154_spinel_response_notifier_property_notify() 124 notify_buff.buff.data_len = data_len; in nrf_802154_spinel_response_notifier_property_notify()
|
/Zephyr-latest/tests/bluetooth/hci_prop_evt/src/ |
D | main.c | 35 uint8_t data_len; member 318 uint8_t data_len = per->data_len; in prop_cb() local 322 prop_cb_data = k_malloc(data_len); in prop_cb() 326 memcpy(prop_cb_data, data, data_len); in prop_cb() 327 prop_cb_data_len = data_len; in prop_cb() 352 static void send_prop_report(uint8_t *data, uint8_t data_len) in send_prop_report() argument 358 per = prop_evt(buf, sizeof(*per) + data_len); in send_prop_report() 359 per->data_len = data_len; in send_prop_report() 360 memcpy(&per->data[0], data, data_len); in send_prop_report() 379 uint8_t data_len = 10; in ZTEST() local [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_sy1xx.c | 21 uint16_t data_len; member 94 .data_len = 10, in sy1xx_uart_configure() 117 uint32_t max_read_size = request->data_len; in sy1xx_uart_read() 119 request->data_len = 0; in sy1xx_uart_read() 140 request->data_len = bytes_transferred; in sy1xx_uart_read() 174 if (request->data_len == 0) { in sy1xx_uart_write() 178 if (request->data_len > DEVICE_MAX_BUFFER_SIZE) { in sy1xx_uart_write() 196 for (uint32_t i = 0; i < request->data_len; i++) { in sy1xx_uart_write() 201 SY1XX_UDMA_START_TX(config->base, (uint32_t)data->write, request->data_len, 0); in sy1xx_uart_write() 213 .data_len = 1, in sy1xx_uart_poll_in() [all …]
|
/Zephyr-latest/subsys/secure_storage/src/its/ |
D | implementation.c | 40 size_t data_size, void *data, size_t *data_len, in transform_stored_data() argument 46 data_size, data, data_len, create_flags); in transform_stored_data() 55 size_t *data_len, psa_storage_create_flags_t *create_flags) in get_entry() argument 66 return transform_stored_data(uid, stored_data_len, stored_data, data_size, data, data_len, in get_entry() 171 size_t data_len; in secure_storage_its_get() local 174 &data_len, &create_flags); in secure_storage_its_get() 176 if (data_offset > data_len) { in secure_storage_its_get() 178 data_offset, data_len); in secure_storage_its_get() 181 *p_data_length = MIN(data_size, data_len - data_offset); in secure_storage_its_get() 209 size_t data_len; in secure_storage_its_remove() local [all …]
|
/Zephyr-latest/tests/subsys/logging/log_api/src/ |
D | mock_frontend.c | 48 uint32_t data_len) in mock_log_frontend_generic_record() argument 55 (log_timestamp_t)UINT32_MAX, str, data, data_len); in mock_log_frontend_generic_record() 124 zassert_equal(exp_msg->data_len, desc.data_len); in log_frontend_msg() 125 if (exp_msg->data_len <= sizeof(exp_msg->data)) { in log_frontend_msg() 126 zassert_equal(memcmp(data, exp_msg->data, desc.data_len), 0); in log_frontend_msg()
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_ccc.c | 31 ccc_tgt_payload.data_len = sizeof(bcr->bcr); in i3c_ccc_do_getbcr() 54 ccc_tgt_payload.data_len = sizeof(dcr->dcr); in i3c_ccc_do_getdcr() 77 ccc_tgt_payload.data_len = sizeof(pid->pid); in i3c_ccc_do_getpid() 100 ccc_payload.ccc.data_len = 1U; in i3c_ccc_do_rstact_all() 125 ccc_tgt_payload.data_len = sizeof(*data); in i3c_ccc_do_rstact() 133 ccc_payload.ccc.data_len = 1U; in i3c_ccc_do_rstact() 167 ccc_tgt_payload.data_len = 1; in i3c_ccc_do_setdasa() 192 ccc_tgt_payload.data_len = 1; in i3c_ccc_do_setnewda() 214 ccc_payload.ccc.data_len = sizeof(events->events); in i3c_ccc_do_events_all_set() 235 ccc_tgt_payload.data_len = sizeof(events->events); in i3c_ccc_do_events_set() [all …]
|
/Zephyr-latest/subsys/modem/ |
D | modem_cmux.c | 80 uint16_t data_len) in modem_cmux_wrap_command() argument 82 if ((data == NULL) || (data_len < 2)) { in modem_cmux_wrap_command() 92 if ((*command)->length.value != (data_len - 2)) { in modem_cmux_wrap_command() 133 frame->cr, frame->pf, modem_cmux_frame_type_to_str(frame->type), frame->data_len); in modem_cmux_log_frame() 139 modem_cmux_log_frame(frame, "tx", frame->data_len); in modem_cmux_log_transmit_frame() 144 modem_cmux_log_frame(frame, "rcvd", frame->data_len); in modem_cmux_log_received_frame() 272 uint16_t data_len; in modem_cmux_transmit_frame() local 276 data_len = MIN(space, frame->data_len); in modem_cmux_transmit_frame() 288 if (data_len > 127) { in modem_cmux_transmit_frame() 289 buf[3] = data_len << 1; in modem_cmux_transmit_frame() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | lora.h | 142 uint8_t *data, uint32_t data_len); 151 uint8_t *data, uint32_t data_len, 222 uint8_t *data, uint32_t data_len) in lora_send() argument 227 return api->send(dev, data, data_len); in lora_send() 245 uint8_t *data, uint32_t data_len, in lora_send_async() argument 251 return api->send_async(dev, data, data_len, async); in lora_send_async()
|