Home
last modified time | relevance | path

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

123

/linux-6.1.9/block/
Dblk-lib.c56 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_discard()
225 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_zeroout()
261 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_zeroout()
306 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_secure_erase()
Dbdev.c127 unsigned int bsize = bdev_logical_block_size(bdev); in set_init_blocksize()
145 if (size < bdev_logical_block_size(bdev)) in set_blocksize()
174 int minsize = bdev_logical_block_size(sb->s_bdev); in sb_min_blocksize()
1090 stat->dio_offset_align = bdev_logical_block_size(bdev); in bdev_statx_dioalign()
Dioctl.c42 if (p.start & (bdev_logical_block_size(bdev) - 1)) in blkpg_do_ioctl()
503 return put_int(argp, bdev_logical_block_size(bdev)); in blkdev_common_ioctl()
666 return put_int(argp, bdev_logical_block_size(bdev)); in compat_blkdev_ioctl()
Dfops.c48 return pos & (bdev_logical_block_size(bdev) - 1) || in blkdev_dio_unaligned()
638 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate()
/linux-6.1.9/drivers/md/
Ddm-exception-store.c172 (bdev_logical_block_size(dm_snap_cow(store->snap)->bdev) >> 9) || in dm_exception_store_set_chunk_size()
174 (bdev_logical_block_size(dm_snap_origin(store->snap)->bdev) >> 9)) { in dm_exception_store_set_chunk_size()
Ddm-log-writes.c549 lc->sectorsize = bdev_logical_block_size(lc->dev->bdev); in log_writes_ctr()
875 limits->logical_block_size = bdev_logical_block_size(lc->dev->bdev); in log_writes_io_hints()
Ddm-ebs-target.c301 ec->u_bs = to_sector(bdev_logical_block_size(ec->dev->bdev)); in ebs_ctr()
Ddm-verity-target.c1228 num < bdev_logical_block_size(v->data_dev->bdev) || in verity_ctr()
1238 num < bdev_logical_block_size(v->hash_dev->bdev) || in verity_ctr()
Ddm-log.c444 bdev_logical_block_size(lc->header_location. in create_log_context()
Ddm-snap-persistent.c316 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
/linux-6.1.9/drivers/nvme/target/
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()
99 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_ns_enable()
Dzns.c68 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_zns_enable()
/linux-6.1.9/drivers/target/
Dtarget_core_iblock.c126 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
236 u32 block_size = bdev_logical_block_size(ib_dev->ibd_bd); in iblock_get_blocks()
841 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas()
849 bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
/linux-6.1.9/fs/nilfs2/
Dthe_nilfs.c656 int hw_blocksize = bdev_logical_block_size(sb->s_bdev); in init_nilfs()
719 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_discard_segments()
/linux-6.1.9/block/partitions/
Dibm.c309 blocksize = bdev_logical_block_size(bdev); in ibm_partition()
/linux-6.1.9/drivers/usb/gadget/function/
Dstorage_common.c235 blksize = bdev_logical_block_size(I_BDEV(inode)); in fsg_lun_open()
/linux-6.1.9/fs/xfs/
Dxfs_buf.c1970 btp->bt_logical_sectorsize = bdev_logical_block_size(btp->bt_bdev); in xfs_setsize_buftarg()
1971 btp->bt_logical_sectormask = bdev_logical_block_size(btp->bt_bdev) - 1; in xfs_setsize_buftarg()
1986 return xfs_setsize_buftarg(btp, bdev_logical_block_size(bdev)); in xfs_setsize_buftarg_early()
/linux-6.1.9/fs/erofs/
Ddata.c386 blksize_mask = bdev_logical_block_size(bdev) - 1; in erofs_file_read_iter()
/linux-6.1.9/include/linux/
Dblkdev.h1185 static inline unsigned int bdev_logical_block_size(struct block_device *bdev) in bdev_logical_block_size() function
1339 bdev_logical_block_size(bdev) - 1); in bdev_iter_is_aligned()
/linux-6.1.9/fs/hfsplus/
Dhfsplus_fs.h309 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size()
/linux-6.1.9/fs/isofs/
Dinode.c652 if (bdev_logical_block_size(s->s_bdev) > 2048) { in isofs_fill_super()
655 bdev_logical_block_size(s->s_bdev)); in isofs_fill_super()
/linux-6.1.9/fs/affs/
Dsuper.c398 i = bdev_logical_block_size(sb->s_bdev); in affs_fill_super()
/linux-6.1.9/fs/iomap/
Ddirect-io.c243 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_iter()
/linux-6.1.9/drivers/block/rnbd/
Drnbd-srv.c544 rsp->logical_block_size = cpu_to_le16(bdev_logical_block_size(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.1.9/fs/gfs2/
Dops_fstype.c511 if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { in init_sb()
515 sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); in init_sb()

123