Lines Matching refs:rcdev
35 struct reset_controller_dev rcdev; member
39 #define to_hisi_reset_controller(rcdev) \ argument
40 container_of(rcdev, struct hisi_reset_controller, rcdev)
42 static int hisi_reset_of_xlate(struct reset_controller_dev *rcdev, in hisi_reset_of_xlate() argument
55 static int hisi_reset_assert(struct reset_controller_dev *rcdev, in hisi_reset_assert() argument
58 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_assert()
76 static int hisi_reset_deassert(struct reset_controller_dev *rcdev, in hisi_reset_deassert() argument
79 struct hisi_reset_controller *rstc = to_hisi_reset_controller(rcdev); in hisi_reset_deassert()
118 rstc->rcdev.owner = THIS_MODULE; in hisi_reset_init()
119 rstc->rcdev.ops = &hisi_reset_ops; in hisi_reset_init()
120 rstc->rcdev.of_node = pdev->dev.of_node; in hisi_reset_init()
121 rstc->rcdev.of_reset_n_cells = 2; in hisi_reset_init()
122 rstc->rcdev.of_xlate = hisi_reset_of_xlate; in hisi_reset_init()
123 reset_controller_register(&rstc->rcdev); in hisi_reset_init()
131 reset_controller_unregister(&rstc->rcdev); in hisi_reset_exit()