Lines Matching full:0
39 assert(query_slot == 0 || query_slot == 1); in img_mgmt_state_flags()
41 flags = 0; in img_mgmt_state_flags()
80 /* Slot 0 is always active. */ in img_mgmt_state_flags()
81 /* XXX: The slot 0 assumption only holds when running from flash. */ in img_mgmt_state_flags()
96 return img_mgmt_state_flags(0) & IMG_MGMT_STATE_F_PENDING || in img_mgmt_state_any_pending()
134 if (state_flags & IMG_MGMT_STATE_F_CONFIRMED && slot != 0) { in img_mgmt_state_set_pending()
140 if (rc != 0) { in img_mgmt_state_set_pending()
177 if (rc != 0) { in img_mgmt_state_confirm()
203 err = 0; in img_mgmt_state_read()
208 for (i = 0; i < 2; i++) { in img_mgmt_state_read()
210 if (rc != 0) { in img_mgmt_state_read()
253 err |= cbor_encode_int(&ctxt->encoder, 0); in img_mgmt_state_read()
255 if (err != 0) { in img_mgmt_state_read()
259 return 0; in img_mgmt_state_read()
279 [0] = { in img_mgmt_state_write()
292 [2] = { 0 }, in img_mgmt_state_write()
295 hash_len = 0; in img_mgmt_state_write()
297 if (rc != 0) { in img_mgmt_state_write()
302 if (hash_len == 0) { in img_mgmt_state_write()
311 if (slot < 0) { in img_mgmt_state_write()
322 if (rc != 0) { in img_mgmt_state_write()
328 if (rc != 0) { in img_mgmt_state_write()
332 return 0; in img_mgmt_state_write()