Lines Matching refs:cap
91 cap_t cap; in pcrs_show() local
98 rc = tpm_getcap(chip, TPM_CAP_PROP_PCR, &cap, in pcrs_show()
103 num_pcrs = be32_to_cpu(cap.num_pcrs); in pcrs_show()
120 cap_t cap; in enabled_show() local
123 rc = tpm_getcap(to_tpm_chip(dev), TPM_CAP_FLAG_PERM, &cap, in enabled_show()
128 rc = sprintf(buf, "%d\n", !cap.perm_flags.disable); in enabled_show()
136 cap_t cap; in active_show() local
139 rc = tpm_getcap(to_tpm_chip(dev), TPM_CAP_FLAG_PERM, &cap, in active_show()
144 rc = sprintf(buf, "%d\n", !cap.perm_flags.deactivated); in active_show()
152 cap_t cap; in owned_show() local
155 rc = tpm_getcap(to_tpm_chip(dev), TPM_CAP_PROP_OWNER, &cap, in owned_show()
160 rc = sprintf(buf, "%d\n", cap.owned); in owned_show()
168 cap_t cap; in temp_deactivated_show() local
171 rc = tpm_getcap(to_tpm_chip(dev), TPM_CAP_FLAG_VOL, &cap, in temp_deactivated_show()
176 rc = sprintf(buf, "%d\n", cap.stclear_flags.deactivated); in temp_deactivated_show()
185 cap_t cap; in caps_show() local
189 rc = tpm_getcap(chip, TPM_CAP_PROP_MANUFACTURER, &cap, in caps_show()
194 be32_to_cpu(cap.manufacturer_id)); in caps_show()
197 rc = tpm_getcap(chip, CAP_VERSION_1_2, &cap, in caps_show()
202 cap.tpm_version_1_2.Major, in caps_show()
203 cap.tpm_version_1_2.Minor, in caps_show()
204 cap.tpm_version_1_2.revMajor, in caps_show()
205 cap.tpm_version_1_2.revMinor); in caps_show()
208 rc = tpm_getcap(chip, CAP_VERSION_1_1, &cap, in caps_show()
214 cap.tpm_version.Major, in caps_show()
215 cap.tpm_version.Minor, in caps_show()
216 cap.tpm_version.revMajor, in caps_show()
217 cap.tpm_version.revMinor); in caps_show()