Lines Matching refs:perm
237 uint32_t perm = TPM_NV_PER_WRITE_STCLEAR | TPM_NV_PER_PPWRITE; in initialise_spaces() local
241 tpm_nv_define_space(dev, INDEX0, perm, 4); in initialise_spaces()
243 tpm_nv_define_space(dev, INDEX1, perm, 4); in initialise_spaces()
245 tpm_nv_define_space(dev, INDEX2, perm, 4); in initialise_spaces()
247 tpm_nv_define_space(dev, INDEX3, perm, 4); in initialise_spaces()
249 perm = TPM_NV_PER_READ_STCLEAR | TPM_NV_PER_WRITE_STCLEAR | in initialise_spaces()
251 tpm_nv_define_space(dev, INDEX_INITIALISED, perm, 1); in initialise_spaces()
310 uint32_t perm; in test_redefine_unowned() local
326 perm = TPM_NV_PER_PPWRITE | TPM_NV_PER_GLOBALLOCK; in test_redefine_unowned()
327 TPM_CHECK(tpm_nv_define_space(dev, INDEX0, perm, 2 * sizeof(uint32_t))); in test_redefine_unowned()
328 TPM_CHECK(tpm_nv_define_space(dev, INDEX0, perm, sizeof(uint32_t))); in test_redefine_unowned()
329 perm = TPM_NV_PER_PPWRITE; in test_redefine_unowned()
330 TPM_CHECK(tpm_nv_define_space(dev, INDEX1, perm, 2 * sizeof(uint32_t))); in test_redefine_unowned()
331 TPM_CHECK(tpm_nv_define_space(dev, INDEX1, perm, sizeof(uint32_t))); in test_redefine_unowned()
337 result = tpm_nv_define_space(dev, INDEX0, perm, sizeof(uint32_t)); in test_redefine_unowned()
341 TPM_CHECK(tpm_nv_define_space(dev, INDEX1, perm, 2 * sizeof(uint32_t))); in test_redefine_unowned()
342 TPM_CHECK(tpm_nv_define_space(dev, INDEX1, perm, sizeof(uint32_t))); in test_redefine_unowned()
348 result = tpm_nv_define_space(dev, INDEX0, perm, sizeof(uint32_t)); in test_redefine_unowned()
350 result = tpm_nv_define_space(dev, INDEX1, perm, sizeof(uint32_t)); in test_redefine_unowned()
362 uint32_t perm; in test_space_perm() local
369 TPM_CHECK(tpm_get_permissions(dev, INDEX0, &perm)); in test_space_perm()
370 assert((perm & PERMPPGL) == PERMPPGL); in test_space_perm()
371 TPM_CHECK(tpm_get_permissions(dev, INDEX1, &perm)); in test_space_perm()
372 assert((perm & PERMPP) == PERMPP); in test_space_perm()