Home
last modified time | relevance | path

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

/linux/drivers/nvdimm/
A 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()
A 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()
1070 struct nd_blk_region *ndbr; in nd_region_create() local
1073 ndbr = kzalloc(sizeof(*ndbr) + sizeof(struct nd_mapping) in nd_region_create()
1076 if (ndbr) { in nd_region_create()
1077 nd_region = &ndbr->nd_region; in nd_region_create()
1078 ndbr->enable = ndbr_desc->enable; in nd_region_create()
1079 ndbr->do_io = ndbr_desc->do_io; in nd_region_create()
[all …]
A 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
A Dnd.h442 int (*do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
/linux/include/linux/
A Dlibnvdimm.h147 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/tools/testing/nvdimm/test/
A Dndtest.c341 static int ndtest_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, in ndtest_blk_do_io() argument
344 struct ndtest_dimm *dimm = ndbr->blk_provider_data; in ndtest_blk_do_io()
346 struct nd_region *nd_region = &ndbr->nd_region; in ndtest_blk_do_io()
368 struct nd_blk_region *ndbr = to_nd_blk_region(dev); in ndtest_blk_region_enable() local
373 nvdimm = nd_blk_region_to_dimm(ndbr); in ndtest_blk_region_enable()
376 nd_blk_region_set_provider_data(ndbr, dimm); in ndtest_blk_region_enable()
384 dev, dimm->address, 12, nd_blk_memremap_flags(ndbr)); in ndtest_blk_region_enable()
A Dnfit.c2845 static int nfit_test_blk_do_io(struct nd_blk_region *ndbr, resource_size_t dpa, in nfit_test_blk_do_io() argument
2848 struct nfit_blk *nfit_blk = ndbr->blk_provider_data; in nfit_test_blk_do_io()
2850 struct nd_region *nd_region = &ndbr->nd_region; in nfit_test_blk_do_io()
/linux/drivers/acpi/nfit/
A Dnfit.h269 int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
A Dcore.c2535 static int acpi_nfit_blk_region_do_io(struct nd_blk_region *ndbr, in acpi_nfit_blk_region_do_io() argument
2538 struct nfit_blk *nfit_blk = nd_blk_region_provider_data(ndbr); in acpi_nfit_blk_region_do_io()
2602 struct nd_blk_region *ndbr = to_nd_blk_region(dev); in acpi_nfit_blk_region_enable() local
2609 nvdimm = nd_blk_region_to_dimm(ndbr); in acpi_nfit_blk_region_enable()
2622 nd_blk_region_set_provider_data(ndbr, nfit_blk); in acpi_nfit_blk_region_enable()
2629 nfit_mem->spa_bdw->length, nd_blk_memremap_flags(ndbr)); in acpi_nfit_blk_region_enable()

Completed in 33 milliseconds