Home
last modified time | relevance | path

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

/drivers/nvdimm/
Dclaim.c263 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in nsio_rw_bytes() local
271 if (unlikely(offset + size > nsio->size)) { in nsio_rw_bytes()
277 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) in nsio_rw_bytes()
279 return memcpy_mcsafe(buf, nsio->addr + offset, size); in nsio_rw_bytes()
282 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) { in nsio_rw_bytes()
289 nsio->res.start + offset, size); in nsio_rw_bytes()
294 badblocks_clear(&nsio->bb, sector, cleared); in nsio_rw_bytes()
296 arch_invalidate_pmem(nsio->addr + offset, size); in nsio_rw_bytes()
301 memcpy_flushcache(nsio->addr + offset, buf, size); in nsio_rw_bytes()
307 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio) in devm_nsio_enable() argument
[all …]
Dpfn_devs.c225 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in resource_show() local
227 rc = sprintf(buf, "%#llx\n", (unsigned long long) nsio->res.start in resource_show()
252 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in size_show() local
255 resource_size(&nsio->res) - start_pad in size_show()
377 struct nd_namespace_io *nsio; in nd_pfn_validate() local
474 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_validate()
475 if (offset >= resource_size(&nsio->res)) { in nd_pfn_validate()
481 if ((align && !IS_ALIGNED(nsio->res.start + offset + start_pad, align)) in nd_pfn_validate()
562 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in __nvdimm_setup_pfn() local
563 resource_size_t base = nsio->res.start + start_pad; in __nvdimm_setup_pfn()
[all …]
Dpmem.c304 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in pmem_attach_disk() local
308 struct resource *res = &nsio->res; in pmem_attach_disk()
328 devm_nsio_disable(dev, nsio); in pmem_attach_disk()
368 addr = devm_memremap_pages(dev, &nsio->res, in pmem_attach_disk()
491 struct nd_namespace_io *nsio; in nd_pmem_notify() local
504 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify()
505 bb = &nsio->bb; in nd_pmem_notify()
526 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify()
529 res.start = nsio->res.start + offset; in nd_pmem_notify()
530 res.end = nsio->res.end - end_trunc; in nd_pmem_notify()
Dnamespace_devs.c25 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in namespace_io_release() local
27 kfree(nsio); in namespace_io_release()
142 struct nd_namespace_io *nsio; in pmem_should_map_pages() local
156 nsio = to_nd_namespace_io(dev); in pmem_should_map_pages()
157 if (region_intersects(nsio->res.start, resource_size(&nsio->res), in pmem_should_map_pages()
394 resource_size_t size = resource_size(&nspm->nsio.res); in nd_namespace_label_update()
932 struct resource *res = &nspm->nsio.res; in nd_namespace_pmem_set_resource()
1128 return resource_size(&nspm->nsio.res); in __nvdimm_namespace_capacity()
1132 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in __nvdimm_namespace_capacity() local
1134 return resource_size(&nsio->res); in __nvdimm_namespace_capacity()
[all …]
Dnd.h383 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio);
384 void devm_nsio_disable(struct device *dev, struct nd_namespace_io *nsio);
392 struct nd_namespace_io *nsio) in devm_nsio_enable() argument
397 struct nd_namespace_io *nsio) in devm_nsio_disable() argument
Dbus.c851 struct nd_namespace_io *nsio; in nd_pmem_forget_poison_check() local
873 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_forget_poison_check()
874 pstart = nsio->res.start + offset; in nd_pmem_forget_poison_check()
875 pend = nsio->res.end - end_trunc; in nd_pmem_forget_poison_check()
Dbtt.c1592 struct nd_namespace_io *nsio; in btt_init() local
1606 nsio = to_nd_namespace_io(&nd_btt->ndns->dev); in btt_init()
1607 btt->phys_bb = &nsio->bb; in btt_init()
Dlabel.c634 struct nd_namespace_common *ndns = &nspm->nsio.common; in __pmem_label_update()
724 dev_WARN_ONCE(&nspm->nsio.common.dev, nd_label, in __pmem_label_update()
/drivers/dax/
Dpmem.c67 struct nd_namespace_io *nsio; in dax_pmem_probe() local
77 nsio = to_nd_namespace_io(&ndns->dev); in dax_pmem_probe()
80 rc = devm_nsio_enable(dev, nsio); in dax_pmem_probe()
86 devm_nsio_disable(dev, nsio); in dax_pmem_probe()
90 if (!devm_request_mem_region(dev, nsio->res.start, in dax_pmem_probe()
91 resource_size(&nsio->res), in dax_pmem_probe()
93 dev_warn(dev, "could not reserve region %pR\n", &nsio->res); in dax_pmem_probe()