Searched refs:nfit_res (Results 1 – 2 of 2) sorted by relevance
76 struct nfit_test_resource *nfit_res = get_nfit_res(offset); in __nfit_test_ioremap() local78 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() local89 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() local101 if (nfit_res) in __wrap_devm_memremap()[all …]
1127 struct nfit_test_resource *nfit_res = data; in release_nfit_res() local1130 list_del(&nfit_res->list); in release_nfit_res()1133 vfree(nfit_res->buf); in release_nfit_res()1134 kfree(nfit_res); in release_nfit_res()1141 struct nfit_test_resource *nfit_res = kzalloc(sizeof(*nfit_res), in __test_alloc() local1145 if (!buf || !nfit_res) in __test_alloc()1147 rc = devm_add_action(dev, release_nfit_res, nfit_res); in __test_alloc()1150 INIT_LIST_HEAD(&nfit_res->list); in __test_alloc()1152 nfit_res->dev = dev; in __test_alloc()1153 nfit_res->buf = buf; in __test_alloc()[all …]