Home
last modified time | relevance | path

Searched refs:data_length (Results 1 – 8 of 8) sorted by relevance

/xen/stubdom/vtpm/
A Dvtpmblk.c66 static int write_vtpmblk_raw(uint8_t *data, size_t data_length, int slot) in write_vtpmblk_raw() argument
72 if (data_length > slot_size - 4) { in write_vtpmblk_raw()
77 lenbuf = cpu_to_be32((uint32_t)data_length); in write_vtpmblk_raw()
84 if((rc = write(blkfront_fd, data, data_length)) != data_length) { in write_vtpmblk_raw()
89 info("Wrote %u bytes to NVM persistent storage", data_length); in write_vtpmblk_raw()
94 static int read_vtpmblk_raw(uint8_t **data, size_t *data_length, int slot) in read_vtpmblk_raw() argument
104 *data_length = (size_t) cpu_to_be32(lenbuf); in read_vtpmblk_raw()
105 if(*data_length == 0) { in read_vtpmblk_raw()
109 if(*data_length > slot_size - 4) { in read_vtpmblk_raw()
114 *data = tpm_malloc(*data_length); in read_vtpmblk_raw()
[all …]
A Dvtpm_cmd.c137 TPM_RESULT VTPM_LoadHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t** data, size_t* data_length) in VTPM_LoadHashKey() argument
167 *data_length = size - VTPM_COMMAND_HEADER_SIZE; in VTPM_LoadHashKey()
170 *data = malloc(*data_length); in VTPM_LoadHashKey()
171 memcpy(*data, bptr, *data_length); in VTPM_LoadHashKey()
181 TPM_RESULT VTPM_SaveHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t* data, size_t data_length) in VTPM_SaveHashKey() argument
194 len = size = VTPM_COMMAND_HEADER_SIZE + data_length; in VTPM_SaveHashKey()
197 memcpy(bptr, data, data_length); in VTPM_SaveHashKey()
198 bptr += data_length; in VTPM_SaveHashKey()
A Dvtpmblk.h27 int write_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t *data, size_t data_length);
29 int read_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t **data, size_t *data_length);
A Dvtpm_cmd.h25 TPM_RESULT VTPM_LoadHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t** data, size_t* data_length);
27 TPM_RESULT VTPM_SaveHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t* data, size_t data_length);
A Dvtpm.c64 int vtpm_read_from_file(uint8_t **data, size_t *data_length) { in vtpm_read_from_file() argument
65 return read_vtpmblk(tpmfront_dev, data, data_length); in vtpm_read_from_file()
68 int vtpm_write_to_file(uint8_t *data, size_t data_length) { in vtpm_write_to_file() argument
69 return write_vtpmblk(tpmfront_dev, data, data_length); in vtpm_write_to_file()
/xen/stubdom/
A Dvtpm_extern.patch42 -int (*tpm_write_to_storage)(uint8_t *data, size_t data_length);
43 -int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
44 +extern int (*tpm_write_to_storage)(uint8_t *data, size_t data_length);
45 +extern int (*tpm_read_from_storage)(uint8_t **data, size_t *data_length);
/xen/xen/include/acpi/
A Dactbl1.h131 u32 data_length; /* Length of generic error data */ member
581 u32 data_length; member
A Dactbl2.h165 u8 data_length; member
188 u8 data_length; member

Completed in 16 milliseconds