Lines Matching refs:rst_data

473 	struct en_rst_data *rst_data = container_of(rcdev, struct en_rst_data, rcdev);  in en7523_reset_update()  local
474 void __iomem *addr = rst_data->base + rst_data->bank_ofs[id / RST_NR_PER_BANK]; in en7523_reset_update()
502 struct en_rst_data *rst_data = container_of(rcdev, struct en_rst_data, rcdev); in en7523_reset_status() local
503 void __iomem *addr = rst_data->base + rst_data->bank_ofs[id / RST_NR_PER_BANK]; in en7523_reset_status()
511 struct en_rst_data *rst_data = container_of(rcdev, struct en_rst_data, rcdev); in en7523_reset_xlate() local
516 return rst_data->idx_map[reset_spec->args[0]]; in en7523_reset_xlate()
529 struct en_rst_data *rst_data; in en7523_reset_register() local
540 rst_data = devm_kzalloc(dev, sizeof(*rst_data), GFP_KERNEL); in en7523_reset_register()
541 if (!rst_data) in en7523_reset_register()
544 rst_data->bank_ofs = soc_data->reset.bank_ofs; in en7523_reset_register()
545 rst_data->idx_map = soc_data->reset.idx_map; in en7523_reset_register()
546 rst_data->base = base; in en7523_reset_register()
548 rst_data->rcdev.nr_resets = soc_data->reset.idx_map_nr; in en7523_reset_register()
549 rst_data->rcdev.of_xlate = en7523_reset_xlate; in en7523_reset_register()
550 rst_data->rcdev.ops = &en7523_reset_ops; in en7523_reset_register()
551 rst_data->rcdev.of_node = dev->of_node; in en7523_reset_register()
552 rst_data->rcdev.of_reset_n_cells = 1; in en7523_reset_register()
553 rst_data->rcdev.owner = THIS_MODULE; in en7523_reset_register()
554 rst_data->rcdev.dev = dev; in en7523_reset_register()
556 return devm_reset_controller_register(dev, &rst_data->rcdev); in en7523_reset_register()