Searched refs:dev_dax (Results 1 – 8 of 8) sorted by relevance
/Linux-v6.1/drivers/dax/ |
D | bus.c | 153 bool static_dev_dax(struct dev_dax *dev_dax) in static_dev_dax() argument 155 return is_static(dev_dax->region); in static_dev_dax() 159 static u64 dev_dax_size(struct dev_dax *dev_dax) in dev_dax_size() argument 164 device_lock_assert(&dev_dax->dev); in dev_dax_size() 166 for (i = 0; i < dev_dax->nr_range; i++) in dev_dax_size() 167 size += range_len(&dev_dax->ranges[i].range); in dev_dax_size() 175 struct dev_dax *dev_dax = to_dev_dax(dev); in dax_bus_probe() local 176 struct dax_region *dax_region = dev_dax->region; in dax_bus_probe() 179 if (dev_dax_size(dev_dax) == 0 || dev_dax->id < 0) in dax_bus_probe() 182 rc = dax_drv->probe(dev_dax); in dax_bus_probe() [all …]
|
D | device.c | 17 static int check_vma(struct dev_dax *dev_dax, struct vm_area_struct *vma, in check_vma() argument 20 struct device *dev = &dev_dax->dev; in check_vma() 23 if (!dax_alive(dev_dax->dax_dev)) in check_vma() 34 mask = dev_dax->align - 1; in check_vma() 54 __weak phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument 59 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys() 60 struct dev_dax_range *dax_range = &dev_dax->ranges[i]; in dax_pgoff_to_phys() 81 struct dev_dax *dev_dax = filp->private_data; in dax_set_mapping() local 85 if (dev_dax->pgmap->vmemmap_shift) in dax_set_mapping() 103 static vm_fault_t __dev_dax_pte_fault(struct dev_dax *dev_dax, in __dev_dax_pte_fault() argument [all …]
|
D | kmem.c | 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() [all …]
|
D | bus.h | 8 struct dev_dax; 26 struct dev_dax *devm_create_dev_dax(struct dev_dax_data *data); 32 int (*probe)(struct dev_dax *dev); 33 void (*remove)(struct dev_dax *dev); 41 void kill_dev_dax(struct dev_dax *dev_dax); 42 bool static_dev_dax(struct dev_dax *dev_dax);
|
D | dax-private.h | 62 struct dev_dax { struct 79 static inline struct dev_dax *to_dev_dax(struct device *dev) in to_dev_dax() argument 81 return container_of(dev, struct dev_dax, dev); in to_dev_dax() 89 phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, unsigned long size);
|
D | pmem.c | 10 static struct dev_dax *__dax_pmem_probe(struct device *dev) in __dax_pmem_probe() 16 struct dev_dax *dev_dax; in __dax_pmem_probe() local 68 dev_dax = devm_create_dev_dax(&data); in __dax_pmem_probe() 73 return dev_dax; in __dax_pmem_probe()
|
/Linux-v6.1/tools/testing/nvdimm/ |
D | dax-dev.c | 9 phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument 14 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys() 15 struct dev_dax_range *dax_range = &dev_dax->ranges[i]; in dax_pgoff_to_phys() 28 if (dev_dax->region->align > PAGE_SIZE) in dax_pgoff_to_phys()
|
/Linux-v6.1/drivers/dax/hmem/ |
D | hmem.c | 17 struct dev_dax *dev_dax; in dax_hmem_probe() local 38 dev_dax = devm_create_dev_dax(&data); in dax_hmem_probe() 39 if (IS_ERR(dev_dax)) in dax_hmem_probe() 40 return PTR_ERR(dev_dax); in dax_hmem_probe()
|