Lines Matching refs:rcdev
8 int reset_control_register(struct reset_control_dev *rcdev) //for reset system in reset_control_register() argument
10 if (rcdev) in reset_control_register()
12 list_add_tail(&rcdev->node, &reset_control_list); in reset_control_register()
20 struct reset_control_dev *rcdev = NULL; in reset_control_unregister() local
22 if (!rcdev) in reset_control_unregister()
27 list_for_each_entry(rcdev, &reset_control_list, node) in reset_control_unregister()
29 if (rcdev->type != reset->rcdev->type) in reset_control_unregister()
33 list_del(&rcdev->node); in reset_control_unregister()
44 struct reset_control_dev *rcdev = NULL; in hal_reset_control_get() local
53 list_for_each_entry(rcdev, &reset_control_list, node) in hal_reset_control_get()
55 if (rcdev->type != type) in hal_reset_control_get()
59 if (rcdev->nr_resets < id) in hal_reset_control_get()
63 rc->rcdev = rcdev; in hal_reset_control_get()
83 struct reset_control_dev *rcdev; in hal_reset_control_assert() local
85 if (!reset || !reset->rcdev) in hal_reset_control_assert()
90 rcdev = reset->rcdev; in hal_reset_control_assert()
92 if (rcdev->ops && rcdev->ops->assert) in hal_reset_control_assert()
94 return rcdev->ops->assert(rcdev, reset->id); in hal_reset_control_assert()
102 struct reset_control_dev *rcdev; in hal_reset_control_deassert() local
104 if (!reset || !reset->rcdev) in hal_reset_control_deassert()
109 rcdev = reset->rcdev; in hal_reset_control_deassert()
111 if (rcdev->ops && rcdev->ops->deassert) in hal_reset_control_deassert()
113 return rcdev->ops->deassert(rcdev, reset->id); in hal_reset_control_deassert()
121 struct reset_control_dev *rcdev; in hal_reset_control_reset() local
123 if (!reset || !reset->rcdev) in hal_reset_control_reset()
128 rcdev = reset->rcdev; in hal_reset_control_reset()
130 if (rcdev->ops && rcdev->ops->deassert) in hal_reset_control_reset()
132 return rcdev->ops->reset(rcdev, reset->id); in hal_reset_control_reset()
142 struct reset_control_dev *rcdev; in hal_reset_control_status() local
144 if (!reset || !reset->rcdev) in hal_reset_control_status()
149 rcdev = reset->rcdev; in hal_reset_control_status()
151 if (rcdev->ops && rcdev->ops->deassert) in hal_reset_control_status()
153 return rcdev->ops->status(rcdev, reset->id); in hal_reset_control_status()