Lines Matching refs:rst
30 struct axs10x_rst *rst = to_axs10x_rst(rcdev);
33 spin_lock_irqsave(&rst->lock, flags);
34 writel(BIT(id), rst->regs_rst);
35 spin_unlock_irqrestore(&rst->lock, flags);
46 struct axs10x_rst *rst;
48 rst = devm_kzalloc(&pdev->dev, sizeof(*rst), GFP_KERNEL);
49 if (!rst)
52 rst->regs_rst = devm_platform_ioremap_resource(pdev, 0);
53 if (IS_ERR(rst->regs_rst))
54 return PTR_ERR(rst->regs_rst);
56 spin_lock_init(&rst->lock);
58 rst->rcdev.owner = THIS_MODULE;
59 rst->rcdev.ops = &axs10x_reset_ops;
60 rst->rcdev.of_node = pdev->dev.of_node;
61 rst->rcdev.nr_resets = AXS10X_MAX_RESETS;
63 return devm_reset_controller_register(&pdev->dev, &rst->rcdev);