nfit_res 68 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(offset); nfit_res 70 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 71 tools/testing/nvdimm/test/iomap.c return (void __iomem *) nfit_res->buf + offset nfit_res 72 tools/testing/nvdimm/test/iomap.c - nfit_res->res.start; nfit_res 79 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(offset); nfit_res 81 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 82 tools/testing/nvdimm/test/iomap.c return (void __iomem *) nfit_res->buf + offset nfit_res 83 tools/testing/nvdimm/test/iomap.c - nfit_res->res.start; nfit_res 91 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(offset); nfit_res 93 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 94 tools/testing/nvdimm/test/iomap.c return nfit_res->buf + offset - nfit_res->res.start; nfit_res 130 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(offset); nfit_res 132 tools/testing/nvdimm/test/iomap.c if (!nfit_res) nfit_res 155 tools/testing/nvdimm/test/iomap.c return nfit_res->buf + offset - nfit_res->res.start; nfit_res 161 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(addr); nfit_res 163 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 172 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(offset); nfit_res 174 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 175 tools/testing/nvdimm/test/iomap.c return nfit_res->buf + offset - nfit_res->res.start; nfit_res 182 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); nfit_res 184 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 204 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); nfit_res 205 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 213 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res((long) addr); nfit_res 215 tools/testing/nvdimm/test/iomap.c if (nfit_res) nfit_res 246 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res(start); nfit_res 248 tools/testing/nvdimm/test/iomap.c if (nfit_res) { nfit_res 258 tools/testing/nvdimm/test/iomap.c spin_lock(&nfit_res->lock); nfit_res 259 tools/testing/nvdimm/test/iomap.c list_for_each_entry(req, &nfit_res->requests, list) nfit_res 265 tools/testing/nvdimm/test/iomap.c spin_unlock(&nfit_res->lock); nfit_res 282 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res; nfit_res 285 tools/testing/nvdimm/test/iomap.c nfit_res = get_nfit_res(start); nfit_res 286 tools/testing/nvdimm/test/iomap.c if (nfit_res) { nfit_res 290 tools/testing/nvdimm/test/iomap.c if (start + n > nfit_res->res.start nfit_res 291 tools/testing/nvdimm/test/iomap.c + resource_size(&nfit_res->res)) { nfit_res 294 tools/testing/nvdimm/test/iomap.c &nfit_res->res); nfit_res 298 tools/testing/nvdimm/test/iomap.c spin_lock(&nfit_res->lock); nfit_res 299 tools/testing/nvdimm/test/iomap.c list_for_each_entry(req, &nfit_res->requests, list) nfit_res 304 tools/testing/nvdimm/test/iomap.c spin_unlock(&nfit_res->lock); nfit_res 322 tools/testing/nvdimm/test/iomap.c spin_lock(&nfit_res->lock); nfit_res 323 tools/testing/nvdimm/test/iomap.c list_add(&req->list, &nfit_res->requests); nfit_res 324 tools/testing/nvdimm/test/iomap.c spin_unlock(&nfit_res->lock); nfit_res 400 tools/testing/nvdimm/test/iomap.c struct nfit_test_resource *nfit_res = get_nfit_res((long) handle); nfit_res 403 tools/testing/nvdimm/test/iomap.c if (!nfit_res || strcmp(path, "_FIT") || !buf) nfit_res 406 tools/testing/nvdimm/test/iomap.c obj = nfit_res->buf; nfit_res 1415 tools/testing/nvdimm/test/nfit.c struct nfit_test_resource *nfit_res = data; nfit_res 1418 tools/testing/nvdimm/test/nfit.c list_del(&nfit_res->list); nfit_res 1421 tools/testing/nvdimm/test/nfit.c if (resource_size(&nfit_res->res) >= DIMM_SIZE) nfit_res 1422 tools/testing/nvdimm/test/nfit.c gen_pool_free(nfit_pool, nfit_res->res.start, nfit_res 1423 tools/testing/nvdimm/test/nfit.c resource_size(&nfit_res->res)); nfit_res 1424 tools/testing/nvdimm/test/nfit.c vfree(nfit_res->buf); nfit_res 1425 tools/testing/nvdimm/test/nfit.c kfree(nfit_res); nfit_res 1432 tools/testing/nvdimm/test/nfit.c struct nfit_test_resource *nfit_res = kzalloc(sizeof(*nfit_res), nfit_res 1436 tools/testing/nvdimm/test/nfit.c if (!buf || !nfit_res || !*dma) nfit_res 1438 tools/testing/nvdimm/test/nfit.c rc = devm_add_action(dev, release_nfit_res, nfit_res); nfit_res 1441 tools/testing/nvdimm/test/nfit.c INIT_LIST_HEAD(&nfit_res->list); nfit_res 1443 tools/testing/nvdimm/test/nfit.c nfit_res->dev = dev; nfit_res 1444 tools/testing/nvdimm/test/nfit.c nfit_res->buf = buf; nfit_res 1445 tools/testing/nvdimm/test/nfit.c nfit_res->res.start = *dma; nfit_res 1446 tools/testing/nvdimm/test/nfit.c nfit_res->res.end = *dma + size - 1; nfit_res 1447 tools/testing/nvdimm/test/nfit.c nfit_res->res.name = "NFIT"; nfit_res 1448 tools/testing/nvdimm/test/nfit.c spin_lock_init(&nfit_res->lock); nfit_res 1449 tools/testing/nvdimm/test/nfit.c INIT_LIST_HEAD(&nfit_res->requests); nfit_res 1451 tools/testing/nvdimm/test/nfit.c list_add(&nfit_res->list, &t->resources); nfit_res 1454 tools/testing/nvdimm/test/nfit.c return nfit_res->buf; nfit_res 1460 tools/testing/nvdimm/test/nfit.c kfree(nfit_res); nfit_res 1484 tools/testing/nvdimm/test/nfit.c struct nfit_test_resource *n, *nfit_res = NULL; nfit_res 1493 tools/testing/nvdimm/test/nfit.c nfit_res = n; nfit_res 1498 tools/testing/nvdimm/test/nfit.c nfit_res = n; nfit_res 1503 tools/testing/nvdimm/test/nfit.c if (nfit_res) nfit_res 1504 tools/testing/nvdimm/test/nfit.c return nfit_res;