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

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 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)
/linux-master/drivers/char/tpm/
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 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_ftpm_tee.h23 * @chip: struct tpm_chip instance registered with tpm framework.
32 struct tpm_chip *chip;
H A Dtpm-dev.c20 struct tpm_chip *chip;
23 chip = container_of(inode->i_cdev, struct tpm_chip, cdev);
H A Dtpm-dev.h9 struct tpm_chip *chip;
24 void tpm_common_open(struct file *file, struct tpm_chip *chip,
H A Dtpm_i2c_atmel.c40 static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t len)
67 static int i2c_atmel_recv(struct tpm_chip *chip, u8 *buf, size_t count)
102 static void i2c_atmel_cancel(struct tpm_chip *chip)
107 static u8 i2c_atmel_read_status(struct tpm_chip *chip)
133 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status)
151 struct tpm_chip *chip;
184 struct tpm_chip *chip = dev_get_drvdata(dev);
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,
239 int tpm_get_timeouts(struct tpm_chip *chip)
253 * @chip: a &struct tpm_chip instance, %NULL for the default chip
260 int tpm_is_tpm2(struct tpm_chip *chip)
278 * @chip: a &struct tpm_chip instance, %NULL for the default chip
284 int tpm_pcr_read(struct tpm_chip *chip, u32 pcr_idx,
305 * @chip: a &struct tpm_chip instanc
[all...]
H A Dtpmrm-dev.c15 struct tpm_chip *chip;
19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs);
H A Dxen-tpmfront.c21 struct tpm_chip *chip;
40 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask,
55 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask,
100 static u8 vtpm_status(struct tpm_chip *chip)
116 static bool vtpm_req_canceled(struct tpm_chip *chip, u8 status)
121 static void vtpm_cancel(struct tpm_chip *chip)
134 static int vtpm_send(struct tpm_chip *chip, u8 *buf, size_t count)
176 static int vtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count)
236 struct tpm_chip *chip;
365 struct tpm_chip *chi
[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 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 static int tpm2_load_context(struct tpm_chip *chip, u8 *buf,
122 static int tpm2_save_context(struct tpm_chip *chip, u32 handle, u8 *buf,
164 void tpm2_flush_space(struct tpm_chip *chip)
176 static int tpm2_load_space(struct tpm_chip *chip)
239 static int tpm2_map_command(struct tpm_chip *chip, u32 cc, u8 *cmd)
265 static int tpm_find_and_validate_cc(struct tpm_chip *chip,
300 int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd,
338 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_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,
64 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask,
131 static int wait_startup(struct tpm_chip *chip, int l)
151 static bool check_locality(struct tpm_chip *chip, int l)
178 static int tpm_tis_relinquish_locality(struct tpm_chip *chip, int l)
191 static int __tpm_tis_request_locality(struct tpm_chip *chip, int l)
232 static int tpm_tis_request_locality(struct tpm_chip *chip, int l)
246 static u8 tpm_tis_status(struct tpm_chip *chip)
281 static void tpm_tis_ready(struct tpm_chip *chi
[all...]
H A Dtpm_tis_i2c_cr50.c73 struct tpm_chip *chip = tpm_info;
92 static int tpm_cr50_i2c_wait_tpm_ready(struct tpm_chip *chip)
115 static void tpm_cr50_i2c_enable_tpm_irq(struct tpm_chip *chip)
129 static void tpm_cr50_i2c_disable_tpm_irq(struct tpm_chip *chip)
186 static int tpm_cr50_i2c_read(struct tpm_chip *chip, u8 addr, u8 *buffer, size_t len)
245 static int tpm_cr50_i2c_write(struct tpm_chip *chip, u8 addr, u8 *buffer,
295 static int tpm_cr50_check_locality(struct tpm_chip *chip)
316 static void tpm_cr50_release_locality(struct tpm_chip *chip, bool force)
339 static int tpm_cr50_request_locality(struct tpm_chip *chip)
372 static u8 tpm_cr50_i2c_tis_status(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,
235 int tpm2_pcr_extend(struct tpm_chip *chip, u32 pcr_idx,
280 * @chip: a &tpm_chip instance
288 int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max)
348 void tpm2_flush_context(struct tpm_chip *chip, u32 handle)
377 * @chip: a &tpm_chip instance
386 ssize_t tpm2_get_tpm_pt(struct tpm_chip *chip, u32 property_id, u32 *value,
426 * @chip: a &tpm_chip instanc
[all...]
H A Dtpm_ppi.c53 struct tpm_chip *chip = to_tpm_chip(dev);
63 struct tpm_chip *chip = to_tpm_chip(dev);
121 struct tpm_chip *chip = to_tpm_chip(dev);
187 struct tpm_chip *chip = to_tpm_chip(dev);
228 struct tpm_chip *chip = to_tpm_chip(dev);
328 struct tpm_chip *chip = to_tpm_chip(dev);
338 struct tpm_chip *chip = to_tpm_chip(dev);
366 void tpm_add_ppi(struct tpm_chip *chip)
H A Dtpm_ibmvtpm.c105 static int tpm_ibmvtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count)
161 struct tpm_chip *chip = dev_get_drvdata(dev);
200 static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t count)
260 static void tpm_ibmvtpm_cancel(struct tpm_chip *chip)
265 static u8 tpm_ibmvtpm_status(struct tpm_chip *chip)
345 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev);
383 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev);
407 struct tpm_chip *chip = dev_get_drvdata(dev);
447 static bool tpm_ibmvtpm_req_canceled(struct tpm_chip *chip, u8 status)
604 struct tpm_chip *chi
[all...]
H A Dtpm_i2c_infineon.c66 struct tpm_chip *chip;
312 static bool check_locality(struct tpm_chip *chip, int loc)
331 static void release_locality(struct tpm_chip *chip, int loc, int force)
344 static int request_locality(struct tpm_chip *chip, int loc)
365 static u8 tpm_tis_i2c_status(struct tpm_chip *chip)
382 static void tpm_tis_i2c_ready(struct tpm_chip *chip)
389 static ssize_t get_burstcount(struct tpm_chip *chip)
413 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout,
436 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count)
468 static int tpm_tis_i2c_recv(struct tpm_chip *chi
[all...]
H A Dtpm_i2c_nuvoton.c89 static u8 i2c_nuvoton_read_status(struct tpm_chip *chip)
122 static void i2c_nuvoton_ready(struct tpm_chip *chip)
137 struct tpm_chip *chip)
165 static bool i2c_nuvoton_check_status(struct tpm_chip *chip, u8 mask, u8 value)
171 static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value,
220 static int i2c_nuvoton_wait_for_data_avail(struct tpm_chip *chip, u32 timeout,
231 struct tpm_chip *chip, u8 *buf, size_t count)
265 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count)
353 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len)
460 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chi
[all...]
/linux-master/include/linux/
H A 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 *chi
119 struct tpm_chip { struct
[all...]
/linux-master/drivers/char/tpm/st33zp24/
H A Dst33zp24.h17 struct tpm_chip *chip;
40 void st33zp24_remove(struct tpm_chip *chip);
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...]
/linux-master/include/keys/
H A Dtrusted_tpm.h45 int tpm2_seal_trusted(struct tpm_chip *chip,
48 int tpm2_unseal_trusted(struct tpm_chip *chip,

Completed in 252 milliseconds

12