| /linux/drivers/char/tpm/ |
| H A D | tpm.h | 61 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz); 62 int tpm_get_timeouts(struct tpm_chip *); 63 int tpm_auto_startup(struct tpm_chip *chip); 65 int tpm1_pm_suspend(struct tpm_chip *chip, u32 tpm_suspend_pcr); 66 int tpm1_auto_startup(struct tpm_chip *chip); 67 int tpm1_do_selftest(struct tpm_chip *chip); 68 int tpm1_get_timeouts(struct tpm_chip *chip); 69 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal); 70 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, 72 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf); [all …]
|
| H A D | tpm-chip.c | 40 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() 55 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() 69 static int tpm_cmd_ready(struct tpm_chip *chip) in tpm_cmd_ready() 77 static int tpm_go_idle(struct tpm_chip *chip) in tpm_go_idle() 85 static void tpm_clk_enable(struct tpm_chip *chip) in tpm_clk_enable() 91 static void tpm_clk_disable(struct tpm_chip *chip) in tpm_clk_disable() 105 int tpm_chip_start(struct tpm_chip *chip) in tpm_chip_start() 138 void tpm_chip_stop(struct tpm_chip *chip) in tpm_chip_stop() 157 int tpm_try_get_ops(struct tpm_chip *chip) in tpm_try_get_ops() 197 void tpm_put_ops(struct tpm_chip *chip) in tpm_put_ops() [all …]
|
| H A D | tpm-interface.c | 52 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm_calc_ordinal_duration() 61 static void tpm_chip_cancel(struct tpm_chip *chip) in tpm_chip_cancel() 69 static u8 tpm_chip_status(struct tpm_chip *chip) in tpm_chip_status() 77 static bool tpm_chip_req_canceled(struct tpm_chip *chip, u8 status) in tpm_chip_req_canceled() 85 static bool tpm_transmit_completed(u8 status, struct tpm_chip *chip) in tpm_transmit_completed() 92 static ssize_t tpm_try_transmit(struct tpm_chip *chip, void *buf, size_t bufsiz) in tpm_try_transmit() 204 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz) in tpm_transmit() 264 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_transmit_cmd() 291 int tpm_get_timeouts(struct tpm_chip *chip) in tpm_get_timeouts() 312 int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2() [all …]
|
| H A D | tpm2-space.c | 18 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions() 46 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space) in tpm2_del_space() 58 int tpm2_load_context(struct tpm_chip *chip, u8 *buf, in tpm2_load_context() 108 int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf, in tpm2_save_context() 146 void tpm2_flush_space(struct tpm_chip *chip) in tpm2_flush_space() 161 static int tpm2_load_space(struct tpm_chip *chip) in tpm2_load_space() 224 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd) in tpm2_map_command() 250 static int tpm_find_and_validate_cc(struct tpm_chip *chip, in tpm_find_and_validate_cc() 285 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd, in tpm2_prepare_space() 323 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session() [all …]
|
| H A D | tpm_i2c_atmel.c | 42 static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in i2c_atmel_send() 72 static int i2c_atmel_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_atmel_recv() 109 static void i2c_atmel_cancel(struct tpm_chip *chip) in i2c_atmel_cancel() 114 static u8 i2c_atmel_read_status(struct tpm_chip *chip) in i2c_atmel_read_status() 144 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) in i2c_atmel_req_canceled() 162 struct tpm_chip *chip; in i2c_atmel_probe() 197 struct tpm_chip *chip = dev_get_drvdata(dev); in i2c_atmel_remove()
|
| H A D | tpm-sysfs.c | 38 struct tpm_chip *chip = to_tpm_chip(dev); in pubek_show() 93 struct tpm_chip *chip = to_tpm_chip(dev); in pcrs_show() 124 struct tpm_chip *chip = to_tpm_chip(dev); in enabled_show() 146 struct tpm_chip *chip = to_tpm_chip(dev); in active_show() 168 struct tpm_chip *chip = to_tpm_chip(dev); in owned_show() 190 struct tpm_chip *chip = to_tpm_chip(dev); in temp_deactivated_show() 212 struct tpm_chip *chip = to_tpm_chip(dev); in caps_show() 263 struct tpm_chip *chip = to_tpm_chip(dev); in cancel_store() 277 struct tpm_chip *chip = to_tpm_chip(dev); in durations_show() 294 struct tpm_chip *chip = to_tpm_chip(dev); in timeouts_show() [all …]
|
| H A D | xen-tpmfront.c | 21 struct tpm_chip *chip; 40 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond() 55 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat() 100 static u8 vtpm_status(struct tpm_chip *chip) in vtpm_status() 116 static bool vtpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_req_canceled() 121 static void vtpm_cancel(struct tpm_chip *chip) in vtpm_cancel() 134 static int vtpm_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in vtpm_send() 177 static int vtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_recv() 237 struct tpm_chip *chip; in setup_chip() 366 struct tpm_chip *chip = dev_get_drvdata(&dev->dev); in tpmfront_remove()
|
| H A D | tpm2-cmd.c | 44 int tpm2_get_timeouts(struct tpm_chip *chip) in tpm2_get_timeouts() 106 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_read() 173 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_extend() 240 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max) in tpm2_get_random() 329 void tpm2_flush_context(struct tpm_chip *chip, u32 handle) in tpm2_flush_context() 357 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id, u32 *value, in tpm2_get_tpm_pt() 401 void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type) in tpm2_shutdown() 426 static int tpm2_do_selftest(struct tpm_chip *chip) in tpm2_do_selftest() 464 int tpm2_probe(struct tpm_chip *chip) in tpm2_probe() 489 static int tpm2_init_bank_info(struct tpm_chip *chip, u32 bank_index) in tpm2_init_bank_info() [all …]
|
| H A D | tpm_atmel.c | 92 static int tpm_atml_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_recv() 151 static int tpm_atml_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in tpm_atml_send() 166 static void tpm_atml_cancel(struct tpm_chip *chip) in tpm_atml_cancel() 173 static u8 tpm_atml_status(struct tpm_chip *chip) in tpm_atml_status() 180 static bool tpm_atml_req_canceled(struct tpm_chip *chip, u8 status) in tpm_atml_req_canceled() 199 struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); in atml_plat_remove() 223 struct tpm_chip *chip; in init_atmel()
|
| H A D | tpm_i2c_nuvoton.c | 89 static u8 i2c_nuvoton_read_status(struct tpm_chip *chip) in i2c_nuvoton_read_status() 122 static void i2c_nuvoton_ready(struct tpm_chip *chip) in i2c_nuvoton_ready() 137 struct tpm_chip *chip) in i2c_nuvoton_get_burstcount() 165 static bool i2c_nuvoton_check_status(struct tpm_chip *chip, u8 mask, u8 value) in i2c_nuvoton_check_status() 171 static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value, in i2c_nuvoton_wait_for_stat() 222 static int i2c_nuvoton_wait_for_data_avail(struct tpm_chip *chip, u32 timeout, in i2c_nuvoton_wait_for_data_avail() 233 struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv_data() 267 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv() 355 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in i2c_nuvoton_send() 463 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chip, u8 status) in i2c_nuvoton_req_canceled() [all …]
|
| H A D | tpm_nsc.c | 70 static int wait_for_stat(struct tpm_chip *chip, u8 mask, u8 val, u8 * data) in wait_for_stat() 93 static int nsc_wait_for_ready(struct tpm_chip *chip) in nsc_wait_for_ready() 123 static int tpm_nsc_recv(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_nsc_recv() 181 static int tpm_nsc_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in tpm_nsc_send() 228 static void tpm_nsc_cancel(struct tpm_chip *chip) in tpm_nsc_cancel() 235 static u8 tpm_nsc_status(struct tpm_chip *chip) in tpm_nsc_status() 242 static bool tpm_nsc_req_canceled(struct tpm_chip *chip, u8 status) in tpm_nsc_req_canceled() 261 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_nsc_remove() 294 struct tpm_chip *chip; in init_nsc()
|
| H A D | tpm_infineon.c | 150 static int empty_fifo(struct tpm_chip *chip, int clear_wrfifo) in empty_fifo() 187 static int wait(struct tpm_chip *chip, int wait_for_bit) in wait() 208 static void wait_and_send(struct tpm_chip *chip, u8 sendbyte) in wait_and_send() 222 static void tpm_wtx(struct tpm_chip *chip) in tpm_wtx() 234 static void tpm_wtx_abort(struct tpm_chip *chip) in tpm_wtx_abort() 245 static int tpm_inf_recv(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_inf_recv() 315 static int tpm_inf_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in tpm_inf_send() 363 static void tpm_inf_cancel(struct tpm_chip *chip) in tpm_inf_cancel() 372 static u8 tpm_inf_status(struct tpm_chip *chip) in tpm_inf_status() 404 struct tpm_chip *chip; in tpm_inf_pnp_probe() [all …]
|
| H A D | tpm1-cmd.c | 289 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm1_calc_ordinal_duration() 319 static int tpm1_startup(struct tpm_chip *chip) in tpm1_startup() 335 int tpm1_get_timeouts(struct tpm_chip *chip) in tpm1_get_timeouts() 455 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, in tpm1_pcr_extend() 470 ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap, in tpm1_getcap() 515 int tpm1_get_random(struct tpm_chip *chip, u8 *dest, size_t max) in tpm1_get_random() 567 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf) in tpm1_pcr_read() 599 static int tpm1_continue_selftest(struct tpm_chip *chip) in tpm1_continue_selftest() 618 int tpm1_do_selftest(struct tpm_chip *chip) in tpm1_do_selftest() 680 int tpm1_auto_startup(struct tpm_chip *chip) in tpm1_auto_startup() [all …]
|
| H A D | tpm_ibmvtpm.c | 105 static int tpm_ibmvtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_ibmvtpm_recv() 161 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_resume() 201 static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in tpm_ibmvtpm_send() 262 static void tpm_ibmvtpm_cancel(struct tpm_chip *chip) in tpm_ibmvtpm_cancel() 267 static u8 tpm_ibmvtpm_status(struct tpm_chip *chip) in tpm_ibmvtpm_status() 347 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_remove() 385 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_get_desired_dma() 409 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_suspend() 449 static bool tpm_ibmvtpm_req_canceled(struct tpm_chip *chip, u8 status) in tpm_ibmvtpm_req_canceled() 607 struct tpm_chip *chip; in tpm_ibmvtpm_probe()
|
| H A D | tpm_ppi.c | 67 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_version() 77 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_request() 133 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_store_ppi_request() 199 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_transition_action() 240 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_response() 327 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_tcg_operations() 358 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_vs_operations() 407 void tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
|
| H A D | tpm_vtpm_proxy.c | 29 struct tpm_chip *chip; 266 static int vtpm_proxy_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_proxy_tpm_op_recv() 297 static int vtpm_proxy_is_driver_command(struct tpm_chip *chip, in vtpm_proxy_is_driver_command() 330 static int vtpm_proxy_tpm_op_send(struct tpm_chip *chip, u8 *buf, size_t bufsiz, in vtpm_proxy_tpm_op_send() 367 static void vtpm_proxy_tpm_op_cancel(struct tpm_chip *chip) in vtpm_proxy_tpm_op_cancel() 372 static u8 vtpm_proxy_tpm_op_status(struct tpm_chip *chip) in vtpm_proxy_tpm_op_status() 382 static bool vtpm_proxy_tpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_proxy_tpm_req_canceled() 396 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality() 487 struct tpm_chip *chip; in vtpm_proxy_create_proxy_dev()
|
| H A D | tpm2-sessions.c | 166 static int tpm2_read_public(struct tpm_chip *chip, u32 handle, void *name) in tpm2_read_public() 241 int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_name() 309 void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_auth() 360 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_hmac_session() 424 static int tpm2_create_primary(struct tpm_chip *chip, u32 hierarchy, 485 static int tpm_buf_append_salt(struct tpm_buf *buf, struct tpm_chip *chip, in tpm_buf_append_salt() 596 int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf) in tpm_buf_fill_hmac_session() 772 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_check_hmac_response() 908 void tpm2_end_auth_session(struct tpm_chip *chip) in tpm2_end_auth_session() 949 static int tpm2_load_null(struct tpm_chip *chip, u32 *null_key) in tpm2_load_null() [all …]
|
| H A D | tpm-dev.h | 9 struct tpm_chip *chip; 24 void tpm_common_open(struct file *file, struct tpm_chip *chip,
|
| /linux/include/linux/ |
| H A D | tpm.h | 31 struct tpm_chip; 45 bool (*req_canceled)(struct tpm_chip *chip, u8 status); 46 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len); 47 int (*send)(struct tpm_chip *chip, u8 *buf, size_t bufsiz, 49 void (*cancel) (struct tpm_chip *chip); 50 u8 (*status) (struct tpm_chip *chip); 51 void (*update_timeouts)(struct tpm_chip *chip, 53 void (*update_durations)(struct tpm_chip *chip, 55 int (*go_idle)(struct tpm_chip *chip); 56 int (*cmd_ready)(struct tpm_chip *chip); [all …]
|
| /linux/drivers/char/tpm/eventlog/ |
| H A D | common.h | 11 int tpm_read_log_acpi(struct tpm_chip *chip); 13 static inline int tpm_read_log_acpi(struct tpm_chip *chip) in tpm_read_log_acpi() 19 int tpm_read_log_of(struct tpm_chip *chip); 21 static inline int tpm_read_log_of(struct tpm_chip *chip) in tpm_read_log_of() 27 int tpm_read_log_efi(struct tpm_chip *chip); 29 static inline int tpm_read_log_efi(struct tpm_chip *chip) in tpm_read_log_efi()
|
| H A D | common.c | 32 struct tpm_chip *chip; in tpm_bios_measurements_open() 61 struct tpm_chip *chip = seq->private; in tpm_bios_measurements_release() 76 static int tpm_read_log(struct tpm_chip *chip) in tpm_read_log() 105 void tpm_bios_log_setup(struct tpm_chip *chip) in tpm_bios_log_setup() 166 void tpm_bios_log_teardown(struct tpm_chip *chip) in tpm_bios_log_teardown()
|
| H A D | tpm2.c | 44 struct tpm_chip *chip = m->private; in tpm2_bios_measurements_start() 90 struct tpm_chip *chip = m->private; in tpm2_bios_measurements_next() 130 struct tpm_chip *chip = m->private; in tpm2_binary_bios_measurements_show()
|
| /linux/drivers/char/tpm/st33zp24/ |
| H A D | st33zp24.c | 79 static void st33zp24_cancel(struct tpm_chip *chip) in st33zp24_cancel() 91 static u8 st33zp24_status(struct tpm_chip *chip) in st33zp24_status() 105 static bool check_locality(struct tpm_chip *chip) in check_locality() 120 static int request_locality(struct tpm_chip *chip) in request_locality() 148 static void release_locality(struct tpm_chip *chip) in release_locality() 161 static int get_burstcount(struct tpm_chip *chip) in get_burstcount() 189 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond() 207 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat() 265 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data() 291 struct tpm_chip *chip = dev_id; in tpm_ioserirq_handler() [all …]
|
| H A D | st33zp24.h | 17 struct tpm_chip *chip; 40 void st33zp24_remove(struct tpm_chip *chip);
|
| /linux/include/keys/ |
| H A D | trusted_tpm.h | 9 int tpm2_seal_trusted(struct tpm_chip *chip, 12 int tpm2_unseal_trusted(struct tpm_chip *chip,
|