Lines Matching refs:session_tbl
39 for (i = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_flush_sessions()
40 if (space->session_tbl[i]) in tpm2_flush_sessions()
41 tpm2_flush_context_cmd(chip, space->session_tbl[i], in tpm2_flush_sessions()
201 for (i = 0, offset = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_load_space()
204 if (!space->session_tbl[i]) in tpm2_load_space()
211 space->session_tbl[i] = 0; in tpm2_load_space()
216 if (handle != space->session_tbl[i]) { in tpm2_load_space()
277 memcpy(&chip->work_space.session_tbl, &space->session_tbl, in tpm2_prepare_space()
278 sizeof(space->session_tbl)); in tpm2_prepare_space()
302 for (i = 0; i < ARRAY_SIZE(space->session_tbl); i++) in tpm2_add_session()
303 if (space->session_tbl[i] == 0) in tpm2_add_session()
306 if (i == ARRAY_SIZE(space->session_tbl)) in tpm2_add_session()
309 space->session_tbl[i] = handle; in tpm2_add_session()
472 for (i = 0, offset = 0; i < ARRAY_SIZE(space->session_tbl); i++) { in tpm2_save_space()
473 if (!space->session_tbl[i]) in tpm2_save_space()
476 rc = tpm2_save_context(chip, space->session_tbl[i], in tpm2_save_space()
482 space->session_tbl[i] = 0; in tpm2_save_space()
523 memcpy(&space->session_tbl, &chip->work_space.session_tbl, in tpm2_commit_space()
524 sizeof(space->session_tbl)); in tpm2_commit_space()