Lines Matching refs:rstc
50 static rt_err_t reset_simple_assert(struct rt_reset_control *rstc) in reset_simple_assert() argument
52 struct reset_simple *rsts = raw_to_reset_simple(rstc); in reset_simple_assert()
54 return reset_simple_update(rsts, rstc->id, RT_TRUE); in reset_simple_assert()
57 static rt_err_t reset_simple_deassert(struct rt_reset_control *rstc) in reset_simple_deassert() argument
59 struct reset_simple *rsts = raw_to_reset_simple(rstc); in reset_simple_deassert()
61 return reset_simple_update(rsts, rstc->id, RT_FALSE); in reset_simple_deassert()
64 static rt_err_t reset_simple_reset(struct rt_reset_control *rstc) in reset_simple_reset() argument
67 struct reset_simple *rsts = raw_to_reset_simple(rstc); in reset_simple_reset()
74 if ((err = reset_simple_assert(rstc))) in reset_simple_reset()
81 return reset_simple_deassert(rstc); in reset_simple_reset()
84 static int reset_simple_status(struct rt_reset_control *rstc) in reset_simple_status() argument
88 int bank = rstc->id / (reg_width * 8); in reset_simple_status()
89 int offset = rstc->id % (reg_width * 8); in reset_simple_status()
90 struct reset_simple *rsts = raw_to_reset_simple(rstc); in reset_simple_status()