Lines Matching refs:physical
80 u64 physical; member
100 u64 physical; member
278 u64 physical, struct btrfs_device *dev, u64 flags,
633 swarn.sector = (sblock->pagev[0]->physical) >> 9; in scrub_print_warning()
1400 page->physical = bbio->stripes[stripe_index].physical + in scrub_setup_recheck_block()
1514 bio->bi_iter.bi_sector = page->physical >> 9; in scrub_recheck_block()
1642 bio->bi_iter.bi_sector = page_bad->physical >> 9; in scrub_repair_page_from_good_copy()
1726 sbio->physical = spage->physical_for_dev_replace; in scrub_add_page_to_wr_bio()
1742 bio->bi_iter.bi_sector = sbio->physical >> 9; in scrub_add_page_to_wr_bio()
1744 } else if (sbio->physical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_wr_bio()
2135 sbio->physical = spage->physical; in scrub_add_page_to_rd_bio()
2149 bio->bi_iter.bi_sector = sbio->physical >> 9; in scrub_add_page_to_rd_bio()
2151 } else if (sbio->physical + sbio->page_count * PAGE_SIZE != in scrub_add_page_to_rd_bio()
2152 spage->physical || in scrub_add_page_to_rd_bio()
2182 u64 physical, struct btrfs_device *dev, u64 flags, in scrub_pages() argument
2224 spage->physical = physical; in scrub_pages()
2239 physical += l; in scrub_pages()
2419 u64 physical, struct btrfs_device *dev, u64 flags, in scrub_extent() argument
2459 ret = scrub_pages(sctx, logical, l, physical, dev, flags, gen, in scrub_extent()
2467 physical += l; in scrub_extent()
2475 u64 physical, struct btrfs_device *dev, in scrub_pages_for_parity() argument
2523 spage->physical = physical; in scrub_pages_for_parity()
2537 physical += l; in scrub_pages_for_parity()
2559 u64 physical, struct btrfs_device *dev, in scrub_extent_for_parity() argument
2586 ret = scrub_pages_for_parity(sparity, logical, l, physical, dev, in scrub_extent_for_parity()
2594 physical += l; in scrub_extent_for_parity()
2606 static int get_raid56_logic_offset(u64 physical, int num, in get_raid56_logic_offset() argument
2617 last_offset = (physical - map->stripes[num].physical) * in get_raid56_logic_offset()
2975 u64 physical; in scrub_stripe() local
2996 physical = map->stripes[num].physical; in scrub_stripe()
3015 get_raid56_logic_offset(physical, num, map, &offset, NULL); in scrub_stripe()
3049 physical_end = physical + nstripes * map->stripe_len; in scrub_stripe()
3094 while (physical < physical_end) { in scrub_stripe()
3097 ret = get_raid56_logic_offset(physical, num, in scrub_stripe()
3229 extent_physical = extent_logical - logical + physical; in scrub_stripe()
3247 extent_logical - logical + physical); in scrub_stripe()
3260 physical += map->stripe_len; in scrub_stripe()
3261 ret = get_raid56_logic_offset(physical, in scrub_stripe()
3266 if (ret && physical < physical_end) { in scrub_stripe()
3279 physical += map->stripe_len; in scrub_stripe()
3287 if (physical >= physical_end) { in scrub_stripe()
3298 physical += map->stripe_len; in scrub_stripe()
3301 sctx->stat.last_physical = map->stripes[num].physical + in scrub_stripe()
3304 sctx->stat.last_physical = physical; in scrub_stripe()
3351 map->stripes[i].physical == dev_offset) { in scrub_chunk()
3858 *extent_physical = bbio->stripes[0].physical; in scrub_remap_extent()