Lines Matching refs:range
31 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range()
34 struct range *range = &dax_range->range; in dax_kmem_range() local
37 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range()
38 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range()
40 r->start = range->start; in dax_kmem_range()
41 r->end = range->end; in dax_kmem_range()
98 struct range range; in dev_dax_kmem_probe() local
100 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
103 i, range.start, range.end); in dev_dax_kmem_probe()
106 total_len += range_len(&range); in dev_dax_kmem_probe()
132 struct range range; in dev_dax_kmem_probe() local
134 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
139 res = request_mem_region(range.start, range_len(&range), data->res_name); in dev_dax_kmem_probe()
142 i, range.start, range.end); in dev_dax_kmem_probe()
170 rc = add_memory_driver_managed(data->mgid, range.start, in dev_dax_kmem_probe()
171 range_len(&range), kmem_name, mhp_flags); in dev_dax_kmem_probe()
175 i, range.start, range.end); in dev_dax_kmem_probe()
216 struct range range; in dev_dax_kmem_remove() local
219 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_remove()
223 rc = remove_memory(range.start, range_len(&range)); in dev_dax_kmem_remove()
234 i, range.start, range.end); in dev_dax_kmem_remove()