Searched refs:dax_region (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.4/drivers/dax/ |
D | bus.c | 162 struct dax_region *dax_region = dev_get_drvdata(dev); in id_show() local 164 return sprintf(buf, "%d\n", dax_region->id); in id_show() 171 struct dax_region *dax_region = dev_get_drvdata(dev); in region_size_show() local 174 resource_size(&dax_region->res)); in region_size_show() 182 struct dax_region *dax_region = dev_get_drvdata(dev); in align_show() local 184 return sprintf(buf, "%u\n", dax_region->align); in align_show() 207 struct dax_region *dax_region; in dax_region_free() local 209 dax_region = container_of(kref, struct dax_region, kref); in dax_region_free() 210 kfree(dax_region); in dax_region_free() 213 void dax_region_put(struct dax_region *dax_region) in dax_region_put() argument [all …]
|
D | device.c | 20 struct dax_region *dax_region = dev_dax->region; in check_vma() local 35 mask = dax_region->align - 1; in check_vma() 44 if ((dax_region->pfn_flags & (PFN_DEV|PFN_MAP)) == PFN_DEV in check_vma() 82 struct dax_region *dax_region; in __dev_dax_pte_fault() local 89 dax_region = dev_dax->region; in __dev_dax_pte_fault() 90 if (dax_region->align > PAGE_SIZE) { in __dev_dax_pte_fault() 92 dax_region->align, fault_size); in __dev_dax_pte_fault() 96 if (fault_size != dax_region->align) in __dev_dax_pte_fault() 105 *pfn = phys_to_pfn_t(phys, dax_region->pfn_flags); in __dev_dax_pte_fault() 115 struct dax_region *dax_region; in __dev_dax_pmd_fault() local [all …]
|
D | bus.h | 10 struct dax_region; 11 void dax_region_put(struct dax_region *dax_region); 12 struct dax_region *alloc_dax_region(struct device *parent, int region_id, 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() argument 27 return __devm_create_dev_dax(dax_region, id, pgmap, DEV_DAX_BUS); in devm_create_dev_dax()
|
D | dax-private.h | 28 struct dax_region { struct 49 struct dax_region *region; argument
|
/Linux-v5.4/drivers/dax/pmem/ |
D | core.c | 18 struct dax_region *dax_region; in __dax_pmem_probe() local 55 dax_region = alloc_dax_region(dev, region_id, &res, in __dax_pmem_probe() 58 if (!dax_region) in __dax_pmem_probe() 61 dev_dax = __devm_create_dev_dax(dax_region, id, &pgmap, subsys); in __dax_pmem_probe() 64 dax_region_put(dax_region); in __dax_pmem_probe()
|