Lines Matching defs:rcdev
33 struct reset_controller_dev rcdev;
42 #define to_rgu_data(p) container_of(p, struct lpc18xx_rgu_data, rcdev)
66 static int lpc18xx_rgu_setclear_reset(struct reset_controller_dev *rcdev,
69 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev);
90 static int lpc18xx_rgu_assert(struct reset_controller_dev *rcdev,
93 return lpc18xx_rgu_setclear_reset(rcdev, id, true);
96 static int lpc18xx_rgu_deassert(struct reset_controller_dev *rcdev,
99 return lpc18xx_rgu_setclear_reset(rcdev, id, false);
103 static int lpc18xx_rgu_reset(struct reset_controller_dev *rcdev,
106 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev);
108 lpc18xx_rgu_assert(rcdev, id);
114 lpc18xx_rgu_setclear_reset(rcdev, id, false);
120 static int lpc18xx_rgu_status(struct reset_controller_dev *rcdev,
123 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev);
186 rc->rcdev.owner = THIS_MODULE;
187 rc->rcdev.nr_resets = 64;
188 rc->rcdev.ops = &lpc18xx_rgu_ops;
189 rc->rcdev.of_node = pdev->dev.of_node;
191 ret = reset_controller_register(&rc->rcdev);