Home
last modified time | relevance | path

Searched refs:TPM_BUFSIZE (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/char/tpm/
H A Dtpm2-cmd.c132 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_pcr_read()
136 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_pcr_read()
186 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_pcr_extend()
193 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_pcr_extend()
261 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_get_random()
267 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_get_random()
331 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_flush_context()
338 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_flush_context()
363 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_get_tpm_pt()
367 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_get_tpm_pt()
[all …]
H A Dtpm1-cmd.c325 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_startup()
329 tpm_buf_init(buf, TPM_BUFSIZE); in tpm1_startup()
458 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_pcr_extend()
462 tpm_buf_init(buf, TPM_BUFSIZE); in tpm1_pcr_extend()
475 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_getcap()
479 tpm_buf_init(buf, TPM_BUFSIZE); in tpm1_getcap()
525 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_get_random()
529 tpm_buf_init(buf, TPM_BUFSIZE); in tpm1_get_random()
571 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_pcr_read()
575 tpm_buf_init(buf, TPM_BUFSIZE); in tpm1_pcr_read()
[all …]
H A Dtpm2-sessions.c179 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_read_public()
183 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_read_public()
1020 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_start_auth_session()
1026 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_start_auth_session()
1285 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_create_primary()
1289 template = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_create_primary()
1293 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_create_primary()
1295 tpm_buf_init_sized(template, TPM_BUFSIZE); in tpm2_create_primary()
H A Dtpm2-space.c65 struct tpm_buf *tbuf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_load_context()
69 tpm_buf_init(tbuf, TPM_BUFSIZE); in tpm2_load_context()
114 struct tpm_buf *tbuf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_save_context()
118 tpm_buf_init(tbuf, TPM_BUFSIZE); in tpm2_save_context()
H A Dtpm-dev.h21 u8 data_buffer[TPM_BUFSIZE];
H A Dtpm-dev-common.c150 memset(priv->data_buffer, 0, TPM_BUFSIZE); in tpm_common_read()
176 if (size > TPM_BUFSIZE) in tpm_common_write()
H A Dtpm_vtpm_proxy.c45 u8 buffer[TPM_BUFSIZE]; /* request/response buffer */
402 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in vtpm_proxy_request_locality()
406 tpm_buf_init(buf, TPM_BUFSIZE); in vtpm_proxy_request_locality()
H A Dtpm_tis_i2c.c235 if (len > TPM_BUFSIZE - 1) in tpm_tis_i2c_write_bytes()
342 phy->io_buf = devm_kzalloc(&dev->dev, TPM_BUFSIZE, GFP_KERNEL); in tpm_tis_i2c_probe()
H A Dtpm-interface.c103 if (bufsiz > TPM_BUFSIZE) in tpm_try_transmit()
104 bufsiz = TPM_BUFSIZE; in tpm_try_transmit()
H A Dtpm-sysfs.c47 tpm_buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in pubek_show()
53 tpm_buf_init(tpm_buf, TPM_BUFSIZE); in pubek_show()
H A Dtpm-buf.c15 if (buf_size > TPM_BUFSIZE) { in __tpm_buf_size_invariant()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c259 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_seal_trusted()
266 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_seal_trusted()
269 sized = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_seal_trusted()
276 tpm_buf_init_sized(sized, TPM_BUFSIZE); in tpm2_seal_trusted()
435 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_load_cmd()
441 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_load_cmd()
499 buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_unseal_cmd()
505 tpm_buf_init(buf, TPM_BUFSIZE); in tpm2_unseal_cmd()
H A Dtrusted_tpm1.c631 struct tpm_buf *tb __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in key_seal()
635 tpm_buf_init(tb, TPM_BUFSIZE); in key_seal()
657 struct tpm_buf *tb __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in key_unseal()
661 tpm_buf_init(tb, TPM_BUFSIZE); in key_unseal()
/linux/include/linux/
H A Dtpm_command.h437 #define TPM_BUFSIZE 4096 macro