H A D | tpm2-space.c | 31 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions() argument 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() 41 int tpm2_init_space(struct tpm_space *space, unsigned int buf_size) in tpm2_init_space() argument 43 space->context_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space() 44 if (!space->context_buf) in tpm2_init_space() 47 space->session_buf = kzalloc(buf_size, GFP_KERNEL); in tpm2_init_space() 48 if (space->session_buf == NULL) { in tpm2_init_space() 49 kfree(space in tpm2_init_space() 59 tpm2_del_space(struct tpm_chip * chip,struct tpm_space * space) tpm2_del_space() argument 169 struct tpm_space *space = &chip->work_space; tpm2_flush_space() local 184 struct tpm_space *space = &chip->work_space; tpm2_load_space() local 230 tpm2_map_to_phandle(struct tpm_space * space,void * handle) tpm2_map_to_phandle() argument 247 struct tpm_space *space = &chip->work_space; tpm2_map_command() local 272 tpm_find_and_validate_cc(struct tpm_chip * chip,struct tpm_space * space,const void * cmd,size_t len) tpm_find_and_validate_cc() argument 306 tpm2_prepare_space(struct tpm_chip * chip,struct tpm_space * space,u8 * cmd,size_t cmdsiz) tpm2_prepare_space() argument 346 struct tpm_space *space = &chip->work_space; tpm2_add_session() local 360 tpm2_map_to_vhandle(struct tpm_space * space,u32 phandle,bool alloc) tpm2_map_to_vhandle() argument 383 struct tpm_space *space = &chip->work_space; tpm2_map_response_header() local 443 struct tpm_space *space = &chip->work_space; tpm2_map_response_body() local 499 struct tpm_space *space = &chip->work_space; tpm2_save_space() local 540 tpm2_commit_space(struct tpm_chip * chip,struct tpm_space * space,void * buf,size_t * bufsiz) tpm2_commit_space() argument [all...] |