| /linux/drivers/char/tpm/ |
| A D | tpm.h | 241 int tpm_get_timeouts(struct tpm_chip *); 242 int tpm_auto_startup(struct tpm_chip *chip); 245 int tpm1_auto_startup(struct tpm_chip *chip); 246 int tpm1_do_selftest(struct tpm_chip *chip); 247 int tpm1_get_timeouts(struct tpm_chip *chip); 268 int tpm_chip_start(struct tpm_chip *chip); 269 void tpm_chip_stop(struct tpm_chip *chip); 270 struct tpm_chip *tpm_find_get_ops(struct tpm_chip *chip); 303 int tpm2_probe(struct tpm_chip *chip); 313 int tpm_devs_add(struct tpm_chip *chip); [all …]
|
| A D | tpm-chip.c | 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() 192 void tpm_put_ops(struct tpm_chip *chip) in tpm_put_ops() 204 struct tpm_chip *tpm_default_chip(void) in tpm_default_chip() 206 struct tpm_chip *chip, *res = NULL; in tpm_default_chip() 243 struct tpm_chip *tpm_find_get_ops(struct tpm_chip *chip) in tpm_find_get_ops() 272 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_dev_release() 298 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_class_shutdown() 326 struct tpm_chip *chip; in tpm_chip_alloc() 400 struct tpm_chip *chip; in tpmm_chip_alloc() [all …]
|
| A D | tpm-interface.c | 52 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm_calc_ordinal_duration() 153 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz) in tpm_transmit() 213 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_transmit_cmd() 240 int tpm_get_timeouts(struct tpm_chip *chip) in tpm_get_timeouts() 261 int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2() 285 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_read() 315 int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend() 346 int tpm_auto_startup(struct tpm_chip *chip) in tpm_auto_startup() 367 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_pm_suspend() 412 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_pm_resume() [all …]
|
| A D | tpm_tis_i2c_cr50.c | 73 struct tpm_chip *chip = tpm_info; in tpm_cr50_i2c_int_handler() 92 static int tpm_cr50_i2c_wait_tpm_ready(struct tpm_chip *chip) in tpm_cr50_i2c_wait_tpm_ready() 115 static void tpm_cr50_i2c_enable_tpm_irq(struct tpm_chip *chip) in tpm_cr50_i2c_enable_tpm_irq() 129 static void tpm_cr50_i2c_disable_tpm_irq(struct tpm_chip *chip) in tpm_cr50_i2c_disable_tpm_irq() 295 static int tpm_cr50_check_locality(struct tpm_chip *chip) in tpm_cr50_check_locality() 316 static void tpm_cr50_release_locality(struct tpm_chip *chip, bool force) in tpm_cr50_release_locality() 339 static int tpm_cr50_request_locality(struct tpm_chip *chip) in tpm_cr50_request_locality() 372 static u8 tpm_cr50_i2c_tis_status(struct tpm_chip *chip) in tpm_cr50_i2c_tis_status() 388 static void tpm_cr50_i2c_tis_set_ready(struct tpm_chip *chip) in tpm_cr50_i2c_tis_set_ready() 683 struct tpm_chip *chip; in tpm_cr50_i2c_probe() [all …]
|
| A D | tpm_tis_core.c | 131 static int wait_startup(struct tpm_chip *chip, int l) in wait_startup() 151 static bool check_locality(struct tpm_chip *chip, int l) in check_locality() 246 static u8 tpm_tis_status(struct tpm_chip *chip) in tpm_tis_status() 281 static void tpm_tis_ready(struct tpm_chip *chip) in tpm_tis_ready() 289 static int get_burstcount(struct tpm_chip *chip) in get_burstcount() 728 static int probe_itpm(struct tpm_chip *chip) in probe_itpm() 848 struct tpm_chip *chip = dev_id; in tis_int_handler() 904 struct tpm_chip *chip = priv->chip; in tpm_tis_free_irq_func() 1009 void tpm_tis_remove(struct tpm_chip *chip) in tpm_tis_remove() 1108 struct tpm_chip *chip; in tpm_tis_core_init() [all …]
|
| A D | tpm2-space.c | 59 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space) in tpm2_del_space() 71 int tpm2_load_context(struct tpm_chip *chip, u8 *buf, in tpm2_load_context() 125 int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf, in tpm2_save_context() 167 void tpm2_flush_space(struct tpm_chip *chip) in tpm2_flush_space() 182 static int tpm2_load_space(struct tpm_chip *chip) in tpm2_load_space() 271 static int tpm_find_and_validate_cc(struct tpm_chip *chip, in tpm_find_and_validate_cc() 344 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session() 497 static int tpm2_save_space(struct tpm_chip *chip) in tpm2_save_space() 589 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release() 599 void tpm_devs_remove(struct tpm_chip *chip) in tpm_devs_remove() [all …]
|
| A D | tpm_i2c_atmel.c | 40 static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_atmel_send() 67 static int i2c_atmel_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_atmel_recv() 102 static void i2c_atmel_cancel(struct tpm_chip *chip) in i2c_atmel_cancel() 107 static u8 i2c_atmel_read_status(struct tpm_chip *chip) in i2c_atmel_read_status() 133 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) in i2c_atmel_req_canceled() 151 struct tpm_chip *chip; in i2c_atmel_probe() 184 struct tpm_chip *chip = dev_get_drvdata(dev); in i2c_atmel_remove()
|
| A D | tpm_atmel.c | 33 static int tpm_atml_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_recv() 92 static int tpm_atml_send(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_send() 106 static void tpm_atml_cancel(struct tpm_chip *chip) in tpm_atml_cancel() 113 static u8 tpm_atml_status(struct tpm_chip *chip) in tpm_atml_status() 120 static bool tpm_atml_req_canceled(struct tpm_chip *chip, u8 status) in tpm_atml_req_canceled() 139 struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); in atml_plat_remove() 164 struct tpm_chip *chip; in init_atmel()
|
| A D | tpm-sysfs.c | 39 struct tpm_chip *chip = to_tpm_chip(dev); in pubek_show() 89 struct tpm_chip *chip = to_tpm_chip(dev); in pcrs_show() 120 struct tpm_chip *chip = to_tpm_chip(dev); in enabled_show() 142 struct tpm_chip *chip = to_tpm_chip(dev); in active_show() 164 struct tpm_chip *chip = to_tpm_chip(dev); in owned_show() 186 struct tpm_chip *chip = to_tpm_chip(dev); in temp_deactivated_show() 208 struct tpm_chip *chip = to_tpm_chip(dev); in caps_show() 259 struct tpm_chip *chip = to_tpm_chip(dev); in cancel_store() 273 struct tpm_chip *chip = to_tpm_chip(dev); in durations_show() 290 struct tpm_chip *chip = to_tpm_chip(dev); in timeouts_show() [all …]
|
| A D | tpm_i2c_infineon.c | 66 struct tpm_chip *chip; 312 static bool check_locality(struct tpm_chip *chip, int loc) in check_locality() 331 static void release_locality(struct tpm_chip *chip, int loc, int force) in release_locality() 344 static int request_locality(struct tpm_chip *chip, int loc) in request_locality() 365 static u8 tpm_tis_i2c_status(struct tpm_chip *chip) in tpm_tis_i2c_status() 382 static void tpm_tis_i2c_ready(struct tpm_chip *chip) in tpm_tis_i2c_ready() 389 static ssize_t get_burstcount(struct tpm_chip *chip) in get_burstcount() 436 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data() 596 static bool tpm_tis_i2c_req_canceled(struct tpm_chip *chip, u8 status) in tpm_tis_i2c_req_canceled() 616 struct tpm_chip *chip; in tpm_tis_i2c_init() [all …]
|
| A D | tpm2-cmd.c | 29 int tpm2_get_timeouts(struct tpm_chip *chip) in tpm2_get_timeouts() 165 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_read() 232 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_extend() 376 void tpm2_flush_context(struct tpm_chip *chip, u32 handle) in tpm2_flush_context() 483 static int tpm2_do_selftest(struct tpm_chip *chip) in tpm2_do_selftest() 520 int tpm2_probe(struct tpm_chip *chip) in tpm2_probe() 576 ssize_t tpm2_get_pcr_allocation(struct tpm_chip *chip) in tpm2_get_pcr_allocation() 655 int tpm2_get_cc_attrs_tbl(struct tpm_chip *chip) in tpm2_get_cc_attrs_tbl() 735 static int tpm2_startup(struct tpm_chip *chip) in tpm2_startup() 760 int tpm2_auto_startup(struct tpm_chip *chip) in tpm2_auto_startup() [all …]
|
| 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 count) in vtpm_send() 176 static int vtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_recv() 236 struct tpm_chip *chip; in setup_chip() 365 struct tpm_chip *chip = dev_get_drvdata(&dev->dev); in tpmfront_remove()
|
| 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() 231 struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv_data() 265 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv() 353 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_nuvoton_send() 460 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chip, u8 status) in i2c_nuvoton_req_canceled() 483 struct tpm_chip *chip = dev_id; in i2c_nuvoton_int_handler() 529 struct tpm_chip *chip; in i2c_nuvoton_probe() [all …]
|
| 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 count) in tpm_nsc_send() 227 static void tpm_nsc_cancel(struct tpm_chip *chip) in tpm_nsc_cancel() 234 static u8 tpm_nsc_status(struct tpm_chip *chip) in tpm_nsc_status() 241 static bool tpm_nsc_req_canceled(struct tpm_chip *chip, u8 status) in tpm_nsc_req_canceled() 260 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_nsc_remove() 293 struct tpm_chip *chip; in init_nsc()
|
| 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 count) in tpm_inf_send() 362 static void tpm_inf_cancel(struct tpm_chip *chip) in tpm_inf_cancel() 371 static u8 tpm_inf_status(struct tpm_chip *chip) in tpm_inf_status() 403 struct tpm_chip *chip; in tpm_inf_pnp_probe() [all …]
|
| A D | tpm1-cmd.c | 324 static int tpm1_startup(struct tpm_chip *chip) in tpm1_startup() 342 int tpm1_get_timeouts(struct tpm_chip *chip) in tpm1_get_timeouts() 463 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, in tpm1_pcr_extend() 482 ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap, in tpm1_getcap() 530 int tpm1_get_random(struct tpm_chip *chip, u8 *dest, size_t max) in tpm1_get_random() 584 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf) in tpm1_pcr_read() 620 static int tpm1_continue_selftest(struct tpm_chip *chip) in tpm1_continue_selftest() 642 int tpm1_do_selftest(struct tpm_chip *chip) in tpm1_do_selftest() 704 int tpm1_auto_startup(struct tpm_chip *chip) in tpm1_auto_startup() 742 int tpm1_pm_suspend(struct tpm_chip *chip, u32 tpm_suspend_pcr) in tpm1_pm_suspend() [all …]
|
| A D | tpm_ppi.c | 53 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_version() 63 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_request() 121 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_store_ppi_request() 187 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_transition_action() 228 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_response() 328 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_tcg_operations() 338 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_vs_operations() 366 void tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
|
| 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() 200 static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_ibmvtpm_send() 260 static void tpm_ibmvtpm_cancel(struct tpm_chip *chip) in tpm_ibmvtpm_cancel() 265 static u8 tpm_ibmvtpm_status(struct tpm_chip *chip) in tpm_ibmvtpm_status() 345 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_remove() 383 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_get_desired_dma() 407 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_suspend() 447 static bool tpm_ibmvtpm_req_canceled(struct tpm_chip *chip, u8 status) in tpm_ibmvtpm_req_canceled() 604 struct tpm_chip *chip; in tpm_ibmvtpm_probe()
|
| 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() 329 static int vtpm_proxy_tpm_op_send(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_proxy_tpm_op_send() 365 static void vtpm_proxy_tpm_op_cancel(struct tpm_chip *chip) in vtpm_proxy_tpm_op_cancel() 370 static u8 vtpm_proxy_tpm_op_status(struct tpm_chip *chip) in vtpm_proxy_tpm_op_status() 380 static bool vtpm_proxy_tpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_proxy_tpm_req_canceled() 394 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality() 489 struct tpm_chip *chip; in vtpm_proxy_create_proxy_dev()
|
| A D | tpm_crb.c | 198 static int crb_go_idle(struct tpm_chip *chip) in crb_go_idle() 247 static int crb_cmd_ready(struct tpm_chip *chip) in crb_cmd_ready() 274 static int crb_request_locality(struct tpm_chip *chip, int loc) in crb_request_locality() 308 static u8 crb_status(struct tpm_chip *chip) in crb_status() 320 static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count) in crb_recv() 352 static int crb_do_acpi_start(struct tpm_chip *chip) in crb_do_acpi_start() 397 static int crb_send(struct tpm_chip *chip, u8 *buf, size_t len) in crb_send() 446 static void crb_cancel(struct tpm_chip *chip) in crb_cancel() 458 static bool crb_req_canceled(struct tpm_chip *chip, u8 status) in crb_req_canceled() 731 struct tpm_chip *chip; in crb_acpi_add() [all …]
|
| A D | tpm_ftpm_tee.c | 43 static int ftpm_tee_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count) in ftpm_tee_tpm_op_recv() 72 static int ftpm_tee_tpm_op_send(struct tpm_chip *chip, u8 *buf, size_t len) in ftpm_tee_tpm_op_send() 167 static void ftpm_tee_tpm_op_cancel(struct tpm_chip *chip) in ftpm_tee_tpm_op_cancel() 172 static u8 ftpm_tee_tpm_op_status(struct tpm_chip *chip) in ftpm_tee_tpm_op_status() 177 static bool ftpm_tee_tpm_req_canceled(struct tpm_chip *chip, u8 status) in ftpm_tee_tpm_req_canceled() 219 struct tpm_chip *chip; in ftpm_tee_probe()
|
| /linux/include/linux/ |
| A D | tpm.h | 31 struct tpm_chip; 91 void (*cancel) (struct tpm_chip *chip); 92 u8 (*status) (struct tpm_chip *chip); 93 void (*update_timeouts)(struct tpm_chip *chip, 95 void (*update_durations)(struct tpm_chip *chip, 97 int (*go_idle)(struct tpm_chip *chip); 98 int (*cmd_ready)(struct tpm_chip *chip); 132 struct tpm_chip *chip; 150 struct tpm_chip { struct 441 extern int tpm_is_tpm2(struct tpm_chip *chip); [all …]
|
| /linux/drivers/char/tpm/eventlog/ |
| 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()
|
| 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() 171 void tpm_bios_log_teardown(struct tpm_chip *chip) in tpm_bios_log_teardown()
|
| /linux/drivers/char/tpm/st33zp24/ |
| 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() 103 static bool check_locality(struct tpm_chip *chip) in check_locality() 118 static int request_locality(struct tpm_chip *chip) in request_locality() 146 static void release_locality(struct tpm_chip *chip) in release_locality() 159 static int get_burstcount(struct tpm_chip *chip) in get_burstcount() 289 struct tpm_chip *chip = dev_id; in tpm_ioserirq_handler() 451 struct tpm_chip *chip; in st33zp24_probe() 541 void st33zp24_remove(struct tpm_chip *chip) in st33zp24_remove() 550 struct tpm_chip *chip = dev_get_drvdata(dev); in st33zp24_pm_suspend() [all …]
|