Searched refs:n_sectors (Results 1 – 9 of 9) sorted by relevance
/drivers/md/ |
D | dm-integrity.c | 265 sector_t n_sectors; member 501 sector_t sector, sector_t n_sectors, int mode) in block_bitmap_op() argument 506 if (unlikely(((sector | n_sectors) & ((1 << ic->sb->log2_sectors_per_block) - 1)) != 0)) { in block_bitmap_op() 509 (unsigned long long)n_sectors, in block_bitmap_op() 516 if (unlikely(!n_sectors)) in block_bitmap_op() 520 end_bit = (sector + n_sectors - 1) >> in block_bitmap_op() 655 unsigned section, unsigned offset, unsigned *n_sectors) in access_page_list() argument 662 if (n_sectors) in access_page_list() 663 *n_sectors = (PAGE_SIZE - pl_offset) >> SECTOR_SHIFT; in access_page_list() 936 unsigned sector, unsigned n_sectors, struct journal_completion *comp) in rw_journal_sectors() argument [all …]
|
D | dm-rq.c | 27 unsigned n_sectors; member 137 blk_rq_pos(orig), tio->n_sectors, true, in rq_end_stats() 455 tio->n_sectors = blk_rq_sectors(orig); in dm_start_request() 457 blk_rq_pos(orig), tio->n_sectors, false, 0, in dm_start_request()
|
D | dm-bufio.c | 555 unsigned n_sectors, unsigned offset) in use_dmio() argument 568 .count = n_sectors, in use_dmio() 593 unsigned n_sectors, unsigned offset) in use_bio() argument 606 use_dmio(b, rw, sector, n_sectors, offset); in use_bio() 617 len = n_sectors << SECTOR_SHIFT; in use_bio() 636 unsigned n_sectors; in submit_io() local 649 n_sectors = b->c->block_size >> SECTOR_SHIFT; in submit_io() 663 n_sectors = (end - offset) >> SECTOR_SHIFT; in submit_io() 667 use_bio(b, rw, sector, n_sectors, offset); in submit_io() 669 use_dmio(b, rw, sector, n_sectors, offset); in submit_io()
|
D | dm-writecache.c | 1527 unsigned n_sectors; in __writecache_writeback_ssd() local 1533 n_sectors = e->wc_list_contiguous << (wc->block_size_bits - SECTOR_SHIFT); in __writecache_writeback_ssd() 1537 from.count = n_sectors; in __writecache_writeback_ssd() 1540 to.count = n_sectors; in __writecache_writeback_ssd() 1547 while ((n_sectors -= wc->block_size >> SECTOR_SHIFT)) { in __writecache_writeback_ssd()
|
D | dm.c | 1231 void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors) in dm_accept_partial_bio() argument 1237 BUG_ON(n_sectors > bi_size); in dm_accept_partial_bio() 1238 *tio->len_ptr -= bi_size - n_sectors; in dm_accept_partial_bio() 1239 bio->bi_iter.bi_size = n_sectors << SECTOR_SHIFT; in dm_accept_partial_bio()
|
/drivers/ata/ |
D | libata-core.c | 2511 dev->n_sectors = 0; in ata_dev_configure() 2550 dev->n_sectors = ata_id_n_sectors(id); in ata_dev_configure() 2572 if (dev->n_sectors >= (1UL << 28) && in ata_dev_configure() 2589 (unsigned long long)dev->n_sectors, in ata_dev_configure() 2614 (unsigned long long)dev->n_sectors, in ata_dev_configure() 4296 u64 n_sectors = dev->n_sectors; in ata_dev_revalidate() local 4326 if (dev->class != ATA_DEV_ATA || !n_sectors || in ata_dev_revalidate() 4327 dev->n_sectors == n_sectors) in ata_dev_revalidate() 4332 (unsigned long long)n_sectors, in ata_dev_revalidate() 4333 (unsigned long long)dev->n_sectors); in ata_dev_revalidate() [all …]
|
D | libata-scsi.c | 521 if (dev && dev->n_sectors < dev->n_native_sectors) { in ata_scsi_unlock_native_capacity() 1678 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() 2706 u64 last_lba = dev->n_sectors - 1; /* LBA of the last block */ in ata_scsiop_read_cap() 3814 } else if (block >= dev->n_sectors) { in ata_scsi_zbc_out_xlat()
|
/drivers/mtd/devices/ |
D | st_spi_fsm.c | 302 u16 n_sectors; member 1429 for (offs = 0; offs < info->sector_size * info->n_sectors;) { in stfsm_s25fl_config() 1436 (offs >= (info->sector_size - info->n_sectors * 4))) in stfsm_s25fl_config() 2081 if (info->sector_size * info->n_sectors > 0x1000000) in stfsm_probe() 2105 fsm->mtd.size = info->sector_size * info->n_sectors; in stfsm_probe()
|
/drivers/mtd/spi-nor/ |
D | spi-nor.c | 194 u16 n_sectors; member 2045 .n_sectors = (_n_sectors), \ 2060 .n_sectors = (_n_sectors), \ 2066 .n_sectors = (_n_sectors), \ 2079 .n_sectors = (_n_sectors), \ 2766 nor->mtd.size = 8 * nor->page_size * nor->info->n_sectors; in s3an_nor_setup() 4473 params->size = (u64)info->sector_size * info->n_sectors; in spi_nor_info_init_params()
|