Lines Matching +full:ipa +full:- +full:reg
1 // SPDX-License-Identifier: GPL-2.0
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2020 Linaro Ltd.
9 #include "ipa.h"
12 int ipa_reg_init(struct ipa *ipa) in ipa_reg_init() argument
14 struct device *dev = &ipa->pdev->dev; in ipa_reg_init()
17 /* Setup IPA register memory */ in ipa_reg_init()
18 res = platform_get_resource_byname(ipa->pdev, IORESOURCE_MEM, in ipa_reg_init()
19 "ipa-reg"); in ipa_reg_init()
21 dev_err(dev, "DT error getting \"ipa-reg\" memory property\n"); in ipa_reg_init()
22 return -ENODEV; in ipa_reg_init()
25 ipa->reg_virt = ioremap(res->start, resource_size(res)); in ipa_reg_init()
26 if (!ipa->reg_virt) { in ipa_reg_init()
27 dev_err(dev, "unable to remap \"ipa-reg\" memory\n"); in ipa_reg_init()
28 return -ENOMEM; in ipa_reg_init()
30 ipa->reg_addr = res->start; in ipa_reg_init()
35 void ipa_reg_exit(struct ipa *ipa) in ipa_reg_exit() argument
37 iounmap(ipa->reg_virt); in ipa_reg_exit()