Home
last modified time | relevance | path

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

/linux-3.4.99/block/partitions/
Dsun.c53 __be32 num_sectors; in sun_partition() member
103 unsigned int num_sectors; in sun_partition() local
106 num_sectors = be32_to_cpu(p->num_sectors); in sun_partition()
107 if (num_sectors) { in sun_partition()
108 put_partition(state, slot, st_sector, num_sectors); in sun_partition()
/linux-3.4.99/drivers/usb/gadget/
Dstorage_common.c192 loff_t num_sectors; member
637 loff_t num_sectors; in fsg_lun_open() local
693 num_sectors = size >> curlun->blkbits; /* File size in logic-block-size blocks */ in fsg_lun_open()
697 if (num_sectors >= 256*60*75) { in fsg_lun_open()
698 num_sectors = 256*60*75 - 1; in fsg_lun_open()
701 (int) num_sectors); in fsg_lun_open()
704 if (num_sectors < min_sectors) { in fsg_lun_open()
714 curlun->num_sectors = num_sectors; in fsg_lun_open()
Df_mass_storage.c771 if (lba >= curlun->num_sectors) { in do_read()
917 if (lba >= curlun->num_sectors) { in do_write()
1104 if (lba >= curlun->num_sectors) { in do_verify()
1281 put_unaligned_be32(curlun->num_sectors - 1, &buf[0]); in do_read_capacity()
1298 if (lba >= curlun->num_sectors) { in do_read_header()
1332 store_cdrom_address(&buf[16], msf, curlun->num_sectors); in do_read_toc()
1519 put_unaligned_be32(curlun->num_sectors, &buf[0]); in do_read_format_capacities()
Dfile_storage.c1179 if (lba >= curlun->num_sectors) { in do_read()
1318 if (lba >= curlun->num_sectors) { in do_write()
1497 if (lba >= curlun->num_sectors) { in do_verify()
1679 put_unaligned_be32(curlun->num_sectors - 1, &buf[0]); in do_read_capacity()
1697 if (lba >= curlun->num_sectors) { in do_read_header()
1732 store_cdrom_address(&buf[16], msf, curlun->num_sectors); in do_read_toc()
1901 put_unaligned_be32(curlun->num_sectors, &buf[0]); in do_read_format_capacities()
/linux-3.4.99/fs/btrfs/
Dordered-data.h126 unsigned long num_sectors = (bytes + root->sectorsize - 1) / in btrfs_ordered_sum_size() local
128 num_sectors++; in btrfs_ordered_sum_size()
130 num_sectors * sizeof(struct btrfs_sector_sum); in btrfs_ordered_sum_size()
Dordered-data.c906 unsigned long num_sectors; in btrfs_find_ordered_sum() local
918 num_sectors = ordered_sum->len / sectorsize; in btrfs_find_ordered_sum()
920 for (i = 0; i < num_sectors; i++) { in btrfs_find_ordered_sum()
Dscrub.c1670 unsigned long num_sectors; in scrub_find_csum() local
1688 num_sectors = sum->len / sdev->sectorsize; in scrub_find_csum()
1689 for (i = 0; i < num_sectors; ++i) { in scrub_find_csum()
1696 if (ret && i == num_sectors - 1) { in scrub_find_csum()
/linux-3.4.99/drivers/md/
Dmd.c791 sector_t num_sectors = i_size_read(rdev->bdev->bd_inode) / 512; in calc_dev_sboffset() local
792 return MD_NEW_SIZE_SECTORS(num_sectors); in calc_dev_sboffset()
1046 sector_t num_sectors);
1424 super_90_rdev_size_change(struct md_rdev *rdev, sector_t num_sectors) in super_90_rdev_size_change() argument
1426 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change()
1431 if (!num_sectors || num_sectors > rdev->sb_start) in super_90_rdev_size_change()
1432 num_sectors = rdev->sb_start; in super_90_rdev_size_change()
1436 if (num_sectors >= (2ULL << 32) && rdev->mddev->level >= 1) in super_90_rdev_size_change()
1437 num_sectors = (2ULL << 32) - 2; in super_90_rdev_size_change()
1441 return num_sectors; in super_90_rdev_size_change()
[all …]
/linux-3.4.99/drivers/scsi/
D3w-xxxx.c1726 u32 lba = 0x0, num_sectors = 0x0; in tw_scsiop_read_write() local
1767 num_sectors = (u32)srb->cmnd[4]; in tw_scsiop_read_write()
1770 num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); in tw_scsiop_read_write()
1774 tw_dev->sector_count = num_sectors; in tw_scsiop_read_write()
1778 …(KERN_NOTICE "3w-xxxx: tw_scsiop_read_write(): lba = 0x%x num_sectors = 0x%x\n", lba, num_sectors); in tw_scsiop_read_write()
1780 command_packet->byte6.block_count = num_sectors; in tw_scsiop_read_write()
D3w-9xxx.c1824 u32 num_sectors = 0x0; in DEF_SCSI_QCMD() local
1908 num_sectors = (u32)srb->cmnd[4]; in DEF_SCSI_QCMD()
1911 num_sectors = (u32)srb->cmnd[8] | ((u32)srb->cmnd[7] << 8); in DEF_SCSI_QCMD()
1915 tw_dev->sector_count = num_sectors; in DEF_SCSI_QCMD()
Dscsi_debug.c2624 int sectors_per_part, num_sectors, k; in sdebug_build_parts() local
2635 num_sectors = (int)sdebug_store_sectors; in sdebug_build_parts()
2636 sectors_per_part = (num_sectors - sdebug_sectors_per) in sdebug_build_parts()
2643 starts[scsi_debug_num_parts] = num_sectors; in sdebug_build_parts()