Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 115) sorted by relevance

12345

/optee_os/core/include/mm/
A Dmobj.h21 const struct mobj_ops *ops; member
58 if (mobj && mobj->ops && mobj->ops->get_va) in mobj_get_va()
66 if (mobj && mobj->ops && mobj->ops->get_pa) in mobj_get_pa()
73 if (mobj && mobj->ops && mobj->ops->get_phys_offs) in mobj_get_phys_offs()
80 if (mobj && mobj->ops && mobj->ops->get_cattr) in mobj_get_cattr()
87 if (mobj && mobj->ops && mobj->ops->matches) in mobj_matches()
104 if (mobj && mobj->ops) { in mobj_inc_map()
105 if (mobj->ops->inc_map) in mobj_inc_map()
158 mobj->ops->free(mobj); in mobj_put()
180 if (mobj && mobj->ops && mobj->ops->get_cookie) in mobj_get_cookie()
[all …]
A Dfobj.h23 const struct fobj_ops *ops; member
123 return fobj->ops->load_page(fobj, page_idx, va); in fobj_load_page()
140 return fobj->ops->save_page(fobj, page_idx, va); in fobj_save_page()
148 if (fobj && fobj->ops->get_iv_vaddr) in fobj_get_iv_vaddr()
149 return fobj->ops->get_iv_vaddr(fobj, page_idx); in fobj_get_iv_vaddr()
203 fobj->ops->free(fobj); in fobj_put()
/optee_os/core/drivers/clk/
A Dclk.c32 clk->ops = ops; in clk_alloc()
45 if (!clk->ops) in clk_check()
48 if (clk->ops->set_parent && !clk->ops->get_parent) in clk_check()
64 if (clk->ops->get_rate) in clk_compute_rate_no_lock()
89 pidx = clk->ops->get_parent(clk); in clk_init_parent()
126 if (clk->ops->disable) in clk_disable_no_lock()
127 clk->ops->disable(clk); in clk_disable_no_lock()
149 if (clk->ops->enable) { in clk_enable_no_lock()
150 res = clk->ops->enable(clk); in clk_enable_no_lock()
212 if (!clk->ops->set_rate) in clk_set_rate()
[all …]
/optee_os/core/drivers/crypto/crypto_api/
A Ddrvcrypt.c13 TEE_Result drvcrypt_register(enum drvcrypt_algo_id algo_id, void *ops) in drvcrypt_register() argument
17 ops); in drvcrypt_register()
18 crypt_algo[algo_id] = ops; in drvcrypt_register()
22 CRYPTO_TRACE("Fail to register module id %d with 0x%p", algo_id, ops); in drvcrypt_register()
26 void drvcrypt_register_change(enum drvcrypt_algo_id algo_id, void *ops) in drvcrypt_register_change() argument
28 CRYPTO_TRACE("Change registered module id %d with 0x%p", algo_id, ops); in drvcrypt_register_change()
29 crypt_algo[algo_id] = ops; in drvcrypt_register_change()
/optee_os/core/include/drivers/
A Drstctrl.h43 const struct rstctrl_ops *ops; member
86 return rstctrl->ops->assert_level(rstctrl, to_us); in rstctrl_assert_to()
97 return rstctrl->ops->deassert_level(rstctrl, to_us); in rstctrl_deassert_to()
113 if (rstctrl->ops->get_name) in rstctrl_name()
114 return rstctrl->ops->get_name(rstctrl); in rstctrl_name()
139 static inline bool rstctrl_ops_is_valid(const struct rstctrl_ops *ops) in rstctrl_ops_is_valid() argument
141 return ops && ops->assert_level && ops->deassert_level; in rstctrl_ops_is_valid()
A Dclk.h33 const struct clk_ops *ops; member
84 struct clk *clk_alloc(const char *name, const struct clk_ops *ops,
/optee_os/core/arch/arm/plat-hikey/
A Dspi_test.c32 pd.chip.ops->set_interrupt(NULL, GPIO6_2, in spi_cs_callback()
44 pd.chip.ops->set_value(NULL, GPIO6_2, value); in spi_cs_callback()
93 pd.chip.ops->configure(&pd.chip); in spi_test_with_manual_cs_control()
94 pd.chip.ops->start(&pd.chip); in spi_test_with_manual_cs_control()
154 pd.chip.ops->end(&pd.chip); in spi_test_with_manual_cs_control()
183 pd.chip.ops->configure(&pd.chip); in spi_test_with_registered_cs_cb()
184 pd.chip.ops->start(&pd.chip); in spi_test_with_registered_cs_cb()
200 pd.chip.ops->end(&pd.chip); in spi_test_with_registered_cs_cb()
239 pd022.chip.ops->configure(&pd022.chip); in spi_test_with_builtin_cs_control()
240 pd022.chip.ops->start(&pd022.chip); in spi_test_with_builtin_cs_control()
[all …]
/optee_os/core/crypto/
A Dcrypto.c66 assert(c && c->ops); in hash_ops()
68 return c->ops; in hash_ops()
163 return c->ops; in cipher_ops()
300 return c->ops; in mac_ops()
372 return c->ops; in ae_ops()
714 assert(key->ops && key->ops->free); in crypto_acipher_free_ecc_public_key()
722 assert(key->ops && key->ops->generate); in crypto_acipher_gen_ecc_key()
731 assert(key->ops); in crypto_acipher_ecc_sign()
743 assert(key->ops); in crypto_acipher_ecc_verify()
769 assert(key->ops); in crypto_acipher_sm2_pke_decrypt()
[all …]
/optee_os/core/kernel/
A Dinterrupt.c66 itr_chip->ops->disable(itr_chip, it); in itr_handle()
92 itr_chip->ops->disable(itr_chip, hdl->it); in itr_free()
107 itr_chip->ops->add(itr_chip, h->it, type, prio); in itr_add_type_prio()
113 itr_chip->ops->enable(itr_chip, it); in itr_enable()
118 itr_chip->ops->disable(itr_chip, it); in itr_disable()
123 itr_chip->ops->raise_pi(itr_chip, it); in itr_raise_pi()
128 itr_chip->ops->raise_sgi(itr_chip, it, cpu_mask); in itr_raise_sgi()
133 itr_chip->ops->set_affinity(itr_chip, it, cpu_mask); in itr_set_affinity()
A Dree_fs_ta.c344 const struct tee_file_operations *ops = NULL; in check_update_version() local
356 ops = tee_svc_storage_file_ops(TEE_STORAGE_PRIVATE); in check_update_version()
357 if (!ops) in check_update_version()
362 res = ops->open(&pobj, NULL, &fh); in check_update_version()
367 res = ops->create(&pobj, false, NULL, 0, NULL, 0, NULL, 0, &fh); in check_update_version()
371 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version()
377 res = ops->read(fh, 0, &db_hdr, &len); in check_update_version()
389 res = ops->read(fh, sizeof(db_hdr) + (i * len), &hdr_entry, in check_update_version()
410 res = ops->write(fh, sizeof(db_hdr) + (i * len), hdr, in check_update_version()
423 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version()
[all …]
A Dconsole.c25 serial_console->ops->putc(serial_console, '\r'); in console_putc()
26 serial_console->ops->putc(serial_console, ch); in console_putc()
34 serial_console->ops->flush(serial_console); in console_flush()
/optee_os/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h109 static inline TEE_Result drvcrypt_register_rsa(const struct drvcrypt_rsa *ops) in drvcrypt_register_rsa() argument
111 return drvcrypt_register(CRYPTO_RSA, (void *)ops); in drvcrypt_register_rsa()
161 static inline TEE_Result drvcrypt_register_ecc(struct drvcrypt_ecc *ops) in drvcrypt_register_ecc() argument
163 return drvcrypt_register(CRYPTO_ECC, (void *)ops); in drvcrypt_register_ecc()
184 static inline TEE_Result drvcrypt_register_dh(struct drvcrypt_dh *ops) in drvcrypt_register_dh() argument
186 return drvcrypt_register(CRYPTO_DH, (void *)ops); in drvcrypt_register_dh()
215 static inline TEE_Result drvcrypt_register_dsa(struct drvcrypt_dsa *ops) in drvcrypt_register_dsa() argument
217 return drvcrypt_register(CRYPTO_DSA, (void *)ops); in drvcrypt_register_dsa()
A Ddrvcrypt_math.h43 static inline TEE_Result drvcrypt_register_math(const struct drvcrypt_math *ops) in drvcrypt_register_math() argument
45 return drvcrypt_register(CRYPTO_MATH, (void *)ops); in drvcrypt_register_math()
A Ddrvcrypt_cipher.h67 static inline TEE_Result drvcrypt_register_cipher(struct drvcrypt_cipher *ops) in drvcrypt_register_cipher() argument
69 return drvcrypt_register(CRYPTO_CIPHER, (void *)ops); in drvcrypt_register_cipher()
A Ddrvcrypt.h70 TEE_Result drvcrypt_register(enum drvcrypt_algo_id algo_id, void *ops);
78 void drvcrypt_register_change(enum drvcrypt_algo_id algo_id, void *ops);
A Ddrvcrypt_authenc.h94 static inline TEE_Result drvcrypt_register_authenc(struct drvcrypt_authenc *ops) in drvcrypt_register_authenc() argument
96 return drvcrypt_register(CRYPTO_AUTHENC, (void *)ops); in drvcrypt_register_authenc()
/optee_os/core/pta/bcm/
A Dgpio.c75 gc->ops->set_direction(NULL, gpio_num, GPIO_DIR_OUT); in pta_gpio_config()
76 gc->ops->set_value(NULL, gpio_num, 0); in pta_gpio_config()
78 gc->ops->set_direction(NULL, gpio_num, GPIO_DIR_IN); in pta_gpio_config()
118 if (gc->ops->get_direction(NULL, gpio_num) != GPIO_DIR_OUT) { in pta_gpio_set()
123 gc->ops->set_value(NULL, gpio_num, val); in pta_gpio_set()
126 gc->ops->get_value(NULL, gpio_num)); in pta_gpio_set()
157 params[1].value.a = gc->ops->get_value(NULL, gpio_num); in pta_gpio_get()
A Dwdt.c54 wd_pd.chip.ops->start(&wd_pd.chip); in pta_wd_config()
72 wd_pd.chip.ops->start(&wd_pd.chip); in pta_wd_start()
90 wd_pd.chip.ops->ping(&wd_pd.chip); in pta_wd_ping()
108 wd_pd.chip.ops->stop(&wd_pd.chip); in pta_wd_stop()
129 wd_pd.chip.ops->set_timeout(&wd_pd.chip, timeout); in pta_wd_set_timeout()
/optee_os/core/drivers/crypto/se050/core/
A Dcipher.c24 return ctx->ops->init(dinit->ctx, mode, in do_init()
34 return ctx->ops->update(ctx, dupdate->last, dupdate->src.data, in do_update()
42 ctx->ops->final(ctx); in do_final()
49 ctx->ops->free_ctx(ctx); in do_free()
57 src_ctx->ops->copy_state(dst_ctx, src_ctx); in do_copy_state()
/optee_os/core/mm/
A Dmobj.c134 assert(mobj->ops == &mobj_phys_ops); in to_mobj_phys()
174 moph->mobj.ops = &mobj_phys_ops; in mobj_phys_init()
233 assert(mobj->ops == &mobj_virt_ops); in mobj_virt_assert_type()
310 assert(mobj->ops == &mobj_mm_ops); in to_mobj_mm()
330 m->mobj.ops = &mobj_mm_ops; in mobj_mm_alloc()
425 assert(mobj->ops == &mobj_shm_ops); in to_mobj_shm()
441 m->mobj.ops = &mobj_shm_ops; in mobj_shm_alloc()
537 m->mobj.ops = &mobj_seccpy_shm_ops; in mobj_seccpy_shm_alloc()
582 m->mobj.ops = &mobj_with_fobj_ops; in mobj_with_fobj_alloc()
645 if (!f->fobj->ops->get_pa) { in mobj_with_fobj_get_pa()
[all …]
A Dfobj.c66 static void fobj_init(struct fobj *fobj, const struct fobj_ops *ops, in fobj_init() argument
69 fobj->ops = ops; in fobj_init()
174 assert(fobj->ops == &ops_rwp_paged_iv); in to_rwp_paged_iv()
286 assert(fobj->ops == &ops_rwp_unpaged_iv); in to_rwp_unpaged_iv()
424 fobj_init(&rop->fobj, ops, num_pages); in rop_init()
445 assert(fobj->ops == &ops_ro_paged); in to_rop()
626 assert(fobj->ops == &ops_ro_reloc_paged); in to_rrp()
700 assert(fobj->ops == &ops_locked_paged); in lop_free()
709 assert(fobj->ops == &ops_locked_paged); in lop_load_page()
769 f->fobj.ops = &ops_sec_mem; in fobj_sec_mem_alloc()
[all …]
/optee_os/core/lib/libtomcrypt/
A Decc.c400 s->ops = &ecc_keypair_ops; in crypto_asym_alloc_ecc_keypair()
406 s->ops = &sm2_dsa_keypair_ops; in crypto_asym_alloc_ecc_keypair()
412 s->ops = &sm2_pke_keypair_ops; in crypto_asym_alloc_ecc_keypair()
418 s->ops = &sm2_kep_keypair_ops; in crypto_asym_alloc_ecc_keypair()
434 s->ops = NULL; in crypto_asym_alloc_ecc_keypair()
451 s->ops = &ecc_public_key_ops; in crypto_asym_alloc_ecc_public_key()
457 s->ops = &sm2_dsa_public_key_ops; in crypto_asym_alloc_ecc_public_key()
463 s->ops = &sm2_pke_public_key_ops; in crypto_asym_alloc_ecc_public_key()
469 s->ops = &sm2_kep_public_key_ops; in crypto_asym_alloc_ecc_public_key()
483 s->ops = NULL; in crypto_asym_alloc_ecc_public_key()
/optee_os/lib/libmbedtls/core/
A Decc.c377 s->ops = &ecc_keypair_ops; in crypto_asym_alloc_ecc_keypair()
383 s->ops = &sm2_dsa_keypair_ops; in crypto_asym_alloc_ecc_keypair()
389 s->ops = &sm2_pke_keypair_ops; in crypto_asym_alloc_ecc_keypair()
395 s->ops = &sm2_kep_keypair_ops; in crypto_asym_alloc_ecc_keypair()
448 s->ops = &ecc_public_key_ops; in crypto_asym_alloc_ecc_public_key()
454 s->ops = &sm2_dsa_public_key_ops; in crypto_asym_alloc_ecc_public_key()
460 s->ops = &sm2_pke_public_key_ops; in crypto_asym_alloc_ecc_public_key()
466 s->ops = &sm2_kep_public_key_ops; in crypto_asym_alloc_ecc_public_key()
/optee_os/core/arch/arm/plat-stm/
A Dmain.c73 cons->ops->putc(cons, '\r'); in console_putc()
74 cons->ops->putc(cons, ch); in console_putc()
83 cons->ops->flush(cons); in console_flush()
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Decp.h402 unsigned ops );
405 #define MBEDTLS_ECP_BUDGET( ops ) \ argument
407 (unsigned) (ops) ) );
411 #define MBEDTLS_ECP_BUDGET( ops ) /* no-op; for compatibility */ argument

Completed in 53 milliseconds

12345