Lines Matching refs:pgmap
395 struct dev_pagemap *pgmap; in dev_dax_probe() local
401 pgmap = dev_dax->pgmap; in dev_dax_probe()
402 if (dev_WARN_ONCE(dev, pgmap && dev_dax->nr_range > 1, in dev_dax_probe()
406 if (!pgmap) { in dev_dax_probe()
407 pgmap = devm_kzalloc(dev, sizeof(*pgmap) + sizeof(struct range) in dev_dax_probe()
409 if (!pgmap) in dev_dax_probe()
411 pgmap->nr_range = dev_dax->nr_range; in dev_dax_probe()
424 if (!dev_dax->pgmap) in dev_dax_probe()
425 pgmap->ranges[i] = *range; in dev_dax_probe()
428 pgmap->type = MEMORY_DEVICE_GENERIC; in dev_dax_probe()
429 addr = devm_memremap_pages(dev, pgmap); in dev_dax_probe()