Lines Matching full:rst

42 static int ti_sci_reset_of_xlate(struct reset_ctl *rst,  in ti_sci_reset_of_xlate()  argument
45 debug("%s(rst=%p, args_count=%d)\n", __func__, rst, args->args_count); in ti_sci_reset_of_xlate()
56 rst->id = args->args[0]; in ti_sci_reset_of_xlate()
57 rst->data = args->args[1]; in ti_sci_reset_of_xlate()
62 static int ti_sci_reset_request(struct reset_ctl *rst) in ti_sci_reset_request() argument
64 debug("%s(rst=%p)\n", __func__, rst); in ti_sci_reset_request()
68 static int ti_sci_reset_free(struct reset_ctl *rst) in ti_sci_reset_free() argument
70 debug("%s(rst=%p)\n", __func__, rst); in ti_sci_reset_free()
76 * @rst: Handle to a single reset signal
89 static int ti_sci_reset_set(struct reset_ctl *rst, bool assert) in ti_sci_reset_set() argument
91 struct ti_sci_reset_data *data = dev_get_priv(rst->dev); in ti_sci_reset_set()
97 ret = dops->get_device_resets(sci, rst->id, &reset_state); in ti_sci_reset_set()
99 dev_err(rst->dev, "%s: get_device_resets failed (%d)\n", in ti_sci_reset_set()
105 reset_state |= rst->data; in ti_sci_reset_set()
107 reset_state &= ~rst->data; in ti_sci_reset_set()
109 ret = dops->set_device_resets(sci, rst->id, reset_state); in ti_sci_reset_set()
111 dev_err(rst->dev, "%s: set_device_resets failed (%d)\n", in ti_sci_reset_set()
121 * @rst: Handle to a single reset signal
130 static int ti_sci_reset_assert(struct reset_ctl *rst) in ti_sci_reset_assert() argument
132 debug("%s(rst=%p)\n", __func__, rst); in ti_sci_reset_assert()
133 return ti_sci_reset_set(rst, true); in ti_sci_reset_assert()
138 * @rst: Handle to a single reset signal
147 static int ti_sci_reset_deassert(struct reset_ctl *rst) in ti_sci_reset_deassert() argument
149 debug("%s(rst=%p)\n", __func__, rst); in ti_sci_reset_deassert()
150 return ti_sci_reset_set(rst, false); in ti_sci_reset_deassert()
155 * @rst: Handle to a single reset signal
165 static int ti_sci_reset_status(struct reset_ctl *rst) in ti_sci_reset_status() argument
167 struct ti_sci_reset_data *data = dev_get_priv(rst->dev); in ti_sci_reset_status()
173 debug("%s(rst=%p)\n", __func__, rst); in ti_sci_reset_status()
175 ret = dops->get_device_resets(sci, rst->id, &reset_state); in ti_sci_reset_status()
177 dev_err(rst->dev, "%s: get_device_resets failed (%d)\n", in ti_sci_reset_status()
182 return reset_state & rst->data; in ti_sci_reset_status()