Home
last modified time | relevance | path

Searched refs:bdev_logical_block_size (Results 1 – 25 of 50) sorted by relevance

12

/linux/block/
H A Dblk-lib.c108 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in bio_write_zeroes_limit()
313 if ((sector | nr_sects) & ((bdev_logical_block_size(bdev) >> 9) - 1)) in blkdev_issue_zeroout()
332 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_secure_erase()
H A Dioctl.c42 if (!IS_ALIGNED(p.start | p.length, bdev_logical_block_size(bdev))) in blkpg_do_ioctl()
106 unsigned int bs_mask = bdev_logical_block_size(bdev) - 1; in blk_validate_byte_range()
589 return put_int(argp, bdev_logical_block_size(bdev)); in blkdev_common_ioctl()
734 return put_int(argp, bdev_logical_block_size(bdev)); in compat_blkdev_ioctl()
H A Dbdev.c142 unsigned int bsize = bdev_logical_block_size(bdev); in set_init_blocksize()
163 if (size < bdev_logical_block_size(bdev)) in set_blocksize()
195 int minsize = bdev_logical_block_size(sb->s_bdev); in sb_min_blocksize()
1295 stat->dio_offset_align = bdev_logical_block_size(bdev); in bdev_statx()
H A Dfops.c44 return pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_invalid()
402 iomap->offset = ALIGN_DOWN(offset, bdev_logical_block_size(bdev)); in blkdev_iomap_begin()
805 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate()
/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c17 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
44 bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
48 id->nows = to0based(bdev_io_opt(bdev) / bdev_logical_block_size(bdev)); in nvmet_bdev_set_limits()
103 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_ns_enable()
H A Dzns.c64 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_zns_enable()
/linux/drivers/md/
H A Ddm-exception-store.c173 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()
175 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
H A Ddm-ebs-target.c302 ec->u_bs = to_sector(bdev_logical_block_size(ec->dev->bdev)); in ebs_ctr()
H A Ddm-clone-target.c1652 if (region_size % (bdev_logical_block_size(clone->source_dev->bdev) >> 9) || in parse_region_size()
1653 region_size % (bdev_logical_block_size(clone->dest_dev->bdev) >> 9)) { in parse_region_size()
H A Ddm-verity-target.c1457 num < bdev_logical_block_size(v->data_dev->bdev) || in verity_ctr()
1467 num < bdev_logical_block_size(v->hash_dev->bdev) || in verity_ctr()
H A Ddm-log.c450 bdev_logical_block_size(lc->header_location.bdev)); in create_log_context()
H A Ddm-snap-persistent.c320 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
/linux/drivers/target/
H A Dtarget_core_iblock.c131 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
246 u32 block_size = bdev_logical_block_size(ib_dev->ibd_bd); in iblock_get_blocks()
1110 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas()
1118 bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
/linux/fs/bcachefs/
H A Dsuper-io.c162 new_bytes = max_t(size_t, new_bytes, bdev_logical_block_size(sb->bdev)); in bch2_sb_realloc()
821 bdev_logical_block_size(sb->bdev) && in __bch2_read_super()
830 bdev_logical_block_size(sb->bdev)); in __bch2_read_super()
924 bdev_logical_block_size(ca->disk_sb.bdev))); in write_one_super()
/linux/fs/nilfs2/
H A Dthe_nilfs.c728 int hw_blocksize = bdev_logical_block_size(sb->s_bdev); in init_nilfs()
788 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_discard_segments()
/linux/block/partitions/
H A Dibm.c344 blocksize = bdev_logical_block_size(bdev); in ibm_partition()
/linux/fs/erofs/
H A Dinode.c340 bdev_logical_block_size(inode->i_sb->s_bdev); in erofs_getattr()
H A Ddata.c419 blksize_mask = bdev_logical_block_size(bdev) - 1; in erofs_file_read_iter()
/linux/drivers/usb/gadget/function/
H A Dstorage_common.c236 blksize = bdev_logical_block_size(I_BDEV(inode)); in fsg_lun_open()
/linux/include/linux/
H A Dblkdev.h1230 static inline unsigned int bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size() function
1417 bdev_logical_block_size(bdev) - 1); in bdev_iter_is_aligned()
/linux/fs/isofs/
H A Dinode.c606 if (bdev_logical_block_size(s->s_bdev) > 2048) { in isofs_fill_super()
609 bdev_logical_block_size(s->s_bdev)); in isofs_fill_super()
/linux/fs/hfsplus/
H A Dhfsplus_fs.h310 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size()
/linux/fs/affs/
H A Dsuper.c397 i = bdev_logical_block_size(sb->s_bdev); in affs_fill_super()
/linux/fs/iomap/
H A Ddirect-io.c306 if ((pos | length) & (bdev_logical_block_size(iomap->bdev) - 1) || in iomap_dio_bio_iter()
/linux/fs/gfs2/
H A Dops_fstype.c489 if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { in init_sb()
493 sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); in init_sb()

12