Searched refs:nsio (Results 1 – 7 of 7) sorted by relevance
/drivers/nvdimm/ |
D | claim.c | 228 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in nsio_rw_bytes() local 230 if (unlikely(offset + size > nsio->size)) { in nsio_rw_bytes() 238 if (unlikely(is_bad_pmem(&nsio->bb, offset / 512, sz_align))) in nsio_rw_bytes() 240 return memcpy_from_pmem(buf, nsio->addr + offset, size); in nsio_rw_bytes() 242 memcpy_to_pmem(nsio->addr + offset, buf, size); in nsio_rw_bytes() 249 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio) in devm_nsio_enable() argument 251 struct resource *res = &nsio->res; in devm_nsio_enable() 252 struct nd_namespace_common *ndns = &nsio->common; in devm_nsio_enable() 254 nsio->size = resource_size(res); in devm_nsio_enable() 262 if (devm_init_badblocks(dev, &nsio->bb)) in devm_nsio_enable() [all …]
|
D | pfn_devs.c | 221 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in resource_show() local 223 rc = sprintf(buf, "%#llx\n", (unsigned long long) nsio->res.start in resource_show() 248 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in size_show() local 251 resource_size(&nsio->res) - start_pad in size_show() 356 struct nd_namespace_io *nsio; in nd_pfn_validate() local 453 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_validate() 454 if (offset >= resource_size(&nsio->res)) { in nd_pfn_validate() 460 if ((align && !IS_ALIGNED(nsio->res.start + offset + start_pad, align)) in nd_pfn_validate() 533 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in __nvdimm_setup_pfn() local 534 resource_size_t base = nsio->res.start + start_pad; in __nvdimm_setup_pfn() [all …]
|
D | pmem.c | 240 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in pmem_attach_disk() local 243 struct resource *res = &nsio->res; in pmem_attach_disk() 262 devm_nsio_disable(dev, nsio); in pmem_attach_disk() 295 addr = devm_memremap_pages(dev, &nsio->res, in pmem_attach_disk() 391 struct nd_namespace_io *nsio; in nd_pmem_notify() local 403 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify() 404 bb = &nsio->bb; in nd_pmem_notify() 423 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify() 426 res.start = nsio->res.start + offset; in nd_pmem_notify() 427 res.end = nsio->res.end - end_trunc; in nd_pmem_notify()
|
D | namespace_devs.c | 25 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in namespace_io_release() local 27 kfree(nsio); in namespace_io_release() 141 struct nd_namespace_io *nsio; in pmem_should_map_pages() local 152 nsio = to_nd_namespace_io(dev); in pmem_should_map_pages() 153 if (region_intersects(nsio->res.start, resource_size(&nsio->res), in pmem_should_map_pages() 371 resource_size_t size = resource_size(&nspm->nsio.res); in nd_namespace_label_update() 909 struct resource *res = &nspm->nsio.res; in nd_namespace_pmem_set_resource() 1105 return resource_size(&nspm->nsio.res); in __nvdimm_namespace_capacity() 1109 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in __nvdimm_namespace_capacity() local 1111 return resource_size(&nsio->res); in __nvdimm_namespace_capacity() [all …]
|
D | nd.h | 353 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio); 354 void devm_nsio_disable(struct device *dev, struct nd_namespace_io *nsio); 362 struct nd_namespace_io *nsio) in devm_nsio_enable() argument 367 struct nd_namespace_io *nsio) in devm_nsio_disable() argument
|
D | label.c | 578 dev_WARN_ONCE(&nspm->nsio.common.dev, nd_label, in __pmem_label_update()
|
/drivers/dax/ |
D | pmem.c | 67 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), dev_name(dev))) { in dax_pmem_probe() 92 dev_warn(dev, "could not reserve region %pR\n", &nsio->res); in dax_pmem_probe()
|