Lines Matching refs:rc_dev

31 #define to_reset_data(x) container_of(x, struct hi6220_reset_data, rc_dev)
40 struct reset_controller_dev rc_dev; member
44 static int hi6220_peripheral_assert(struct reset_controller_dev *rc_dev, in hi6220_peripheral_assert() argument
47 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_assert()
56 static int hi6220_peripheral_deassert(struct reset_controller_dev *rc_dev, in hi6220_peripheral_deassert() argument
59 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_deassert()
73 static int hi6220_media_assert(struct reset_controller_dev *rc_dev, in hi6220_media_assert() argument
76 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_media_assert()
82 static int hi6220_media_deassert(struct reset_controller_dev *rc_dev, in hi6220_media_deassert() argument
85 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_media_deassert()
106 static int hi6220_ao_assert(struct reset_controller_dev *rc_dev, in hi6220_ao_assert() argument
109 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_ao_assert()
125 static int hi6220_ao_deassert(struct reset_controller_dev *rc_dev, in hi6220_ao_deassert() argument
128 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_ao_deassert()
176 data->rc_dev.of_node = np; in hi6220_reset_probe()
178 data->rc_dev.ops = &hi6220_media_reset_ops; in hi6220_reset_probe()
179 data->rc_dev.nr_resets = MEDIA_MAX_INDEX; in hi6220_reset_probe()
181 data->rc_dev.ops = &hi6220_peripheral_reset_ops; in hi6220_reset_probe()
182 data->rc_dev.nr_resets = PERIPH_MAX_INDEX; in hi6220_reset_probe()
184 data->rc_dev.ops = &hi6220_ao_reset_ops; in hi6220_reset_probe()
185 data->rc_dev.nr_resets = AO_MAX_INDEX; in hi6220_reset_probe()
188 return reset_controller_register(&data->rc_dev); in hi6220_reset_probe()