Lines Matching refs:page_idx

180 					 unsigned int page_idx, void *va)  in rwp_paged_iv_load_page()  argument
183 uint8_t *src = idx_to_store(rwp->idx) + page_idx * SMALL_PAGE_SIZE; in rwp_paged_iv_load_page()
184 struct rwp_state_padded *st = idx_to_state_padded(rwp->idx + page_idx); in rwp_paged_iv_load_page()
187 assert(page_idx < fobj->num_pages); in rwp_paged_iv_load_page()
194 unsigned int page_idx, const void *va) in rwp_paged_iv_save_page() argument
197 uint8_t *dst = idx_to_store(rwp->idx) + page_idx * SMALL_PAGE_SIZE; in rwp_paged_iv_save_page()
198 struct rwp_state_padded *st = idx_to_state_padded(rwp->idx + page_idx); in rwp_paged_iv_save_page()
200 assert(page_idx < fobj->num_pages); in rwp_paged_iv_save_page()
229 unsigned int page_idx) in rwp_paged_iv_get_iv_vaddr() argument
232 struct rwp_state_padded *st = idx_to_state_padded(rwp->idx + page_idx); in rwp_paged_iv_get_iv_vaddr()
234 assert(page_idx < fobj->num_pages); in rwp_paged_iv_get_iv_vaddr()
292 unsigned int page_idx, void *va) in rwp_unpaged_iv_load_page() argument
295 uint8_t *src = rwp->store + page_idx * SMALL_PAGE_SIZE; in rwp_unpaged_iv_load_page()
298 assert(page_idx < fobj->num_pages); in rwp_unpaged_iv_load_page()
300 return rwp_load_page(va, rwp->state + page_idx, src); in rwp_unpaged_iv_load_page()
305 unsigned int page_idx, in rwp_unpaged_iv_save_page() argument
309 uint8_t *dst = rwp->store + page_idx * SMALL_PAGE_SIZE; in rwp_unpaged_iv_save_page()
311 assert(page_idx < fobj->num_pages); in rwp_unpaged_iv_save_page()
322 return rwp_save_page(va, rwp->state + page_idx, dst); in rwp_unpaged_iv_save_page()
466 unsigned int page_idx, void *va) in rop_load_page_helper() argument
468 const uint8_t *hash = rop->hashes + page_idx * TEE_SHA256_HASH_SIZE; in rop_load_page_helper()
469 const uint8_t *src = rop->store + page_idx * SMALL_PAGE_SIZE; in rop_load_page_helper()
472 assert(page_idx < rop->fobj.num_pages); in rop_load_page_helper()
478 static TEE_Result rop_load_page(struct fobj *fobj, unsigned int page_idx, in rop_load_page() argument
481 return rop_load_page_helper(to_rop(fobj), page_idx, va); in rop_load_page()
486 unsigned int page_idx __unused, in rop_save_page()
639 static TEE_Result rrp_load_page(struct fobj *fobj, unsigned int page_idx, in rrp_load_page() argument
648 res = rop_load_page_helper(&rrp->rop, page_idx, va); in rrp_load_page()
653 for (n = page_idx + 1; n < fobj->num_pages; n++) { in rrp_load_page()
660 for (n = rrp->page_reloc_idx[page_idx]; n < end_rel; n++) { in rrp_load_page()
706 unsigned int page_idx __maybe_unused, in lop_load_page()
711 assert(page_idx < fobj->num_pages); in lop_load_page()
720 unsigned int page_idx __unused, in lop_save_page()
797 static paddr_t sec_mem_get_pa(struct fobj *fobj, unsigned int page_idx) in sec_mem_get_pa() argument
802 assert(page_idx < fobj->num_pages); in sec_mem_get_pa()
804 return tee_mm_get_smem(f->mm) + page_idx * SMALL_PAGE_SIZE; in sec_mem_get_pa()