Lines Matching refs:range
30 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range()
33 struct range *range = &dax_range->range; in dax_kmem_range() local
36 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range()
37 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range()
39 r->start = range->start; in dax_kmem_range()
40 r->end = range->end; in dax_kmem_range()
75 struct range range; in dev_dax_kmem_probe() local
77 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
80 i, range.start, range.end); in dev_dax_kmem_probe()
83 total_len += range_len(&range); in dev_dax_kmem_probe()
109 struct range range; in dev_dax_kmem_probe() local
111 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
116 res = request_mem_region(range.start, range_len(&range), data->res_name); in dev_dax_kmem_probe()
119 i, range.start, range.end); in dev_dax_kmem_probe()
143 rc = add_memory_driver_managed(data->mgid, range.start, in dev_dax_kmem_probe()
144 range_len(&range), kmem_name, MHP_NID_IS_MGID); in dev_dax_kmem_probe()
148 i, range.start, range.end); in dev_dax_kmem_probe()
189 struct range range; in dev_dax_kmem_remove() local
192 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_remove()
196 rc = remove_memory(range.start, range_len(&range)); in dev_dax_kmem_remove()
207 i, range.start, range.end); in dev_dax_kmem_remove()