/linux-6.1.9/drivers/char/tpm/ ! |
D | tpm.h | 167 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz); 168 int tpm_get_timeouts(struct tpm_chip *); 169 int tpm_auto_startup(struct tpm_chip *chip); 171 int tpm1_pm_suspend(struct tpm_chip *chip, u32 tpm_suspend_pcr); 172 int tpm1_auto_startup(struct tpm_chip *chip); 173 int tpm1_do_selftest(struct tpm_chip *chip); 174 int tpm1_get_timeouts(struct tpm_chip *chip); 175 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal); 176 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash, 178 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf); [all …]
|
D | tpm-chip.c | 35 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() 50 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() 64 static int tpm_cmd_ready(struct tpm_chip *chip) in tpm_cmd_ready() 72 static int tpm_go_idle(struct tpm_chip *chip) in tpm_go_idle() 80 static void tpm_clk_enable(struct tpm_chip *chip) in tpm_clk_enable() 86 static void tpm_clk_disable(struct tpm_chip *chip) in tpm_clk_disable() 100 int tpm_chip_start(struct tpm_chip *chip) in tpm_chip_start() 133 void tpm_chip_stop(struct tpm_chip *chip) in tpm_chip_stop() 152 int tpm_try_get_ops(struct tpm_chip *chip) in tpm_try_get_ops() 184 void tpm_put_ops(struct tpm_chip *chip) in tpm_put_ops() [all …]
|
D | tpm-interface.c | 52 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm_calc_ordinal_duration() 61 static ssize_t tpm_try_transmit(struct tpm_chip *chip, void *buf, size_t bufsiz) in tpm_try_transmit() 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() 239 int tpm_get_timeouts(struct tpm_chip *chip) in tpm_get_timeouts() 260 int tpm_is_tpm2(struct tpm_chip *chip) in tpm_is_tpm2() 284 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_read() 314 int tpm_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm_pcr_extend() 353 int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen) in tpm_send() 370 int tpm_auto_startup(struct tpm_chip *chip) in tpm_auto_startup() [all …]
|
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() 116 static void tpm_cr50_i2c_enable_tpm_irq(struct tpm_chip *chip) in tpm_cr50_i2c_enable_tpm_irq() 130 static void tpm_cr50_i2c_disable_tpm_irq(struct tpm_chip *chip) in tpm_cr50_i2c_disable_tpm_irq() 187 static int tpm_cr50_i2c_read(struct tpm_chip *chip, u8 addr, u8 *buffer, size_t len) in tpm_cr50_i2c_read() 246 static int tpm_cr50_i2c_write(struct tpm_chip *chip, u8 addr, u8 *buffer, in tpm_cr50_i2c_write() 296 static int tpm_cr50_check_locality(struct tpm_chip *chip) in tpm_cr50_check_locality() 317 static void tpm_cr50_release_locality(struct tpm_chip *chip, bool force) in tpm_cr50_release_locality() 340 static int tpm_cr50_request_locality(struct tpm_chip *chip) in tpm_cr50_request_locality() 373 static u8 tpm_cr50_i2c_tis_status(struct tpm_chip *chip) in tpm_cr50_i2c_tis_status() [all …]
|
D | tpm_tis_core.c | 30 static void tpm_tis_clkrun_enable(struct tpm_chip *chip, bool value); 32 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond() 47 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat() 99 static int wait_startup(struct tpm_chip *chip, int l) in wait_startup() 119 static bool check_locality(struct tpm_chip *chip, int l) in check_locality() 139 static int release_locality(struct tpm_chip *chip, int l) in release_locality() 148 static int request_locality(struct tpm_chip *chip, int l) in request_locality() 189 static u8 tpm_tis_status(struct tpm_chip *chip) in tpm_tis_status() 224 static void tpm_tis_ready(struct tpm_chip *chip) in tpm_tis_ready() 232 static int get_burstcount(struct tpm_chip *chip) in get_burstcount() [all …]
|
D | tpm2-space.c | 31 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions() 59 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space) in tpm2_del_space() 71 static int tpm2_load_context(struct tpm_chip *chip, u8 *buf, in tpm2_load_context() 122 static int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf, in tpm2_save_context() 164 void tpm2_flush_space(struct tpm_chip *chip) in tpm2_flush_space() 176 static int tpm2_load_space(struct tpm_chip *chip) in tpm2_load_space() 239 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd) in tpm2_map_command() 265 static int tpm_find_and_validate_cc(struct tpm_chip *chip, in tpm_find_and_validate_cc() 300 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd, in tpm2_prepare_space() 338 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session() [all …]
|
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() 152 struct tpm_chip *chip; in i2c_atmel_probe() 185 struct tpm_chip *chip = dev_get_drvdata(dev); in i2c_atmel_remove()
|
D | tpm2-cmd.c | 25 int tpm2_get_timeouts(struct tpm_chip *chip) in tpm2_get_timeouts() 128 unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm2_calc_ordinal_duration() 161 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_read() 235 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, in tpm2_pcr_extend() 288 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max) in tpm2_get_random() 348 void tpm2_flush_context(struct tpm_chip *chip, u32 handle) in tpm2_flush_context() 386 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id, u32 *value, in tpm2_get_tpm_pt() 429 void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type) in tpm2_shutdown() 455 static int tpm2_do_selftest(struct tpm_chip *chip) in tpm2_do_selftest() 492 int tpm2_probe(struct tpm_chip *chip) in tpm2_probe() [all …]
|
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()
|
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() 413 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat() 436 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data() 468 static int tpm_tis_i2c_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_tis_i2c_recv() [all …]
|
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 …]
|
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()
|
D | tpm_i2c_nuvoton.c | 88 static u8 i2c_nuvoton_read_status(struct tpm_chip *chip) in i2c_nuvoton_read_status() 121 static void i2c_nuvoton_ready(struct tpm_chip *chip) in i2c_nuvoton_ready() 136 struct tpm_chip *chip) in i2c_nuvoton_get_burstcount() 164 static bool i2c_nuvoton_check_status(struct tpm_chip *chip, u8 mask, u8 value) in i2c_nuvoton_check_status() 170 static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value, in i2c_nuvoton_wait_for_stat() 219 static int i2c_nuvoton_wait_for_data_avail(struct tpm_chip *chip, u32 timeout, in i2c_nuvoton_wait_for_data_avail() 230 struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv_data() 264 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv() 352 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_nuvoton_send() 459 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chip, u8 status) in i2c_nuvoton_req_canceled() [all …]
|
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()
|
D | tpm_infineon.c | 144 static int empty_fifo(struct tpm_chip *chip, int clear_wrfifo) in empty_fifo() 181 static int wait(struct tpm_chip *chip, int wait_for_bit) in wait() 202 static void wait_and_send(struct tpm_chip *chip, u8 sendbyte) in wait_and_send() 216 static void tpm_wtx(struct tpm_chip *chip) in tpm_wtx() 228 static void tpm_wtx_abort(struct tpm_chip *chip) in tpm_wtx_abort() 239 static int tpm_inf_recv(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_inf_recv() 309 static int tpm_inf_send(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_inf_send() 356 static void tpm_inf_cancel(struct tpm_chip *chip) in tpm_inf_cancel() 365 static u8 tpm_inf_status(struct tpm_chip *chip) in tpm_inf_status() 397 struct tpm_chip *chip; in tpm_inf_pnp_probe() [all …]
|
D | tpm1-cmd.c | 291 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm1_calc_ordinal_duration() 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() [all …]
|
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()
|
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()
|
D | tpm_crb.c | 166 static int crb_go_idle(struct tpm_chip *chip) in crb_go_idle() 208 static int crb_cmd_ready(struct tpm_chip *chip) in crb_cmd_ready() 235 static int crb_request_locality(struct tpm_chip *chip, int loc) in crb_request_locality() 262 static int crb_relinquish_locality(struct tpm_chip *chip, int loc) in crb_relinquish_locality() 269 static u8 crb_status(struct tpm_chip *chip) in crb_status() 281 static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count) in crb_recv() 313 static int crb_do_acpi_start(struct tpm_chip *chip) in crb_do_acpi_start() 358 static int crb_send(struct tpm_chip *chip, u8 *buf, size_t len) in crb_send() 400 static void crb_cancel(struct tpm_chip *chip) in crb_cancel() 412 static bool crb_req_canceled(struct tpm_chip *chip, u8 status) in crb_req_canceled() [all …]
|
D | tpm_vtpm_proxy.c | 29 struct tpm_chip *chip; 267 static int vtpm_proxy_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_proxy_tpm_op_recv() 298 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 count) in vtpm_proxy_tpm_op_send() 366 static void vtpm_proxy_tpm_op_cancel(struct tpm_chip *chip) in vtpm_proxy_tpm_op_cancel() 371 static u8 vtpm_proxy_tpm_op_status(struct tpm_chip *chip) in vtpm_proxy_tpm_op_status() 381 static bool vtpm_proxy_tpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_proxy_tpm_req_canceled() 395 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality() 490 struct tpm_chip *chip; in vtpm_proxy_create_proxy_dev()
|
D | tpm_ftpm_tee.c | 44 static int ftpm_tee_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count) in ftpm_tee_tpm_op_recv() 73 static int ftpm_tee_tpm_op_send(struct tpm_chip *chip, u8 *buf, size_t len) in ftpm_tee_tpm_op_send() 168 static void ftpm_tee_tpm_op_cancel(struct tpm_chip *chip) in ftpm_tee_tpm_op_cancel() 173 static u8 ftpm_tee_tpm_op_status(struct tpm_chip *chip) in ftpm_tee_tpm_op_status() 178 static bool ftpm_tee_tpm_req_canceled(struct tpm_chip *chip, u8 status) in ftpm_tee_tpm_req_canceled() 220 struct tpm_chip *chip; in ftpm_tee_probe()
|
/linux-6.1.9/include/linux/ ! |
D | tpm.h | 30 struct tpm_chip; 71 bool (*req_canceled)(struct tpm_chip *chip, u8 status); 72 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len); 73 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len); 74 void (*cancel) (struct tpm_chip *chip); 75 u8 (*status) (struct tpm_chip *chip); 76 void (*update_timeouts)(struct tpm_chip *chip, 78 void (*update_durations)(struct tpm_chip *chip, 80 int (*go_idle)(struct tpm_chip *chip); 81 int (*cmd_ready)(struct tpm_chip *chip); [all …]
|
/linux-6.1.9/drivers/char/tpm/eventlog/ ! |
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()
|
D | common.c | 32 struct tpm_chip *chip; in tpm_bios_measurements_open() 59 struct tpm_chip *chip = (struct tpm_chip *)seq->private; in tpm_bios_measurements_release() 74 static int tpm_read_log(struct tpm_chip *chip) in tpm_read_log() 103 void tpm_bios_log_setup(struct tpm_chip *chip) in tpm_bios_log_setup() 169 void tpm_bios_log_teardown(struct tpm_chip *chip) in tpm_bios_log_teardown()
|
/linux-6.1.9/drivers/char/tpm/st33zp24/ ! |
D | st33zp24.c | 78 static void st33zp24_cancel(struct tpm_chip *chip) in st33zp24_cancel() 90 static u8 st33zp24_status(struct tpm_chip *chip) in st33zp24_status() 102 static bool check_locality(struct tpm_chip *chip) in check_locality() 117 static int request_locality(struct tpm_chip *chip) in request_locality() 145 static void release_locality(struct tpm_chip *chip) in release_locality() 158 static int get_burstcount(struct tpm_chip *chip) in get_burstcount() 186 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond() 204 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat() 262 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data() 288 struct tpm_chip *chip = dev_id; in tpm_ioserirq_handler() [all …]
|