Searched refs:nsio (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.10/drivers/nvdimm/ |
D | claim.c | 255 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in nsio_rw_bytes() local 263 if (unlikely(offset + size > nsio->size)) { in nsio_rw_bytes() 269 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) in nsio_rw_bytes() 271 if (copy_mc_to_kernel(buf, nsio->addr + offset, size) != 0) in nsio_rw_bytes() 276 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) { in nsio_rw_bytes() 283 nsio->res.start + offset, size); in nsio_rw_bytes() 288 badblocks_clear(&nsio->bb, sector, cleared); in nsio_rw_bytes() 290 arch_invalidate_pmem(nsio->addr + offset, size); in nsio_rw_bytes() 295 memcpy_flushcache(nsio->addr + offset, buf, size); in nsio_rw_bytes() 303 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio, in devm_nsio_enable() argument [all …]
|
D | pfn_devs.c | 209 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in resource_show() local 211 rc = sprintf(buf, "%#llx\n", (unsigned long long) nsio->res.start in resource_show() 236 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in size_show() local 239 resource_size(&nsio->res) - start_pad in size_show() 368 struct nd_namespace_io *nsio; in nd_pfn_clear_memmap_errors() local 373 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_clear_memmap_errors() 396 + (first_bad << 9)) - nsio->res.start, in nd_pfn_clear_memmap_errors() 451 struct nd_namespace_io *nsio; in nd_pfn_validate() local 581 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_validate() 582 res = &nsio->res; in nd_pfn_validate() [all …]
|
D | namespace_devs.c | 18 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in namespace_io_release() local 20 kfree(nsio); in namespace_io_release() 109 struct nd_namespace_io *nsio; in pmem_should_map_pages() local 123 nsio = to_nd_namespace_io(dev); in pmem_should_map_pages() 124 if (region_intersects(nsio->res.start, resource_size(&nsio->res), in pmem_should_map_pages() 360 resource_size_t size = resource_size(&nspm->nsio.res); in nd_namespace_label_update() 903 struct resource *res = &nspm->nsio.res; in nd_namespace_pmem_set_resource() 1098 return resource_size(&nspm->nsio.res); in __nvdimm_namespace_capacity() 1102 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in __nvdimm_namespace_capacity() local 1104 return resource_size(&nsio->res); in __nvdimm_namespace_capacity() [all …]
|
D | nd-core.h | 171 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio, 173 void devm_nsio_disable(struct device *dev, struct nd_namespace_io *nsio); 176 struct nd_namespace_io *nsio, resource_size_t size) in devm_nsio_enable() argument 182 struct nd_namespace_io *nsio) in devm_nsio_disable() argument
|
D | pmem.c | 374 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in pmem_attach_disk() local 377 struct resource *res = &nsio->res; in pmem_attach_disk() 596 struct nd_namespace_io *nsio; in nd_pmem_notify() local 609 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify() 610 bb = &nsio->bb; in nd_pmem_notify() 631 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_notify() 634 range.start = nsio->res.start + offset; in nd_pmem_notify() 635 range.end = nsio->res.end - end_trunc; in nd_pmem_notify()
|
D | bus.c | 940 struct nd_namespace_io *nsio; in nd_pmem_forget_poison_check() local 962 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_forget_poison_check() 963 pstart = nsio->res.start + offset; in nd_pmem_forget_poison_check() 964 pend = nsio->res.end - end_trunc; in nd_pmem_forget_poison_check()
|
D | btt.c | 1592 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()
|
D | label.c | 763 struct nd_namespace_common *ndns = &nspm->nsio.common; in __pmem_label_update() 853 dev_WARN_ONCE(&nspm->nsio.common.dev, nd_label, in __pmem_label_update()
|
/Linux-v5.10/include/linux/ |
D | nd.h | 87 struct nd_namespace_io nsio; member 122 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in to_nd_namespace_pmem() local 124 return container_of(nsio, struct nd_namespace_pmem, nsio); in to_nd_namespace_pmem()
|
/Linux-v5.10/drivers/dax/pmem/ |
D | core.c | 18 struct nd_namespace_io *nsio; in __dax_pmem_probe() local 42 nsio = to_nd_namespace_io(&ndns->dev); in __dax_pmem_probe() 43 if (!devm_request_mem_region(dev, nsio->res.start, offset, in __dax_pmem_probe()
|