Lines Matching refs:rcdev
23 struct reset_controller_dev rcdev; member
27 #define to_hisi_reset_controller(rcdev) \ argument
28 container_of(rcdev, struct hisi_reset_controller, rcdev)
30 static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev, in hisi_reset_of_xlate() argument
43 static int hisi_reset_assert(struct reset_controller_dev *rcdev, in hisi_reset_assert() argument
46 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_assert()
64 static int hisi_reset_deassert(struct reset_controller_dev *rcdev, in hisi_reset_deassert() argument
67 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_deassert()
103 rstc->rcdev.owner = THIS_MODULE; in hisi_reset_init()
104 rstc->rcdev.ops = &hisi_reset_ops; in hisi_reset_init()
105 rstc->rcdev.of_node = pdev->dev.of_node; in hisi_reset_init()
106 rstc->rcdev.of_reset_n_cells = 2; in hisi_reset_init()
107 rstc->rcdev.of_xlate = hisi_reset_of_xlate; in hisi_reset_init()
108 reset_controller_register(&rstc->rcdev); in hisi_reset_init()
116 reset_controller_unregister(&rstc->rcdev); in hisi_reset_exit()