Lines Matching refs:rstctrl
13 struct rstctrl;
30 TEE_Result (*assert_level)(struct rstctrl *rstctrl, unsigned int to_us);
31 TEE_Result (*deassert_level)(struct rstctrl *rstctrl,
33 const char *(*get_name)(struct rstctrl *rstctrl);
41 struct rstctrl { struct
82 static inline TEE_Result rstctrl_assert_to(struct rstctrl *rstctrl, in rstctrl_assert_to() argument
85 return rstctrl->ops->assert_level(rstctrl, to_us); in rstctrl_assert_to()
88 static inline TEE_Result rstctrl_assert(struct rstctrl *rstctrl) in rstctrl_assert() argument
90 return rstctrl_assert_to(rstctrl, RSTCTRL_NO_TIMEOUT); in rstctrl_assert()
93 static inline TEE_Result rstctrl_deassert_to(struct rstctrl *rstctrl, in rstctrl_deassert_to() argument
96 return rstctrl->ops->deassert_level(rstctrl, to_us); in rstctrl_deassert_to()
99 static inline TEE_Result rstctrl_deassert(struct rstctrl *rstctrl) in rstctrl_deassert() argument
101 return rstctrl_deassert_to(rstctrl, RSTCTRL_NO_TIMEOUT); in rstctrl_deassert()
110 static inline const char *rstctrl_name(struct rstctrl *rstctrl) in rstctrl_name() argument
112 if (rstctrl->ops->get_name) in rstctrl_name()
113 return rstctrl->ops->get_name(rstctrl); in rstctrl_name()
124 TEE_Result rstctrl_get_exclusive(struct rstctrl *rstctrl);
131 void rstctrl_put_exclusive(struct rstctrl *rstctrl);
161 struct rstctrl **out_rstctrl) in rstctrl_dt_get_by_index()
164 void *rstctrl = NULL; in rstctrl_dt_get_by_index() local
168 &rstctrl); in rstctrl_dt_get_by_index()
170 *out_rstctrl = rstctrl; in rstctrl_dt_get_by_index()
178 struct rstctrl **ctrl __unused) in rstctrl_dt_get_by_index()
199 const char *name, struct rstctrl **rstctrl);
210 struct rstctrl **out_rstctrl);