Home
last modified time | relevance | path

Searched refs:paddr (Results 1 – 25 of 38) sorted by relevance

12

/optee_os/core/drivers/crypto/caam/acipher/
A Dcaam_rsa.c221 outkey->dq.paddr = outkey->dp.paddr + size_p; in do_keypair_conv_f3()
232 outkey->qp.paddr = outkey->dq.paddr + size_q; in do_keypair_conv_f3()
286 outkey->q.paddr = outkey->p.paddr + size_p; in do_keypair_conv_f2()
553 genkey.q.paddr = genkey.p.paddr + genkey.p.length; in do_gen_keypair()
579 genkey.n.paddr = genkey.d.paddr + size_d; in do_gen_keypair()
594 genkey.dq.paddr = genkey.dp.paddr + genkey.dp.length; in do_gen_keypair()
598 genkey.qp.paddr = genkey.dq.paddr + genkey.dq.length; in do_gen_keypair()
813 maskedSeed.paddr = EM.paddr + sizeof(uint8_t); in do_oaep_decoding()
817 maskedDB.paddr = EM.paddr + sizeof(uint8_t) + rsa_data->digest_size; in do_oaep_decoding()
1082 maskedDB.paddr = EM.paddr + sizeof(uint8_t) + rsa_data->digest_size; in do_oaep_encoding()
[all …]
A Dcaam_dsa.c566 caam_desc_add_ptr(desc, dsakey.p.paddr); in do_sign()
568 caam_desc_add_ptr(desc, dsakey.q.paddr); in do_sign()
570 caam_desc_add_ptr(desc, dsakey.g.paddr); in do_sign()
572 caam_desc_add_ptr(desc, dsakey.x.paddr); in do_sign()
574 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign()
706 caam_desc_add_ptr(desc, dsakey.p.paddr); in do_verify()
708 caam_desc_add_ptr(desc, dsakey.q.paddr); in do_verify()
710 caam_desc_add_ptr(desc, dsakey.g.paddr); in do_verify()
712 caam_desc_add_ptr(desc, dsakey.y.paddr); in do_verify()
714 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify()
[all …]
A Dcaam_ecc.c268 xy.paddr = d.paddr + key_size / 8; in do_gen_keypair()
274 caam_desc_add_ptr(desc, d.paddr); in do_gen_keypair()
275 caam_desc_add_ptr(desc, xy.paddr); in do_gen_keypair()
410 caam_desc_add_ptr(desc, ecckey.d.paddr); in do_sign()
412 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign()
414 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in do_sign()
544 caam_desc_add_ptr(desc, ecckey.xy.paddr); in do_verify()
546 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify()
552 caam_desc_add_ptr(desc, tmp.paddr); in do_verify()
655 caam_desc_add_ptr(desc, ecckey.xy.paddr); in do_shared_secret()
[all …]
A Dcaam_prime_dsa.c102 caam_desc_add_ptr(desc, seed->paddr); in do_desc_prime_q()
147 caam_desc_add_ptr(desc, prime->q->paddr); in do_desc_prime_q()
244 caam_desc_add_ptr(desc, x->paddr); in do_desc_gen_x()
253 caam_desc_add_ptr(desc, mod_n->paddr); in do_desc_gen_x()
266 caam_desc_add_ptr(desc, seed->paddr); in do_desc_gen_x()
269 caam_desc_add_ptr(desc, seed->paddr); in do_desc_gen_x()
377 caam_desc_add_ptr(desc, mod_n->paddr); in do_desc_prime_p()
395 caam_desc_add_ptr(desc, x->paddr); in do_desc_prime_p()
407 caam_desc_add_ptr(desc, mod_n->paddr); in do_desc_prime_p()
414 caam_desc_add_ptr(desc, x->paddr); in do_desc_prime_p()
[all …]
A Dcaam_dh.c301 caam_desc_add_ptr(desc, caam_dh_key.p.paddr); in do_gen_keypair()
302 caam_desc_add_ptr(desc, dh_r.paddr); in do_gen_keypair()
303 caam_desc_add_ptr(desc, caam_dh_key.g.paddr); in do_gen_keypair()
304 caam_desc_add_ptr(desc, caam_dh_key.x.paddr); in do_gen_keypair()
305 caam_desc_add_ptr(desc, caam_dh_key.y.paddr); in do_gen_keypair()
437 caam_desc_add_ptr(desc, caam_dh_key.p.paddr); in do_shared_secret()
441 caam_desc_add_ptr(desc, caam_dh_key.y.paddr); in do_shared_secret()
443 caam_desc_add_ptr(desc, caam_dh_key.x.paddr); in do_shared_secret()
445 caam_desc_add_ptr(desc, secret.sgtbuf.paddr); in do_shared_secret()
A Dcaam_prime_rsa.c357 prime->paddr = virt_to_phys(prime->data); in search_smallprime()
406 if (data->era >= 8 && small_prime->paddr) { in do_desc_setup()
417 caam_desc_add_ptr(desc, small_prime->paddr); in do_desc_setup()
470 if (data->era < 8 && small_prime->paddr) { in do_desc_prime()
477 caam_desc_add_ptr(desc, small_prime->paddr); in do_desc_prime()
550 caam_desc_add_ptr(desc, data->e->paddr); in do_desc_prime()
567 if (small_prime->paddr) { in do_desc_prime()
604 caam_desc_add_ptr(desc, data->q->paddr); in do_desc_prime()
606 caam_desc_add_ptr(desc, data->p->paddr); in do_desc_prime()
639 caam_desc_add_ptr(desc, p->paddr); in do_checks_primes()
[all …]
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_utils_sgt.h65 paddr_t paddr; /* Physical address to use in CAAM descriptor */ member
102 void caam_sgt_set_entry(union caamsgt *sgt, vaddr_t paddr, size_t len,
105 #define CAAM_SGT_ENTRY(sgt, paddr, len) \ argument
106 caam_sgt_set_entry(sgt, paddr, len, 0, false)
107 #define CAAM_SGT_ENTRY_FINAL(sgt, paddr, len) \ argument
108 caam_sgt_set_entry(sgt, paddr, len, 0, true)
A Dcaam_types.h18 paddr_t paddr; /* Physical address of the buffer */ member
/optee_os/core/drivers/crypto/caam/
A Dcaam_desc.c76 void caam_desc_push(struct caam_inring_entry *in_entry, paddr_t paddr) in caam_desc_push() argument
79 put_be64(&in_entry->desc, paddr); in caam_desc_push()
81 put_le64(&in_entry->desc, paddr); in caam_desc_push()
97 void caam_desc_push(struct caam_inring_entry *in_entry, paddr_t paddr) in caam_desc_push() argument
99 caam_write_val32(&in_entry->desc, paddr); in caam_desc_push()
160 caam_desc_add_ptr(desc, data->sgtbuf.paddr); in caam_desc_add_dmaobj()
A Dcaam_rng.c159 paddr_t paddr = 0; in prepare_gen_desc() local
163 paddr = virt_to_phys(rng->data); in prepare_gen_desc()
164 if (!paddr) in prepare_gen_desc()
173 caam_desc_add_ptr(desc, paddr); in prepare_gen_desc()
/optee_os/core/arch/arm/plat-ls/
A Dmain.c130 paddr_t paddr = 0; in get_gic_base_addr_from_dt() local
143 paddr = _fdt_reg_base_address(fdt, gic_offset); in get_gic_base_addr_from_dt()
144 if (paddr == DT_INFO_INVALID_REG) { in get_gic_base_addr_from_dt()
160 if (!core_mmu_add_mapping(MEM_AREA_IO_SEC, paddr, size)) { in get_gic_base_addr_from_dt()
165 *gic_addr = paddr; in get_gic_base_addr_from_dt()
/optee_os/core/drivers/crypto/caam/utils/
A Dutils_sgt_v1.c21 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
42 void caam_sgt_set_entry(union caamsgt *sgt, paddr_t paddr, size_t len, in caam_sgt_set_entry() argument
47 caam_write_val32(&sgt->v1.ptr_ls, paddr); in caam_sgt_set_entry()
49 caam_write_val32(&sgt->v1.ptr_ms, paddr >> 32); in caam_sgt_set_entry()
A Dutils_sgt.c46 CAAM_SGT_ENTRY(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table()
51 CAAM_SGT_ENTRY_FINAL(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table()
111 sgt->paddr = virt_to_phys(sgt->sgt); in caam_sgt_derive()
113 sgt->paddr = sgt->buf->paddr + off; in caam_sgt_derive()
A Dutils_sgt_v2.c18 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
51 void caam_sgt_set_entry(union caamsgt *sgt, paddr_t paddr, size_t len, in caam_sgt_set_entry() argument
57 caam_write_val64(&sgt->v2.w1, paddr); in caam_sgt_set_entry()
A Dutils_dmaobj.c416 newbuf.paddr = entry->origbuf.paddr; in check_buffer_alignment()
433 entry->origbuf.paddr += newbuf.length; in check_buffer_alignment()
474 newbuf.paddr = entry->origbuf.paddr + newbuf.length; in check_buffer_alignment()
545 pabufs[idx].paddr, pabufs[idx].length); in check_buffer_boundary()
608 sgtbuf->paddr = dmabuf->buf.paddr + dmabuf->buf.length; in entry_sgtbuf_dmabuf()
643 sgtbuf->paddr += off; in entry_sgtbuf()
664 obj->orig.paddr = virt_to_phys((void *)data); in caam_dmaobj_init_input()
665 if (!obj->orig.paddr) { in caam_dmaobj_init_input()
730 if (!obj->orig.paddr) { in caam_dmaobj_init_output()
1045 newbuf.paddr = block->buf.paddr; in caam_dmaobj_add_first_block()
[all …]
A Dutils_mem.c101 buf->paddr = virt_to_phys(buf->data); in mem_alloc_buf()
102 if (!buf->paddr) { in mem_alloc_buf()
173 buf->paddr = 0; in caam_free_buf()
280 pabufs[nb_pa_area].paddr = pa; in caam_mem_get_pa_area()
310 pabufs[nb_pa_area].paddr = next_pa; in caam_mem_get_pa_area()
/optee_os/core/arch/arm/plat-rzn1/
A Dsm_platform_handler.c20 static const struct regauth_t *get_regauth(unsigned long paddr) in get_regauth() argument
26 if (core_is_buffer_inside(paddr, sizeof(uint32_t), in get_regauth()
27 regauth[idx].paddr, in get_regauth()
A Drzn1_regauth.h11 uint32_t paddr; member
/optee_os/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_xts.c159 srcbuf.paddr = psrc; in caam_cipher_update_xts()
163 dstbuf.paddr = pdst; in caam_cipher_update_xts()
179 srcbuf.paddr += ctx->alg->size_block; in caam_cipher_update_xts()
182 dstbuf.paddr += ctx->alg->size_block; in caam_cipher_update_xts()
/optee_os/core/drivers/imx/dcp/
A Ddcp_utils.c58 buf->paddr = virt_to_phys(buf->data); in dcp_calloc_align_buf()
60 if (!buf->paddr) { in dcp_calloc_align_buf()
A Ddcp.c445 desc->src_buffer = input.paddr; in dcp_cipher_do_update()
446 desc->dest_buffer = output.paddr; in dcp_cipher_do_update()
447 desc->payload = data->payload.paddr; in dcp_cipher_do_update()
561 desc->src_buffer = input.paddr; in dcp_sha_do_update()
624 desc->src_buffer = hashdata->ctx.paddr; in dcp_sha_do_final()
626 desc->payload = payload.paddr; in dcp_sha_do_final()
754 io_write32(dcp_base + DCP_CONTEXT, (uint32_t)hw_context_buffer.paddr); in dcp_init()
/optee_os/core/drivers/crypto/caam/hash/
A Dcaam_hash.c122 caam_desc_add_ptr(desc, key->paddr); in do_desc_load_key()
411 caam_desc_add_ptr(desc, ctx->ctx.paddr); in do_update_hash()
431 caam_desc_add_ptr(desc, ctx->blockbuf.buf.paddr); in do_update_hash()
445 caam_desc_add_ptr(desc, ctx->ctx.paddr); in do_update_hash()
618 caam_desc_add_ptr(desc, ctx->ctx.paddr); in caam_hash_hmac_final()
637 caam_desc_add_ptr(desc, ctx->blockbuf.buf.paddr); in caam_hash_hmac_final()
/optee_os/core/arch/arm/mm/
A Dcore_mmu.c63 paddr_t paddr; member
66 #define MEMACCESS_AREA(a, s) { .paddr = a, .size = s }
1634 if ((vaddr | paddr) & (block_size - 1)) in can_map_at_level()
1658 paddr_t paddr = mm->pa; in core_mmu_map_region() local
1664 assert(!((vaddr | paddr) & SMALL_PAGE_MASK)); in core_mmu_map_region()
1682 if (!can_map_at_level(paddr, vaddr, size_left, in core_mmu_map_region()
1701 paddr += block_size; in core_mmu_map_region()
1797 paddr_t paddr = pstart; in core_mmu_map_contiguous_pages() local
1805 if ((vaddr | paddr) & SMALL_PAGE_MASK) in core_mmu_map_contiguous_pages()
1837 core_mmu_set_entry(&tbl_info, idx, paddr, in core_mmu_map_contiguous_pages()
[all …]
/optee_os/core/drivers/
A Dbcm_gpio.c174 static void iproc_gpio_init(struct bcm_gpio_chip *gc, unsigned int paddr, in iproc_gpio_init() argument
179 gc->base = core_mmu_get_va(paddr, MEM_AREA_IO_SEC, 1); in iproc_gpio_init()
/optee_os/core/drivers/crypto/caam/blob/
A Dcaam_blob.c45 caam_desc_add_ptr(desc, buf.paddr); in caam_blob_mkvb_init()

Completed in 33 milliseconds

12