/openbmc/linux/block/partitions/ |
H A D | sun.c | 61 __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()
|
/openbmc/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 80 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()
|
/openbmc/qemu/block/export/ |
H A D | virtio-blk-handler.c | 60 uint32_t num_sectors; in virtio_blk_discard_write_zeroes() local 77 num_sectors = le32_to_cpu(desc.num_sectors); in virtio_blk_discard_write_zeroes() 84 if (unlikely(num_sectors > max_sectors)) { in virtio_blk_discard_write_zeroes() 88 bytes = num_sectors << VIRTIO_BLK_SECTOR_BITS; in virtio_blk_discard_write_zeroes()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | storage_common.c | 186 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 D | storage_common.h | 101 loff_t num_sectors; member
|
H A D | f_mass_storage.c | 639 if (lba >= curlun->num_sectors) { in do_read() 785 if (lba >= curlun->num_sectors) { in do_write() 968 if (lba >= curlun->num_sectors) { in do_verify() 1150 if (curlun->num_sectors < 0x100000000ULL) in do_read_capacity() 1151 max_lba = curlun->num_sectors - 1; in do_read_capacity() 1172 put_unaligned_be64(curlun->num_sectors - 1, &buf[0]); in do_read_capacity_16() 1192 if (lba >= curlun->num_sectors) { in do_read_header() 1242 store_cdrom_address(&buf[16], msf, curlun->num_sectors); in do_read_toc() 1267 store_cdrom_address(&buf[7], msf, curlun->num_sectors); in do_read_toc() 1447 put_unaligned_be32(curlun->num_sectors, &buf[0]); in do_read_format_capacities()
|
/openbmc/linux/drivers/nvdimm/ |
H A D | badrange.c | 189 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()
|
/openbmc/linux/fs/exfat/ |
H A D | nls.c | 651 sector_t sector, unsigned long long num_sectors, in exfat_load_upcase_table() argument 667 num_sectors += sector; in exfat_load_upcase_table() 669 while (sector < num_sectors) { in exfat_load_upcase_table() 752 unsigned long long tbl_size, num_sectors; in exfat_create_upcase_table() local 783 num_sectors = ((tbl_size - 1) >> blksize_bits) + 1; in exfat_create_upcase_table() 784 ret = exfat_load_upcase_table(sb, sector, num_sectors, in exfat_create_upcase_table()
|
H A D | fatent.c | 278 if (last_blknr > sbi->num_sectors && sbi->num_sectors > 0) { in exfat_zeroed_cluster()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | storage_common.c | 277 loff_t num_sectors; member 566 static int fsg_lun_open(struct fsg_lun *curlun, unsigned int num_sectors, in fsg_lun_open() argument 575 curlun->file_length = num_sectors << 9; in fsg_lun_open() 576 curlun->num_sectors = num_sectors; in fsg_lun_open()
|
H A D | f_mass_storage.c | 710 if (lba >= curlun->num_sectors) { in do_read() 844 if (lba >= curlun->num_sectors) { in do_write() 1007 if (lba >= curlun->num_sectors) { in do_verify() 1172 put_unaligned_be32(curlun->num_sectors - 1, &buf[0]); in do_read_capacity() 1189 if (lba >= curlun->num_sectors) { in do_read_header() 1224 store_cdrom_address(&buf[16], msf, curlun->num_sectors); in do_read_toc() 1357 put_unaligned_be32(curlun->num_sectors, &buf[0]); in do_read_format_capacities() 2486 rc = fsg_lun_open(&common->luns[i], ums[i].num_sectors, ""); in fsg_common_init()
|
/openbmc/u-boot/cmd/ |
H A D | usb_mass_storage.c | 98 ums[ums_count].num_sectors = block_dev->lba; in ums_init() 101 ums[ums_count].num_sectors = info.size; in ums_init() 118 ums[ums_count].num_sectors); in ums_init()
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_color_mgmt.c | 93 struct gamma_curve_sector *sector_tbl, u32 num_sectors) in drm_lut_to_coeffs() argument 103 for (i = 0; i < num_sectors; i++) { in drm_lut_to_coeffs()
|
/openbmc/u-boot/drivers/mtd/ |
H A D | altera_qspi.c | 261 u32 num_sectors; in altera_qspi_lock() local 266 num_sectors = mtd->size / mtd->erasesize; in altera_qspi_lock() 270 if (sector_start >= num_sectors / 2) { in altera_qspi_lock() 271 sr_bp = fls(num_sectors - 1 - sector_start) + 1; in altera_qspi_lock() 273 } else if (sector_end < num_sectors / 2) { in altera_qspi_lock()
|
/openbmc/qemu/tests/qtest/ |
H A D | vhost-user-blk-test.c | 60 dwz_hdr->num_sectors = bswap32(dwz_hdr->num_sectors); in virtio_blk_fix_dwz_hdr() 114 dwz_hdr2[0].num_sectors = 1; in test_invalid_discard_write_zeroes() 117 dwz_hdr2[1].num_sectors = 1; in test_invalid_discard_write_zeroes() 143 dwz_hdr.num_sectors = 0xffffffff; in test_invalid_discard_write_zeroes() 168 dwz_hdr.num_sectors = 1; in test_invalid_discard_write_zeroes() 193 dwz_hdr.num_sectors = 1; in test_invalid_discard_write_zeroes() 306 dwz_hdr.num_sectors = 1; in test_basic() 367 dwz_hdr.num_sectors = 1; in test_basic()
|
H A D | virtio-blk-test.c | 77 dwz_hdr->num_sectors = bswap32(dwz_hdr->num_sectors); in virtio_blk_fix_dwz_hdr() 204 dwz_hdr.num_sectors = 1; in test_basic() 262 dwz_hdr.num_sectors = 1; in test_basic()
|
/openbmc/u-boot/include/ |
H A D | usb_mass_storage.h | 23 unsigned int num_sectors; member
|
/openbmc/qemu/block/ |
H A D | vhdx-log.c | 134 uint32_t num_sectors, bool peek) in vhdx_log_read_sectors() argument 143 while (num_sectors) { in vhdx_log_read_sectors() 157 num_sectors--; in vhdx_log_read_sectors() 177 uint32_t num_sectors) in vhdx_log_write_sectors() argument 193 while (num_sectors) { in vhdx_log_write_sectors() 209 num_sectors--; in vhdx_log_write_sectors()
|
H A D | iscsi.c | 610 uint32_t num_sectors; in iscsi_co_writev() local 626 num_sectors = sector_qemu2lun(nb_sectors, iscsilun); in iscsi_co_writev() 633 NULL, num_sectors * iscsilun->block_size, in iscsi_co_writev() 646 NULL, num_sectors * iscsilun->block_size, in iscsi_co_writev() 651 NULL, num_sectors * iscsilun->block_size, 806 uint32_t num_sectors; in iscsi_co_readv() local 857 num_sectors = sector_qemu2lun(nb_sectors, iscsilun); in iscsi_co_readv() 865 num_sectors * iscsilun->block_size, in iscsi_co_readv() 871 num_sectors * iscsilun->block_size, in iscsi_co_readv() 879 num_sectors * iscsilun->block_size, in iscsi_co_readv() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-io.c | 317 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()
|
H A D | md.c | 1138 sector_t num_sectors); 1549 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_90_rdev_size_change() 1554 if (!num_sectors || num_sectors > rdev->sb_start) in super_90_rdev_size_change() 1565 return num_sectors; in super_90_rdev_size_change() 2181 if (num_sectors && num_sectors < rdev->mddev->dev_sectors) in super_1_rdev_size_change() 2188 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2209 if (!num_sectors || num_sectors > max_sectors) in super_1_rdev_size_change() 2221 return num_sectors; in super_1_rdev_size_change() 7330 if (fit && (num_sectors == 0 || num_sectors > avail)) in update_size() 7331 num_sectors = avail; in update_size() [all …]
|
/openbmc/linux/block/ |
H A D | blk-crypto-fallback.c | 214 unsigned int num_sectors = 0; in blk_crypto_fallback_split_bio_if_needed() local 219 num_sectors += bv.bv_len >> SECTOR_SHIFT; in blk_crypto_fallback_split_bio_if_needed() 223 if (num_sectors < bio_sectors(bio)) { in blk_crypto_fallback_split_bio_if_needed() 226 split_bio = bio_split(bio, num_sectors, GFP_NOIO, in blk_crypto_fallback_split_bio_if_needed()
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_blk.h | 300 uint32_t num_sectors; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_blk.h | 302 __le32 num_sectors; member
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | fat16.py | 206 def __call__(self, start_sector: int, num_sectors: int = 1) -> bytes: ... 232 def read_sectors(self, start_sector: int, num_sectors: int) -> bytes: 234 num_sectors)
|