Home
last modified time | relevance | path

Searched refs:ndbr (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/nvdimm/
Dblk.c66 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nd_blk_rw_integrity() local
93 err = ndbr->do_io(ndbr, dev_offset, iobuf + bv.bv_offset, in nd_blk_rw_integrity()
120 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nsblk_do_bvec() local
147 err = ndbr->do_io(ndbr, dev_offset, iobuf + off, cur_len, rw); in nsblk_do_bvec()
210 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nsblk_rw_bytes() local
223 return ndbr->do_io(ndbr, dev_offset, iobuf, n, rw); in nsblk_rw_bytes()
Dregion_devs.c175 void *nd_blk_region_provider_data(struct nd_blk_region *ndbr) in nd_blk_region_provider_data() argument
177 return ndbr->blk_provider_data; in nd_blk_region_provider_data()
181 void nd_blk_region_set_provider_data(struct nd_blk_region *ndbr, void *data) in nd_blk_region_set_provider_data() argument
183 ndbr->blk_provider_data = data; in nd_blk_region_set_provider_data()
1063 struct nd_blk_region *ndbr; in nd_region_create() local
1066 ndbr = kzalloc(sizeof(*ndbr) + sizeof(struct nd_mapping) in nd_region_create()
1069 if (ndbr) { in nd_region_create()
1070 nd_region = &ndbr->nd_region; in nd_region_create()
1071 ndbr->enable = ndbr_desc->enable; in nd_region_create()
1072 ndbr->do_io = ndbr_desc->do_io; in nd_region_create()
[all …]
Ddimm_devs.c214 struct nvdimm *nd_blk_region_to_dimm(struct nd_blk_region *ndbr) in nd_blk_region_to_dimm() argument
216 struct nd_region *nd_region = &ndbr->nd_region; in nd_blk_region_to_dimm()
223 unsigned long nd_blk_memremap_flags(struct nd_blk_region *ndbr) in nd_blk_memremap_flags() argument
Dnd.h165 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
/Linux-v5.10/include/linux/
Dlibnvdimm.h148 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
298 void *nd_blk_region_provider_data(struct nd_blk_region *ndbr);
299 void nd_blk_region_set_provider_data(struct nd_blk_region *ndbr, void *data);
300 struct nvdimm *nd_blk_region_to_dimm(struct nd_blk_region *ndbr);
301 unsigned long nd_blk_memremap_flags(struct nd_blk_region *ndbr);
/Linux-v5.10/drivers/acpi/nfit/
Dnfit.h269 int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
Dcore.c2541 static int acpi_nfit_blk_region_do_io(struct nd_blk_region *ndbr, in acpi_nfit_blk_region_do_io() argument
2544 struct nfit_blk *nfit_blk = nd_blk_region_provider_data(ndbr); in acpi_nfit_blk_region_do_io()
2608 struct nd_blk_region *ndbr = to_nd_blk_region(dev); in acpi_nfit_blk_region_enable() local
2615 nvdimm = nd_blk_region_to_dimm(ndbr); in acpi_nfit_blk_region_enable()
2628 nd_blk_region_set_provider_data(ndbr, nfit_blk); in acpi_nfit_blk_region_enable()
2635 nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr)); in acpi_nfit_blk_region_enable()
/Linux-v5.10/tools/testing/nvdimm/test/
Dnfit.c2838 static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, in nfit_test_blk_do_io() argument
2841 struct nfit_blk *nfit_blk = ndbr->blk_provider_data; in nfit_test_blk_do_io()
2843 struct nd_region *nd_region = &ndbr->nd_region; in nfit_test_blk_do_io()