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