Searched refs:dev_dax (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/dax/ |
| H A D | bus.c | 71 struct dev_dax *dev_dax = to_dev_dax(dev); in dax_match_type() local 73 if (dev_dax->region->res.flags & IORESOURCE_DAX_KMEM) in dax_match_type() 181 bool static_dev_dax(struct dev_dax *dev_dax) in static_dev_dax() argument 183 return is_static(dev_dax->region); in static_dev_dax() 187 static u64 dev_dax_size(struct dev_dax *dev_dax) in dev_dax_size() argument 194 for (i = 0; i < dev_dax->nr_range; i++) in dev_dax_size() 195 size += range_len(&dev_dax->ranges[i].range); in dev_dax_size() 203 struct dev_dax *dev_dax = to_dev_dax(dev); in dax_bus_probe() local 204 struct dax_region *dax_region = dev_dax->region; in dax_bus_probe() 211 size = dev_dax_size(dev_dax); in dax_bus_probe() [all …]
|
| H A D | device.c | 16 static int __check_vma(struct dev_dax *dev_dax, vm_flags_t vm_flags, 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() 53 static int check_vma(struct dev_dax *dev_dax, struct vm_area_struct *vma, in check_vma() argument 56 return __check_vma(dev_dax, vma->vm_flags, vma->vm_start, vma->vm_end, in check_vma() 61 __weak phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, in dax_pgoff_to_phys() argument 66 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys() 67 struct dev_dax_range *dax_range = &dev_dax->ranges[i]; in dax_pgoff_to_phys() 88 struct dev_dax *dev_dax = filp->private_data; in dax_set_mapping() local [all …]
|
| H A D | bus.h | 8 struct dev_dax; 29 struct dev_dax *devm_create_dev_dax(struct dev_dax_data *data); 40 int (*probe)(struct dev_dax *dev); 41 void (*remove)(struct dev_dax *dev); 49 void kill_dev_dax(struct dev_dax *dev_dax); 50 bool static_dev_dax(struct dev_dax *dev_dax);
|
| H A D | dax-private.h | 81 struct dev_dax { struct 103 static inline struct dev_dax *to_dev_dax(struct device *dev) in to_dev_dax() argument 105 return container_of(dev, struct dev_dax, dev); in to_dev_dax() 113 phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff, unsigned long size);
|
| /linux/tools/testing/nvdimm/ |
| H A 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/mm/ |
| H A D | Kconfig | 427 # to enable the feature of HugeTLB/dev_dax vmemmap optimization.
|