Searched refs:last_idx (Results 1 – 2 of 2) sorted by relevance
55 uint32_t last_idx; in find_last_idx() local59 last_idx = 0; in find_last_idx()62 last_idx++; in find_last_idx()68 return last_idx; in find_last_idx()78 uint32_t last_idx; in boot_read_image_header() local96 last_idx = find_last_idx(state, swap_size); in boot_read_image_header()103 if (bs->op == BOOT_STATUS_OP_MOVE && slot == 0 && bs->idx > last_idx) { in boot_read_image_header()106 if (bs->idx > 1 && bs->idx <= last_idx) { in boot_read_image_header()526 uint32_t last_idx; in swap_run() local534 last_idx = find_last_idx(state, copy_size); in swap_run()[all …]
63 uint32_t last_idx; in find_last_idx() local67 last_idx = 0; in find_last_idx()71 last_idx++; in find_last_idx()77 return last_idx; in find_last_idx()86 uint32_t last_idx; local114 last_idx = find_last_idx(state, swap_size);124 if (((bs->idx - BOOT_STATUS_IDX_0) > last_idx ||125 ((bs->idx - BOOT_STATUS_IDX_0) == last_idx &&134 if ((bs->idx - BOOT_STATUS_IDX_0) > last_idx ||135 ((bs->idx - BOOT_STATUS_IDX_0) == last_idx &&[all …]