Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/char/tpm/
Dtpm2-cmd.c922 u32 nr_commands; in tpm2_get_cc_attrs_tbl() local
928 rc = tpm2_get_tpm_pt(chip, TPM_PT_TOTAL_COMMANDS, &nr_commands, NULL); in tpm2_get_cc_attrs_tbl()
932 if (nr_commands > 0xFFFFF) { in tpm2_get_cc_attrs_tbl()
937 chip->cc_attrs_tbl = devm_kcalloc(&chip->dev, 4, nr_commands, in tpm2_get_cc_attrs_tbl()
946 tpm_buf_append_u32(&buf, nr_commands); in tpm2_get_cc_attrs_tbl()
949 9 + 4 * nr_commands, 0, NULL); in tpm2_get_cc_attrs_tbl()
955 if (nr_commands != in tpm2_get_cc_attrs_tbl()
961 chip->nr_commands = nr_commands; in tpm2_get_cc_attrs_tbl()
964 for (i = 0; i < nr_commands; i++, attrs++) { in tpm2_get_cc_attrs_tbl()
1028 for (i = 0; i < chip->nr_commands; i++) in tpm2_find_cc()
Dtpm.h258 u32 nr_commands; member
Dtpm-interface.c347 if (chip->flags & TPM_CHIP_FLAG_TPM2 && chip->nr_commands) { in tpm_validate_command()