Home
last modified time | relevance | path

Searched refs:tpm_chip (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.6.21/drivers/char/tpm/
Dtpm.h240 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz);
241 int tpm_get_timeouts(struct tpm_chip *);
242 int tpm_auto_startup(struct tpm_chip *chip);
244 int tpm1_pm_suspend(struct tpm_chip *chip, u32 tpm_suspend_pcr);
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);
248 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
249 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash,
251 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf);
[all …]
Dtpm-chip.c40 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()
189 void tpm_put_ops(struct tpm_chip *chip) in tpm_put_ops()
[all …]
Dtpm-interface.c52 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 …]
Dtpm_tis_i2c_cr50.c73 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()
186 static int tpm_cr50_i2c_read(struct tpm_chip *chip, u8 addr, u8 *buffer, size_t len) in tpm_cr50_i2c_read()
245 static int tpm_cr50_i2c_write(struct tpm_chip *chip, u8 addr, u8 *buffer, in tpm_cr50_i2c_write()
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()
[all …]
Dtpm_tis_core.c33 static void tpm_tis_clkrun_enable(struct tpm_chip *chip, bool value);
35 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond()
64 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat()
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()
178 static int tpm_tis_relinquish_locality(struct tpm_chip *chip, int l) in tpm_tis_relinquish_locality()
191 static int __tpm_tis_request_locality(struct tpm_chip *chip, int l) in __tpm_tis_request_locality()
232 static int tpm_tis_request_locality(struct tpm_chip *chip, int l) in tpm_tis_request_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()
[all …]
Dtpm2-space.c31 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 …]
Dtpm_i2c_atmel.c40 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()
Dtpm2-cmd.c25 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 …]
Dtpm_atmel.c33 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()
Dtpm_i2c_infineon.c66 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 …]
Dtpm-sysfs.c39 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 …]
Dxen-tpmfront.c21 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()
Dtpm_i2c_nuvoton.c88 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 …]
Dtpm_nsc.c70 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()
Dtpm_infineon.c144 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 …]
Dtpm1-cmd.c291 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 …]
Dtpm_ibmvtpm.c105 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()
Dtpm_ppi.c53 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()
Dtpm_vtpm_proxy.c29 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()
Dtpm_crb.c198 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()
301 static int crb_relinquish_locality(struct tpm_chip *chip, int loc) in crb_relinquish_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()
[all …]
Dtpm_ftpm_tee.c43 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-6.6.21/include/linux/
Dtpm.h30 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.6.21/drivers/char/tpm/eventlog/
Dcommon.h11 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()
Dcommon.c32 struct tpm_chip *chip; in tpm_bios_measurements_open()
59 struct tpm_chip *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.6.21/drivers/char/tpm/st33zp24/
Dst33zp24.c79 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()
187 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond()
205 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat()
263 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
289 struct tpm_chip *chip = dev_id; in tpm_ioserirq_handler()
[all …]

12