Lines Matching refs:rcdev
102 struct reset_controller_dev rcdev; member
107 static inline struct sp_reset *to_sp_reset(struct reset_controller_dev *rcdev) in to_sp_reset() argument
109 return container_of(rcdev, struct sp_reset, rcdev); in to_sp_reset()
112 static int sp_reset_update(struct reset_controller_dev *rcdev, in sp_reset_update() argument
115 struct sp_reset *reset = to_sp_reset(rcdev); in sp_reset_update()
126 static int sp_reset_assert(struct reset_controller_dev *rcdev, in sp_reset_assert() argument
129 return sp_reset_update(rcdev, id, true); in sp_reset_assert()
132 static int sp_reset_deassert(struct reset_controller_dev *rcdev, in sp_reset_deassert() argument
135 return sp_reset_update(rcdev, id, false); in sp_reset_deassert()
138 static int sp_reset_status(struct reset_controller_dev *rcdev, in sp_reset_status() argument
141 struct sp_reset *reset = to_sp_reset(rcdev); in sp_reset_status()
162 sp_reset_assert(&reset->rcdev, 0); in sp_restart()
163 sp_reset_deassert(&reset->rcdev, 0); in sp_restart()
184 reset->rcdev.ops = &sp_reset_ops; in sp_reset_probe()
185 reset->rcdev.owner = THIS_MODULE; in sp_reset_probe()
186 reset->rcdev.of_node = dev->of_node; in sp_reset_probe()
187 reset->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_HWM_REG; in sp_reset_probe()
189 ret = devm_reset_controller_register(dev, &reset->rcdev); in sp_reset_probe()