Lines Matching refs:dev_dax
30 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range() argument
32 struct dev_dax_range *dax_range = &dev_dax->ranges[i]; in dax_kmem_range()
53 static int dev_dax_kmem_probe(struct dev_dax *dev_dax) in dev_dax_kmem_probe() argument
55 struct device *dev = &dev_dax->dev; in dev_dax_kmem_probe()
67 numa_node = dev_dax->target_node; in dev_dax_kmem_probe()
74 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe()
77 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
94 data = kzalloc(struct_size(data, res, dev_dax->nr_range), GFP_KERNEL); in dev_dax_kmem_probe()
107 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe()
111 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
175 static void dev_dax_kmem_remove(struct dev_dax *dev_dax) in dev_dax_kmem_remove() argument
178 int node = dev_dax->target_node; in dev_dax_kmem_remove()
179 struct device *dev = &dev_dax->dev; in dev_dax_kmem_remove()
188 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_remove()
192 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_remove()
210 if (success >= dev_dax->nr_range) { in dev_dax_kmem_remove()
226 static void dev_dax_kmem_remove(struct dev_dax *dev_dax) in dev_dax_kmem_remove() argument