Lines Matching full:cap
85 cap_t cap; in pcrs_show() local
94 if (tpm1_getcap(chip, TPM_CAP_PROP_PCR, &cap, in pcrs_show()
96 sizeof(cap.num_pcrs))) { in pcrs_show()
101 num_pcrs = be32_to_cpu(cap.num_pcrs); in pcrs_show()
122 cap_t cap; in enabled_show() local
127 if (tpm1_getcap(chip, TPM_CAP_FLAG_PERM, &cap, in enabled_show()
129 sizeof(cap.perm_flags))) in enabled_show()
132 rc = sprintf(buf, "%d\n", !cap.perm_flags.disable); in enabled_show()
144 cap_t cap; in active_show() local
149 if (tpm1_getcap(chip, TPM_CAP_FLAG_PERM, &cap, in active_show()
151 sizeof(cap.perm_flags))) in active_show()
154 rc = sprintf(buf, "%d\n", !cap.perm_flags.deactivated); in active_show()
166 cap_t cap; in owned_show() local
171 if (tpm1_getcap(to_tpm_chip(dev), TPM_CAP_PROP_OWNER, &cap, in owned_show()
173 sizeof(cap.owned))) in owned_show()
176 rc = sprintf(buf, "%d\n", cap.owned); in owned_show()
188 cap_t cap; in temp_deactivated_show() local
193 if (tpm1_getcap(to_tpm_chip(dev), TPM_CAP_FLAG_VOL, &cap, in temp_deactivated_show()
195 sizeof(cap.stclear_flags))) in temp_deactivated_show()
198 rc = sprintf(buf, "%d\n", cap.stclear_flags.deactivated); in temp_deactivated_show()
212 cap_t cap; in caps_show() local
217 if (tpm1_getcap(chip, TPM_CAP_PROP_MANUFACTURER, &cap, in caps_show()
219 sizeof(cap.manufacturer_id))) in caps_show()
223 be32_to_cpu(cap.manufacturer_id)); in caps_show()
226 if (!tpm1_getcap(chip, TPM_CAP_VERSION_1_2, &cap, in caps_show()
228 sizeof(cap.version2))) { in caps_show()
229 version = &cap.version2.version; in caps_show()
234 if (tpm1_getcap(chip, TPM_CAP_VERSION_1_1, &cap, in caps_show()
236 sizeof(cap.version1))) { in caps_show()
240 version = &cap.version1; in caps_show()