Lines Matching +full:secure +full:- +full:reg +full:- +full:access
7 * SPDX-License-Identifier: GPL-2.0+
19 * Secure memory run command
21 * @param sec_mem_cmd Secure memory command register
22 * @return cmd_status Secure memory command status register
29 uint32_t sm_vid = SM_VERSION(sec_in32(&sec->smvid)); in secmem_set_cmd()
43 * Allocates a partition from secure memory, with the id
44 * equal to partition_num. This will de-allocate the page
46 * full access permissions. The permissions are set before,
47 * running a job descriptor. A memory page of secure RAM
59 uint32_t sm_vid = SM_VERSION(sec_in32(&sec->smvid)); in caam_page_alloc()
63 * De-Allocate partition_num if already allocated to ARM core in caam_page_alloc()
69 printf("Error: De-allocation status 0x%X\n", temp_reg); in caam_page_alloc()
74 /* set the access rights to allow full access */ in caam_page_alloc()
79 /* Now need to allocate partition_num of secure RAM. */ in caam_page_alloc()
80 /* De-Allocate page_num by starting with a page inquiry command */ in caam_page_alloc()
83 /* if the page is owned, de-allocate it */ in caam_page_alloc()
117 uint32_t sm_vid = SM_VERSION(sec_in32(&sec->smvid)); in inline_cnstr_jobdesc_blob_dek()
134 /* allocating secure memory */ in inline_cnstr_jobdesc_blob_dek()
139 /* Write DEK to secure memory */ in inline_cnstr_jobdesc_blob_dek()
143 ~(ARCH_DMA_MINALIGN - 1); in inline_cnstr_jobdesc_blob_dek()
147 /* Now configure the access rights of the partition */ in inline_cnstr_jobdesc_blob_dek()
266 /* INIT RNG in non-test mode */ in inline_cnstr_jobdesc_rng_instantiation()
275 * load 1 to clear written reg: in inline_cnstr_jobdesc_rng_instantiation()
280 /* generate secure keys (non-test) */ in inline_cnstr_jobdesc_rng_instantiation()
292 dma_addr_e = virt_to_phys((void *)pkin->e); in inline_cnstr_jobdesc_pkha_rsaexp()
293 dma_addr_a = virt_to_phys((void *)pkin->a); in inline_cnstr_jobdesc_pkha_rsaexp()
294 dma_addr_n = virt_to_phys((void *)pkin->n); in inline_cnstr_jobdesc_pkha_rsaexp()
298 append_key(desc, dma_addr_e, pkin->e_siz, KEY_DEST_PKHA_E | CLASS_1); in inline_cnstr_jobdesc_pkha_rsaexp()
301 pkin->a_siz, LDST_CLASS_1_CCB | FIFOLD_TYPE_PK_A); in inline_cnstr_jobdesc_pkha_rsaexp()
304 pkin->n_siz, LDST_CLASS_1_CCB | FIFOLD_TYPE_PK_N); in inline_cnstr_jobdesc_pkha_rsaexp()