Lines Matching refs:start_addr
33 uint32_t start_addr, end_addr; in hal_flash_erase() local
44 start_addr = ROUND_DOWN((partition_info->partition_start_addr + off_set), SPI_FLASH_SEC_SIZE); in hal_flash_erase()
47 for (addr = start_addr; addr <= end_addr; addr += SPI_FLASH_SEC_SIZE) { in hal_flash_erase()
57 uint32_t start_addr, end_addr; in hal_flash_write() local
66 start_addr = partition_info->partition_start_addr + *off_set; in hal_flash_write()
67 ret = flash_stream_write(&flash_obj, start_addr, in_buf_len, (uint8_t *)in_buf); in hal_flash_write()
76 uint32_t start_addr; in hal_flash_read() local
86 start_addr = partition_info->partition_start_addr + *off_set; in hal_flash_read()
87 flash_stream_read(&flash_obj, start_addr, out_buf_len, out_buf); in hal_flash_read()
108 uint32_t logic_addr, start_addr, end_addr; in hal_flash_addr2offset() local
119 start_addr = partition_info->partition_start_addr; in hal_flash_addr2offset()
120 end_addr = start_addr + partition_info->partition_length; in hal_flash_addr2offset()
122 if ((logic_addr >= start_addr) && (logic_addr < end_addr)) { in hal_flash_addr2offset()
124 *off_set = logic_addr - start_addr; in hal_flash_addr2offset()