Home
last modified time | relevance | path

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

12

/Linux-v5.4/block/
Dblk-lib.c50 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_discard()
146 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_write_same()
163 bio->bi_io_vec->bv_len = bdev_logical_block_size(bdev); in __blkdev_issue_write_same()
331 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in __blkdev_issue_zeroout()
367 bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1; in blkdev_issue_zeroout()
Dioctl.c50 if (p.start & (bdev_logical_block_size(bdev) - 1)) in blkpg_ioctl()
552 return put_int(arg, bdev_logical_block_size(bdev)); in blkdev_ioctl()
Dcompat_ioctl.c375 return compat_put_int(arg, bdev_logical_block_size(bdev)); in compat_blkdev_ioctl()
/Linux-v5.4/block/partitions/
Defi.c139 bdev_logical_block_size(bdev)) - 1ULL; in last_lba()
242 sector_t n = lba * (bdev_logical_block_size(bdev) / 512); in read_lba()
312 unsigned ssz = bdev_logical_block_size(state->bdev); in alloc_read_gpt_header()
359 bdev_logical_block_size(state->bdev)) { in is_gpt_valid()
362 bdev_logical_block_size(state->bdev)); in is_gpt_valid()
683 unsigned ssz = bdev_logical_block_size(state->bdev) / 512; in efi_partition()
Datari.c50 if (bdev_logical_block_size(state->bdev) != 512) in atari_partition()
Dmsdos.c129 sector_t sector_size = bdev_logical_block_size(state->bdev) / 512; in parse_extended()
454 sector_t sector_size = bdev_logical_block_size(state->bdev) / 512; in msdos_partition()
Dibm.c303 blocksize = bdev_logical_block_size(bdev); in ibm_partition()
/Linux-v5.4/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.c572 lc->sectorsize = bdev_logical_block_size(lc->dev->bdev); in log_writes_ctr()
897 limits->logical_block_size = bdev_logical_block_size(lc->dev->bdev); in log_writes_io_hints()
Ddm-verity-target.c1005 num < bdev_logical_block_size(v->data_dev->bdev) || in verity_ctr()
1015 num < bdev_logical_block_size(v->hash_dev->bdev) || in verity_ctr()
Ddm-snap-persistent.c324 bdev_logical_block_size(dm_snap_cow(ps->store->snap)-> in read_header()
Ddm-log.c447 bdev_logical_block_size(lc->header_location. in create_log_context()
/Linux-v5.4/drivers/target/
Dtarget_core_iblock.c108 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd); in iblock_configure_device()
197 bdev_logical_block_size(bd)) - 1); in iblock_emulate_read_cap_with_block_size()
198 u32 block_size = bdev_logical_block_size(bd); in iblock_emulate_read_cap_with_block_size()
810 return ret / bdev_logical_block_size(bd); in iblock_get_alignment_offset_lbas()
817 int logs_per_phys = bdev_physical_block_size(bd) / bdev_logical_block_size(bd); in iblock_get_lbppbe()
/Linux-v5.4/drivers/staging/exfat/
Dexfat_blkdev.c18 p_bd->sector_size = bdev_logical_block_size(sb->s_bdev); in bdev_open()
/Linux-v5.4/fs/
Dblock_dev.c109 unsigned bsize = bdev_logical_block_size(bdev); in set_init_blocksize()
128 if (size < bdev_logical_block_size(bdev)) in set_blocksize()
158 int minsize = bdev_logical_block_size(sb->s_bdev); in sb_min_blocksize()
215 (bdev_logical_block_size(bdev) - 1)) in __blkdev_direct_IO_simple()
353 (bdev_logical_block_size(bdev) - 1)) in __blkdev_direct_IO()
2079 if ((start | len) & (bdev_logical_block_size(bdev) - 1)) in blkdev_fallocate()
/Linux-v5.4/drivers/char/
Draw.c79 err = set_blocksize(bdev, bdev_logical_block_size(bdev)); in raw_open()
/Linux-v5.4/fs/nilfs2/
Dthe_nilfs.c604 int hw_blocksize = bdev_logical_block_size(sb->s_bdev); in init_nilfs()
667 bdev_logical_block_size(nilfs->ns_bdev); in nilfs_discard_segments()
/Linux-v5.4/drivers/nvme/target/
Dio-cmd-bdev.c66 ns->blksize_shift = blksize_bits(bdev_logical_block_size(ns->bdev)); in nvmet_bdev_ns_enable()
/Linux-v5.4/fs/xfs/
Dxfs_buf.c1728 btp->bt_logical_sectorsize = bdev_logical_block_size(btp->bt_bdev); in xfs_setsize_buftarg()
1729 btp->bt_logical_sectormask = bdev_logical_block_size(btp->bt_bdev) - 1; in xfs_setsize_buftarg()
1744 return xfs_setsize_buftarg(btp, bdev_logical_block_size(bdev)); in xfs_setsize_buftarg_early()
/Linux-v5.4/drivers/usb/gadget/function/
Dstorage_common.c235 blksize = bdev_logical_block_size(inode->i_bdev); in fsg_lun_open()
/Linux-v5.4/fs/hfsplus/
Dhfsplus_fs.h307 return max_t(unsigned short, bdev_logical_block_size(sb->s_bdev), in hfsplus_min_io_size()
/Linux-v5.4/fs/iomap/
Ddirect-io.c201 unsigned int blkbits = blksize_bits(bdev_logical_block_size(iomap->bdev)); in iomap_dio_bio_actor()
/Linux-v5.4/fs/affs/
Dsuper.c398 i = bdev_logical_block_size(sb->s_bdev); in affs_fill_super()
/Linux-v5.4/fs/isofs/
Dinode.c655 if (bdev_logical_block_size(s->s_bdev) > 2048) { in isofs_fill_super()
658 bdev_logical_block_size(s->s_bdev)); in isofs_fill_super()
/Linux-v5.4/fs/gfs2/
Dops_fstype.c484 if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { in init_sb()
488 sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); in init_sb()

12