• Home
  • Raw
  • Download

Lines Matching refs:rstc

93 int reset_control_reset(struct reset_control *rstc)  in reset_control_reset()  argument
95 if (rstc->rcdev->ops->reset) in reset_control_reset()
96 return rstc->rcdev->ops->reset(rstc->rcdev, rstc->id); in reset_control_reset()
106 int reset_control_assert(struct reset_control *rstc) in reset_control_assert() argument
108 if (rstc->rcdev->ops->assert) in reset_control_assert()
109 return rstc->rcdev->ops->assert(rstc->rcdev, rstc->id); in reset_control_assert()
119 int reset_control_deassert(struct reset_control *rstc) in reset_control_deassert() argument
121 if (rstc->rcdev->ops->deassert) in reset_control_deassert()
122 return rstc->rcdev->ops->deassert(rstc->rcdev, rstc->id); in reset_control_deassert()
134 int reset_control_status(struct reset_control *rstc) in reset_control_status() argument
136 if (rstc->rcdev->ops->status) in reset_control_status()
137 return rstc->rcdev->ops->status(rstc->rcdev, rstc->id); in reset_control_status()
155 struct reset_control *rstc = ERR_PTR(-EPROBE_DEFER); in of_reset_control_get() local
194 rstc = kzalloc(sizeof(*rstc), GFP_KERNEL); in of_reset_control_get()
195 if (!rstc) { in of_reset_control_get()
200 rstc->rcdev = rcdev; in of_reset_control_get()
201 rstc->id = rstc_id; in of_reset_control_get()
203 return rstc; in of_reset_control_get()
218 struct reset_control *rstc; in reset_control_get() local
223 rstc = of_reset_control_get(dev->of_node, id); in reset_control_get()
224 if (!IS_ERR(rstc)) in reset_control_get()
225 rstc->dev = dev; in reset_control_get()
227 return rstc; in reset_control_get()
236 void reset_control_put(struct reset_control *rstc) in reset_control_put() argument
238 if (IS_ERR(rstc)) in reset_control_put()
241 module_put(rstc->rcdev->owner); in reset_control_put()
242 kfree(rstc); in reset_control_put()
262 struct reset_control **ptr, *rstc; in devm_reset_control_get() local
269 rstc = reset_control_get(dev, id); in devm_reset_control_get()
270 if (!IS_ERR(rstc)) { in devm_reset_control_get()
271 *ptr = rstc; in devm_reset_control_get()
277 return rstc; in devm_reset_control_get()
292 struct reset_control *rstc; in device_reset() local
295 rstc = reset_control_get(dev, NULL); in device_reset()
296 if (IS_ERR(rstc)) in device_reset()
297 return PTR_ERR(rstc); in device_reset()
299 ret = reset_control_reset(rstc); in device_reset()
301 reset_control_put(rstc); in device_reset()