Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/linux/
Dtpm.h27 struct tpm_chip;
39 bool (*req_canceled)(struct tpm_chip *chip, u8 status);
40 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len);
41 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len);
42 void (*cancel) (struct tpm_chip *chip);
43 u8 (*status) (struct tpm_chip *chip);
44 bool (*update_timeouts)(struct tpm_chip *chip,
46 int (*go_idle)(struct tpm_chip *chip);
47 int (*cmd_ready)(struct tpm_chip *chip);
48 int (*request_locality)(struct tpm_chip *chip, int loc);
[all …]
/Linux-v4.19/drivers/char/tpm/
Dtpm.h207 struct tpm_chip *chip;
211 struct tpm_chip { struct
265 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev) argument
528 ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space,
530 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space,
534 int tpm_startup(struct tpm_chip *chip);
535 ssize_t tpm_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
537 int tpm_get_timeouts(struct tpm_chip *);
538 int tpm1_auto_startup(struct tpm_chip *chip);
539 int tpm_do_selftest(struct tpm_chip *chip);
[all …]
Dtpm-chip.c51 int tpm_try_get_ops(struct tpm_chip *chip) in tpm_try_get_ops()
76 void tpm_put_ops(struct tpm_chip *chip) in tpm_put_ops()
86 struct tpm_chip *tpm_default_chip(void) in tpm_default_chip()
88 struct tpm_chip *chip, *res = NULL; in tpm_default_chip()
125 struct tpm_chip *tpm_find_get_ops(struct tpm_chip *chip) in tpm_find_get_ops()
154 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_dev_release()
168 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release()
188 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_class_shutdown()
210 struct tpm_chip *tpm_chip_alloc(struct device *pdev, in tpm_chip_alloc()
213 struct tpm_chip *chip; in tpm_chip_alloc()
[all …]
Dtpm_tis_core.c34 static void tpm_tis_clkrun_enable(struct tpm_chip *chip, bool value);
36 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond()
51 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat()
102 static int wait_startup(struct tpm_chip *chip, int l) in wait_startup()
122 static bool check_locality(struct tpm_chip *chip, int l) in check_locality()
141 static bool locality_inactive(struct tpm_chip *chip, int l) in locality_inactive()
158 static int release_locality(struct tpm_chip *chip, int l) in release_locality()
195 static int request_locality(struct tpm_chip *chip, int l) in request_locality()
236 static u8 tpm_tis_status(struct tpm_chip *chip) in tpm_tis_status()
249 static void tpm_tis_ready(struct tpm_chip *chip) in tpm_tis_ready()
[all …]
Dtpm_i2c_atmel.c52 static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_atmel_send()
71 static int i2c_atmel_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_atmel_recv()
107 static void i2c_atmel_cancel(struct tpm_chip *chip) in i2c_atmel_cancel()
112 static u8 i2c_atmel_read_status(struct tpm_chip *chip) in i2c_atmel_read_status()
138 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) in i2c_atmel_req_canceled()
157 struct tpm_chip *chip; in i2c_atmel_probe()
190 struct tpm_chip *chip = dev_get_drvdata(dev); in i2c_atmel_remove()
Dtpm_atmel.c38 static int tpm_atml_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_recv()
97 static int tpm_atml_send(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_send()
111 static void tpm_atml_cancel(struct tpm_chip *chip) in tpm_atml_cancel()
118 static u8 tpm_atml_status(struct tpm_chip *chip) in tpm_atml_status()
125 static bool tpm_atml_req_canceled(struct tpm_chip *chip, u8 status) in tpm_atml_req_canceled()
144 struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); in atml_plat_remove()
169 struct tpm_chip *chip; in init_atmel()
Dtpm_i2c_infineon.c71 struct tpm_chip *chip;
317 static bool check_locality(struct tpm_chip *chip, int loc) in check_locality()
336 static void release_locality(struct tpm_chip *chip, int loc, int force) in release_locality()
349 static int request_locality(struct tpm_chip *chip, int loc) in request_locality()
370 static u8 tpm_tis_i2c_status(struct tpm_chip *chip) in tpm_tis_i2c_status()
387 static void tpm_tis_i2c_ready(struct tpm_chip *chip) in tpm_tis_i2c_ready()
394 static ssize_t get_burstcount(struct tpm_chip *chip) in get_burstcount()
418 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat()
441 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
473 static int tpm_tis_i2c_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_tis_i2c_recv()
[all …]
Dtpm-interface.c308 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, in tpm_calc_ordinal_duration()
330 static int tpm_validate_command(struct tpm_chip *chip, in tpm_validate_command()
371 static int tpm_request_locality(struct tpm_chip *chip, unsigned int flags) in tpm_request_locality()
390 static void tpm_relinquish_locality(struct tpm_chip *chip, unsigned int flags) in tpm_relinquish_locality()
407 static int tpm_cmd_ready(struct tpm_chip *chip, unsigned int flags) in tpm_cmd_ready()
418 static int tpm_go_idle(struct tpm_chip *chip, unsigned int flags) in tpm_go_idle()
429 static ssize_t tpm_try_transmit(struct tpm_chip *chip, in tpm_try_transmit()
586 ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space, in tpm_transmit()
652 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space, in tpm_transmit_cmd()
692 int tpm_startup(struct tpm_chip *chip) in tpm_startup()
[all …]
Dxen-tpmfront.c24 struct tpm_chip *chip;
43 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond()
58 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat()
103 static u8 vtpm_status(struct tpm_chip *chip) in vtpm_status()
119 static bool vtpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_req_canceled()
124 static void vtpm_cancel(struct tpm_chip *chip) in vtpm_cancel()
137 static int vtpm_send(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_send()
179 static int vtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_recv()
239 struct tpm_chip *chip; in setup_chip()
380 struct tpm_chip *chip = dev_get_drvdata(&dev->dev); in tpmfront_remove()
Dtpm2-space.c35 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions()
61 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space) in tpm2_del_space()
70 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()
165 static void tpm2_flush_space(struct tpm_chip *chip) in tpm2_flush_space()
178 static int tpm2_load_space(struct tpm_chip *chip) in tpm2_load_space()
241 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd) in tpm2_map_command()
267 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u32 cc, in tpm2_prepare_space()
297 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session()
333 static int tpm2_map_response_header(struct tpm_chip *chip, u32 cc, u8 *rsp, in tpm2_map_response_header()
[all …]
Dtpm_i2c_nuvoton.c102 static u8 i2c_nuvoton_read_status(struct tpm_chip *chip) in i2c_nuvoton_read_status()
135 static void i2c_nuvoton_ready(struct tpm_chip *chip) in i2c_nuvoton_ready()
150 struct tpm_chip *chip) in i2c_nuvoton_get_burstcount()
178 static bool i2c_nuvoton_check_status(struct tpm_chip *chip, u8 mask, u8 value) in i2c_nuvoton_check_status()
184 static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value, in i2c_nuvoton_wait_for_stat()
233 static int i2c_nuvoton_wait_for_data_avail(struct tpm_chip *chip, u32 timeout, in i2c_nuvoton_wait_for_data_avail()
244 struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv_data()
278 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv()
366 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_nuvoton_send()
472 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chip, u8 status) in i2c_nuvoton_req_canceled()
[all …]
Dtpm2-cmd.c186 int tpm2_pcr_read(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm2_pcr_read()
236 int tpm2_pcr_extend(struct tpm_chip *chip, int pcr_idx, u32 count, in tpm2_pcr_extend()
300 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max) in tpm2_get_random()
358 void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle, in tpm2_flush_context_cmd()
418 int tpm2_seal_trusted(struct tpm_chip *chip, in tpm2_seal_trusted()
534 static int tpm2_load_cmd(struct tpm_chip *chip, in tpm2_load_cmd()
600 static int tpm2_unseal_cmd(struct tpm_chip *chip, in tpm2_unseal_cmd()
661 int tpm2_unseal_trusted(struct tpm_chip *chip, in tpm2_unseal_trusted()
701 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id, u32 *value, in tpm2_get_tpm_pt()
735 void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type) in tpm2_shutdown()
[all …]
Dtpm_nsc.c75 static int wait_for_stat(struct tpm_chip *chip, u8 mask, u8 val, u8 * data) in wait_for_stat()
98 static int nsc_wait_for_ready(struct tpm_chip *chip) in nsc_wait_for_ready()
128 static int tpm_nsc_recv(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_nsc_recv()
186 static int tpm_nsc_send(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_nsc_send()
232 static void tpm_nsc_cancel(struct tpm_chip *chip) in tpm_nsc_cancel()
239 static u8 tpm_nsc_status(struct tpm_chip *chip) in tpm_nsc_status()
246 static bool tpm_nsc_req_canceled(struct tpm_chip *chip, u8 status) in tpm_nsc_req_canceled()
265 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_nsc_remove()
298 struct tpm_chip *chip; in init_nsc()
Dtpm_infineon.c148 static int empty_fifo(struct tpm_chip *chip, int clear_wrfifo) in empty_fifo()
185 static int wait(struct tpm_chip *chip, int wait_for_bit) in wait()
206 static void wait_and_send(struct tpm_chip *chip, u8 sendbyte) in wait_and_send()
220 static void tpm_wtx(struct tpm_chip *chip) in tpm_wtx()
232 static void tpm_wtx_abort(struct tpm_chip *chip) in tpm_wtx_abort()
243 static int tpm_inf_recv(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_inf_recv()
313 static int tpm_inf_send(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_inf_send()
360 static void tpm_inf_cancel(struct tpm_chip *chip) in tpm_inf_cancel()
369 static u8 tpm_inf_status(struct tpm_chip *chip) in tpm_inf_status()
401 struct tpm_chip *chip; in tpm_inf_pnp_probe()
[all …]
Dtpm_ppi.c52 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_version()
62 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_request()
99 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_store_ppi_request()
155 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_transition_action()
196 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_response()
295 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_tcg_operations()
305 struct tpm_chip *chip = to_tpm_chip(dev); in tpm_show_ppi_vs_operations()
333 void tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
Dtpm_crb.c170 static int crb_go_idle(struct tpm_chip *chip) in crb_go_idle()
212 static int crb_cmd_ready(struct tpm_chip *chip) in crb_cmd_ready()
239 static int crb_request_locality(struct tpm_chip *chip, int loc) in crb_request_locality()
266 static int crb_relinquish_locality(struct tpm_chip *chip, int loc) in crb_relinquish_locality()
273 static u8 crb_status(struct tpm_chip *chip) in crb_status()
285 static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count) in crb_recv()
307 static int crb_do_acpi_start(struct tpm_chip *chip) in crb_do_acpi_start()
352 static int crb_send(struct tpm_chip *chip, u8 *buf, size_t len) in crb_send()
394 static void crb_cancel(struct tpm_chip *chip) in crb_cancel()
406 static bool crb_req_canceled(struct tpm_chip *chip, u8 status) in crb_req_canceled()
[all …]
Dtpm_ibmvtpm.c111 static int tpm_ibmvtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_ibmvtpm_recv()
153 static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_ibmvtpm_send()
203 static void tpm_ibmvtpm_cancel(struct tpm_chip *chip) in tpm_ibmvtpm_cancel()
208 static u8 tpm_ibmvtpm_status(struct tpm_chip *chip) in tpm_ibmvtpm_status()
306 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_remove()
346 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_get_desired_dma()
370 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_suspend()
419 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_resume()
448 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-sysfs.c45 struct tpm_chip *chip = to_tpm_chip(dev); in pubek_show()
107 struct tpm_chip *chip = to_tpm_chip(dev); in pcrs_show()
200 struct tpm_chip *chip = to_tpm_chip(dev); in caps_show()
246 struct tpm_chip *chip = to_tpm_chip(dev); in cancel_store()
258 struct tpm_chip *chip = to_tpm_chip(dev); in durations_show()
275 struct tpm_chip *chip = to_tpm_chip(dev); in timeouts_show()
305 void tpm_sysfs_add_device(struct tpm_chip *chip) in tpm_sysfs_add_device()
Dtpm_vtpm_proxy.c34 struct tpm_chip *chip;
272 static int vtpm_proxy_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_proxy_tpm_op_recv()
303 static int vtpm_proxy_is_driver_command(struct tpm_chip *chip, in vtpm_proxy_is_driver_command()
335 static int vtpm_proxy_tpm_op_send(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_proxy_tpm_op_send()
372 static void vtpm_proxy_tpm_op_cancel(struct tpm_chip *chip) in vtpm_proxy_tpm_op_cancel()
377 static u8 vtpm_proxy_tpm_op_status(struct tpm_chip *chip) in vtpm_proxy_tpm_op_status()
387 static bool vtpm_proxy_tpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_proxy_tpm_req_canceled()
401 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality()
498 struct tpm_chip *chip; in vtpm_proxy_create_proxy_dev()
Dtpm-dev.h8 struct tpm_chip *chip;
20 void tpm_common_open(struct file *file, struct tpm_chip *chip,
/Linux-v4.19/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.c37 struct tpm_chip *chip; in tpm_bios_measurements_open()
64 struct tpm_chip *chip = (struct tpm_chip *)seq->private; in tpm_bios_measurements_release()
79 static int tpm_read_log(struct tpm_chip *chip) in tpm_read_log()
111 int tpm_bios_log_setup(struct tpm_chip *chip) in tpm_bios_log_setup()
175 void tpm_bios_log_teardown(struct tpm_chip *chip) in tpm_bios_log_teardown()
/Linux-v4.19/drivers/char/tpm/st33zp24/
Dst33zp24.c94 static void st33zp24_cancel(struct tpm_chip *chip) in st33zp24_cancel()
108 static u8 st33zp24_status(struct tpm_chip *chip) in st33zp24_status()
122 static bool check_locality(struct tpm_chip *chip) in check_locality()
142 static int request_locality(struct tpm_chip *chip) in request_locality()
174 static void release_locality(struct tpm_chip *chip) in release_locality()
189 static int get_burstcount(struct tpm_chip *chip) in get_burstcount()
227 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond()
251 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat()
316 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
348 struct tpm_chip *chip = dev_id; in tpm_ioserirq_handler()
[all …]
Dst33zp24.h25 struct tpm_chip *chip;
48 int st33zp24_remove(struct tpm_chip *chip);
Di2c.c123 struct tpm_chip *chip = i2c_get_clientdata(client); in st33zp24_i2c_acpi_request_resources()
155 struct tpm_chip *chip = i2c_get_clientdata(client); in st33zp24_i2c_of_request_resources()
195 struct tpm_chip *chip = i2c_get_clientdata(client); in st33zp24_i2c_request_resources()
281 struct tpm_chip *chip = i2c_get_clientdata(client); in st33zp24_i2c_remove()

12