Lines Matching refs:reset_data
32 struct reset_data { struct
41 static inline struct reset_data *rcdev_to_reset_data(struct reset_controller_dev *rcdev) in rcdev_to_reset_data() argument
43 return container_of(rcdev, struct reset_data, rcdev); in rcdev_to_reset_data()
49 struct reset_data *data = rcdev_to_reset_data(rcdev); in sun4i_a10_display_assert()
66 struct reset_data *data = rcdev_to_reset_data(rcdev); in sun4i_a10_display_deassert()
83 struct reset_data *data = rcdev_to_reset_data(rcdev); in sun4i_a10_display_status()
106 struct reset_data *reset_data; in sun4i_a10_display_init() local
178 reset_data = kzalloc(sizeof(*reset_data), GFP_KERNEL); in sun4i_a10_display_init()
179 if (!reset_data) in sun4i_a10_display_init()
182 reset_data->reg = reg; in sun4i_a10_display_init()
183 reset_data->offset = data->offset_rst; in sun4i_a10_display_init()
184 reset_data->lock = &sun4i_a10_display_lock; in sun4i_a10_display_init()
185 reset_data->rcdev.nr_resets = data->num_rst; in sun4i_a10_display_init()
186 reset_data->rcdev.ops = &sun4i_a10_display_reset_ops; in sun4i_a10_display_init()
187 reset_data->rcdev.of_node = node; in sun4i_a10_display_init()
190 reset_data->rcdev.of_reset_n_cells = 0; in sun4i_a10_display_init()
191 reset_data->rcdev.of_xlate = &sun4i_a10_display_reset_xlate; in sun4i_a10_display_init()
193 reset_data->rcdev.of_reset_n_cells = 1; in sun4i_a10_display_init()
196 if (reset_controller_register(&reset_data->rcdev)) { in sun4i_a10_display_init()
205 kfree(reset_data); in sun4i_a10_display_init()