Lines Matching refs:dev_dax
31 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range() argument
33 struct dev_dax_range *dax_range = &dev_dax->ranges[i]; in dax_kmem_range()
68 static int dev_dax_kmem_probe(struct dev_dax *dev_dax) in dev_dax_kmem_probe() argument
70 struct device *dev = &dev_dax->dev; in dev_dax_kmem_probe()
85 numa_node = dev_dax->target_node; in dev_dax_kmem_probe()
97 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe()
100 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
117 data = kzalloc(struct_size(data, res, dev_dax->nr_range), GFP_KERNEL); in dev_dax_kmem_probe()
130 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe()
134 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
163 if (dev_dax->memmap_on_memory) in dev_dax_kmem_probe()
202 static void dev_dax_kmem_remove(struct dev_dax *dev_dax) in dev_dax_kmem_remove() argument
205 int node = dev_dax->target_node; in dev_dax_kmem_remove()
206 struct device *dev = &dev_dax->dev; in dev_dax_kmem_remove()
215 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_remove()
219 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_remove()
237 if (success >= dev_dax->nr_range) { in dev_dax_kmem_remove()
253 static void dev_dax_kmem_remove(struct dev_dax *dev_dax) in dev_dax_kmem_remove() argument