Searched refs:offset_to_align (Results 1 – 4 of 4) sorted by relevance
202 u32 i = 4 - offset_to_align; in flash_read_word()204 if(offset_to_align){ in flash_read_word()205 address -= offset_to_align; in flash_read_word()240 u32 i = 4 - offset_to_align; in flash_write_word()243 if(offset_to_align){ in flash_write_word()251 temp = (temp >> (offset_to_align * 8)) << (offset_to_align * 8) | write_word >>(8*i); in flash_write_word()282 u32 offset_to_align; in flash_stream_read() local290 if (offset_to_align != 0) { in flash_stream_read()294 offset_to_align = 4 - offset_to_align; in flash_stream_read()363 u32 offset_to_align; in flash_stream_write() local[all …]
59 uint32_t offset_to_align; in csi_spiflash_read() local68 offset_to_align = offset & 0x03; in csi_spiflash_read()70 if (offset_to_align != 0) { in csi_spiflash_read()72 read_word = HAL_READ32(SPI_FLASH_BASE, (offset - offset_to_align)); in csi_spiflash_read()73 ptr = (uint8_t*)&read_word + offset_to_align; in csi_spiflash_read()74 offset_to_align = 4 - offset_to_align; in csi_spiflash_read()75 for (i=0;i<offset_to_align;i++) { in csi_spiflash_read()139 uint32_t offset_to_align; in csi_spiflash_program() local146 offset_to_align = addr_begin & 0x3; in csi_spiflash_program()150 if(offset_to_align != 0){ in csi_spiflash_program()[all …]
316 u32 offset_to_align; in FLASH_ReadStream() local322 offset_to_align = address & 0x03; in FLASH_ReadStream()324 if (offset_to_align != 0) { in FLASH_ReadStream()327 ptr = (u8*)&read_word + offset_to_align; in FLASH_ReadStream()328 offset_to_align = 4 - offset_to_align; in FLASH_ReadStream()329 for (i=0;i<offset_to_align;i++) { in FLASH_ReadStream()394 u32 offset_to_align; in FLASH_WriteStream() local400 offset_to_align = addr_begin & 0x3; in FLASH_WriteStream()402 if(offset_to_align != 0){ in FLASH_WriteStream()404 for(i = offset_to_align;i < 4;i++){ in FLASH_WriteStream()[all …]
145 u32 offset_to_align; in ota_readstream_user() local153 offset_to_align = address & 0x03; in ota_readstream_user()155 if (offset_to_align != 0) { in ota_readstream_user()157 FLASH_RxData(0, address - offset_to_align, 4, (u8*)&read_word); in ota_readstream_user()159 ptr = (u8*)&read_word + offset_to_align; in ota_readstream_user()160 offset_to_align = 4 - offset_to_align; in ota_readstream_user()161 for (i=0;i<offset_to_align;i++) { in ota_readstream_user()234 u32 offset_to_align; in ota_writestream_user() local240 offset_to_align = addr_begin & 0x3; in ota_writestream_user()242 if(offset_to_align != 0){ in ota_writestream_user()[all …]
Completed in 8 milliseconds