Home
last modified time | relevance | path

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

123456

/optee_os-3.20.0/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-3.20.0/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_mem_type) in mobj_get_mem_type()
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-3.20.0/core/drivers/tpm2/
A Dtpm2_ptp_fifo.c24 return ops && ops->rx32 && ops->tx32 && ops->rx8 && ops->tx8; in tpm2_fifo_check_ops()
34 const struct tpm2_ptp_phy_ops *ops = chip->phy_ops; in tpm2_fifo_wait_valid() local
56 const struct tpm2_ptp_phy_ops *ops = chip->phy_ops; in tpm2_fifo_check_locality() local
80 const struct tpm2_ptp_phy_ops *ops = chip->phy_ops; in tpm2_fifo_request_locality() local
116 const struct tpm2_ptp_phy_ops *ops = chip->phy_ops; in tpm2_fifo_relinquish_locality() local
137 const struct tpm2_ptp_phy_ops *ops = chip->phy_ops; in tpm2_fifo_set_status() local
220 assert(tpm2_fifo_check_ops(ops)); in tpm2_fifo_init()
272 const struct tpm2_ptp_phy_ops *ops = NULL; in tpm2_fifo_send() local
283 ops = chip->phy_ops; in tpm2_fifo_send()
396 const struct tpm2_ptp_phy_ops *ops = NULL; in tpm2_fifo_recv() local
[all …]
A Dtpm2_chip.c19 if (!tpm2_device || !tpm2_device->ops->send) in tpm2_chip_send()
22 return tpm2_device->ops->send(tpm2_device, buf, len); in tpm2_chip_send()
28 if (!tpm2_device || !tpm2_device->ops->recv) in tpm2_chip_recv()
31 return tpm2_device->ops->recv(tpm2_device, buf, len, cmd_duration); in tpm2_chip_recv()
209 if (!chip || !chip->ops) in tpm2_chip_register()
213 ret = chip->ops->init(chip); in tpm2_chip_register()
245 ret = chip->ops->end(chip); in tpm2_chip_unregister()
/optee_os-3.20.0/core/include/drivers/
A Dwdt.h16 const struct wdt_ops *ops; member
54 if (!wdt_chip->ops->init) in watchdog_init()
57 return wdt_chip->ops->init(wdt_chip, min_timeout, max_timeout); in watchdog_init()
63 wdt_chip->ops->start(wdt_chip); in watchdog_start()
68 if (wdt_chip && wdt_chip->ops->stop) in watchdog_stop()
69 wdt_chip->ops->stop(wdt_chip); in watchdog_stop()
75 wdt_chip->ops->ping(wdt_chip); in watchdog_ping()
81 wdt_chip->ops->set_timeout(wdt_chip, timeout); in watchdog_settimeout()
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 Drtc.h26 const struct rtc_ops *ops; member
59 if (rtc_device->ops->set_offset) in rtc_get_info()
72 return rtc_device->ops->get_time(rtc_device, tm); in rtc_get_time()
77 if (!rtc_device || !rtc_device->ops->set_time) in rtc_set_time()
80 return rtc_device->ops->set_time(rtc_device, tm); in rtc_set_time()
85 if (!rtc_device || !rtc_device->ops->get_offset) in rtc_get_offset()
88 return rtc_device->ops->get_offset(rtc_device, offset); in rtc_get_offset()
93 if (!rtc_device || !rtc_device->ops->set_offset) in rtc_set_offset()
96 return rtc_device->ops->set_offset(rtc_device, offset); in rtc_set_offset()
/optee_os-3.20.0/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 …]
A Dclk-stm32-core.h164 .ops = &clk_fixed_clk_ops,\
175 .ops = &clk_fixed_factor_ops,\
188 .ops = &clk_stm32_gate_ops,\
200 .ops = &clk_stm32_divider_ops,\
212 .ops = &clk_stm32_mux_ops,\
224 .ops = &clk_stm32_gate_ready_ops,\
237 .ops = &clk_stm32_composite_ops,\
/optee_os-3.20.0/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-3.20.0/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 Dconsole.c25 serial_console->ops->putc(serial_console, '\r'); in console_putc()
26 serial_console->ops->putc(serial_console, ch); in console_putc()
31 if (!serial_console || !serial_console->ops->flush) in console_flush()
34 serial_console->ops->flush(serial_console); in console_flush()
/optee_os-3.20.0/core/drivers/wdt/
A Dwatchdog.c12 if (!chip->ops->start || !chip->ops->ping || !chip->ops->set_timeout) in watchdog_register()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/include/
A Ddrvcrypt_acipher.h110 static inline TEE_Result drvcrypt_register_rsa(const struct drvcrypt_rsa *ops) in drvcrypt_register_rsa() argument
112 return drvcrypt_register(CRYPTO_RSA, (void *)ops); in drvcrypt_register_rsa()
162 static inline TEE_Result drvcrypt_register_ecc(struct drvcrypt_ecc *ops) in drvcrypt_register_ecc() argument
164 return drvcrypt_register(CRYPTO_ECC, (void *)ops); in drvcrypt_register_ecc()
185 static inline TEE_Result drvcrypt_register_dh(struct drvcrypt_dh *ops) in drvcrypt_register_dh() argument
187 return drvcrypt_register(CRYPTO_DH, (void *)ops); in drvcrypt_register_dh()
216 static inline TEE_Result drvcrypt_register_dsa(struct drvcrypt_dsa *ops) in drvcrypt_register_dsa() argument
218 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);
/optee_os-3.20.0/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-3.20.0/core/crypto/
A Dcrypto.c66 assert(c && c->ops); in hash_ops()
68 return c->ops; in hash_ops()
166 return c->ops; in cipher_ops()
303 return c->ops; in mac_ops()
375 return c->ops; in ae_ops()
717 assert(key->ops && key->ops->free); in crypto_acipher_free_ecc_public_key()
725 assert(key->ops && key->ops->generate); in crypto_acipher_gen_ecc_key()
734 assert(key->ops); in crypto_acipher_ecc_sign()
746 assert(key->ops); in crypto_acipher_ecc_verify()
772 assert(key->ops); in crypto_acipher_sm2_pke_decrypt()
[all …]
/optee_os-3.20.0/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-3.20.0/core/drivers/rtc/
A Drtc.c18 assert(rtc && rtc->ops && rtc->ops->get_time); in rtc_register()
/optee_os-3.20.0/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 if (cons->ops->flush) in console_flush()
84 cons->ops->flush(cons); in console_flush()
/optee_os-3.20.0/core/mm/
A Dmobj.c135 assert(mobj->ops == &mobj_phys_ops); in to_mobj_phys()
175 moph->mobj.ops = &mobj_phys_ops; in mobj_phys_init()
235 assert(mobj->ops == &mobj_virt_ops); in mobj_virt_assert_type()
312 assert(mobj->ops == &mobj_mm_ops); in to_mobj_mm()
332 m->mobj.ops = &mobj_mm_ops; in mobj_mm_alloc()
440 assert(mobj->ops == &mobj_shm_ops); in to_mobj_shm()
456 m->mobj.ops = &mobj_shm_ops; in mobj_shm_alloc()
553 m->mobj.ops = &mobj_seccpy_shm_ops; in mobj_seccpy_shm_alloc()
604 m->mobj.ops = &mobj_with_fobj_ops; in mobj_with_fobj_alloc()
669 if (!f->fobj->ops->get_pa) { in mobj_with_fobj_get_pa()
[all …]

Completed in 24 milliseconds

123456