/Zephyr-latest/drivers/entropy/ |
D | entropy_litex.c | 24 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()
|
D | entropy_sam.c | 72 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()
|
D | entropy_renesas_ra.c | 23 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()
|
D | entropy_esp32.c | 55 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()
|
D | fake_entropy_native_posix.c | 45 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/ |
D | tracing_backend_adsp_memory_window.c | 36 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/ |
D | bbram_stm32.c | 43 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 *)® + 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 *)® + begin, data + written, to_copy); in bbram_stm32_write()
|
/Zephyr-latest/doc/_extensions/zephyr/ |
D | external_content.py | 102 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/ |
D | esp_socket.c | 110 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/ |
D | brg_cfg_cli.c | 96 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()
|
D | cfg_cli.c | 57 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/ |
D | test_syscalls.h | 15 __syscall int to_copy(char *dest);
|
D | main.c | 307 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/ |
D | usb_dc_native_posix.c | 382 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/ |
D | http_huffman.c | 447 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/ |
D | buf.c | 646 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/ |
D | flash_shell.c | 598 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/ |
D | isotp.c | 720 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/ |
D | id.c | 1252 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()
|