Home
last modified time | relevance | path

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

/drivers/dax/
Ddevice.c17 static int check_vma(struct dev_dax *dev_dax, struct vm_area_struct *vma, in check_vma() argument
20 struct dax_region *dax_region = dev_dax->region; in check_vma()
21 struct device *dev = &dev_dax->dev; in check_vma()
24 if (!dax_alive(dev_dax->dax_dev)) in check_vma()
63 __weak phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument
66 struct resource *res = &dev_dax->region->res; in dax_pgoff_to_phys()
78 static vm_fault_t __dev_dax_pte_fault(struct dev_dax *dev_dax, in __dev_dax_pte_fault() argument
81 struct device *dev = &dev_dax->dev; in __dev_dax_pte_fault()
86 if (check_vma(dev_dax, vmf->vma, __func__)) in __dev_dax_pte_fault()
89 dax_region = dev_dax->region; in __dev_dax_pte_fault()
[all …]
Dbus.c275 struct dev_dax *dev_dax = to_dev_dax(dev); in size_show() local
276 unsigned long long size = resource_size(&dev_dax->region->res); in size_show()
282 static int dev_dax_target_node(struct dev_dax *dev_dax) in dev_dax_target_node() argument
284 struct dax_region *dax_region = dev_dax->region; in dev_dax_target_node()
292 struct dev_dax *dev_dax = to_dev_dax(dev); in target_node_show() local
294 return sprintf(buf, "%d\n", dev_dax_target_node(dev_dax)); in target_node_show()
298 static unsigned long long dev_dax_resource(struct dev_dax *dev_dax) in dev_dax_resource() argument
300 struct dax_region *dax_region = dev_dax->region; in dev_dax_resource()
308 struct dev_dax *dev_dax = to_dev_dax(dev); in resource_show() local
310 return sprintf(buf, "%#llx\n", dev_dax_resource(dev_dax)); in resource_show()
[all …]
Dkmem.c19 struct dev_dax *dev_dax = to_dev_dax(dev); in dev_dax_kmem_probe() local
20 struct resource *res = &dev_dax->region->res; in dev_dax_kmem_probe()
34 numa_node = dev_dax->target_node; in dev_dax_kmem_probe()
74 dev_dax->dax_kmem_res = new_res; in dev_dax_kmem_probe()
82 struct dev_dax *dev_dax = to_dev_dax(dev); in dev_dax_kmem_remove() local
83 struct resource *res = dev_dax->dax_kmem_res; in dev_dax_kmem_remove()
94 rc = remove_memory(dev_dax->target_node, kmem_start, kmem_size); in dev_dax_kmem_remove()
105 dev_dax->dax_kmem_res = NULL; in dev_dax_kmem_remove()
Dbus.h7 struct dev_dax;
21 struct dev_dax *__devm_create_dev_dax(struct dax_region *dax_region, int id,
24 static inline struct dev_dax *devm_create_dev_dax(struct dax_region *dax_region, in devm_create_dev_dax()
31 struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys);
44 void kill_dev_dax(struct dev_dax *dev_dax);
Ddax-private.h48 struct dev_dax { struct
57 static inline struct dev_dax *to_dev_dax(struct device *dev) in to_dev_dax() argument
59 return container_of(dev, struct dev_dax, dev); in to_dev_dax()
/drivers/dax/pmem/
Dcompat.c15 struct dev_dax *dev_dax = __dax_pmem_probe(dev, DEV_DAX_CLASS); in dax_pmem_compat_probe() local
18 if (IS_ERR(dev_dax)) in dax_pmem_compat_probe()
19 return PTR_ERR(dev_dax); in dax_pmem_compat_probe()
21 if (!devres_open_group(&dev_dax->dev, dev_dax, GFP_KERNEL)) in dax_pmem_compat_probe()
24 device_lock(&dev_dax->dev); in dax_pmem_compat_probe()
25 rc = dev_dax_probe(&dev_dax->dev); in dax_pmem_compat_probe()
26 device_unlock(&dev_dax->dev); in dax_pmem_compat_probe()
28 devres_close_group(&dev_dax->dev, dev_dax); in dax_pmem_compat_probe()
30 devres_release_group(&dev_dax->dev, dev_dax); in dax_pmem_compat_probe()
Dcore.c10 struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys) in __dax_pmem_probe()
16 struct dev_dax *dev_dax; in __dax_pmem_probe() local
61 dev_dax = __devm_create_dev_dax(dax_region, id, &pgmap, subsys); in __dax_pmem_probe()
66 return dev_dax; in __dax_pmem_probe()