Lines Matching refs:nfit_res
66 struct nfit_test_resource *nfit_res = get_nfit_res(offset); \
67 nfit_res ? \
68 (void __iomem *) nfit_res->buf + (offset) \
69 - nfit_res->res.start \
77 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_devm_ioremap() local
79 if (nfit_res) in __wrap_devm_ioremap()
80 return (void __iomem *) nfit_res->buf + offset in __wrap_devm_ioremap()
81 - nfit_res->res.start; in __wrap_devm_ioremap()
89 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_devm_memremap() local
91 if (nfit_res) in __wrap_devm_memremap()
92 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap()
120 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_devm_memremap_pages() local
122 if (!nfit_res) in __wrap_devm_memremap_pages()
134 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap_pages()
140 struct nfit_test_resource *nfit_res = get_nfit_res(addr); in __wrap_phys_to_pfn_t() local
142 if (nfit_res) in __wrap_phys_to_pfn_t()
151 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_memremap() local
153 if (nfit_res) in __wrap_memremap()
154 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_memremap()
161 struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); in __wrap_devm_memunmap() local
163 if (nfit_res) in __wrap_devm_memunmap()
183 struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); in __wrap_iounmap() local
184 if (nfit_res) in __wrap_iounmap()
192 struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); in __wrap_memunmap() local
194 if (nfit_res) in __wrap_memunmap()
225 struct nfit_test_resource *nfit_res = get_nfit_res(start); in nfit_test_release_region() local
227 if (nfit_res) { in nfit_test_release_region()
237 spin_lock(&nfit_res->lock); in nfit_test_release_region()
238 list_for_each_entry(req, &nfit_res->requests, list) in nfit_test_release_region()
244 spin_unlock(&nfit_res->lock); in nfit_test_release_region()
261 struct nfit_test_resource *nfit_res; in nfit_test_request_region() local
264 nfit_res = get_nfit_res(start); in nfit_test_request_region()
265 if (nfit_res) { in nfit_test_request_region()
269 if (start + n > nfit_res->res.start in nfit_test_request_region()
270 + resource_size(&nfit_res->res)) { in nfit_test_request_region()
273 &nfit_res->res); in nfit_test_request_region()
277 spin_lock(&nfit_res->lock); in nfit_test_request_region()
278 list_for_each_entry(req, &nfit_res->requests, list) in nfit_test_request_region()
283 spin_unlock(&nfit_res->lock); in nfit_test_request_region()
301 spin_lock(&nfit_res->lock); in nfit_test_request_region()
302 list_add(&req->list, &nfit_res->requests); in nfit_test_request_region()
303 spin_unlock(&nfit_res->lock); in nfit_test_request_region()
379 struct nfit_test_resource *nfit_res = get_nfit_res((long) handle); in __wrap_acpi_evaluate_object() local
382 if (!nfit_res || strcmp(path, "_FIT") || !buf) in __wrap_acpi_evaluate_object()
385 obj = nfit_res->buf; in __wrap_acpi_evaluate_object()