Lines Matching refs:resets
199 static int reset_control_array_reset(struct reset_control_array *resets) in reset_control_array_reset() argument
203 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_reset()
204 ret = reset_control_reset(resets->rstc[i]); in reset_control_array_reset()
212 static int reset_control_array_rearm(struct reset_control_array *resets) in reset_control_array_rearm() argument
217 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_rearm()
218 rstc = resets->rstc[i]; in reset_control_array_rearm()
235 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_rearm()
236 rstc = resets->rstc[i]; in reset_control_array_rearm()
245 static int reset_control_array_assert(struct reset_control_array *resets) in reset_control_array_assert() argument
249 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_assert()
250 ret = reset_control_assert(resets->rstc[i]); in reset_control_array_assert()
259 reset_control_deassert(resets->rstc[i]); in reset_control_array_assert()
263 static int reset_control_array_deassert(struct reset_control_array *resets) in reset_control_array_deassert() argument
267 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_deassert()
268 ret = reset_control_deassert(resets->rstc[i]); in reset_control_array_deassert()
277 reset_control_assert(resets->rstc[i]); in reset_control_array_deassert()
281 static int reset_control_array_acquire(struct reset_control_array *resets) in reset_control_array_acquire() argument
286 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_acquire()
287 err = reset_control_acquire(resets->rstc[i]); in reset_control_array_acquire()
296 reset_control_release(resets->rstc[i]); in reset_control_array_acquire()
301 static void reset_control_array_release(struct reset_control_array *resets) in reset_control_array_release() argument
305 for (i = 0; i < resets->num_rstcs; i++) in reset_control_array_release()
306 reset_control_release(resets->rstc[i]); in reset_control_array_release()
981 static void reset_control_array_put(struct reset_control_array *resets) in reset_control_array_put() argument
986 for (i = 0; i < resets->num_rstcs; i++) in reset_control_array_put()
987 __reset_control_put_internal(resets->rstc[i]); in reset_control_array_put()
989 kfree(resets); in reset_control_array_put()
1177 struct reset_control_array *resets; in of_reset_control_array_get() local
1185 resets = kzalloc(struct_size(resets, rstc, num), GFP_KERNEL); in of_reset_control_array_get()
1186 if (!resets) in of_reset_control_array_get()
1194 resets->rstc[i] = rstc; in of_reset_control_array_get()
1196 resets->num_rstcs = num; in of_reset_control_array_get()
1197 resets->base.array = true; in of_reset_control_array_get()
1199 return &resets->base; in of_reset_control_array_get()
1204 __reset_control_put_internal(resets->rstc[i]); in of_reset_control_array_get()
1207 kfree(resets); in of_reset_control_array_get()