Home
last modified time | relevance | path

Searched refs:rstctrl (Results 1 – 10 of 10) sorted by relevance

/optee_os-3.20.0/core/include/drivers/
A Drstctrl.h14 struct rstctrl;
32 TEE_Result (*deassert_level)(struct rstctrl *rstctrl,
34 const char *(*get_name)(struct rstctrl *rstctrl);
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()
114 return rstctrl->ops->get_name(rstctrl); in rstctrl_name()
125 TEE_Result rstctrl_get_exclusive(struct rstctrl *rstctrl);
132 void rstctrl_put_exclusive(struct rstctrl *rstctrl);
162 struct rstctrl **rstctrl) in rstctrl_dt_get_by_index() argument
175 struct rstctrl **rstctrl) in rstctrl_dt_get_by_index() argument
[all …]
/optee_os-3.20.0/core/drivers/rstctrl/
A Drstctrl.c17 TEE_Result rstctrl_get_exclusive(struct rstctrl *rstctrl) in rstctrl_get_exclusive() argument
25 if (!rstctrl->exclusive) { in rstctrl_get_exclusive()
26 rstctrl->exclusive = true; in rstctrl_get_exclusive()
35 void rstctrl_put_exclusive(struct rstctrl *rstctrl) in rstctrl_put_exclusive() argument
37 assert(rstctrl->exclusive); in rstctrl_put_exclusive()
39 WRITE_ONCE(rstctrl->exclusive, false); in rstctrl_put_exclusive()
43 const char *name, struct rstctrl **rstctrl) in rstctrl_dt_get_by_name() argument
51 return rstctrl_dt_get_by_index(fdt, nodeoffset, index, rstctrl); in rstctrl_dt_get_by_name()
A Dstm32_rstctrl.c25 struct rstctrl rstctrl; member
48 static struct stm32_rstline *to_rstline(struct rstctrl *rstctrl) in to_rstline() argument
50 assert(rstctrl); in to_rstline()
52 return container_of(rstctrl, struct stm32_rstline, rstctrl); in to_rstline()
55 static TEE_Result reset_assert(struct rstctrl *rstctrl, unsigned int to_us) in reset_assert() argument
57 unsigned int id = to_rstline(rstctrl)->id; in reset_assert()
98 static TEE_Result reset_deassert(struct rstctrl *rstctrl, unsigned int to_us) in reset_deassert() argument
100 unsigned int id = to_rstline(rstctrl)->id; in reset_deassert()
165 stm32_rstline->rstctrl.ops = &stm32_rstctrl_ops; in find_or_allocate_rstline()
178 return &rstline->rstctrl; in stm32mp_rcc_reset_id_to_rstctrl()
[all …]
A Dsub.mk1 srcs-y += rstctrl.c
/optee_os-3.20.0/core/kernel/
A Ddt_driver_test.c216 struct rstctrl *rstctrl = NULL; in dt_test_consumer_probe() local
235 if (rstctrl != rstctrl0) { in dt_test_consumer_probe()
415 struct rstctrl rstctrl; member
418 static struct dt_test_rstctrl *to_test_rstctrl(struct rstctrl *rstctrl) in to_test_rstctrl() argument
420 return container_of(rstctrl, struct dt_test_rstctrl, rstctrl); in to_test_rstctrl()
423 static TEE_Result dt_test_rstctrl_stub(struct rstctrl *rstctrl __maybe_unused, in dt_test_rstctrl_stub()
438 static const char *dt_test_rstctrl_name(struct rstctrl *rstctrl __maybe_unused) in dt_test_rstctrl_name()
467 struct rstctrl *rstctrl = NULL; in dt_test_get_rstctrl() local
476 rstctrl = &ref[0].rstctrl; in dt_test_get_rstctrl()
479 rstctrl = &ref[1].rstctrl; in dt_test_get_rstctrl()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/
A Dscmi_server.c57 struct rstctrl *rstctrl; member
524 assert(rd->rstctrl); in plat_scmi_rd_autonomous()
537 if (rstctrl_assert_to(rd->rstctrl, TIMEOUT_US_1MS)) in plat_scmi_rd_autonomous()
540 if (rstctrl_deassert_to(rd->rstctrl, TIMEOUT_US_1MS)) in plat_scmi_rd_autonomous()
557 assert(rd->rstctrl); in plat_scmi_rd_set_state()
561 res = rstctrl_assert(rd->rstctrl); in plat_scmi_rd_set_state()
564 res = rstctrl_deassert(rd->rstctrl); in plat_scmi_rd_set_state()
938 struct rstctrl *rstctrl = NULL; in stm32mp1_init_scmi_server() local
948 assert(rstctrl); in stm32mp1_init_scmi_server()
949 if (rstctrl_get_exclusive(rstctrl)) in stm32mp1_init_scmi_server()
[all …]
A Dstm32_util.h106 struct rstctrl *stm32mp_rcc_reset_id_to_rstctrl(unsigned int binding_id);
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dstm32_cryp.h26 struct rstctrl *reset;
A Dstm32_cryp.c1253 struct rstctrl *rstctrl = NULL; in stm32_cryp_probe() local
1266 res = rstctrl_dt_get_by_index(fdt, node, 0, &rstctrl); in stm32_cryp_probe()
1271 cryp_pdata.reset = rstctrl; in stm32_cryp_probe()
/optee_os-3.20.0/core/drivers/
A Dsub.mk77 subdirs-$(CFG_DRIVERS_RSTCTRL) += rstctrl

Completed in 11 milliseconds