Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/char/tpm/
Dtpm-interface.c1287 struct tpm_cmd_t tpm_cmd; in tpm_get_random() local
1306 tpm_cmd.header.in = tpm_getrandom_header; in tpm_get_random()
1307 tpm_cmd.params.getrandom_in.num_bytes = cpu_to_be32(num_bytes); in tpm_get_random()
1309 err = tpm_transmit_cmd(chip, NULL, &tpm_cmd, in tpm_get_random()
1317 recd = be32_to_cpu(tpm_cmd.params.getrandom_out.rng_data_len); in tpm_get_random()
1323 rlength = be32_to_cpu(tpm_cmd.header.out.length); in tpm_get_random()
1329 memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd); in tpm_get_random()