Home
last modified time | relevance | path

Searched refs:num_sectors (Results 1 – 17 of 17) sorted by relevance

/linux/block/partitions/
H A Dsun.c61 __be32 num_sectors; in sun_partition() member
110 unsigned int num_sectors; in sun_partition() local
113 num_sectors = be32_to_cpu(p->num_sectors); in sun_partition()
114 if (num_sectors) { in sun_partition()
115 put_partition(state, slot, st_sector, num_sectors); in sun_partition()
/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_blk.c80 u64 num_sectors, u64 max_sectors) in vdpasim_blk_check_range() argument
88 if (num_sectors > max_sectors) { in vdpasim_blk_check_range()
91 num_sectors, max_sectors); in vdpasim_blk_check_range()
95 if (num_sectors > VDPASIM_BLK_CAPACITY - start_sector) { in vdpasim_blk_check_range()
98 start_sector, num_sectors, VDPASIM_BLK_CAPACITY); in vdpasim_blk_check_range()
235 u32 num_sectors, flags; in vdpasim_blk_handle_req() local
257 num_sectors = le32_to_cpu(range.num_sectors); in vdpasim_blk_handle_req()
277 if (!vdpasim_blk_check_range(vdpasim, sector, num_sectors, in vdpasim_blk_handle_req()
286 num_sectors << SECTOR_SHIFT); in vdpasim_blk_handle_req()
/linux/drivers/usb/gadget/function/
H A Dstorage_common.c186 loff_t num_sectors; in fsg_lun_open() local
243 num_sectors = size >> blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open()
247 if (num_sectors >= 256*60*75) { in fsg_lun_open()
248 num_sectors = 256*60*75 - 1; in fsg_lun_open()
251 (int) num_sectors); in fsg_lun_open()
254 if (num_sectors < min_sectors) { in fsg_lun_open()
268 curlun->num_sectors = num_sectors; in fsg_lun_open()
H A Dstorage_common.h101 loff_t num_sectors; member
/linux/drivers/nvdimm/
H A Dbadrange.c189 u64 num_sectors; in __add_badblock_range() local
196 num_sectors = end_sector - start_sector; in __add_badblock_range()
198 if (unlikely(num_sectors > (u64)INT_MAX)) { in __add_badblock_range()
199 u64 remaining = num_sectors; in __add_badblock_range()
210 set_badblock(bb, start_sector, num_sectors); in __add_badblock_range()
/linux/fs/exfat/
H A Dnls.c651 sector_t sector, unsigned long long num_sectors, in exfat_load_upcase_table() argument
666 num_sectors += sector; in exfat_load_upcase_table()
668 while (sector < num_sectors) { in exfat_load_upcase_table()
746 unsigned long long tbl_size, num_sectors; in exfat_create_upcase_table() local
777 num_sectors = ((tbl_size - 1) >> blksize_bits) + 1; in exfat_create_upcase_table()
778 ret = exfat_load_upcase_table(sb, sector, num_sectors, in exfat_create_upcase_table()
H A Dfatent.c291 if (last_blknr > sbi->num_sectors && sbi->num_sectors > 0) { in exfat_zeroed_cluster()
H A Dexfat_fs.h251 unsigned long long num_sectors; /* num of sectors in volume */ member
H A Dsuper.c522 sbi->num_sectors = le64_to_cpu(p_boot->vol_length); in exfat_read_boot_sector()
/linux/drivers/md/
H A Ddm-io.c317 sector_t num_sectors; in do_region() local
361 num_sectors = min_t(sector_t, special_cmd_max_sectors, remaining); in do_region()
362 bio->bi_iter.bi_size = num_sectors << SECTOR_SHIFT; in do_region()
363 remaining -= num_sectors; in do_region()
/linux/include/uapi/linux/
H A Dvirtio_blk.h302 __le32 num_sectors; member
/linux/drivers/scsi/
H A D3w-xxxx.c1699 u32 lba = 0x0, num_sectors = 0x0; in tw_scsiop_read_write() local
1740 num_sectors = (u32)srb->cmnd[4]; in tw_scsiop_read_write()
1743 num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); in tw_scsiop_read_write()
1747 tw_dev->sector_count = num_sectors; in tw_scsiop_read_write()
1751 …(KERN_NOTICE "3w-xxxx: tw_scsiop_read_write(): lba = 0x%x num_sectors = 0x%x\n", lba, num_sectors); in tw_scsiop_read_write()
1753 command_packet->byte6.block_count = num_sectors; in tw_scsiop_read_write()
H A D3w-9xxx.c1804 u32 num_sectors = 0x0; in DEF_SCSI_QCMD() local
1884 num_sectors = (u32)srb->cmnd[4]; in DEF_SCSI_QCMD()
1887 num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); in DEF_SCSI_QCMD()
1891 tw_dev->sector_count = num_sectors; in DEF_SCSI_QCMD()
H A Dscsi_debug.c6268 int sectors_per_part, num_sectors, k; in sdebug_build_parts() local
6278 num_sectors = (int)get_sdebug_capacity(); in sdebug_build_parts()
6279 sectors_per_part = (num_sectors - sdebug_sectors_per) in sdebug_build_parts()
6290 starts[sdebug_num_parts] = num_sectors; in sdebug_build_parts()
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-init.rst31 <table> ::= <start_sector> <num_sectors> <target_type> <target_args>
/linux/fs/btrfs/
H A Dscrub.c1103 int num_sectors; in scrub_read_endio() local
1110 num_sectors = bio_size >> stripe->bg->fs_info->sectorsize_bits; in scrub_read_endio()
1113 bitmap_set(&stripe->io_error_bitmap, sector_nr, num_sectors); in scrub_read_endio()
1114 bitmap_set(&stripe->error_bitmap, sector_nr, num_sectors); in scrub_read_endio()
1116 bitmap_clear(&stripe->io_error_bitmap, sector_nr, num_sectors); in scrub_read_endio()
H A Dfile.c1130 size_t num_sectors; in btrfs_buffered_write() local
1241 num_sectors = BTRFS_BYTES_TO_BLKS(fs_info, reserve_bytes); in btrfs_buffered_write()
1253 if (num_sectors > dirty_sectors) { in btrfs_buffered_write()