Lines Matching refs:sd
21 static struct vb2_shared_data *sd; variable
40 sd = vb2_get_sd(&cc); in reset_common_data()
185 TEST_EQ(sd->gbb_flags, gbb.flags, "gbb flags"); in gbb_tests()
186 TEST_EQ(sd->gbb_rootkey_offset, gbb.rootkey_offset, "rootkey offset"); in gbb_tests()
187 TEST_EQ(sd->gbb_rootkey_size, gbb.rootkey_size, "rootkey size"); in gbb_tests()
200 sd->status &= ~VB2_SD_STATUS_NV_INIT; in fail_tests()
202 TEST_NEQ(sd->status & VB2_SD_STATUS_NV_INIT, 0, "vb2_fail inits NV"); in fail_tests()
219 sd->status |= VB2_SD_STATUS_CHOSE_SLOT; in fail_tests()
220 sd->fw_slot = 0; in fail_tests()
221 sd->last_fw_slot = 1; in fail_tests()
222 sd->last_fw_result = VB2_FW_RESULT_UNKNOWN; in fail_tests()
232 sd->status |= VB2_SD_STATUS_CHOSE_SLOT; in fail_tests()
233 sd->fw_slot = 1; in fail_tests()
234 sd->last_fw_slot = 0; in fail_tests()
235 sd->last_fw_result = VB2_FW_RESULT_FAILURE; in fail_tests()
249 TEST_EQ(sd->recovery_reason, 0, "No recovery reason"); in recovery_tests()
250 TEST_EQ(sd->flags & VB2_SD_FLAG_MANUAL_RECOVERY, in recovery_tests()
259 TEST_EQ(sd->recovery_reason, 3, "Recovery reason from request"); in recovery_tests()
261 TEST_EQ(sd->flags & VB2_SD_FLAG_MANUAL_RECOVERY, in recovery_tests()
269 sd->recovery_reason = 5; in recovery_tests()
271 TEST_EQ(sd->recovery_reason, 5, "Recovery reason already failed"); in recovery_tests()
277 sd->recovery_reason = 6; in recovery_tests()
280 TEST_EQ(sd->recovery_reason, VB2_RECOVERY_RO_MANUAL, in recovery_tests()
282 TEST_NEQ(sd->flags & VB2_SD_FLAG_MANUAL_RECOVERY, in recovery_tests()
293 TEST_EQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd not in dev"); in dev_switch_tests()
303 TEST_NEQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd in dev"); in dev_switch_tests()
346 TEST_EQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd not in dev"); in dev_switch_tests()
352 sd->gbb_flags |= VB2_GBB_FLAG_FORCE_DEV_SWITCH_ON; in dev_switch_tests()
354 TEST_NEQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd in dev"); in dev_switch_tests()
364 TEST_NEQ(sd->flags & VB2_SD_DEV_MODE_ENABLED, 0, "sd in dev"); in dev_switch_tests()
423 TEST_NEQ(sd->status & VB2_SD_STATUS_CHOSE_SLOT, 0, "chose slot"); in select_slot_tests()
425 TEST_EQ(sd->fw_slot, 0, "selected A"); in select_slot_tests()
434 TEST_NEQ(sd->status & VB2_SD_STATUS_CHOSE_SLOT, 0, "chose slot"); in select_slot_tests()
436 TEST_EQ(sd->fw_slot, 1, "selected B"); in select_slot_tests()
444 TEST_NEQ(sd->status & VB2_SD_STATUS_CHOSE_SLOT, 0, "chose slot"); in select_slot_tests()
446 TEST_EQ(sd->fw_slot, 1, "selected B"); in select_slot_tests()
455 TEST_NEQ(sd->status & VB2_SD_STATUS_CHOSE_SLOT, 0, "chose slot"); in select_slot_tests()
457 TEST_EQ(sd->fw_slot, 0, "selected A"); in select_slot_tests()