• Home
  • Raw
  • Download

Lines Matching refs:resets

198 static int reset_control_array_reset(struct reset_control_array *resets)  in reset_control_array_reset()  argument
202 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_reset()
203 ret = reset_control_reset(resets->rstc[i]); in reset_control_array_reset()
211 static int reset_control_array_assert(struct reset_control_array *resets) in reset_control_array_assert() argument
215 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_assert()
216 ret = reset_control_assert(resets->rstc[i]); in reset_control_array_assert()
225 reset_control_deassert(resets->rstc[i]); in reset_control_array_assert()
229 static int reset_control_array_deassert(struct reset_control_array *resets) in reset_control_array_deassert() argument
233 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_deassert()
234 ret = reset_control_deassert(resets->rstc[i]); in reset_control_array_deassert()
243 reset_control_assert(resets->rstc[i]); in reset_control_array_deassert()
247 static int reset_control_array_acquire(struct reset_control_array *resets) in reset_control_array_acquire() argument
252 for (i = 0; i < resets->num_rstcs; i++) { in reset_control_array_acquire()
253 err = reset_control_acquire(resets->rstc[i]); in reset_control_array_acquire()
262 reset_control_release(resets->rstc[i]); in reset_control_array_acquire()
267 static void reset_control_array_release(struct reset_control_array *resets) in reset_control_array_release() argument
271 for (i = 0; i < resets->num_rstcs; i++) in reset_control_array_release()
272 reset_control_release(resets->rstc[i]); in reset_control_array_release()
750 static void reset_control_array_put(struct reset_control_array *resets) in reset_control_array_put() argument
755 for (i = 0; i < resets->num_rstcs; i++) in reset_control_array_put()
756 __reset_control_put_internal(resets->rstc[i]); in reset_control_array_put()
758 kfree(resets); in reset_control_array_put()
879 struct reset_control_array *resets; in of_reset_control_array_get() local
887 resets = kzalloc(struct_size(resets, rstc, num), GFP_KERNEL); in of_reset_control_array_get()
888 if (!resets) in of_reset_control_array_get()
896 resets->rstc[i] = rstc; in of_reset_control_array_get()
898 resets->num_rstcs = num; in of_reset_control_array_get()
899 resets->base.array = true; in of_reset_control_array_get()
901 return &resets->base; in of_reset_control_array_get()
906 __reset_control_put_internal(resets->rstc[i]); in of_reset_control_array_get()
909 kfree(resets); in of_reset_control_array_get()