Home
last modified time | relevance | path

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

12

/linux-5.19.10/block/
Dblk-lib.c58 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_discard()
227 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_zeroout()
263 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_zeroout()
308 sector_t bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_secure_erase()
Dfops.c58 (bdev_logical_block_size(bdev) - 1)) in __blkdev_direct_IO_simple()
177 (bdev_logical_block_size(bdev) - 1)) in __blkdev_direct_IO()
302 (bdev_logical_block_size(bdev) - 1)) in __blkdev_direct_IO_async()
634 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate()
Dioctl.c42 if (p.start & (bdev_logical_block_size(bdev) - 1)) in blkpg_do_ioctl()
502 return put_int(argp, bdev_logical_block_size(bdev)); in blkdev_common_ioctl()
664 return put_int(argp, bdev_logical_block_size(bdev)); in compat_blkdev_ioctl()
Dbdev.c128 unsigned int bsize = bdev_logical_block_size(bdev); in set_init_blocksize()
146 if (size < bdev_logical_block_size(bdev)) in set_blocksize()
175 int minsize = bdev_logical_block_size(sb->s_bdev); in sb_min_blocksize()
/linux-5.19.10/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.c300 ec->u_bs = to_sector(bdev_logical_block_size(ec->dev->bdev)); in ebs_ctr()
Ddm-verity-target.c1110 num < bdev_logical_block_size(v->data_dev->bdev) || in verity_ctr()
1120 num < bdev_logical_block_size(v->hash_dev->bdev) || in verity_ctr()
Ddm-log.c446 bdev_logical_block_size(lc->header_location. in create_log_context()
Ddm-snap-persistent.c317 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
Ddm-clone-target.c1656 if (region_size % (bdev_logical_block_size(clone->source_dev->bdev) >> 9) || in parse_region_size()
1657 region_size % (bdev_logical_block_size(clone->dest_dev->bdev) >> 9)) { in parse_region_size()
/linux-5.19.10/drivers/target/
Dtarget_core_iblock.c118 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
234 u32 block_size = bdev_logical_block_size(bd); in iblock_emulate_read_cap_with_block_size()
848 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas()
856 bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
/linux-5.19.10/fs/nilfs2/
Dthe_nilfs.c599 int hw_blocksize = bdev_logical_block_size(sb->s_bdev); in init_nilfs()
662 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_discard_segments()
/linux-5.19.10/block/partitions/
Dibm.c309 blocksize = bdev_logical_block_size(bdev); in ibm_partition()
/linux-5.19.10/drivers/usb/gadget/function/
Dstorage_common.c235 blksize = bdev_logical_block_size(I_BDEV(inode)); in fsg_lun_open()
/linux-5.19.10/fs/xfs/
Dxfs_buf.c1936 btp->bt_logical_sectorsize = bdev_logical_block_size(btp->bt_bdev); in xfs_setsize_buftarg()
1937 btp->bt_logical_sectormask = bdev_logical_block_size(btp->bt_bdev) - 1; in xfs_setsize_buftarg()
1952 return xfs_setsize_buftarg(btp, bdev_logical_block_size(bdev)); in xfs_setsize_buftarg_early()
/linux-5.19.10/drivers/nvme/target/
Dio-cmd-bdev.c100 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-5.19.10/fs/erofs/
Ddata.c378 blksize_mask = (1 << ilog2(bdev_logical_block_size(bdev))) - 1; in erofs_prepare_dio()
/linux-5.19.10/fs/hfsplus/
Dhfsplus_fs.h307 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size()
/linux-5.19.10/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-5.19.10/fs/iomap/
Ddirect-io.c243 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_iter()
/linux-5.19.10/fs/affs/
Dsuper.c398 i = bdev_logical_block_size(sb->s_bdev); in affs_fill_super()
/linux-5.19.10/drivers/block/rnbd/
Drnbd-srv.c544 cpu_to_le16(bdev_logical_block_size(rnbd_dev->bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-5.19.10/fs/gfs2/
Dops_fstype.c507 if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { in init_sb()
511 sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); in init_sb()

12