Lines Matching refs:rstctrl

14 struct rstctrl;
31 TEE_Result (*assert_level)(struct rstctrl *rstctrl, unsigned int to_us);
32 TEE_Result (*deassert_level)(struct rstctrl *rstctrl,
34 const char *(*get_name)(struct rstctrl *rstctrl);
42 struct rstctrl { struct
83 static inline TEE_Result rstctrl_assert_to(struct rstctrl *rstctrl, in rstctrl_assert_to() argument
86 return rstctrl->ops->assert_level(rstctrl, to_us); in rstctrl_assert_to()
89 static inline TEE_Result rstctrl_assert(struct rstctrl *rstctrl) in rstctrl_assert() argument
91 return rstctrl_assert_to(rstctrl, RSTCTRL_NO_TIMEOUT); in rstctrl_assert()
94 static inline TEE_Result rstctrl_deassert_to(struct rstctrl *rstctrl, in rstctrl_deassert_to() argument
97 return rstctrl->ops->deassert_level(rstctrl, to_us); in rstctrl_deassert_to()
100 static inline TEE_Result rstctrl_deassert(struct rstctrl *rstctrl) in rstctrl_deassert() argument
102 return rstctrl_deassert_to(rstctrl, RSTCTRL_NO_TIMEOUT); in rstctrl_deassert()
111 static inline const char *rstctrl_name(struct rstctrl *rstctrl) in rstctrl_name() argument
113 if (rstctrl->ops->get_name) in rstctrl_name()
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
166 *rstctrl = dt_driver_device_from_node_idx_prop("resets", fdt, in rstctrl_dt_get_by_index()
175 struct rstctrl **rstctrl) in rstctrl_dt_get_by_index() argument
177 *rstctrl = NULL; in rstctrl_dt_get_by_index()
197 const char *name, struct rstctrl **rstctrl);
214 typedef struct rstctrl *(*rstctrl_dt_get_func)(struct dt_driver_phandle_args *a,