Home
last modified time | relevance | path

Searched refs:bdev_nr_bytes (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v6.6/block/
Dioctl.c112 if (start + len > bdev_nr_bytes(bdev)) in blk_ioctl_discard()
143 if (start + len > bdev_nr_bytes(bdev)) in blk_ioctl_secure_erase()
178 if (end >= (uint64_t)bdev_nr_bytes(bdev)) in blk_ioctl_zeroout()
615 return put_u64(argp, bdev_nr_bytes(bdev)); in blkdev_ioctl()
675 return put_u64(argp, bdev_nr_bytes(bdev)); in compat_blkdev_ioctl()
Dfops.c649 loff_t size = bdev_nr_bytes(bdev); in blkdev_write_iter()
696 loff_t size = bdev_nr_bytes(bdev); in blkdev_read_iter()
756 isize = bdev_nr_bytes(bdev); in blkdev_fallocate()
/Linux-v6.6/drivers/nvme/target/
Dio-cmd-bdev.c98 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_enable()
119 ns->size = bdev_nr_bytes(ns->bdev); in nvmet_bdev_ns_revalidate()
/Linux-v6.6/fs/xfs/
Dxfs_notify_failure.c211 ddev_end = ddev_start + bdev_nr_bytes(mp->m_ddev_targp->bt_bdev) - 1; in xfs_dax_notify_failure()
/Linux-v6.6/fs/nfs/blocklayout/
Ddev.c256 d->len = bdev_nr_bytes(d->bdev); in bl_parse_simple()
352 d->len = bdev_nr_bytes(d->bdev); in bl_parse_scsi()
/Linux-v6.6/fs/pstore/
Dblk.c225 bdev_nr_bytes(I_BDEV(psblk_file->f_mapping->host)); in __register_pstore_blk()
/Linux-v6.6/fs/jfs/
Dresize.c201 sbi->direct_inode->i_size = bdev_nr_bytes(sb->s_bdev); in jfs_extendfs()
Dsuper.c549 inode->i_size = bdev_nr_bytes(sb->s_bdev); in jfs_fill_super()
/Linux-v6.6/block/partitions/
Defi.c136 return div_u64(bdev_nr_bytes(disk->part0), in last_lba()
/Linux-v6.6/fs/squashfs/
Dsuper.c255 msblk->bytes_used > bdev_nr_bytes(sb->s_bdev)) in squashfs_fill_super()
/Linux-v6.6/drivers/md/
Ddm-log.c452 if (buf_size > bdev_nr_bytes(dev->bdev)) { in create_log_context()
Ddm-writecache.c2368 wc->memory_map_size = bdev_nr_bytes(wc->ssd_dev->bdev); in writecache_ctr()
/Linux-v6.6/fs/nilfs2/
Dthe_nilfs.c594 u64 sb2off, devsize = bdev_nr_bytes(nilfs->ns_bdev); in nilfs_load_super_block()
Dioctl.c1110 if (range[1] > bdev_nr_bytes(inode->i_sb->s_bdev)) in nilfs_ioctl_set_alloc_range()
Dsuper.c429 devsize = bdev_nr_bytes(sb->s_bdev); in nilfs_resize_fs()
/Linux-v6.6/fs/cramfs/
Dinode.c214 devsize = bdev_nr_bytes(sb->s_bdev) >> PAGE_SHIFT; in cramfs_blkdev_read()
/Linux-v6.6/drivers/target/
Dtarget_core_iblock.c242 div_u64(bdev_nr_bytes(ib_dev->ibd_bd), block_size) - 1; in iblock_get_blocks()
/Linux-v6.6/fs/btrfs/
Ddev-replace.c286 if (bdev_nr_bytes(bdev) < btrfs_device_get_total_bytes(srcdev)) { in btrfs_init_dev_replace_tgtdev()
Dioctl.c1169 new_size = bdev_nr_bytes(device->bdev); in btrfs_ioctl_resize()
1210 if (new_size > bdev_nr_bytes(device->bdev)) { in btrfs_ioctl_resize()
Dvolumes.c1310 if (bytenr + PAGE_SIZE >= bdev_nr_bytes(bdev)) in btrfs_read_disk_super()
2688 round_down(bdev_nr_bytes(bdev), fs_info->sectorsize); in btrfs_init_new_device()
7029 u64 max_total_bytes = bdev_nr_bytes(device->bdev); in read_one_dev()
Ddisk-io.c3671 if (bytenr + BTRFS_SUPER_INFO_SIZE >= bdev_nr_bytes(bdev)) in btrfs_read_dev_one_super()
/Linux-v6.6/include/linux/
Dblkdev.h770 static inline loff_t bdev_nr_bytes(struct block_device *bdev) in bdev_nr_bytes() function
/Linux-v6.6/fs/ntfs3/
Dsuper.c1185 bdev_nr_bytes(bdev), &boot2); in ntfs_fill_super()
/Linux-v6.6/fs/reiserfs/
Dsuper.c1981 if (bdev_nr_bytes(s->s_bdev) < sb_block_count(rs) * sb_blocksize(rs)) { in reiserfs_fill_super()
/Linux-v6.6/fs/
Dbuffer.c991 loff_t sz = bdev_nr_bytes(bdev); in blkdev_max_block()

12