Lines Matching refs:pgoff
301 static struct dax_device *stripe_dax_pgoff(struct dm_target *ti, pgoff_t *pgoff)
308 stripe_map_sector(sc, *pgoff * PAGE_SECTORS, &stripe, &dev_sector);
312 *pgoff = (get_start_sect(bdev) + dev_sector) >> PAGE_SECTORS_SHIFT;
316 static long stripe_dax_direct_access(struct dm_target *ti, pgoff_t pgoff,
320 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff);
322 return dax_direct_access(dax_dev, pgoff, nr_pages, mode, kaddr, pfn);
325 static int stripe_dax_zero_page_range(struct dm_target *ti, pgoff_t pgoff,
328 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff);
330 return dax_zero_page_range(dax_dev, pgoff, nr_pages);
333 static size_t stripe_dax_recovery_write(struct dm_target *ti, pgoff_t pgoff,
336 struct dax_device *dax_dev = stripe_dax_pgoff(ti, &pgoff);
338 return dax_recovery_write(dax_dev, pgoff, addr, bytes, i);