Searched refs:data_length (Results 1 – 8 of 8) sorted by relevance
/xen/stubdom/vtpm/ |
A D | vtpmblk.c | 66 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 D | vtpm_cmd.c | 137 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 D | vtpmblk.h | 27 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 D | vtpm_cmd.h | 25 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 D | vtpm.c | 64 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 D | vtpm_extern.patch | 42 -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 D | actbl1.h | 131 u32 data_length; /* Length of generic error data */ member 581 u32 data_length; member
|
A D | actbl2.h | 165 u8 data_length; member 188 u8 data_length; member
|
Completed in 16 milliseconds