Lines Matching refs:session_tbl
35 for (i = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_flush_sessions()
36 if (space->session_tbl[i]) in tpm2_flush_sessions()
37 tpm2_flush_context(chip, space->session_tbl[i]); in tpm2_flush_sessions()
199 for (i = 0, offset = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_load_space()
202 if (!space->session_tbl[i]) in tpm2_load_space()
209 space->session_tbl[i] = 0; in tpm2_load_space()
214 if (handle != space->session_tbl[i]) { in tpm2_load_space()
315 memcpy(&chip->work_space.session_tbl, &space->session_tbl, in tpm2_prepare_space()
316 sizeof(space->session_tbl)); in tpm2_prepare_space()
343 for (i = 0; i < ARRAY_SIZE(space->session_tbl); i++) in tpm2_add_session()
344 if (space->session_tbl[i] == 0) in tpm2_add_session()
347 if (i == ARRAY_SIZE(space->session_tbl)) in tpm2_add_session()
350 space->session_tbl[i] = handle; in tpm2_add_session()
515 for (i = 0, offset = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_save_space()
516 if (!space->session_tbl[i]) in tpm2_save_space()
519 rc = tpm2_save_context(chip, space->session_tbl[i], in tpm2_save_space()
524 space->session_tbl[i] = 0; in tpm2_save_space()
565 memcpy(&space->session_tbl, &chip->work_space.session_tbl, in tpm2_commit_space()
566 sizeof(space->session_tbl)); in tpm2_commit_space()