Home
last modified time | relevance | path

Searched refs:dev_dax (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/dax/
Ddevice.c147 static struct dev_dax *to_dev_dax(struct device *dev) in to_dev_dax()
149 return container_of(dev, struct dev_dax, dev); in to_dev_dax()
155 struct dev_dax *dev_dax = to_dev_dax(dev); in size_show() local
159 for (i = 0; i < dev_dax->num_resources; i++) in size_show()
160 size += resource_size(&dev_dax->res[i]); in size_show()
180 static int check_vma(struct dev_dax *dev_dax, struct vm_area_struct *vma, in check_vma() argument
183 struct dax_region *dax_region = dev_dax->region; in check_vma()
184 struct device *dev = &dev_dax->dev; in check_vma()
187 if (!dax_alive(dev_dax->dax_dev)) in check_vma()
226 __weak phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument
[all …]
Dpmem.c66 struct dev_dax *dev_dax; in dax_pmem_probe() local
141 dev_dax = devm_create_dev_dax(dax_region, id, &res, 1); in dax_pmem_probe()
146 return PTR_ERR_OR_ZERO(dev_dax); in dax_pmem_probe()
Ddevice-dax.h16 struct dev_dax;
23 struct dev_dax *devm_create_dev_dax(struct dax_region *dax_region,
Ddax-private.h49 struct dev_dax { struct
/Linux-v4.19/tools/testing/nvdimm/
Ddax-dev.c17 phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument
24 for (i = 0; i < dev_dax->num_resources; i++) { in dax_pgoff_to_phys()
25 res = &dev_dax->res[i]; in dax_pgoff_to_phys()
32 if (i < dev_dax->num_resources) { in dax_pgoff_to_phys()
33 res = &dev_dax->res[i]; in dax_pgoff_to_phys()
38 if (dev_dax->region->align > PAGE_SIZE) in dax_pgoff_to_phys()