Lines Matching +full:secure +full:- +full:reg +full:- +full:access

1 // SPDX-License-Identifier: GPL-2.0+
18 * Secure memory run command
20 * @param sec_mem_cmd Secure memory command register
21 * @return cmd_status Secure memory command status register
28 uint32_t sm_vid = SM_VERSION(sec_in32(&sec->smvid)); in secmem_set_cmd()
42 * Allocates a partition from secure memory, with the id
43 * equal to partition_num. This will de-allocate the page
45 * full access permissions. The permissions are set before,
46 * running a job descriptor. A memory page of secure RAM
58 uint32_t sm_vid = SM_VERSION(sec_in32(&sec->smvid)); in caam_page_alloc()
62 * De-Allocate partition_num if already allocated to ARM core in caam_page_alloc()
68 printf("Error: De-allocation status 0x%X\n", temp_reg); in caam_page_alloc()
73 /* set the access rights to allow full access */ in caam_page_alloc()
78 /* Now need to allocate partition_num of secure RAM. */ in caam_page_alloc()
79 /* De-Allocate page_num by starting with a page inquiry command */ in caam_page_alloc()
82 /* if the page is owned, de-allocate it */ in caam_page_alloc()
116 uint32_t sm_vid = SM_VERSION(sec_in32(&sec->smvid)); in inline_cnstr_jobdesc_blob_dek()
133 /* allocating secure memory */ in inline_cnstr_jobdesc_blob_dek()
138 /* Write DEK to secure memory */ in inline_cnstr_jobdesc_blob_dek()
142 ~(ARCH_DMA_MINALIGN - 1); in inline_cnstr_jobdesc_blob_dek()
146 /* Now configure the access rights of the partition */ in inline_cnstr_jobdesc_blob_dek()
265 /* INIT RNG in non-test mode */ in inline_cnstr_jobdesc_rng_instantiation()
269 /* For SH0, Secure Keys must be generated as well */ in inline_cnstr_jobdesc_rng_instantiation()
276 * load 1 to clear written reg: in inline_cnstr_jobdesc_rng_instantiation()
281 /* generate secure keys (non-test) */ in inline_cnstr_jobdesc_rng_instantiation()
294 dma_addr_e = virt_to_phys((void *)pkin->e); in inline_cnstr_jobdesc_pkha_rsaexp()
295 dma_addr_a = virt_to_phys((void *)pkin->a); in inline_cnstr_jobdesc_pkha_rsaexp()
296 dma_addr_n = virt_to_phys((void *)pkin->n); in inline_cnstr_jobdesc_pkha_rsaexp()
300 append_key(desc, dma_addr_e, pkin->e_siz, KEY_DEST_PKHA_E | CLASS_1); in inline_cnstr_jobdesc_pkha_rsaexp()
303 pkin->a_siz, LDST_CLASS_1_CCB | FIFOLD_TYPE_PK_A); in inline_cnstr_jobdesc_pkha_rsaexp()
306 pkin->n_siz, LDST_CLASS_1_CCB | FIFOLD_TYPE_PK_N); in inline_cnstr_jobdesc_pkha_rsaexp()