sprd_hwlock        45 drivers/hwspinlock/sprd_hwspinlock.c 	struct sprd_hwspinlock_dev *sprd_hwlock =
sprd_hwlock        55 drivers/hwspinlock/sprd_hwspinlock.c 	user_id = readl(sprd_hwlock->base + HWSPINLOCK_MASTERID(lock_id));
sprd_hwlock        56 drivers/hwspinlock/sprd_hwspinlock.c 	dev_warn(sprd_hwlock->bank.dev,
sprd_hwlock        84 drivers/hwspinlock/sprd_hwspinlock.c 	struct sprd_hwspinlock_dev *sprd_hwlock;
sprd_hwlock        92 drivers/hwspinlock/sprd_hwspinlock.c 	sprd_hwlock = devm_kzalloc(&pdev->dev,
sprd_hwlock        96 drivers/hwspinlock/sprd_hwspinlock.c 	if (!sprd_hwlock)
sprd_hwlock       100 drivers/hwspinlock/sprd_hwspinlock.c 	sprd_hwlock->base = devm_ioremap_resource(&pdev->dev, res);
sprd_hwlock       101 drivers/hwspinlock/sprd_hwspinlock.c 	if (IS_ERR(sprd_hwlock->base))
sprd_hwlock       102 drivers/hwspinlock/sprd_hwspinlock.c 		return PTR_ERR(sprd_hwlock->base);
sprd_hwlock       104 drivers/hwspinlock/sprd_hwspinlock.c 	sprd_hwlock->clk = devm_clk_get(&pdev->dev, "enable");
sprd_hwlock       105 drivers/hwspinlock/sprd_hwspinlock.c 	if (IS_ERR(sprd_hwlock->clk)) {
sprd_hwlock       107 drivers/hwspinlock/sprd_hwspinlock.c 		return PTR_ERR(sprd_hwlock->clk);
sprd_hwlock       110 drivers/hwspinlock/sprd_hwspinlock.c 	clk_prepare_enable(sprd_hwlock->clk);
sprd_hwlock       113 drivers/hwspinlock/sprd_hwspinlock.c 	writel(HWSPINLOCK_USER_BITS, sprd_hwlock->base + HWSPINLOCK_RECCTRL);
sprd_hwlock       116 drivers/hwspinlock/sprd_hwspinlock.c 		lock = &sprd_hwlock->bank.lock[i];
sprd_hwlock       117 drivers/hwspinlock/sprd_hwspinlock.c 		lock->priv = sprd_hwlock->base + HWSPINLOCK_TOKEN(i);
sprd_hwlock       120 drivers/hwspinlock/sprd_hwspinlock.c 	platform_set_drvdata(pdev, sprd_hwlock);
sprd_hwlock       123 drivers/hwspinlock/sprd_hwspinlock.c 	ret = hwspin_lock_register(&sprd_hwlock->bank, &pdev->dev,
sprd_hwlock       127 drivers/hwspinlock/sprd_hwspinlock.c 		clk_disable_unprepare(sprd_hwlock->clk);
sprd_hwlock       136 drivers/hwspinlock/sprd_hwspinlock.c 	struct sprd_hwspinlock_dev *sprd_hwlock = platform_get_drvdata(pdev);
sprd_hwlock       138 drivers/hwspinlock/sprd_hwspinlock.c 	hwspin_lock_unregister(&sprd_hwlock->bank);
sprd_hwlock       140 drivers/hwspinlock/sprd_hwspinlock.c 	clk_disable_unprepare(sprd_hwlock->clk);