/optee_os-3.20.0/core/drivers/crypto/caam/include/ |
A D | caam_utils_sgt.h | 65 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 D | caam_types.h | 18 paddr_t paddr; /* Physical address of the buffer */ member
|
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/ |
A D | caam_rsa.c | 221 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 D | caam_dsa.c | 566 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 D | caam_ecc.c | 271 xy.paddr = d.paddr + key_size / 8; in do_gen_keypair() 277 caam_desc_add_ptr(desc, d.paddr); in do_gen_keypair() 278 caam_desc_add_ptr(desc, xy.paddr); in do_gen_keypair() 413 caam_desc_add_ptr(desc, ecckey.d.paddr); in do_sign() 415 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign() 417 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in do_sign() 547 caam_desc_add_ptr(desc, ecckey.xy.paddr); in do_verify() 549 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify() 555 caam_desc_add_ptr(desc, tmp.paddr); in do_verify() 658 caam_desc_add_ptr(desc, ecckey.xy.paddr); in do_shared_secret() [all …]
|
A D | caam_prime_dsa.c | 102 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 D | caam_dh.c | 301 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 D | caam_prime_rsa.c | 357 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-3.20.0/core/drivers/crypto/caam/ |
A D | caam_desc.c | 76 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 D | caam_rng.c | 159 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-3.20.0/core/drivers/crypto/caam/utils/ |
A D | utils_sgt_v1.c | 21 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 D | utils_sgt_v2.c | 18 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 D | utils_sgt.c | 56 CAAM_SGT_ENTRY(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table() 61 CAAM_SGT_ENTRY_FINAL(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table() 120 sgt->paddr = virt_to_phys(sgt->sgt); in caam_sgt_derive() 122 sgt->paddr = sgt->buf->paddr + off; in caam_sgt_derive()
|
A D | utils_mem.c | 101 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()
|
A D | utils_dmaobj.c | 416 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 …]
|
/optee_os-3.20.0/core/arch/arm/plat-ls/ |
A D | main.c | 133 paddr_t paddr = 0; in get_gic_base_addr_from_dt() local 146 paddr = _fdt_reg_base_address(fdt, gic_offset); in get_gic_base_addr_from_dt() 147 if (paddr == DT_INFO_INVALID_REG) { in get_gic_base_addr_from_dt() 163 if (!core_mmu_add_mapping(MEM_AREA_IO_SEC, paddr, size)) { in get_gic_base_addr_from_dt() 168 *gic_addr = paddr; in get_gic_base_addr_from_dt()
|
/optee_os-3.20.0/core/arch/arm/plat-rzn1/ |
A D | sm_platform_handler.c | 20 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 D | rzn1_regauth.h | 11 uint32_t paddr; member
|
/optee_os-3.20.0/core/drivers/imx/dcp/ |
A D | dcp_utils.c | 24 buf->paddr = virt_to_phys(buf->data); in dcp_calloc_align_buf() 26 if (!buf->paddr) { in dcp_calloc_align_buf()
|
A D | dcp.c | 445 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() 769 io_write32(dcp_base + DCP_CONTEXT, (uint32_t)hw_context_buffer.paddr); in dcp_init()
|
/optee_os-3.20.0/core/drivers/crypto/caam/cipher/ |
A D | caam_cipher_xts.c | 159 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-3.20.0/core/mm/ |
A D | core_mmu.c | 58 paddr_t paddr; member 305 sec_sdp.paddr = tmp_addr; in dtb_get_sdp_region() 992 return place_tee_ram_at_top(paddr); in core_mmu_prefer_tee_ram_at_top() 1635 if ((vaddr | paddr) & (block_size - 1)) in can_map_at_level() 1659 paddr_t paddr = mm->pa; in core_mmu_map_region() local 1665 assert(!((vaddr | paddr) & SMALL_PAGE_MASK)); in core_mmu_map_region() 1705 paddr += block_size; in core_mmu_map_region() 1801 paddr_t paddr = pstart; in core_mmu_map_contiguous_pages() local 1809 if ((vaddr | paddr) & SMALL_PAGE_MASK) in core_mmu_map_contiguous_pages() 1841 core_mmu_set_entry(&tbl_info, idx, paddr, in core_mmu_map_contiguous_pages() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/caam/hash/ |
A D | caam_hash.c | 122 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-3.20.0/core/drivers/crypto/caam/blob/ |
A D | caam_blob.c | 45 caam_desc_add_ptr(desc, buf.paddr); in caam_blob_mkvb_init()
|
/optee_os-3.20.0/core/drivers/ |
A D | bcm_gpio.c | 174 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()
|