Home
last modified time | relevance | path

Searched refs:copy_len (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/drivers/entropy/
Dentropy_max32.c34 uint32_t copy_len; in api_get_entropy_isr() local
43 copy_len = MIN(len, 4); in api_get_entropy_isr()
44 memcpy(buf, (uint8_t *)&temp, copy_len); in api_get_entropy_isr()
46 len -= copy_len; in api_get_entropy_isr()
47 buf += copy_len; in api_get_entropy_isr()
48 count += copy_len; in api_get_entropy_isr()
/Zephyr-latest/subsys/net/ip/
Dicmpv6.c198 size_t copy_len; in net_icmpv6_send_error() local
227 copy_len = sizeof(struct net_ipv6_hdr) + in net_icmpv6_send_error()
230 copy_len = sizeof(struct net_ipv6_hdr) + in net_icmpv6_send_error()
233 copy_len = net_pkt_get_len(orig); in net_icmpv6_send_error()
238 copy_len + NET_ICMPV6_UNUSED_LEN, in net_icmpv6_send_error()
308 copy_len = net_pkt_available_buffer(pkt); in net_icmpv6_send_error()
310 if (err || net_pkt_copy(pkt, orig, copy_len)) { in net_icmpv6_send_error()
Dicmpv4.c519 size_t copy_len; in net_icmpv4_send_error() local
554 copy_len = sizeof(struct net_ipv4_hdr) + in net_icmpv4_send_error()
557 copy_len = sizeof(struct net_ipv4_hdr) + in net_icmpv4_send_error()
560 copy_len = 0; in net_icmpv4_send_error()
564 copy_len + NET_ICMPV4_UNUSED_LEN, in net_icmpv4_send_error()
576 net_pkt_copy(pkt, orig, copy_len)) { in net_icmpv4_send_error()
Dnet_pkt.c791 size_t copy_len; local
793 copy_len = frag->frags->len;
794 if (copy_len > net_buf_tailroom(frag)) {
795 copy_len = net_buf_tailroom(frag);
798 memcpy(net_buf_tail(frag), frag->frags->data, copy_len);
799 net_buf_add(frag, copy_len);
802 frag->frags->data + copy_len,
803 frag->frags->len - copy_len);
805 frag->frags->len -= copy_len;
/Zephyr-latest/subsys/shell/backends/
Dshell_websocket.c276 size_t copy_len; in sh_write() local
296 copy_len = WEBSOCKET_LINE_SIZE - lb->len; in sh_write()
298 copy_len = length - *cnt; in sh_write()
301 memcpy(lb->buf + lb->len, (uint8_t *)data + *cnt, copy_len); in sh_write()
302 lb->len += copy_len; in sh_write()
315 *cnt += copy_len; in sh_write()
Dshell_mqtt.c733 size_t copy_len; in write_data() local
751 copy_len = TX_BUF_SIZE - sh_mqtt->tx_buf.len; in write_data()
753 copy_len = length - *cnt; in write_data()
756 memcpy(sh_mqtt->tx_buf.buf + sh_mqtt->tx_buf.len, (uint8_t *)data + *cnt, copy_len); in write_data()
757 sh_mqtt->tx_buf.len += copy_len; in write_data()
771 *cnt += copy_len; in write_data()
Dshell_telnet.c666 size_t copy_len; in telnet_write() local
693 copy_len = TELNET_LINE_SIZE - lb->len; in telnet_write()
695 copy_len = length - *cnt; in telnet_write()
698 memcpy(lb->buf + lb->len, (uint8_t *)data + *cnt, copy_len); in telnet_write()
699 lb->len += copy_len; in telnet_write()
718 *cnt += copy_len; in telnet_write()
/Zephyr-latest/drivers/flash/
Dflash_cadence_qspi_nor_ll.c804 uint32_t bank_count, bank_addr, bank_offset, copy_len; in cad_qspi_read() local
839 copy_len = MIN(size, CAD_QSPI_BANK_SIZE - bank_offset); in cad_qspi_read()
847 status = cad_qspi_read_bank(cad_params, read_data, bank_offset, copy_len); in cad_qspi_read()
854 read_data += copy_len; in cad_qspi_read()
855 size -= copy_len; in cad_qspi_read()
857 copy_len = MIN(size, CAD_QSPI_BANK_SIZE); in cad_qspi_read()
891 uint32_t bank_count, bank_addr, bank_offset, copy_len; in cad_qspi_write() local
917 copy_len = MIN(size, CAD_QSPI_BANK_SIZE - bank_offset); in cad_qspi_write()
926 status = cad_qspi_write_bank(cad_params, bank_offset, write_data, copy_len); in cad_qspi_write()
932 write_data += copy_len; in cad_qspi_write()
[all …]
/Zephyr-latest/subsys/net/lib/tftp/
Dtftp_client.c158 size_t copy_len = strlen(err_msg); in send_err() local
160 if (copy_len > sizeof(client->tftp_buf) - req_size) { in send_err()
161 copy_len = sizeof(client->tftp_buf) - req_size; in send_err()
164 memcpy(client->tftp_buf + req_size, err_msg, copy_len); in send_err()
165 req_size += copy_len; in send_err()
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_icmsg_me_follower.c85 size_t copy_len = MIN(EP_NAME_LEN - 1, len); in cache_ept_rmt() local
88 copy_len); in cache_ept_rmt()
89 data->ept_disc_rmt_cache[i].name[copy_len] = '\0'; in cache_ept_rmt()
/Zephyr-latest/drivers/serial/
Duart_sy1xx.c133 uint32_t copy_len = in sy1xx_uart_read() local
135 for (uint32_t i = 0; i < copy_len; i++) { in sy1xx_uart_read()