Home
last modified time | relevance | path

Searched refs:to_copy (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/drivers/entropy/
Dentropy_litex.c24 size_t to_copy; in entropy_prbs_get_entropy() local
28 to_copy = MIN(length, sizeof(value)); in entropy_prbs_get_entropy()
30 memcpy(buffer, &value, to_copy); in entropy_prbs_get_entropy()
31 buffer += to_copy; in entropy_prbs_get_entropy()
32 length -= to_copy; in entropy_prbs_get_entropy()
Dentropy_sam.c72 size_t to_copy; in entropy_sam_get_entropy_internal() local
82 to_copy = MIN(length, sizeof(value)); in entropy_sam_get_entropy_internal()
84 memcpy(buffer, &value, to_copy); in entropy_sam_get_entropy_internal()
85 buffer += to_copy; in entropy_sam_get_entropy_internal()
86 length -= to_copy; in entropy_sam_get_entropy_internal()
112 size_t to_copy; in entropy_sam_get_entropy_isr() local
122 to_copy = MIN(length, sizeof(value)); in entropy_sam_get_entropy_isr()
124 memcpy(buffer, &value, to_copy); in entropy_sam_get_entropy_isr()
125 buffer += to_copy; in entropy_sam_get_entropy_isr()
126 length -= to_copy; in entropy_sam_get_entropy_isr()
Dentropy_renesas_ra.c23 const uint32_t to_copy = MIN(sizeof(n), len); in entropy_renesas_ra_get_entropy() local
28 memcpy(buf, n, to_copy); in entropy_renesas_ra_get_entropy()
29 buf += to_copy; in entropy_renesas_ra_get_entropy()
30 len -= to_copy; in entropy_renesas_ra_get_entropy()
Dentropy_esp32.c55 uint32_t to_copy = MIN(sizeof(word), len); in entropy_esp32_get_entropy() local
57 memcpy(buf_bytes, &word, to_copy); in entropy_esp32_get_entropy()
58 buf_bytes += to_copy; in entropy_esp32_get_entropy()
59 len -= to_copy; in entropy_esp32_get_entropy()
Dfake_entropy_native_posix.c45 size_t to_copy = MIN(length, sizeof(long int)); in entropy_native_posix_get_entropy() local
47 memcpy(buffer, &value, to_copy); in entropy_native_posix_get_entropy()
48 buffer += to_copy; in entropy_native_posix_get_entropy()
49 length -= to_copy; in entropy_native_posix_get_entropy()
/Zephyr-latest/subsys/tracing/
Dtracing_backend_adsp_memory_window.c36 size_t to_copy = MIN(length, ADSP_TRACING_WINDOW_DATA_SIZE - mem_window->head_offset); in tracing_backend_adsp_memory_window_output() local
38 memcpy((void *)(mem_window->data + mem_window->head_offset), data, to_copy); in tracing_backend_adsp_memory_window_output()
40 length -= to_copy; in tracing_backend_adsp_memory_window_output()
42 memcpy((void *)mem_window->data, data + to_copy, length); in tracing_backend_adsp_memory_window_output()
45 mem_window->head_offset += to_copy; in tracing_backend_adsp_memory_window_output()
/Zephyr-latest/drivers/bbram/
Dbbram_stm32.c43 uint32_t reg, begin, to_copy; in bbram_stm32_read() local
49 for (size_t read = 0; read < size; read += to_copy) { in bbram_stm32_read()
52 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - read); in bbram_stm32_read()
53 bytecpy(data + read, (uint8_t *)&reg + begin, to_copy); in bbram_stm32_read()
63 uint32_t reg, begin, to_copy; in bbram_stm32_write() local
73 for (size_t written = 0; written < size; written += to_copy) { in bbram_stm32_write()
76 to_copy = MIN(STM32_BKP_REG_BYTES - begin, size - written); in bbram_stm32_write()
77 bytecpy((uint8_t *)&reg + begin, data + written, to_copy); in bbram_stm32_write()
/Zephyr-latest/doc/_extensions/zephyr/
Dexternal_content.py102 to_copy = []
115 to_copy.extend(
119 to_copy.append((src, prefix_src))
121 for entry in to_copy:
/Zephyr-latest/drivers/wifi/esp_at/
Desp_socket.c110 size_t to_copy; in esp_socket_prepare_pkt() local
128 to_copy = MIN(len, frag->len - offset); in esp_socket_prepare_pkt()
129 if (net_pkt_write(pkt, frag->data + offset, to_copy) != 0) { in esp_socket_prepare_pkt()
135 len -= to_copy; in esp_socket_prepare_pkt()
/Zephyr-latest/subsys/bluetooth/mesh/
Dbrg_cfg_cli.c96 size_t to_copy; in subnets_list() local
98 to_copy = MIN(net_buf_simple_tailroom(rsp->list), buf->len); in subnets_list()
99 net_buf_simple_add_mem(rsp->list, buf->data, to_copy); in subnets_list()
135 size_t to_copy; in table_list() local
137 to_copy = MIN(net_buf_simple_tailroom(rsp->list), (buf->len / 5) * 5); in table_list()
138 net_buf_simple_add_mem(rsp->list, buf->data, to_copy); in table_list()
Dcfg_cli.c57 size_t to_copy; in comp_data_status() local
73 to_copy = MIN(net_buf_simple_tailroom(param->comp), buf->len); in comp_data_status()
74 net_buf_simple_add_mem(param->comp, buf->data, to_copy); in comp_data_status()
/Zephyr-latest/tests/kernel/mem_protect/syscalls/src/
Dtest_syscalls.h15 __syscall int to_copy(char *dest);
Dmain.c307 ret = to_copy(kernel_buf); in ZTEST_USER()
310 ret = to_copy(buf); in ZTEST_USER()
369 ret = to_copy(buf); in syscall_torture()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix.c382 uint32_t to_copy; in usb_dc_ep_read_wait() local
413 to_copy = MIN(usbip_ctrl.out_ep_ctrl[ep_idx].data_len, max_data_len); in usb_dc_ep_read_wait()
414 LOG_DBG("ep 0x%02x, to_copy %u", ep, to_copy); in usb_dc_ep_read_wait()
415 memcpy(data, usbip_ctrl.out_ep_ctrl[ep_idx].buf, to_copy); in usb_dc_ep_read_wait()
418 *read_bytes = to_copy; in usb_dc_ep_read_wait()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_huffman.c447 uint8_t to_copy = MIN(8 - bit_offset, bitlen); in http_hpack_huffman_encode() local
448 uint8_t byte = (uint8_t)((code & MSB_MASK(to_copy)) >> in http_hpack_huffman_encode()
458 code <<= to_copy; in http_hpack_huffman_encode()
459 bitlen -= to_copy; in http_hpack_huffman_encode()
460 bit_offset = (bit_offset + to_copy) % 8; in http_hpack_huffman_encode()
/Zephyr-latest/lib/net_buf/
Dbuf.c646 size_t to_copy; in net_buf_linearize() local
662 to_copy = MIN(len, frag->len - offset); in net_buf_linearize()
663 memcpy((uint8_t *)dst + copied, frag->data + offset, to_copy); in net_buf_linearize()
665 copied += to_copy; in net_buf_linearize()
668 len -= to_copy; in net_buf_linearize()
/Zephyr-latest/drivers/flash/
Dflash_shell.c598 uint32_t to_copy = MIN(len, left_to_read); in bypass_cb() local
601 while (copied < to_copy) { in bypass_cb()
603 uint32_t buf_copy = MIN(to_copy, flash_load_buf_size - flash_load_boff); in bypass_cb()
/Zephyr-latest/subsys/canbus/isotp/
Disotp.c720 size_t copied, to_copy; in isotp_recv() local
736 to_copy = MIN(len - copied, rctx->recv_buf->len); in isotp_recv()
737 memcpy((uint8_t *)data + copied, rctx->recv_buf->data, to_copy); in isotp_recv()
739 if (rctx->recv_buf->len == to_copy) { in isotp_recv()
744 net_buf_pull(rctx->recv_buf, to_copy); in isotp_recv()
747 copied += to_copy; in isotp_recv()
/Zephyr-latest/subsys/bluetooth/host/
Did.c1252 size_t to_copy = MIN(*count, bt_dev.id_count); in bt_id_get() local
1254 memcpy(addrs, bt_dev.id_addr, to_copy * sizeof(bt_addr_le_t)); in bt_id_get()
1255 *count = to_copy; in bt_id_get()