n_sectors 2511 drivers/ata/libata-core.c dev->n_sectors = 0; n_sectors 2550 drivers/ata/libata-core.c dev->n_sectors = ata_id_n_sectors(id); n_sectors 2572 drivers/ata/libata-core.c if (dev->n_sectors >= (1UL << 28) && n_sectors 2589 drivers/ata/libata-core.c (unsigned long long)dev->n_sectors, n_sectors 2614 drivers/ata/libata-core.c (unsigned long long)dev->n_sectors, n_sectors 4296 drivers/ata/libata-core.c u64 n_sectors = dev->n_sectors; n_sectors 4326 drivers/ata/libata-core.c if (dev->class != ATA_DEV_ATA || !n_sectors || n_sectors 4327 drivers/ata/libata-core.c dev->n_sectors == n_sectors) n_sectors 4332 drivers/ata/libata-core.c (unsigned long long)n_sectors, n_sectors 4333 drivers/ata/libata-core.c (unsigned long long)dev->n_sectors); n_sectors 4341 drivers/ata/libata-core.c dev->n_sectors > n_sectors && dev->n_sectors == n_native_sectors) { n_sectors 4356 drivers/ata/libata-core.c dev->n_sectors < n_sectors && n_sectors == n_native_sectors && n_sectors 4369 drivers/ata/libata-core.c dev->n_sectors = n_sectors; n_sectors 521 drivers/ata/libata-scsi.c if (dev && dev->n_sectors < dev->n_native_sectors) { n_sectors 1678 drivers/ata/libata-scsi.c u64 dev_sectors = qc->dev->n_sectors; n_sectors 2706 drivers/ata/libata-scsi.c u64 last_lba = dev->n_sectors - 1; /* LBA of the last block */ n_sectors 3814 drivers/ata/libata-scsi.c } else if (block >= dev->n_sectors) { n_sectors 555 drivers/md/dm-bufio.c unsigned n_sectors, unsigned offset) n_sectors 568 drivers/md/dm-bufio.c .count = n_sectors, n_sectors 593 drivers/md/dm-bufio.c unsigned n_sectors, unsigned offset) n_sectors 606 drivers/md/dm-bufio.c use_dmio(b, rw, sector, n_sectors, offset); n_sectors 617 drivers/md/dm-bufio.c len = n_sectors << SECTOR_SHIFT; n_sectors 636 drivers/md/dm-bufio.c unsigned n_sectors; n_sectors 649 drivers/md/dm-bufio.c n_sectors = b->c->block_size >> SECTOR_SHIFT; n_sectors 663 drivers/md/dm-bufio.c n_sectors = (end - offset) >> SECTOR_SHIFT; n_sectors 667 drivers/md/dm-bufio.c use_bio(b, rw, sector, n_sectors, offset); n_sectors 669 drivers/md/dm-bufio.c use_dmio(b, rw, sector, n_sectors, offset); n_sectors 269 drivers/md/dm-integrity.c sector_t n_sectors; n_sectors 501 drivers/md/dm-integrity.c sector_t sector, sector_t n_sectors, int mode) n_sectors 506 drivers/md/dm-integrity.c if (unlikely(((sector | n_sectors) & ((1 << ic->sb->log2_sectors_per_block) - 1)) != 0)) { n_sectors 509 drivers/md/dm-integrity.c (unsigned long long)n_sectors, n_sectors 516 drivers/md/dm-integrity.c if (unlikely(!n_sectors)) n_sectors 520 drivers/md/dm-integrity.c end_bit = (sector + n_sectors - 1) >> n_sectors 655 drivers/md/dm-integrity.c unsigned section, unsigned offset, unsigned *n_sectors) n_sectors 662 drivers/md/dm-integrity.c if (n_sectors) n_sectors 663 drivers/md/dm-integrity.c *n_sectors = (PAGE_SIZE - pl_offset) >> SECTOR_SHIFT; n_sectors 936 drivers/md/dm-integrity.c unsigned sector, unsigned n_sectors, struct journal_completion *comp) n_sectors 969 drivers/md/dm-integrity.c io_loc.count = n_sectors; n_sectors 984 drivers/md/dm-integrity.c unsigned sector, n_sectors; n_sectors 987 drivers/md/dm-integrity.c n_sectors = n_sections * ic->journal_section_sectors; n_sectors 989 drivers/md/dm-integrity.c rw_journal_sectors(ic, op, op_flags, sector, n_sectors, comp); n_sectors 1054 drivers/md/dm-integrity.c unsigned n_sectors, sector_t target, io_notify_fn fn, void *data) n_sectors 1061 drivers/md/dm-integrity.c BUG_ON((target | n_sectors | offset) & (unsigned)(ic->sectors_per_block - 1)); n_sectors 1083 drivers/md/dm-integrity.c io_loc.count = n_sectors; n_sectors 1094 drivers/md/dm-integrity.c return range1->logical_sector < range2->logical_sector + range2->n_sectors && n_sectors 1095 drivers/md/dm-integrity.c range1->logical_sector + range1->n_sectors > range2->logical_sector; n_sectors 1103 drivers/md/dm-integrity.c BUG_ON((new_range->logical_sector | new_range->n_sectors) & (unsigned)(ic->sectors_per_block - 1)); n_sectors 1119 drivers/md/dm-integrity.c if (new_range->logical_sector + new_range->n_sectors <= range->logical_sector) { n_sectors 1121 drivers/md/dm-integrity.c } else if (new_range->logical_sector >= range->logical_sector + range->n_sectors) { n_sectors 1433 drivers/md/dm-integrity.c if (likely(!bio->bi_status) && unlikely(bio_sectors(bio) != dio->range.n_sectors)) { n_sectors 1434 drivers/md/dm-integrity.c dio->range.logical_sector += dio->range.n_sectors; n_sectors 1435 drivers/md/dm-integrity.c bio_advance(bio, dio->range.n_sectors << SECTOR_SHIFT); n_sectors 1518 drivers/md/dm-integrity.c unsigned sectors_to_process = dio->range.n_sectors; n_sectors 1584 drivers/md/dm-integrity.c unsigned data_to_process = dio->range.n_sectors; n_sectors 1701 drivers/md/dm-integrity.c unsigned n_sectors; n_sectors 1704 drivers/md/dm-integrity.c n_sectors = dio->range.n_sectors; n_sectors 1709 drivers/md/dm-integrity.c if (unlikely(bv.bv_len >> SECTOR_SHIFT > n_sectors)) n_sectors 1710 drivers/md/dm-integrity.c bv.bv_len = n_sectors << SECTOR_SHIFT; n_sectors 1711 drivers/md/dm-integrity.c n_sectors -= bv.bv_len >> SECTOR_SHIFT; n_sectors 1820 drivers/md/dm-integrity.c } while (n_sectors); n_sectors 1870 drivers/md/dm-integrity.c dio->range.n_sectors = bio_sectors(bio); n_sectors 1877 drivers/md/dm-integrity.c dio->range.n_sectors = min(dio->range.n_sectors, n_sectors 1879 drivers/md/dm-integrity.c if (unlikely(!dio->range.n_sectors)) { n_sectors 1885 drivers/md/dm-integrity.c range_sectors = dio->range.n_sectors >> ic->sb->log2_sectors_per_block; n_sectors 1917 drivers/md/dm-integrity.c } while ((i += ic->sectors_per_block) < dio->range.n_sectors); n_sectors 1925 drivers/md/dm-integrity.c if (unlikely(dio->range.n_sectors > next_sector - dio->range.logical_sector)) n_sectors 1926 drivers/md/dm-integrity.c dio->range.n_sectors = next_sector - dio->range.logical_sector; n_sectors 1930 drivers/md/dm-integrity.c for (i = ic->sectors_per_block; i < dio->range.n_sectors; i += ic->sectors_per_block, jp++) { n_sectors 1934 drivers/md/dm-integrity.c dio->range.n_sectors = i; n_sectors 1952 drivers/md/dm-integrity.c dio->range.n_sectors = ic->sectors_per_block; n_sectors 1978 drivers/md/dm-integrity.c dio->range.n_sectors, BITMAP_OP_TEST_ALL_SET)) { n_sectors 2003 drivers/md/dm-integrity.c bio->bi_iter.bi_size = dio->range.n_sectors << SECTOR_SHIFT; n_sectors 2010 drivers/md/dm-integrity.c dio->range.logical_sector + dio->range.n_sectors > le64_to_cpu(ic->sb->recalc_sector)) n_sectors 2014 drivers/md/dm-integrity.c dio->range.n_sectors, BITMAP_OP_TEST_ALL_CLEAR)) n_sectors 2210 drivers/md/dm-integrity.c io->range.n_sectors = (k - j) << ic->sb->log2_sectors_per_block; n_sectors 2350 drivers/md/dm-integrity.c sector_t logical_sector, n_sectors; n_sectors 2375 drivers/md/dm-integrity.c range.n_sectors = min((sector_t)RECALC_SECTORS, ic->provided_data_sectors - range.logical_sector); n_sectors 2377 drivers/md/dm-integrity.c range.n_sectors = min(range.n_sectors, ((sector_t)1U << ic->sb->log2_interleave_sectors) - (unsigned)offset); n_sectors 2382 drivers/md/dm-integrity.c n_sectors = range.n_sectors; n_sectors 2385 drivers/md/dm-integrity.c if (block_bitmap_op(ic, ic->recalc_bitmap, logical_sector, n_sectors, BITMAP_OP_TEST_ALL_CLEAR)) { n_sectors 2391 drivers/md/dm-integrity.c n_sectors -= ic->sectors_per_block; n_sectors 2394 drivers/md/dm-integrity.c while (block_bitmap_op(ic, ic->recalc_bitmap, logical_sector + n_sectors - ic->sectors_per_block, n_sectors 2396 drivers/md/dm-integrity.c n_sectors -= ic->sectors_per_block; n_sectors 2402 drivers/md/dm-integrity.c DEBUG_print("recalculating: %lx, %lx\n", logical_sector, n_sectors); n_sectors 2423 drivers/md/dm-integrity.c io_loc.count = n_sectors; n_sectors 2432 drivers/md/dm-integrity.c for (i = 0; i < n_sectors; i += ic->sectors_per_block) { n_sectors 2450 drivers/md/dm-integrity.c ic->sb->recalc_sector = cpu_to_le64(range.logical_sector + range.n_sectors); n_sectors 2484 drivers/md/dm-integrity.c dio->range.n_sectors, BITMAP_OP_TEST_ALL_SET)) { n_sectors 2490 drivers/md/dm-integrity.c dio->range.n_sectors, BITMAP_OP_SET); n_sectors 2506 drivers/md/dm-integrity.c dio->range.n_sectors, BITMAP_OP_SET); n_sectors 2526 drivers/md/dm-integrity.c range.n_sectors = ic->provided_data_sectors; n_sectors 27 drivers/md/dm-rq.c unsigned n_sectors; n_sectors 137 drivers/md/dm-rq.c blk_rq_pos(orig), tio->n_sectors, true, n_sectors 455 drivers/md/dm-rq.c tio->n_sectors = blk_rq_sectors(orig); n_sectors 457 drivers/md/dm-rq.c blk_rq_pos(orig), tio->n_sectors, false, 0, n_sectors 881 drivers/md/dm-writecache.c static int writecache_read_metadata(struct dm_writecache *wc, sector_t n_sectors) n_sectors 888 drivers/md/dm-writecache.c region.count = n_sectors; n_sectors 1565 drivers/md/dm-writecache.c unsigned n_sectors; n_sectors 1571 drivers/md/dm-writecache.c n_sectors = e->wc_list_contiguous << (wc->block_size_bits - SECTOR_SHIFT); n_sectors 1575 drivers/md/dm-writecache.c from.count = n_sectors; n_sectors 1578 drivers/md/dm-writecache.c to.count = n_sectors; n_sectors 1585 drivers/md/dm-writecache.c while ((n_sectors -= wc->block_size >> SECTOR_SHIFT)) { n_sectors 1203 drivers/md/dm.c void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors) n_sectors 1209 drivers/md/dm.c BUG_ON(n_sectors > bi_size); n_sectors 1210 drivers/md/dm.c *tio->len_ptr -= bi_size - n_sectors; n_sectors 1211 drivers/md/dm.c bio->bi_iter.bi_size = n_sectors << SECTOR_SHIFT; n_sectors 302 drivers/mtd/devices/st_spi_fsm.c u16 n_sectors; n_sectors 1429 drivers/mtd/devices/st_spi_fsm.c for (offs = 0; offs < info->sector_size * info->n_sectors;) { n_sectors 1436 drivers/mtd/devices/st_spi_fsm.c (offs >= (info->sector_size - info->n_sectors * 4))) n_sectors 2081 drivers/mtd/devices/st_spi_fsm.c if (info->sector_size * info->n_sectors > 0x1000000) n_sectors 2105 drivers/mtd/devices/st_spi_fsm.c fsm->mtd.size = info->sector_size * info->n_sectors; n_sectors 194 drivers/mtd/spi-nor/spi-nor.c u16 n_sectors; n_sectors 2045 drivers/mtd/spi-nor/spi-nor.c .n_sectors = (_n_sectors), \ n_sectors 2060 drivers/mtd/spi-nor/spi-nor.c .n_sectors = (_n_sectors), \ n_sectors 2066 drivers/mtd/spi-nor/spi-nor.c .n_sectors = (_n_sectors), \ n_sectors 2079 drivers/mtd/spi-nor/spi-nor.c .n_sectors = (_n_sectors), \ n_sectors 2767 drivers/mtd/spi-nor/spi-nor.c nor->mtd.size = 8 * nor->page_size * nor->info->n_sectors; n_sectors 4474 drivers/mtd/spi-nor/spi-nor.c params->size = (u64)info->sector_size * info->n_sectors; n_sectors 87 fs/hpfs/hpfs.h __le32 n_sectors; /* size of filesystem */ n_sectors 621 fs/hpfs/super.c sbi->sb_fs_size = le32_to_cpu(superblock->n_sectors); n_sectors 424 include/linux/device-mapper.h void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors); n_sectors 685 include/linux/libata.h u64 n_sectors; /* size of device, if ATA */ n_sectors 737 include/linux/libata.h #define ATA_DEVICE_CLEAR_BEGIN offsetof(struct ata_device, n_sectors)