Home
last modified time | relevance | path

Searched refs:PAGE_SECTORS_SHIFT (Results 1 – 13 of 13) sorted by relevance

/linux-6.15/drivers/md/
H A Ddm-linear.c163 sector_t sector = linear_map_sector(ti, *pgoff << PAGE_SECTORS_SHIFT); in linear_dax_pgoff()
165 *pgoff = (get_start_sect(lc->dev->bdev) + sector) >> PAGE_SECTORS_SHIFT; in linear_dax_pgoff()
H A Ddm-stripe.c313 *pgoff = (get_start_sect(bdev) + dev_sector) >> PAGE_SECTORS_SHIFT; in stripe_dax_pgoff()
H A Ddm-log-writes.c888 *pgoff += (get_start_sect(lc->dev->bdev) >> PAGE_SECTORS_SHIFT); in log_writes_dax_pgoff()
/linux-6.15/drivers/block/
H A Dbrd.c51 return xa_load(&brd->brd_pages, sector >> PAGE_SECTORS_SHIFT); in brd_lookup_page()
59 pgoff_t idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page()
233 page = __xa_erase(&brd->brd_pages, aligned_sector >> PAGE_SECTORS_SHIFT); in brd_do_discard()
/linux-6.15/include/linux/
H A Dblk_types.h37 #define PAGE_SECTORS_SHIFT (PAGE_SHIFT - SECTOR_SHIFT) macro
38 #define PAGE_SECTORS (1 << PAGE_SECTORS_SHIFT)
/linux-6.15/fs/bcachefs/
H A Dfs-io-pagecache.c253 pgoff_t index = start >> PAGE_SECTORS_SHIFT; in bch2_mark_pagecache_unallocated()
254 pgoff_t end_index = (end - 1) >> PAGE_SECTORS_SHIFT; in bch2_mark_pagecache_unallocated()
297 pgoff_t index = *start >> PAGE_SECTORS_SHIFT; in bch2_mark_pagecache_reserved()
298 pgoff_t end_index = (end - 1) >> PAGE_SECTORS_SHIFT; in bch2_mark_pagecache_reserved()
H A Dfs-io.c296 POS(inode->v.i_ino, (index << PAGE_SECTORS_SHIFT)), in __bch2_truncate_folio()
297 POS(inode->v.i_ino, (index << PAGE_SECTORS_SHIFT) + PAGE_SECTORS)); in __bch2_truncate_folio()
H A Dfs-io-buffered.c108 pgoff_t folio_offset = bio_end_sector(bio) >> PAGE_SECTORS_SHIFT; in readpage_bio_extend()
/linux-6.15/drivers/nvme/target/
H A Dpassthru.c105 max_hw_sectors = min_not_zero(pctrl->max_segments << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
H A Dloop.c389 (NVME_LOOP_MAX_SEGMENTS - 1) << PAGE_SECTORS_SHIFT; in nvme_loop_configure_admin_queue()
/linux-6.15/drivers/block/null_blk/
H A Dmain.c899 idx = sector >> PAGE_SECTORS_SHIFT; in null_free_sector()
970 idx = sector >> PAGE_SECTORS_SHIFT; in __null_lookup_page()
1017 idx = sector >> PAGE_SECTORS_SHIFT; in null_insert_page()
1040 t_page = null_insert_page(nullb, idx << PAGE_SECTORS_SHIFT, true); in null_flush_cache_page()
/linux-6.15/block/partitions/
H A Dcore.c722 folio = read_mapping_folio(mapping, n >> PAGE_SECTORS_SHIFT, NULL); in read_part_sector()
/linux-6.15/block/
H A Dblk-settings.c72 bdi->io_pages = lim->max_sectors >> PAGE_SECTORS_SHIFT; in blk_apply_bdi_limits()