Home
last modified time | relevance | path

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

12

/openbmc/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()
/openbmc/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()
/openbmc/qemu/block/export/
H A Dvirtio-blk-handler.c60 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 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
H A Df_mass_storage.c639 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 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()
/openbmc/linux/fs/exfat/
H A Dnls.c651 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 Dfatent.c278 if (last_blknr > sbi->num_sectors && sbi->num_sectors > 0) { in exfat_zeroed_cluster()
/openbmc/u-boot/drivers/usb/gadget/
H A Dstorage_common.c277 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 Df_mass_storage.c710 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 Dusb_mass_storage.c98 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 Dkomeda_color_mgmt.c93 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 Daltera_qspi.c261 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 Dvhost-user-blk-test.c60 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 Dvirtio-blk-test.c77 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 Dusb_mass_storage.h23 unsigned int num_sectors; member
/openbmc/qemu/block/
H A Dvhdx-log.c134 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 Discsi.c610 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 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()
H A Dmd.c1138 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 Dblk-crypto-fallback.c214 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 Dvirtio_blk.h300 uint32_t num_sectors; member
/openbmc/linux/include/uapi/linux/
H A Dvirtio_blk.h302 __le32 num_sectors; member
/openbmc/qemu/tests/qemu-iotests/
H A Dfat16.py206 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)

12