Lines Matching refs:nr_range
194 for (i = 0; i < dev_dax->nr_range; i++) in dev_dax_size()
443 int i = dev_dax->nr_range - 1; in trim_dev_dax_range()
453 if (--dev_dax->nr_range == 0) { in trim_dev_dax_range()
461 while (dev_dax->nr_range) in free_dev_dax_ranges()
854 if (dev_WARN_ONCE(dev, dev_dax->nr_range, in alloc_dev_dax_range()
866 * (dev_dax->nr_range + 1), GFP_KERNEL); in alloc_dev_dax_range()
872 for (i = 0; i < dev_dax->nr_range; i++) in alloc_dev_dax_range()
875 ranges[dev_dax->nr_range++] = (struct dev_dax_range) { in alloc_dev_dax_range()
883 dev_dbg(dev, "alloc range[%d]: %pa:%pa\n", dev_dax->nr_range - 1, in alloc_dev_dax_range()
893 rc = devm_register_dax_mapping(dev_dax, dev_dax->nr_range - 1); in alloc_dev_dax_range()
902 int last_range = dev_dax->nr_range - 1; in adjust_dev_dax_range()
962 for (i = dev_dax->nr_range - 1; i >= 0; i--) { in dev_dax_shrink()
986 if (dev_WARN_ONCE(dev, !adjust || i != dev_dax->nr_range - 1, in dev_dax_shrink()
1004 if (dev_dax->nr_range == 0) in adjust_ok()
1008 last = &dev_dax->ranges[dev_dax->nr_range - 1]; in adjust_ok()
1011 for (i = 0; i < dev_dax->nr_range - 1; i++) { in adjust_ok()
1214 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_validate_align()
1295 if (dev_dax->nr_range < 1) in resource_show()
1516 if (dev_dax->nr_range && range_len(&dev_dax->ranges[0].range)) { in __devm_create_dev_dax()