Lines Matching refs:temp_reg
25 uint32_t temp_reg; in secmem_set_cmd() local
34 temp_reg = sec_in32(CAAM_SMCSJR(sm_vid, jr_id)); in secmem_set_cmd()
35 } while (temp_reg & CMD_COMPLETE); in secmem_set_cmd()
37 return temp_reg; in secmem_set_cmd()
55 uint32_t temp_reg; in caam_page_alloc() local
65 temp_reg = secmem_set_cmd(PARTITION(partition_num) | in caam_page_alloc()
67 if (temp_reg & SMCSJR_AERR) { in caam_page_alloc()
68 printf("Error: De-allocation status 0x%X\n", temp_reg); in caam_page_alloc()
80 temp_reg = secmem_set_cmd(PAGE(page_num) | CMD_INQUIRY); in caam_page_alloc()
83 if ((temp_reg & SMCSJR_PO) == PAGE_OWNED) { in caam_page_alloc()
84 temp_reg = secmem_set_cmd(PAGE(page_num) | CMD_PAGE_DEALLOC); in caam_page_alloc()
85 if (temp_reg & SMCSJR_AERR) { in caam_page_alloc()
86 printf("Error: Allocation status 0x%X\n", temp_reg); in caam_page_alloc()
92 temp_reg = secmem_set_cmd(PAGE(page_num) | PARTITION(partition_num) in caam_page_alloc()
94 if (temp_reg & SMCSJR_AERR) { in caam_page_alloc()
95 printf("Error: Allocation status 0x%X\n", temp_reg); in caam_page_alloc()
99 temp_reg = secmem_set_cmd(PAGE(page_num) | CMD_INQUIRY); in caam_page_alloc()
102 if ((temp_reg & SMCSJR_PO) != PAGE_OWNED) { in caam_page_alloc()
104 temp_reg, page_num, partition_num); in caam_page_alloc()