Home
last modified time | relevance | path

Searched refs:nsio (Results 1 – 4 of 4) sorted by relevance

/drivers/nvdimm/
Dnamespace_devs.c23 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in namespace_io_release() local
25 kfree(nsio); in namespace_io_release()
355 resource_size_t size = resource_size(&nspm->nsio.res); in nd_namespace_label_update()
841 struct resource *res = &nspm->nsio.res; in nd_namespace_pmem_set_size()
992 return resource_size(&nspm->nsio.res); in __nvdimm_namespace_capacity()
996 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in __nvdimm_namespace_capacity() local
998 return resource_size(&nsio->res); in __nvdimm_namespace_capacity()
1153 res = &nspm->nsio.res; in resource_show()
1155 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in resource_show() local
1157 res = &nsio->res; in resource_show()
[all …]
Dpmem.c311 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in nvdimm_namespace_attach_pfn() local
333 if (nsio->res.start & ND_PFN_MASK) { in nvdimm_namespace_attach_pfn()
355 pmem->virt_addr = (void __pmem *) devm_memremap_pages(dev, &nsio->res); in nvdimm_namespace_attach_pfn()
377 struct nd_namespace_io *nsio; in nd_pmem_probe() local
384 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_probe()
385 pmem = pmem_alloc(dev, &nsio->res, nd_region->id); in nd_pmem_probe()
Dpfn_devs.c235 struct nd_namespace_io *nsio; in nd_pfn_validate() local
288 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_validate()
289 if (nsio->res.start & ND_PFN_MASK) { in nd_pfn_validate()
294 } else if (offset >= resource_size(&nsio->res)) { in nd_pfn_validate()
Dlabel.c525 rawsize = div_u64(resource_size(&nspm->nsio.res), in __pmem_label_update()