Lines Matching refs:a10r
47 struct a10sr_reset *a10r = to_a10sr_rst(rcdev); in a10sr_reset_update() local
52 return regmap_update_bits(a10r->regmap, index, mask, assert ? 0 : mask); in a10sr_reset_update()
71 struct a10sr_reset *a10r = to_a10sr_rst(rcdev); in a10sr_reset_status() local
77 ret = regmap_read(a10r->regmap, index, &value); in a10sr_reset_status()
93 struct a10sr_reset *a10r; in a10sr_reset_probe() local
95 a10r = devm_kzalloc(&pdev->dev, sizeof(struct a10sr_reset), in a10sr_reset_probe()
97 if (!a10r) in a10sr_reset_probe()
100 a10r->rcdev.owner = THIS_MODULE; in a10sr_reset_probe()
101 a10r->rcdev.nr_resets = A10SR_RESET_NUM; in a10sr_reset_probe()
102 a10r->rcdev.ops = &a10sr_reset_ops; in a10sr_reset_probe()
103 a10r->rcdev.of_node = pdev->dev.of_node; in a10sr_reset_probe()
104 a10r->regmap = a10sr->regmap; in a10sr_reset_probe()
106 platform_set_drvdata(pdev, a10r); in a10sr_reset_probe()
108 return devm_reset_controller_register(&pdev->dev, &a10r->rcdev); in a10sr_reset_probe()