Searched refs:nsio (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/nvdimm/ |
D | claim.c | 256 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in nsio_rw_bytes() local 264 if (unlikely(offset + size > nsio->size)) { in nsio_rw_bytes() 270 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) in nsio_rw_bytes() 272 if (copy_mc_to_kernel(buf, nsio->addr + offset, size) != 0) in nsio_rw_bytes() 277 if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) { in nsio_rw_bytes() 284 nsio->res.start + offset, size); in nsio_rw_bytes() 289 badblocks_clear(&nsio->bb, sector, cleared); in nsio_rw_bytes() 291 arch_invalidate_pmem(nsio->addr + offset, size); in nsio_rw_bytes() 296 memcpy_flushcache(nsio->addr + offset, buf, size); in nsio_rw_bytes() 304 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio, in devm_nsio_enable() argument [all …]
|
D | pfn_devs.c | 208 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in resource_show() local 210 rc = sprintf(buf, "%#llx\n", (unsigned long long) nsio->res.start in resource_show() 235 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in size_show() local 238 resource_size(&nsio->res) - start_pad in size_show() 370 struct nd_namespace_io *nsio; in nd_pfn_clear_memmap_errors() local 375 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_clear_memmap_errors() 398 + (first_bad << 9)) - nsio->res.start, in nd_pfn_clear_memmap_errors() 453 struct nd_namespace_io *nsio; in nd_pfn_validate() local 583 nsio = to_nd_namespace_io(&ndns->dev); in nd_pfn_validate() 584 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() 91 struct nd_namespace_io *nsio; in pmem_should_map_pages() local 105 nsio = to_nd_namespace_io(dev); in pmem_should_map_pages() 106 if (region_intersects(nsio->res.start, resource_size(&nsio->res), in pmem_should_map_pages() 246 resource_size_t size = resource_size(&nspm->nsio.res); in nd_namespace_label_update() 694 struct resource *res = &nspm->nsio.res; in nd_namespace_pmem_set_resource() 875 return resource_size(&nspm->nsio.res); in __nvdimm_namespace_capacity() 877 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in __nvdimm_namespace_capacity() local 879 return resource_size(&nsio->res); in __nvdimm_namespace_capacity() [all …]
|
D | nd-core.h | 149 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio, 151 void devm_nsio_disable(struct device *dev, struct nd_namespace_io *nsio); 154 struct nd_namespace_io *nsio, resource_size_t size) in devm_nsio_enable() argument 160 struct nd_namespace_io *nsio) in devm_nsio_disable() argument
|
D | pmem.c | 474 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev); in pmem_attach_disk() local 477 struct resource *res = &nsio->res; in pmem_attach_disk() 699 struct nd_namespace_io *nsio; in pmem_revalidate_poison() local 709 nsio = to_nd_namespace_io(&ndns->dev); in pmem_revalidate_poison() 710 bb = &nsio->bb; in pmem_revalidate_poison() 731 nsio = to_nd_namespace_io(&ndns->dev); in pmem_revalidate_poison() 734 range.start = nsio->res.start + offset; in pmem_revalidate_poison() 735 range.end = nsio->res.end - end_trunc; in pmem_revalidate_poison()
|
D | bus.c | 943 struct nd_namespace_io *nsio; in nd_pmem_forget_poison_check() local 965 nsio = to_nd_namespace_io(&ndns->dev); in nd_pmem_forget_poison_check() 966 pstart = nsio->res.start + offset; in nd_pmem_forget_poison_check() 967 pend = nsio->res.end - end_trunc; in nd_pmem_forget_poison_check()
|
D | label.c | 877 struct nd_namespace_common *ndns = &nspm->nsio.common; in __pmem_label_update() 956 dev_WARN_ONCE(&nspm->nsio.common.dev, nd_label, in __pmem_label_update()
|
D | btt.c | 1584 struct nd_namespace_io *nsio; in btt_init() local 1598 nsio = to_nd_namespace_io(&nd_btt->ndns->dev); in btt_init() 1599 btt->phys_bb = &nsio->bb; in btt_init()
|
/linux-6.1.9/include/linux/ |
D | nd.h | 140 struct nd_namespace_io nsio; member 154 struct nd_namespace_io *nsio = to_nd_namespace_io(dev); in to_nd_namespace_pmem() local 156 return container_of(nsio, struct nd_namespace_pmem, nsio); in to_nd_namespace_pmem()
|
/linux-6.1.9/drivers/dax/ |
D | pmem.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()
|