Home
last modified time | relevance | path

Searched refs:rstc (Results 1 – 4 of 4) sorted by relevance

/components/drivers/reset/
A Dreset.c87 if (!rstc) in rt_reset_control_reset()
94 if ((err = rstc->rstcer->ops->reset(rstc))) in rt_reset_control_reset()
120 if (!rstc) in rt_reset_control_assert()
127 if ((err = rstc->rstcer->ops->assert(rstc))) in rt_reset_control_assert()
143 rstc->rstcer->ops->deassert(rstc); in rt_reset_control_assert()
163 if (!rstc) in rt_reset_control_deassert()
170 if ((err = rstc->rstcer->ops->deassert(rstc))) in rt_reset_control_deassert()
186 rstc->rstcer->ops->assert(rstc); in rt_reset_control_deassert()
211 return rstc->rstcer->ops->status(rstc); in rt_reset_control_status()
323 rstc = rt_calloc(1, sizeof(*rstc)); in ofw_get_reset_control()
[all …]
A Dreset-simple.c52 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()
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()
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()
[all …]
/components/drivers/include/drivers/
A Dreset.h56 rt_err_t (*ofw_parse)(struct rt_reset_control *rstc, struct rt_ofw_cell_args *args);
58 rt_err_t (*reset)(struct rt_reset_control *rstc);
59 rt_err_t (*assert)(struct rt_reset_control *rstc);
60 rt_err_t (*deassert)(struct rt_reset_control *rstc);
61 int (*status)(struct rt_reset_control *rstc);
67 rt_err_t rt_reset_control_reset(struct rt_reset_control *rstc);
68 rt_err_t rt_reset_control_assert(struct rt_reset_control *rstc);
69 rt_err_t rt_reset_control_deassert(struct rt_reset_control *rstc);
70 int rt_reset_control_status(struct rt_reset_control *rstc);
76 void rt_reset_control_put(struct rt_reset_control *rstc);
/components/drivers/watchdog/
A Dwatchdog-dw.c61 struct rt_reset_control *rstc; member
268 rt_reset_control_assert(dw_wdt->rstc); in dw_wdt_stop()
269 rt_reset_control_deassert(dw_wdt->rstc); in dw_wdt_stop()
504 if (!rt_is_err_or_null(dw_wdt->rstc)) in dw_wdt_free()
506 rt_reset_control_assert(dw_wdt->rstc); in dw_wdt_free()
507 rt_reset_control_put(dw_wdt->rstc); in dw_wdt_free()
554 dw_wdt->rstc = rt_reset_control_get_by_index(dev, 0); in dw_wdt_probe()
556 if (rt_is_err(dw_wdt->rstc)) in dw_wdt_probe()
558 err = rt_ptr_err(dw_wdt->rstc); in dw_wdt_probe()
562 rt_reset_control_deassert(dw_wdt->rstc); in dw_wdt_probe()

Completed in 8 milliseconds