Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/nvdimm/
Dblk.c74 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nd_blk_rw_integrity() local
101 err = ndbr->do_io(ndbr, dev_offset, iobuf + bv.bv_offset, in nd_blk_rw_integrity()
128 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nsblk_do_bvec() local
155 err = ndbr->do_io(ndbr, dev_offset, iobuf + off, cur_len, rw); in nsblk_do_bvec()
217 struct nd_blk_region *ndbr = to_ndbr(nsblk); in nsblk_rw_bytes() local
230 return ndbr->do_io(ndbr, dev_offset, iobuf, n, rw); in nsblk_rw_bytes()
Dregion_devs.c208 void *nd_blk_region_provider_data(struct nd_blk_region *ndbr) in nd_blk_region_provider_data() argument
210 return ndbr->blk_provider_data; in nd_blk_region_provider_data()
214 void nd_blk_region_set_provider_data(struct nd_blk_region *ndbr, void *data) in nd_blk_region_set_provider_data() argument
216 ndbr->blk_provider_data = data; in nd_blk_region_set_provider_data()
998 struct nd_blk_region *ndbr; in nd_region_create() local
1001 ndbr = kzalloc(sizeof(*ndbr) + sizeof(struct nd_mapping) in nd_region_create()
1004 if (ndbr) { in nd_region_create()
1005 nd_region = &ndbr->nd_region; in nd_region_create()
1006 ndbr->enable = ndbr_desc->enable; in nd_region_create()
1007 ndbr->do_io = ndbr_desc->do_io; in nd_region_create()
[all …]
Ddimm_devs.c239 struct nvdimm *nd_blk_region_to_dimm(struct nd_blk_region *ndbr) in nd_blk_region_to_dimm() argument
241 struct nd_region *nd_region = &ndbr->nd_region; in nd_blk_region_to_dimm()
248 unsigned long nd_blk_memremap_flags(struct nd_blk_region *ndbr) in nd_blk_memremap_flags() argument
Dnd.h167 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
/Linux-v4.19/include/linux/
Dlibnvdimm.h146 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
197 void *nd_blk_region_provider_data(struct nd_blk_region *ndbr);
198 void nd_blk_region_set_provider_data(struct nd_blk_region *ndbr, void *data);
199 struct nvdimm *nd_blk_region_to_dimm(struct nd_blk_region *ndbr);
200 unsigned long nd_blk_memremap_flags(struct nd_blk_region *ndbr);
/Linux-v4.19/drivers/acpi/nfit/
Dnfit.h214 int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
Dcore.c2292 static int acpi_nfit_blk_region_do_io(struct nd_blk_region *ndbr, in acpi_nfit_blk_region_do_io() argument
2295 struct nfit_blk *nfit_blk = nd_blk_region_provider_data(ndbr); in acpi_nfit_blk_region_do_io()
2359 struct nd_blk_region *ndbr = to_nd_blk_region(dev); in acpi_nfit_blk_region_enable() local
2366 nvdimm = nd_blk_region_to_dimm(ndbr); in acpi_nfit_blk_region_enable()
2379 nd_blk_region_set_provider_data(ndbr, nfit_blk); in acpi_nfit_blk_region_enable()
2386 nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr)); in acpi_nfit_blk_region_enable()
/Linux-v4.19/tools/testing/nvdimm/test/
Dnfit.c2306 static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, in nfit_test_blk_do_io() argument
2309 struct nfit_blk *nfit_blk = ndbr->blk_provider_data; in nfit_test_blk_do_io()
2311 struct nd_region *nd_region = &ndbr->nd_region; in nfit_test_blk_do_io()