Lines Matching refs:bs
85 const struct boot_status *bs) in swap_status_init() argument
103 if (bs->swap_type != BOOT_SWAP_TYPE_NONE) { in swap_status_init()
104 rc = boot_write_swap_info(fap, bs->swap_type, image_index); in swap_status_init()
113 rc = boot_write_swap_size(fap, bs->swap_size); in swap_status_init()
117 rc = boot_write_enc_key(fap, 0, bs); in swap_status_init()
120 rc = boot_write_enc_key(fap, 1, bs); in swap_status_init()
131 swap_read_status(struct boot_loader_state *state, struct boot_status *bs) in swap_read_status() argument
139 bs->source = swap_status_source(state); in swap_read_status()
140 switch (bs->source) { in swap_read_status()
164 rc = swap_read_status_bytes(fap, state, bs); in swap_read_status()
179 bs->swap_type = BOOT_GET_SWAP_TYPE(swap_info); in swap_read_status()