Lines Matching refs:rcdev
17 struct reset_controller_dev rcdev;
25 static int ath79_reset_update(struct reset_controller_dev *rcdev,
29 container_of(rcdev, struct ath79_reset, rcdev);
45 static int ath79_reset_assert(struct reset_controller_dev *rcdev,
48 return ath79_reset_update(rcdev, id, true);
51 static int ath79_reset_deassert(struct reset_controller_dev *rcdev,
54 return ath79_reset_update(rcdev, id, false);
57 static int ath79_reset_status(struct reset_controller_dev *rcdev,
61 container_of(rcdev, struct ath79_reset, rcdev);
81 ath79_reset_assert(&ath79_reset->rcdev, FULL_CHIP_RESET);
101 ath79_reset->rcdev.ops = &ath79_reset_ops;
102 ath79_reset->rcdev.owner = THIS_MODULE;
103 ath79_reset->rcdev.of_node = pdev->dev.of_node;
104 ath79_reset->rcdev.of_reset_n_cells = 1;
105 ath79_reset->rcdev.nr_resets = 32;
107 err = devm_reset_controller_register(&pdev->dev, &ath79_reset->rcdev);