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;
49 rst = devm_kzalloc(&pdev->dev, sizeof(*rst), GFP_KERNEL);
50 if (!rst)
54 rst->regs_rst = devm_ioremap_resource(&pdev->dev, mem);
55 if (IS_ERR(rst->regs_rst))
56 return PTR_ERR(rst->regs_rst);
58 spin_lock_init(&rst->lock);
60 rst->rcdev.owner = THIS_MODULE;
61 rst->rcdev.ops = &axs10x_reset_ops;
62 rst->rcdev.of_node = pdev->dev.of_node;
63 rst->rcdev.nr_resets = AXS10X_MAX_RESETS;
65 return devm_reset_controller_register(&pdev->dev, &rst->rcdev);