Home
last modified time | relevance | path

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

12

/linux-4.19.296/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-4.19.296/drivers/char/tpm/
Dtpm.h208 struct tpm_chip *chip;
212 struct tpm_chip { struct
266 #define to_tpm_chip(d) container_of(d, struct tpm_chip, dev) argument
532 ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space,
534 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space,
538 int tpm_startup(struct tpm_chip *chip);
539 ssize_t tpm_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
541 int tpm_get_timeouts(struct tpm_chip *);
542 int tpm1_auto_startup(struct tpm_chip *chip);
543 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()
180 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_class_shutdown()
203 struct tpm_chip *tpm_chip_alloc(struct device *pdev, in tpm_chip_alloc()
206 struct tpm_chip *chip; in tpm_chip_alloc()
273 struct tpm_chip *tpmm_chip_alloc(struct device *pdev, in tpmm_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()
142 static int release_locality(struct tpm_chip *chip, int l) in release_locality()
151 static int request_locality(struct tpm_chip *chip, int l) in request_locality()
192 static u8 tpm_tis_status(struct tpm_chip *chip) in tpm_tis_status()
205 static void tpm_tis_ready(struct tpm_chip *chip) in tpm_tis_ready()
213 static int get_burstcount(struct tpm_chip *chip) in get_burstcount()
[all …]
Dtpm-sysfs.c44 struct tpm_chip *chip = to_tpm_chip(dev); in pubek_show()
107 struct tpm_chip *chip = to_tpm_chip(dev); in pcrs_show()
137 struct tpm_chip *chip = to_tpm_chip(dev); in enabled_show()
159 struct tpm_chip *chip = to_tpm_chip(dev); in active_show()
181 struct tpm_chip *chip = to_tpm_chip(dev); in owned_show()
203 struct tpm_chip *chip = to_tpm_chip(dev); in temp_deactivated_show()
225 struct tpm_chip *chip = to_tpm_chip(dev); in caps_show()
276 struct tpm_chip *chip = to_tpm_chip(dev); in cancel_store()
290 struct tpm_chip *chip = to_tpm_chip(dev); in durations_show()
307 struct tpm_chip *chip = to_tpm_chip(dev); in timeouts_show()
[all …]
Dtpm_i2c_atmel.c52 static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_atmel_send()
79 static int i2c_atmel_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_atmel_recv()
115 static void i2c_atmel_cancel(struct tpm_chip *chip) in i2c_atmel_cancel()
120 static u8 i2c_atmel_read_status(struct tpm_chip *chip) in i2c_atmel_read_status()
146 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) in i2c_atmel_req_canceled()
165 struct tpm_chip *chip; in i2c_atmel_probe()
198 struct tpm_chip *chip = dev_get_drvdata(dev); in i2c_atmel_remove()
Dtpm2-space.c35 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space) in tpm2_flush_sessions()
64 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space) in tpm2_del_space()
73 static int tpm2_load_context(struct tpm_chip *chip, u8 *buf, in tpm2_load_context()
125 static int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf, in tpm2_save_context()
168 static void tpm2_flush_space(struct tpm_chip *chip) in tpm2_flush_space()
181 static int tpm2_load_space(struct tpm_chip *chip) in tpm2_load_space()
244 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd) in tpm2_map_command()
270 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u32 cc, in tpm2_prepare_space()
302 static bool tpm2_add_session(struct tpm_chip *chip, u32 handle) in tpm2_add_session()
338 static int tpm2_map_response_header(struct tpm_chip *chip, u32 cc, u8 *rsp, in tpm2_map_response_header()
[all …]
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.c72 struct tpm_chip *chip;
318 static bool check_locality(struct tpm_chip *chip, int loc) in check_locality()
337 static void release_locality(struct tpm_chip *chip, int loc, int force) in release_locality()
350 static int request_locality(struct tpm_chip *chip, int loc) in request_locality()
371 static u8 tpm_tis_i2c_status(struct tpm_chip *chip) in tpm_tis_i2c_status()
388 static void tpm_tis_i2c_ready(struct tpm_chip *chip) in tpm_tis_i2c_ready()
395 static ssize_t get_burstcount(struct tpm_chip *chip) in get_burstcount()
419 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat()
442 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
474 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()
596 ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space, in tpm_transmit()
662 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space, in tpm_transmit_cmd()
703 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()
Dtpm_i2c_nuvoton.c100 static u8 i2c_nuvoton_read_status(struct tpm_chip *chip) in i2c_nuvoton_read_status()
133 static void i2c_nuvoton_ready(struct tpm_chip *chip) in i2c_nuvoton_ready()
148 struct tpm_chip *chip) in i2c_nuvoton_get_burstcount()
176 static bool i2c_nuvoton_check_status(struct tpm_chip *chip, u8 mask, u8 value) in i2c_nuvoton_check_status()
182 static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value, in i2c_nuvoton_wait_for_stat()
231 static int i2c_nuvoton_wait_for_data_avail(struct tpm_chip *chip, u32 timeout, in i2c_nuvoton_wait_for_data_avail()
242 struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv_data()
276 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv()
364 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_nuvoton_send()
473 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chip, u8 status) in i2c_nuvoton_req_canceled()
[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()
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()
360 void tpm2_flush_context_cmd(struct tpm_chip *chip, u32 handle, in tpm2_flush_context_cmd()
420 int tpm2_seal_trusted(struct tpm_chip *chip, in tpm2_seal_trusted()
536 static int tpm2_load_cmd(struct tpm_chip *chip, in tpm2_load_cmd()
602 static int tpm2_unseal_cmd(struct tpm_chip *chip, in tpm2_unseal_cmd()
663 int tpm2_unseal_trusted(struct tpm_chip *chip, in tpm2_unseal_trusted()
703 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id, u32 *value, in tpm2_get_tpm_pt()
746 void tpm2_shutdown(struct tpm_chip *chip, u16 shutdown_type) in tpm2_shutdown()
[all …]
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_ibmvtpm.c111 static int tpm_ibmvtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_ibmvtpm_recv()
172 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_resume()
211 static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_ibmvtpm_send()
271 static void tpm_ibmvtpm_cancel(struct tpm_chip *chip) in tpm_ibmvtpm_cancel()
276 static u8 tpm_ibmvtpm_status(struct tpm_chip *chip) in tpm_ibmvtpm_status()
354 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_remove()
394 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); in tpm_ibmvtpm_get_desired_dma()
418 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_ibmvtpm_suspend()
458 static bool tpm_ibmvtpm_req_canceled(struct tpm_chip *chip, u8 status) in tpm_ibmvtpm_req_canceled()
615 struct tpm_chip *chip; in tpm_ibmvtpm_probe()
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()
317 static int crb_do_acpi_start(struct tpm_chip *chip) in crb_do_acpi_start()
362 static int crb_send(struct tpm_chip *chip, u8 *buf, size_t len) in crb_send()
404 static void crb_cancel(struct tpm_chip *chip) in crb_cancel()
416 static bool crb_req_canceled(struct tpm_chip *chip, u8 status) in crb_req_canceled()
[all …]
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()
371 static void vtpm_proxy_tpm_op_cancel(struct tpm_chip *chip) in vtpm_proxy_tpm_op_cancel()
376 static u8 vtpm_proxy_tpm_op_status(struct tpm_chip *chip) in vtpm_proxy_tpm_op_status()
386 static bool vtpm_proxy_tpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_proxy_tpm_req_canceled()
400 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality()
497 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-4.19.296/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()
108 void tpm_bios_log_setup(struct tpm_chip *chip) in tpm_bios_log_setup()
174 void tpm_bios_log_teardown(struct tpm_chip *chip) in tpm_bios_log_teardown()
/linux-4.19.296/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