Lines Matching defs:rcdev
258 struct reset_controller_dev rcdev;
265 container_of(_rcdev, struct uniphier_reset_priv, rcdev)
267 static int uniphier_reset_update(struct reset_controller_dev *rcdev,
270 struct uniphier_reset_priv *priv = to_uniphier_reset_priv(rcdev);
296 static int uniphier_reset_assert(struct reset_controller_dev *rcdev,
299 return uniphier_reset_update(rcdev, id, 1);
302 static int uniphier_reset_deassert(struct reset_controller_dev *rcdev,
305 return uniphier_reset_update(rcdev, id, 0);
308 static int uniphier_reset_status(struct reset_controller_dev *rcdev,
311 struct uniphier_reset_priv *priv = to_uniphier_reset_priv(rcdev);
372 priv->rcdev.ops = &uniphier_reset_ops;
373 priv->rcdev.owner = dev->driver->owner;
374 priv->rcdev.of_node = dev->of_node;
375 priv->rcdev.nr_resets = nr_resets;
380 return devm_reset_controller_register(&pdev->dev, &priv->rcdev);