Searched refs:bytes_to_copy (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/drivers/flash/ |
D | soc_flash_nios2_qspi.c | 190 uint32_t word_to_write, padding, bytes_to_copy; in flash_nios2_qspi_write_block() local 202 bytes_to_copy = NIOS2_WRITE_BLOCK_SIZE; in flash_nios2_qspi_write_block() 219 bytes_to_copy -= padding; in flash_nios2_qspi_write_block() 221 if (bytes_to_copy > remaining_length) { in flash_nios2_qspi_write_block() 222 bytes_to_copy = remaining_length; in flash_nios2_qspi_write_block() 233 if (bytes_to_copy > remaining_length) { in flash_nios2_qspi_write_block() 234 bytes_to_copy = remaining_length; in flash_nios2_qspi_write_block() 239 if (padding + bytes_to_copy > NIOS2_WRITE_BLOCK_SIZE) { in flash_nios2_qspi_write_block() 247 bytes_to_copy); in flash_nios2_qspi_write_block() 270 buffer_offset += bytes_to_copy; in flash_nios2_qspi_write_block() [all …]
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_dw.c | 1235 uint32_t i, j, data_len, bytes_to_copy; in usb_dc_ep_read_wait() local 1275 bytes_to_copy = max_data_len; in usb_dc_ep_read_wait() 1277 bytes_to_copy = data_len; in usb_dc_ep_read_wait() 1281 bytes_to_copy); in usb_dc_ep_read_wait() 1284 for (i = 0U; i < (bytes_to_copy & ~0x3); i += 4U) { in usb_dc_ep_read_wait() 1287 if (bytes_to_copy & 0x3) { in usb_dc_ep_read_wait() 1291 for (j = 0U; j < (bytes_to_copy & 0x3); j++) { in usb_dc_ep_read_wait() 1297 usb_dw_ctrl.out_ep_ctrl[ep_idx].data_len -= bytes_to_copy; in usb_dc_ep_read_wait() 1300 *read_bytes = bytes_to_copy; in usb_dc_ep_read_wait()
|
D | usb_dc_nrfx.c | 1719 uint32_t bytes_to_copy; in usb_dc_ep_read_wait() local 1745 bytes_to_copy = MIN(max_data_len, ep_ctx->buf.len); in usb_dc_ep_read_wait() 1755 memcpy(data, ep_ctx->buf.curr, bytes_to_copy); in usb_dc_ep_read_wait() 1757 ep_ctx->buf.curr += bytes_to_copy; in usb_dc_ep_read_wait() 1758 ep_ctx->buf.len -= bytes_to_copy; in usb_dc_ep_read_wait() 1760 *read_bytes = bytes_to_copy; in usb_dc_ep_read_wait()
|
/Zephyr-latest/kernel/ |
D | thread.c | 218 size_t bytes_to_copy; in copy_bytes() local 220 bytes_to_copy = MIN(dest_size, src_size); in copy_bytes() 221 memcpy(dest, src, bytes_to_copy); in copy_bytes() 223 return bytes_to_copy; in copy_bytes()
|
/Zephyr-latest/subsys/fs/nvs/ |
D | nvs.c | 303 size_t bytes_to_copy, block_size; in nvs_flash_block_move() local 310 bytes_to_copy = MIN(block_size, len); in nvs_flash_block_move() 311 rc = nvs_flash_rd(fs, addr, buf, bytes_to_copy); in nvs_flash_block_move() 318 rc = nvs_flash_data_wrt(fs, buf, bytes_to_copy, false); in nvs_flash_block_move() 322 len -= bytes_to_copy; in nvs_flash_block_move() 323 addr += bytes_to_copy; in nvs_flash_block_move()
|
/Zephyr-latest/subsys/fs/zms/ |
D | zms.c | 305 size_t bytes_to_copy; in zms_flash_block_move() local 312 bytes_to_copy = MIN(block_size, len); in zms_flash_block_move() 313 rc = zms_flash_rd(fs, addr, buf, bytes_to_copy); in zms_flash_block_move() 317 rc = zms_flash_data_wrt(fs, buf, bytes_to_copy); in zms_flash_block_move() 321 len -= bytes_to_copy; in zms_flash_block_move() 322 addr += bytes_to_copy; in zms_flash_block_move()
|