| /linux/drivers/char/tpm/ |
| H A D | tpm2-cmd.c | 132 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 D | tpm1-cmd.c | 325 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 D | tpm2-sessions.c | 179 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 D | tpm2-space.c | 65 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 D | tpm-dev.h | 21 u8 data_buffer[TPM_BUFSIZE];
|
| H A D | tpm-dev-common.c | 150 memset(priv->data_buffer, 0, TPM_BUFSIZE); in tpm_common_read() 176 if (size > TPM_BUFSIZE) in tpm_common_write()
|
| H A D | tpm_vtpm_proxy.c | 45 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 D | tpm_tis_i2c.c | 235 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 D | tpm-interface.c | 103 if (bufsiz > TPM_BUFSIZE) in tpm_try_transmit() 104 bufsiz = TPM_BUFSIZE; in tpm_try_transmit()
|
| H A D | tpm-sysfs.c | 47 tpm_buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in pubek_show() 53 tpm_buf_init(tpm_buf, TPM_BUFSIZE); in pubek_show()
|
| H A D | tpm-buf.c | 15 if (buf_size > TPM_BUFSIZE) { in __tpm_buf_size_invariant()
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm2.c | 259 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 D | trusted_tpm1.c | 631 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 D | tpm_command.h | 437 #define TPM_BUFSIZE 4096 macro
|