Lines Matching defs:state
88 uint8_t state; /* Which part of the swapping process are we at */ member
364 #define BOOT_CURR_IMG(state) ((state)->curr_img_idx) argument
366 #define BOOT_CURR_IMG(state) 0 argument
369 #define BOOT_CURR_ENC(state) ((state)->enc[BOOT_CURR_IMG(state)]) argument
371 #define BOOT_CURR_ENC(state) NULL argument
373 #define BOOT_IMG(state, slot) ((state)->imgs[BOOT_CURR_IMG(state)][(slot)]) argument
374 #define BOOT_IMG_AREA(state, slot) (BOOT_IMG(state, slot).area) argument
375 #define BOOT_WRITE_SZ(state) ((state)->write_sz) argument
376 #define BOOT_SWAP_TYPE(state) ((state)->swap_type[BOOT_CURR_IMG(state)]) argument
385 boot_img_hdr(struct boot_loader_state *state, size_t slot) in boot_img_hdr()
391 boot_img_num_sectors(const struct boot_loader_state *state, size_t slot) in boot_img_num_sectors()
400 boot_img_slot_off(struct boot_loader_state *state, size_t slot) in boot_img_slot_off()
408 boot_img_sector_size(const struct boot_loader_state *state, in boot_img_sector_size()
419 boot_img_sector_off(const struct boot_loader_state *state, size_t slot, in boot_img_sector_off()
429 boot_img_sector_size(const struct boot_loader_state *state, in boot_img_sector_size()
436 boot_img_sector_off(const struct boot_loader_state *state, size_t slot, in boot_img_sector_off()