Lines Matching refs:rcdev
21 struct reset_controller_dev rcdev; member
33 struct tps380x_reset *to_tps380x_reset(struct reset_controller_dev *rcdev) in to_tps380x_reset() argument
35 return container_of(rcdev, struct tps380x_reset, rcdev); in to_tps380x_reset()
39 tps380x_reset_assert(struct reset_controller_dev *rcdev, unsigned long id) in tps380x_reset_assert() argument
41 struct tps380x_reset *tps380x = to_tps380x_reset(rcdev); in tps380x_reset_assert()
49 tps380x_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id) in tps380x_reset_deassert() argument
51 struct tps380x_reset *tps380x = to_tps380x_reset(rcdev); in tps380x_reset_deassert()
64 static int tps380x_reset_of_xlate(struct reset_controller_dev *rcdev, in tps380x_reset_of_xlate() argument
92 tps380x->rcdev.ops = &reset_tps380x_ops; in tps380x_reset_probe()
93 tps380x->rcdev.owner = THIS_MODULE; in tps380x_reset_probe()
94 tps380x->rcdev.dev = dev; in tps380x_reset_probe()
95 tps380x->rcdev.of_node = dev->of_node; in tps380x_reset_probe()
96 tps380x->rcdev.of_reset_n_cells = 0; in tps380x_reset_probe()
97 tps380x->rcdev.of_xlate = tps380x_reset_of_xlate; in tps380x_reset_probe()
98 tps380x->rcdev.nr_resets = 1; in tps380x_reset_probe()
100 return devm_reset_controller_register(dev, &tps380x->rcdev); in tps380x_reset_probe()