Searched refs:tpm_chip (Results 1 - 25 of 50) sorted by path

12

/linux-master/drivers/char/tpm/eventlog/
H A Dcommon.h11 int tpm_read_log_acpi(struct tpm_chip *chip);
13 static inline int tpm_read_log_acpi(struct tpm_chip *chip)
19 int tpm_read_log_of(struct tpm_chip *chip);
21 static inline int tpm_read_log_of(struct tpm_chip *chip)
27 int tpm_read_log_efi(struct tpm_chip *chip);
29 static inline int tpm_read_log_efi(struct tpm_chip *chip)
H A Dacpi.c67 int tpm_read_log_acpi(struct tpm_chip *chip)
H A Dcommon.c32 struct tpm_chip *chip;
59 struct tpm_chip *chip = seq->private;
74 static int tpm_read_log(struct tpm_chip *chip)
103 void tpm_bios_log_setup(struct tpm_chip *chip)
169 void tpm_bios_log_teardown(struct tpm_chip *chip)
H A Defi.c17 int tpm_read_log_efi(struct tpm_chip *chip)
H A Dof.c25 static int tpm_read_log_memory_region(struct tpm_chip *chip)
51 int tpm_read_log_of(struct tpm_chip *chip)
H A Dtpm1.c73 struct tpm_chip *chip = m->private;
112 struct tpm_chip *chip = m->private;
H A Dtpm2.c44 struct tpm_chip *chip = m->private;
90 struct tpm_chip *chip = m->private;
130 struct tpm_chip *chip = m->private;
/linux-master/drivers/char/tpm/
H A Dtpm-dev.c20 struct tpm_chip *chip;
23 chip = container_of(inode->i_cdev, struct tpm_chip, cdev);
H A Dtpm-chip.c40 static int tpm_request_locality(struct tpm_chip *chip)
55 static void tpm_relinquish_locality(struct tpm_chip *chip)
69 static int tpm_cmd_ready(struct tpm_chip *chip)
77 static int tpm_go_idle(struct tpm_chip *chip)
85 static void tpm_clk_enable(struct tpm_chip *chip)
91 static void tpm_clk_disable(struct tpm_chip *chip)
105 int tpm_chip_start(struct tpm_chip *chip)
138 void tpm_chip_stop(struct tpm_chip *chip)
147 * tpm_try_get_ops() - Get a ref to the tpm_chip
157 int tpm_try_get_ops(struct tpm_chip *chi
[all...]
H A Dtpm-dev-common.c24 static ssize_t tpm_dev_transmit(struct tpm_chip *chip, struct tpm_space *space,
110 void tpm_common_open(struct file *file, struct tpm_chip *chip,
H A Dtpm-dev.h9 struct tpm_chip *chip;
24 void tpm_common_open(struct file *file, struct tpm_chip *chip,
H A Dtpm-interface.c52 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal)
61 static ssize_t tpm_try_transmit(struct tpm_chip *chip, void *buf, size_t bufsiz)
153 ssize_t tpm_transmit(struct tpm_chip *chip, u8 *buf, size_t bufsiz)
213 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
240 int tpm_get_timeouts(struct tpm_chip *chip)
254 * @chip: a &struct tpm_chip instance, %NULL for the default chip
261 int tpm_is_tpm2(struct tpm_chip *chip)
279 * @chip: a &struct tpm_chip instance, %NULL for the default chip
285 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
306 * @chip: a &struct tpm_chip instanc
[all...]
H A Dtpm-sysfs.c39 struct tpm_chip *chip = to_tpm_chip(dev);
89 struct tpm_chip *chip = to_tpm_chip(dev);
120 struct tpm_chip *chip = to_tpm_chip(dev);
142 struct tpm_chip *chip = to_tpm_chip(dev);
164 struct tpm_chip *chip = to_tpm_chip(dev);
186 struct tpm_chip *chip = to_tpm_chip(dev);
208 struct tpm_chip *chip = to_tpm_chip(dev);
259 struct tpm_chip *chip = to_tpm_chip(dev);
273 struct tpm_chip *chip = to_tpm_chip(dev);
290 struct tpm_chip *chi
[all...]
H A 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 *chi
[all...]
H A Dtpm1-cmd.c291 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal)
324 static int tpm1_startup(struct tpm_chip *chip)
342 int tpm1_get_timeouts(struct tpm_chip *chip)
463 int tpm1_pcr_extend(struct tpm_chip *chip, u32 pcr_idx, const u8 *hash,
482 ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
522 * @chip: a &struct tpm_chip instance
530 int tpm1_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
584 int tpm1_pcr_read(struct tpm_chip *chip, u32 pcr_idx, u8 *res_buf)
620 static int tpm1_continue_selftest(struct tpm_chip *chip)
642 int tpm1_do_selftest(struct tpm_chip *chi
[all...]
H A Dtpm2-cmd.c25 int tpm2_get_timeouts(struct tpm_chip *chip)
128 unsigned long tpm2_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal)
161 int tpm2_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
228 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
273 * @chip: a &tpm_chip instance
281 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
354 void tpm2_flush_context(struct tpm_chip *chip, u32 handle)
383 * @chip: a &tpm_chip instance
392 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id, u32 *value,
432 * @chip: a &tpm_chip instanc
[all...]
H A Dtpm2-sessions.c83 static int tpm2_create_primary(struct tpm_chip *chip, u32 hierarchy,
266 static void tpm_buf_append_salt(struct tpm_buf *buf, struct tpm_chip *chip)
369 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
437 void tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf)
591 static int tpm2_read_public(struct tpm_chip *chip, u32 handle, char *name)
632 void tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
692 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
822 void tpm2_end_auth_session(struct tpm_chip *chip)
857 static int tpm2_load_null(struct tpm_chip *chip, u32 *null_key)
900 int tpm2_start_auth_session(struct tpm_chip *chi
[all...]
H A Dtpm2-space.c31 static void tpm2_flush_sessions(struct tpm_chip *chip, struct tpm_space *space)
59 void tpm2_del_space(struct tpm_chip *chip, struct tpm_space *space)
71 int tpm2_load_context(struct tpm_chip *chip, u8 *buf,
125 int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf,
167 void tpm2_flush_space(struct tpm_chip *chip)
179 static int tpm2_load_space(struct tpm_chip *chip)
242 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd)
268 static int tpm_find_and_validate_cc(struct tpm_chip *chip,
303 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd,
341 static bool tpm2_add_session(struct tpm_chip *chi
[all...]
H A Dtpm_atmel.c33 static int tpm_atml_recv(struct tpm_chip *chip, u8 *buf, size_t count)
92 static int tpm_atml_send(struct tpm_chip *chip, u8 *buf, size_t count)
106 static void tpm_atml_cancel(struct tpm_chip *chip)
113 static u8 tpm_atml_status(struct tpm_chip *chip)
120 static bool tpm_atml_req_canceled(struct tpm_chip *chip, u8 status)
139 struct tpm_chip *chip = dev_get_drvdata(&pdev->dev);
164 struct tpm_chip *chip;
H A Dtpm_crb.c198 static int crb_go_idle(struct tpm_chip *chip)
247 static int crb_cmd_ready(struct tpm_chip *chip)
274 static int crb_request_locality(struct tpm_chip *chip, int loc)
301 static int crb_relinquish_locality(struct tpm_chip *chip, int loc)
308 static u8 crb_status(struct tpm_chip *chip)
320 static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count)
352 static int crb_do_acpi_start(struct tpm_chip *chip)
397 static int crb_send(struct tpm_chip *chip, u8 *buf, size_t len)
446 static void crb_cancel(struct tpm_chip *chip)
458 static bool crb_req_canceled(struct tpm_chip *chi
[all...]
H A Dtpm_ftpm_tee.c35 * @chip: the tpm_chip description as specified in driver/char/tpm/tpm.h.
43 static int ftpm_tee_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count)
64 * @chip: the tpm_chip description as specified in driver/char/tpm/tpm.h
72 static int ftpm_tee_tpm_op_send(struct tpm_chip *chip, u8 *buf, size_t len)
167 static void ftpm_tee_tpm_op_cancel(struct tpm_chip *chip)
172 static u8 ftpm_tee_tpm_op_status(struct tpm_chip *chip)
177 static bool ftpm_tee_tpm_req_canceled(struct tpm_chip *chip, u8 status)
219 struct tpm_chip *chip;
265 /* Allocate new struct tpm_chip instance */
/linux-master/drivers/char/tpm/st33zp24/
H A Di2c.c130 struct tpm_chip *chip = i2c_get_clientdata(client);
H A Dspi.c247 struct tpm_chip *chip = spi_get_drvdata(dev);
H A Dst33zp24.c79 static void st33zp24_cancel(struct tpm_chip *chip)
91 static u8 st33zp24_status(struct tpm_chip *chip)
103 static bool check_locality(struct tpm_chip *chip)
118 static int request_locality(struct tpm_chip *chip)
146 static void release_locality(struct tpm_chip *chip)
159 static int get_burstcount(struct tpm_chip *chip)
187 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask,
205 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout,
263 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count)
289 struct tpm_chip *chi
[all...]
H A Dst33zp24.h17 struct tpm_chip *chip;
40 void st33zp24_remove(struct tpm_chip *chip);

Completed in 239 milliseconds

12