Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 66) sorted by relevance

123

/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_lorawan.c73 uint8_t data_size; in smp_lorawan_uplink_thread() local
77 lorawan_get_payload_sizes(&data_size, &temp); in smp_lorawan_uplink_thread()
79 if (data_size > size) { in smp_lorawan_uplink_thread()
80 data_size = size; in smp_lorawan_uplink_thread()
84 if ((data_size + pos) > size) { in smp_lorawan_uplink_thread()
85 data_size = size - pos; in smp_lorawan_uplink_thread()
88 data = net_buf_pull_mem(msg->nb, data_size); in smp_lorawan_uplink_thread()
95 data, data_size, in smp_lorawan_uplink_thread()
114 pos += data_size; in smp_lorawan_uplink_thread()
194 uint8_t data_size; in smp_lorawan_uplink() local
[all …]
Dsmp_dummy.c160 uint16_t data_size = in dummy_mcumgr_send_raw() local
164 memcpy(&smp_send_buffer[smp_send_pos], data, data_size); in dummy_mcumgr_send_raw()
165 smp_send_pos += data_size; in dummy_mcumgr_send_raw()
274 void dummy_mcumgr_add_data(uint8_t *data, uint16_t data_size) in dummy_mcumgr_add_data() argument
279 for (i = 0; i < data_size; i++) { in dummy_mcumgr_add_data()
691 uint16_t data_size = in smp_receive() local
695 memcpy(&smp_receive_buffer[smp_receive_pos], data, data_size); in smp_receive()
696 smp_receive_pos += data_size; in smp_receive()
/Zephyr-latest/subsys/secure_storage/src/its/store/
Dsettings.c65 const size_t data_size; member
76 load_params->ret = read_cb(cb_arg, load_params->data, MIN(load_params->data_size, len)); in load_direct_setting()
80 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size, in secure_storage_its_store_get() argument
85 struct load_params load_params = {.data_size = data_size, .data = data, .ret = -ENOENT}; in secure_storage_its_store_get()
99 "Loaded" : "Failed to load", name, data_size, load_params.ret); in secure_storage_its_store_get()
Dzms.c84 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size, in secure_storage_its_store_get() argument
95 zms_ret = zms_read(&s_zms, zms_id, data, data_size); in secure_storage_its_store_get()
105 "Read" : "Failed to read", zms_id, data_size, zms_ret); in secure_storage_its_store_get()
/Zephyr-latest/subsys/secure_storage/src/its/
Dimplementation.c40 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()
54 static psa_status_t get_entry(secure_storage_its_uid_t uid, size_t data_size, uint8_t *data, in get_entry() argument
66 return transform_stored_data(uid, stored_data_len, stored_data, data_size, data, data_len, in get_entry()
146 size_t data_size, void *p_data, size_t *p_data_length) in secure_storage_its_get() argument
148 if (uid.uid == 0 || (p_data == NULL && data_size != 0) || p_data_length == NULL) { in secure_storage_its_get()
151 if (data_size == 0) { in secure_storage_its_get()
165 && data_size >= SECURE_STORAGE_ITS_TRANSFORM_DATA_SIZE(stored_data_len)) { in secure_storage_its_get()
167 return transform_stored_data(uid, stored_data_len, stored_data, data_size, p_data, in secure_storage_its_get()
181 *p_data_length = MIN(data_size, data_len - data_offset); in secure_storage_its_get()
/Zephyr-latest/drivers/i2s/
Di2s_handlers.c50 size_t data_size; in z_vrfy_i2s_buf_read() local
55 ret = i2s_read((const struct device *)dev, &mem_block, &data_size); in z_vrfy_i2s_buf_read()
67 data_size); in z_vrfy_i2s_buf_read()
71 K_OOPS(k_usermode_to_copy((void *)size, &data_size, in z_vrfy_i2s_buf_read()
72 sizeof(data_size))); in z_vrfy_i2s_buf_read()
/Zephyr-latest/subsys/net/ip/
Dicmp.c142 + params->data_size, in send_icmpv4_echo_request()
180 if (params->data != NULL && params->data_size > 0) { in send_icmpv4_echo_request()
181 net_pkt_write(pkt, params->data, params->data_size); in send_icmpv4_echo_request()
182 } else if (params->data == NULL && params->data_size > 0) { in send_icmpv4_echo_request()
184 if (params->data_size >= sizeof(uint32_t)) { in send_icmpv4_echo_request()
188 params->data_size -= sizeof(time_stamp); in send_icmpv4_echo_request()
191 for (size_t i = 0; i < params->data_size; i++) { in send_icmpv4_echo_request()
266 + params->data_size, in send_icmpv6_echo_request()
304 if (params->data != NULL && params->data_size > 0) { in send_icmpv6_echo_request()
305 net_pkt_write(pkt, params->data, params->data_size); in send_icmpv6_echo_request()
[all …]
/Zephyr-latest/subsys/secure_storage/include/psa/
Dprotected_storage.h83 size_t data_size, void *p_data, size_t *p_data_length) in psa_ps_get() argument
86 return secure_storage_its_get(ITS_UID, data_offset, data_size, p_data, p_data_length); in psa_ps_get()
88 return secure_storage_ps_get(uid, data_offset, data_size, p_data, p_data_length); in psa_ps_get()
Dinternal_trusted_storage.h77 size_t data_size, void *p_data, size_t *p_data_length) in psa_its_get() argument
79 return secure_storage_its_get(ITS_UID, data_offset, data_size, p_data, p_data_length); in psa_its_get()
/Zephyr-latest/tests/subsys/secure_storage/psa/its/src/
Dcustom_transform.c25 size_t data_size, void *data, size_t *data_len, in secure_storage_its_transform_from_store() argument
29 __ASSERT_NO_MSG(data_size >= *data_len); in secure_storage_its_transform_from_store()
Dcustom_store.c51 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size, in secure_storage_its_store_get() argument
59 *data_length = MIN(data_size, s_its_entries[index].data_length); in secure_storage_its_store_get()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dcap_acceptor.c32 static size_t ad_cap_announcement_data_add(struct bt_data data[], size_t data_size) in ad_cap_announcement_data_add() argument
39 __ASSERT(data_size > 0, "No space for AD_CAP_ANNOUNCEMENT"); in ad_cap_announcement_data_add()
337 size_t cap_acceptor_ad_data_add(struct bt_data data[], size_t data_size, bool discoverable) in cap_acceptor_ad_data_add() argument
349 ad_len += ad_cap_announcement_data_add(data, data_size); in cap_acceptor_ad_data_add()
366 __ASSERT(data_size > ad_len, "No space for AD_RSI"); in cap_acceptor_ad_data_add()
378 size_t cap_acceptor_ad_data_add(struct bt_data data[], size_t data_size, bool discoverable) in cap_acceptor_ad_data_add() argument
384 return ad_cap_announcement_data_add(data, data_size); in cap_acceptor_ad_data_add()
Dpbp.c57 size_t pbp_ad_data_add(struct bt_data data[], size_t data_size) in pbp_ad_data_add() argument
74 __ASSERT(data_size > 0, "No space for Public Broadcast Announcement"); in pbp_ad_data_add()
/Zephyr-latest/drivers/dma/
Ddma_sam_xdmac.c35 uint32_t data_size; member
185 uint32_t data_size; in sam_xdmac_config() local
209 data_size = find_msb_set(cfg->source_data_size) - 1; in sam_xdmac_config()
210 dev_data->dma_channels[channel].data_size = data_size; in sam_xdmac_config()
211 LOG_DBG("data_size=%d", data_size); in sam_xdmac_config()
258 XDMAC_CC_DWIDTH(data_size) in sam_xdmac_config()
280 transfer_cfg.ublen = cfg->head_block->block_size >> data_size; in sam_xdmac_config()
294 .ublen = size >> dev_data->dma_channels[channel].data_size, in sam_xdmac_transfer_reload()
/Zephyr-latest/subsys/net/lib/tftp/
Dtftp_client.c54 size_t data_size) in send_data() argument
63 LOG_DBG("Client send data: block no %u, size %u", block_no, data_size + TFTP_HEADER_SIZE); in send_data()
74 memcpy(client->tftp_buf + TFTP_HEADER_SIZE, data_buffer, data_size); in send_data()
76 ret = zsock_send(sock, client->tftp_buf, data_size + TFTP_HEADER_SIZE, 0); in send_data()
298 uint32_t data_size = rcv_size - TFTP_HEADER_SIZE; in tftp_get() local
320 evt.param.data.len = data_size; in tftp_get()
324 tftpc_index += data_size; in tftp_get()
/Zephyr-latest/tests/lib/gui/lvgl/src/
Dimg.c126 .data_size = sizeof(img_data),
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/its/
Dstore.h37 psa_status_t secure_storage_its_store_get(secure_storage_its_uid_t uid, size_t data_size,
Dtransform.h59 size_t data_size, void *data, size_t *data_len,
/Zephyr-latest/include/zephyr/mgmt/mcumgr/transport/
Dsmp_dummy.h34 void dummy_mcumgr_add_data(uint8_t *data, uint16_t data_size);
/Zephyr-latest/drivers/i2c/
Di2c_sam4l_twim.c290 uint32_t data_size; in i2c_start_xfer() local
344 data_size = i2c_prepare_xfer_cmd(data, &cmdr_reg, 0); in i2c_start_xfer()
351 data_size = i2c_prepare_xfer_cmd(data, &cmdr_reg, 0); in i2c_start_xfer()
357 data_size = i2c_prepare_xfer_cmd(data, &cmdr_reg, in i2c_start_xfer()
359 cmdr_reg |= TWIM_CMDR_NBYTES(data_size); in i2c_start_xfer()
385 uint32_t data_size; in i2c_prepare_next() local
410 data_size = i2c_prepare_xfer_cmd(data, &cmdr_reg, data->msg_next_idx); in i2c_prepare_next()
411 cmdr_reg |= TWIM_CMDR_NBYTES(data_size); in i2c_prepare_next()
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/
Dits.h22 size_t data_size, void *p_data, size_t *p_data_length);
/Zephyr-latest/tests/net/icmp/src/
Dmain.c196 params->data_size, in get_ipv4_reply()
228 ret = net_pkt_write(reply, params->data, params->data_size); in get_ipv4_reply()
270 params->data_size, in get_ipv6_reply()
299 ret = net_pkt_write(reply, params->data, params->data_size); in get_ipv6_reply()
482 params.data_size = sizeof(send_ctx.test_data); in ZTEST()
525 params.data_size = sizeof(send_ctx.test_data); in ZTEST()
564 params.data_size = sizeof(offload_ctx.test_data); in ZTEST()
603 params.data_size = sizeof(offload_ctx.test_data); in ZTEST()
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/
Dcallbacks.h113 size_t data_size);
321 enum mgmt_cb_return mgmt_callback_notify(uint32_t event, void *data, size_t data_size,
/Zephyr-latest/subsys/bluetooth/host/classic/
Dsdp.c288 data_elem->data_size = BIT(data_elem->type & in parse_data_elem()
303 data_elem->data_size = net_buf_pull_u8(buf); in parse_data_elem()
306 data_elem->data_size = net_buf_pull_be16(buf); in parse_data_elem()
309 data_elem->data_size = net_buf_pull_be32(buf); in parse_data_elem()
321 if (buf->len < data_elem->data_size) { in parse_data_elem()
326 data_elem->total_size = data_elem->data_size + size_field_len + 1; in parse_data_elem()
368 seq_size = elem->data_size; in search_uuid()
496 uuid_list_size = data_elem.data_size; in find_services()
513 if (buf->len < data_elem.data_size) { in find_services()
518 if (data_elem.data_size == 2U) { in find_services()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/handler_demo/src/
Dmain.c28 uint16_t *group, bool *abort_more, void *data, size_t data_size) in test_function() argument

123