Lines Matching refs:nfit_res

76 	struct nfit_test_resource *nfit_res = get_nfit_res(offset);  in __nfit_test_ioremap()  local
78 if (nfit_res) in __nfit_test_ioremap()
79 return (void __iomem *) nfit_res->buf + offset in __nfit_test_ioremap()
80 - nfit_res->res.start; in __nfit_test_ioremap()
87 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_devm_ioremap_nocache() local
89 if (nfit_res) in __wrap_devm_ioremap_nocache()
90 return (void __iomem *) nfit_res->buf + offset in __wrap_devm_ioremap_nocache()
91 - nfit_res->res.start; in __wrap_devm_ioremap_nocache()
99 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_devm_memremap() local
101 if (nfit_res) in __wrap_devm_memremap()
102 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap()
110 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_devm_memremap_pages() local
112 if (nfit_res) in __wrap_devm_memremap_pages()
113 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_devm_memremap_pages()
120 struct nfit_test_resource *nfit_res = get_nfit_res(addr); in __wrap_phys_to_pfn_t() local
122 if (nfit_res) in __wrap_phys_to_pfn_t()
131 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __wrap_memremap() local
133 if (nfit_res) in __wrap_memremap()
134 return nfit_res->buf + offset - nfit_res->res.start; in __wrap_memremap()
141 struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); in __wrap_devm_memunmap() local
143 if (nfit_res) in __wrap_devm_memunmap()
163 struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); in __wrap_iounmap() local
164 if (nfit_res) in __wrap_iounmap()
172 struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); in __wrap_memunmap() local
174 if (nfit_res) in __wrap_memunmap()
205 struct nfit_test_resource *nfit_res = get_nfit_res(start); in nfit_test_release_region() local
207 if (nfit_res) { in nfit_test_release_region()
217 spin_lock(&nfit_res->lock); in nfit_test_release_region()
218 list_for_each_entry(req, &nfit_res->requests, list) in nfit_test_release_region()
224 spin_unlock(&nfit_res->lock); in nfit_test_release_region()
241 struct nfit_test_resource *nfit_res; in nfit_test_request_region() local
244 nfit_res = get_nfit_res(start); in nfit_test_request_region()
245 if (nfit_res) { in nfit_test_request_region()
249 if (start + n > nfit_res->res.start in nfit_test_request_region()
250 + resource_size(&nfit_res->res)) { in nfit_test_request_region()
253 &nfit_res->res); in nfit_test_request_region()
257 spin_lock(&nfit_res->lock); in nfit_test_request_region()
258 list_for_each_entry(req, &nfit_res->requests, list) in nfit_test_request_region()
263 spin_unlock(&nfit_res->lock); in nfit_test_request_region()
281 spin_lock(&nfit_res->lock); in nfit_test_request_region()
282 list_add(&req->list, &nfit_res->requests); in nfit_test_request_region()
283 spin_unlock(&nfit_res->lock); in nfit_test_request_region()
359 struct nfit_test_resource *nfit_res = get_nfit_res((long) handle); in __wrap_acpi_evaluate_object() local
362 if (!nfit_res || strcmp(path, "_FIT") || !buf) in __wrap_acpi_evaluate_object()
365 obj = nfit_res->buf; in __wrap_acpi_evaluate_object()