ath79_reset        28 drivers/reset/reset-ath79.c 	struct ath79_reset *ath79_reset =
ath79_reset        29 drivers/reset/reset-ath79.c 		container_of(rcdev, struct ath79_reset, rcdev);
ath79_reset        33 drivers/reset/reset-ath79.c 	spin_lock_irqsave(&ath79_reset->lock, flags);
ath79_reset        34 drivers/reset/reset-ath79.c 	val = readl(ath79_reset->base);
ath79_reset        39 drivers/reset/reset-ath79.c 	writel(val, ath79_reset->base);
ath79_reset        40 drivers/reset/reset-ath79.c 	spin_unlock_irqrestore(&ath79_reset->lock, flags);
ath79_reset        60 drivers/reset/reset-ath79.c 	struct ath79_reset *ath79_reset =
ath79_reset        61 drivers/reset/reset-ath79.c 		container_of(rcdev, struct ath79_reset, rcdev);
ath79_reset        64 drivers/reset/reset-ath79.c 	val = readl(ath79_reset->base);
ath79_reset        78 drivers/reset/reset-ath79.c 	struct ath79_reset *ath79_reset =
ath79_reset        79 drivers/reset/reset-ath79.c 		container_of(nb, struct ath79_reset, restart_nb);
ath79_reset        81 drivers/reset/reset-ath79.c 	ath79_reset_assert(&ath79_reset->rcdev, FULL_CHIP_RESET);
ath79_reset        88 drivers/reset/reset-ath79.c 	struct ath79_reset *ath79_reset;
ath79_reset        92 drivers/reset/reset-ath79.c 	ath79_reset = devm_kzalloc(&pdev->dev,
ath79_reset        93 drivers/reset/reset-ath79.c 				sizeof(*ath79_reset), GFP_KERNEL);
ath79_reset        94 drivers/reset/reset-ath79.c 	if (!ath79_reset)
ath79_reset        97 drivers/reset/reset-ath79.c 	platform_set_drvdata(pdev, ath79_reset);
ath79_reset       100 drivers/reset/reset-ath79.c 	ath79_reset->base = devm_ioremap_resource(&pdev->dev, res);
ath79_reset       101 drivers/reset/reset-ath79.c 	if (IS_ERR(ath79_reset->base))
ath79_reset       102 drivers/reset/reset-ath79.c 		return PTR_ERR(ath79_reset->base);
ath79_reset       104 drivers/reset/reset-ath79.c 	spin_lock_init(&ath79_reset->lock);
ath79_reset       105 drivers/reset/reset-ath79.c 	ath79_reset->rcdev.ops = &ath79_reset_ops;
ath79_reset       106 drivers/reset/reset-ath79.c 	ath79_reset->rcdev.owner = THIS_MODULE;
ath79_reset       107 drivers/reset/reset-ath79.c 	ath79_reset->rcdev.of_node = pdev->dev.of_node;
ath79_reset       108 drivers/reset/reset-ath79.c 	ath79_reset->rcdev.of_reset_n_cells = 1;
ath79_reset       109 drivers/reset/reset-ath79.c 	ath79_reset->rcdev.nr_resets = 32;
ath79_reset       111 drivers/reset/reset-ath79.c 	err = devm_reset_controller_register(&pdev->dev, &ath79_reset->rcdev);
ath79_reset       115 drivers/reset/reset-ath79.c 	ath79_reset->restart_nb.notifier_call = ath79_reset_restart_handler;
ath79_reset       116 drivers/reset/reset-ath79.c 	ath79_reset->restart_nb.priority = 128;
ath79_reset       118 drivers/reset/reset-ath79.c 	err = register_restart_handler(&ath79_reset->restart_nb);