Home
last modified time | relevance | path

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

/Linux-v5.4/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()
209 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nsblk_rw_bytes() local
222 return ndbr->do_io(ndbr, dev_offset, iobuf, n, rw); in nsblk_rw_bytes()
Dregion_devs.c205 void *nd_blk_region_provider_data(struct nd_blk_region *ndbr) in nd_blk_region_provider_data() argument
207 return ndbr->blk_provider_data; in nd_blk_region_provider_data()
211 void nd_blk_region_set_provider_data(struct nd_blk_region *ndbr, void *data) in nd_blk_region_set_provider_data() argument
213 ndbr->blk_provider_data = data; in nd_blk_region_set_provider_data()
967 struct nd_blk_region *ndbr; in nd_region_create() local
970 ndbr = kzalloc(sizeof(*ndbr) + sizeof(struct nd_mapping) in nd_region_create()
973 if (ndbr) { in nd_region_create()
974 nd_region = &ndbr->nd_region; in nd_region_create()
975 ndbr->enable = ndbr_desc->enable; in nd_region_create()
976 ndbr->do_io = ndbr_desc->do_io; in nd_region_create()
[all …]
Ddimm_devs.c224 struct nvdimm *nd_blk_region_to_dimm(struct nd_blk_region *ndbr) in nd_blk_region_to_dimm() argument
226 struct nd_region *nd_region = &ndbr->nd_region; in nd_blk_region_to_dimm()
233 unsigned long nd_blk_memremap_flags(struct nd_blk_region *ndbr) in nd_blk_memremap_flags() argument
Dnd.h164 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
/Linux-v5.4/include/linux/
Dlibnvdimm.h151 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
257 void *nd_blk_region_provider_data(struct nd_blk_region *ndbr);
258 void nd_blk_region_set_provider_data(struct nd_blk_region *ndbr, void *data);
259 struct nvdimm *nd_blk_region_to_dimm(struct nd_blk_region *ndbr);
260 unsigned long nd_blk_memremap_flags(struct nd_blk_region *ndbr);
/Linux-v5.4/drivers/acpi/nfit/
Dnfit.h243 int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
Dcore.c2484 static int acpi_nfit_blk_region_do_io(struct nd_blk_region *ndbr, in acpi_nfit_blk_region_do_io() argument
2487 struct nfit_blk *nfit_blk = nd_blk_region_provider_data(ndbr); in acpi_nfit_blk_region_do_io()
2551 struct nd_blk_region *ndbr = to_nd_blk_region(dev); in acpi_nfit_blk_region_enable() local
2558 nvdimm = nd_blk_region_to_dimm(ndbr); in acpi_nfit_blk_region_enable()
2571 nd_blk_region_set_provider_data(ndbr, nfit_blk); in acpi_nfit_blk_region_enable()
2578 nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr)); in acpi_nfit_blk_region_enable()
/Linux-v5.4/tools/testing/nvdimm/test/
Dnfit.c2644 static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, in nfit_test_blk_do_io() argument
2647 struct nfit_blk *nfit_blk = ndbr->blk_provider_data; in nfit_test_blk_do_io()
2649 struct nd_region *nd_region = &ndbr->nd_region; in nfit_test_blk_do_io()