Lines Matching refs:nr_range
166 for (i = 0; i < dev_dax->nr_range; i++) in dev_dax_size()
401 int i = dev_dax->nr_range - 1; in trim_dev_dax_range()
411 if (--dev_dax->nr_range == 0) { in trim_dev_dax_range()
419 while (dev_dax->nr_range) in free_dev_dax_ranges()
797 if (dev_WARN_ONCE(dev, dev_dax->nr_range, in alloc_dev_dax_range()
809 * (dev_dax->nr_range + 1), GFP_KERNEL); in alloc_dev_dax_range()
815 for (i = 0; i < dev_dax->nr_range; i++) in alloc_dev_dax_range()
818 ranges[dev_dax->nr_range++] = (struct dev_dax_range) { in alloc_dev_dax_range()
826 dev_dbg(dev, "alloc range[%d]: %pa:%pa\n", dev_dax->nr_range - 1, in alloc_dev_dax_range()
836 rc = devm_register_dax_mapping(dev_dax, dev_dax->nr_range - 1); in alloc_dev_dax_range()
845 int last_range = dev_dax->nr_range - 1; in adjust_dev_dax_range()
903 for (i = dev_dax->nr_range - 1; i >= 0; i--) { in dev_dax_shrink()
927 if (dev_WARN_ONCE(dev, !adjust || i != dev_dax->nr_range - 1, in dev_dax_shrink()
945 if (dev_dax->nr_range == 0) in adjust_ok()
949 last = &dev_dax->ranges[dev_dax->nr_range - 1]; in adjust_ok()
952 for (i = 0; i < dev_dax->nr_range - 1; i++) { in adjust_ok()
1140 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_validate_align()
1215 if (dev_dax->nr_range < 1) in resource_show()
1395 if (dev_dax->nr_range && range_len(&dev_dax->ranges[0].range)) { in devm_create_dev_dax()