Lines Matching refs:rstc_arr
102 struct reset_control_array *rstc_arr = reset_control_to_array(rstc); in rt_reset_control_reset() local
104 for (int i = 0; i < rstc_arr->count; ++i) in rt_reset_control_reset()
106 if ((err = rt_reset_control_reset(rstc_arr->rstcs[i]))) in rt_reset_control_reset()
135 struct reset_control_array *rstc_arr = reset_control_to_array(rstc); in rt_reset_control_assert() local
137 for (int i = 0; i < rstc_arr->count; ++i) in rt_reset_control_assert()
139 if ((err = rt_reset_control_assert(rstc_arr->rstcs[i]))) in rt_reset_control_assert()
148 rt_reset_control_deassert(rstc_arr->rstcs[i]); in rt_reset_control_assert()
178 struct reset_control_array *rstc_arr = reset_control_to_array(rstc); in rt_reset_control_deassert() local
180 for (int i = 0; i < rstc_arr->count; ++i) in rt_reset_control_deassert()
182 if ((err = rt_reset_control_deassert(rstc_arr->rstcs[i]))) in rt_reset_control_deassert()
191 rt_reset_control_assert(rstc_arr->rstcs[i]); in rt_reset_control_deassert()
221 struct reset_control_array *rstc_arr = reset_control_to_array(rstc); in reset_free() local
223 for (int i = 0; i < rstc_arr->count; ++i) in reset_free()
225 rt_reset_control_put(rstc_arr->rstcs[i]); in reset_free()
278 struct reset_control_array *rstc_arr; in ofw_get_reset_control() local
287 rstc_arr = rt_calloc(1, sizeof(*rstc_arr) + sizeof(struct rt_reset_control *) * rstc_nr); in ofw_get_reset_control()
289 if (!rstc_arr) in ofw_get_reset_control()
297 rstc_arr->count = rstc_nr - 1; in ofw_get_reset_control()
299 for (int i = 0; i < rstc_arr->count; ++i) in ofw_get_reset_control()
301 rstc_arr->rstcs[i] = ofw_get_reset_control(np, i + 1, RT_NULL, RT_FALSE); in ofw_get_reset_control()
303 if (rt_is_err(rstc_arr->rstcs[i])) in ofw_get_reset_control()
305 err = rt_ptr_err(rstc_arr->rstcs[i]); in ofw_get_reset_control()
309 rt_reset_control_put(rstc_arr->rstcs[i]); in ofw_get_reset_control()
312 rt_free(rstc_arr); in ofw_get_reset_control()
318 rstc = &rstc_arr->captain; in ofw_get_reset_control()