Home
last modified time | relevance | path

Searched refs:bytes_to_copy (Results 1 – 2 of 2) sorted by relevance

/hal_altera-latest/drivers/altera_generic_qspi_controller2/HAL/src/
Daltera_generic_quad_spi_controller2.c522 alt_u32 bytes_to_copy = sizeof(alt_u32); /** number of bytes from source to copy */ in alt_qspi_controller2_write_block() local
552 bytes_to_copy -= padding; in alt_qspi_controller2_write_block()
556 if(bytes_to_copy > remaining_length) in alt_qspi_controller2_write_block()
560 bytes_to_copy = remaining_length; in alt_qspi_controller2_write_block()
582 if(bytes_to_copy > remaining_length) in alt_qspi_controller2_write_block()
586 bytes_to_copy = remaining_length; in alt_qspi_controller2_write_block()
596 memcpy((((void*)&word_to_write)) + padding, ((void*)data) + buffer_offset, bytes_to_copy); in alt_qspi_controller2_write_block()
602 buffer_offset += bytes_to_copy; in alt_qspi_controller2_write_block()
604 remaining_length -= bytes_to_copy; in alt_qspi_controller2_write_block()
/hal_altera-latest/drivers/altera_epcq_controller/HAL/src/
Daltera_epcq_controller.c296 alt_u32 bytes_to_copy = sizeof(alt_u32); /** number of bytes from source to copy */ in alt_epcq_controller_write_block() local
311 bytes_to_copy -= padding; in alt_epcq_controller_write_block()
313 if(bytes_to_copy > remaining_length) in alt_epcq_controller_write_block()
315 bytes_to_copy = remaining_length; in alt_epcq_controller_write_block()
326 if(bytes_to_copy > remaining_length) in alt_epcq_controller_write_block()
328 bytes_to_copy = remaining_length; in alt_epcq_controller_write_block()
333 memcpy((((void*)&word_to_write)) + padding, ((void*)data) + buffer_offset, bytes_to_copy); in alt_epcq_controller_write_block()
336 buffer_offset += bytes_to_copy; in alt_epcq_controller_write_block()
337 remaining_length -= bytes_to_copy; in alt_epcq_controller_write_block()