Searched refs:SECTOR_OFFSET (Results 1 – 2 of 2) sorted by relevance
25 #define SECTOR_OFFSET(x) FIELD_GET(ADDR_OFFS_MASK, x) macro
112 return fs->offset + (fs->sector_size * SECTOR_NUM(addr)) + SECTOR_OFFSET(addr); in zms_addr_to_offset()526 entry.offset = (uint32_t)SECTOR_OFFSET(fs->data_wra); in zms_flash_write_entry()598 if ((SECTOR_OFFSET(*addr)) != (fs->sector_size - 2 * fs->ate_size)) { in zms_compute_prev_addr()663 close_ate.offset = (uint32_t)SECTOR_OFFSET(fs->ate_wra + fs->ate_size); in zms_sector_close()680 while (SECTOR_OFFSET(fs->ate_wra) && (fs->ate_wra >= fs->data_wra)) { in zms_sector_close()716 gc_done_ate.offset = (uint32_t)SECTOR_OFFSET(fs->data_wra); in zms_add_gc_done_ate()987 gc_ate.offset = (uint32_t)SECTOR_OFFSET(fs->data_wra); in zms_gc()1254 while (SECTOR_OFFSET(addr) < (fs->sector_size - 2 * fs->ate_size)) { in zms_init()1315 if ((!rc) && (SECTOR_OFFSET(fs->ate_wra) == (fs->sector_size - 3 * fs->ate_size))) { in zms_init()1385 LOG_INF("alloc wra: %llu, %llx", SECTOR_NUM(fs->ate_wra), SECTOR_OFFSET(fs->ate_wra)); in zms_mount()[all …]