Home
last modified time | relevance | path

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

/drivers/md/
Ddm-integrity.c276 sector_t n_sectors; member
518 sector_t sector, sector_t n_sectors, int mode) in block_bitmap_op() argument
523 if (unlikely(((sector | n_sectors) & ((1 << ic->sb->log2_sectors_per_block) - 1)) != 0)) { in block_bitmap_op()
526 n_sectors, in block_bitmap_op()
533 if (unlikely(!n_sectors)) in block_bitmap_op()
537 end_bit = (sector + n_sectors - 1) >> in block_bitmap_op()
672 unsigned section, unsigned offset, unsigned *n_sectors) in access_page_list() argument
679 if (n_sectors) in access_page_list()
680 *n_sectors = (PAGE_SIZE - pl_offset) >> SECTOR_SHIFT; in access_page_list()
953 unsigned sector, unsigned n_sectors, struct journal_completion *comp) in rw_journal_sectors() argument
[all …]
Ddm-rq.c27 unsigned n_sectors; member
134 blk_rq_pos(orig), tio->n_sectors, true, in rq_end_stats()
449 tio->n_sectors = blk_rq_sectors(orig); in dm_start_request()
451 blk_rq_pos(orig), tio->n_sectors, false, 0, in dm_start_request()
Ddm-bufio.c581 unsigned n_sectors, unsigned offset) in use_dmio() argument
594 .count = n_sectors, in use_dmio()
619 unsigned n_sectors, unsigned offset) in use_bio() argument
632 use_dmio(b, rw, sector, n_sectors, offset); in use_bio()
643 len = n_sectors << SECTOR_SHIFT; in use_bio()
675 unsigned n_sectors; in submit_io() local
684 n_sectors = b->c->block_size >> SECTOR_SHIFT; in submit_io()
698 n_sectors = (end - offset) >> SECTOR_SHIFT; in submit_io()
702 use_bio(b, rw, sector, n_sectors, offset); in submit_io()
704 use_dmio(b, rw, sector, n_sectors, offset); in submit_io()
Ddm-writecache.c953 static int writecache_read_metadata(struct dm_writecache *wc, sector_t n_sectors) in writecache_read_metadata() argument
960 region.count = n_sectors; in writecache_read_metadata()
1771 unsigned n_sectors; in __writecache_writeback_ssd() local
1777 n_sectors = e->wc_list_contiguous << (wc->block_size_bits - SECTOR_SHIFT); in __writecache_writeback_ssd()
1781 from.count = n_sectors; in __writecache_writeback_ssd()
1784 to.count = n_sectors; in __writecache_writeback_ssd()
1791 while ((n_sectors -= wc->block_size >> SECTOR_SHIFT)) { in __writecache_writeback_ssd()
Ddm.c1265 void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors) in dm_accept_partial_bio() argument
1274 BUG_ON(n_sectors > bi_size); in dm_accept_partial_bio()
1276 *tio->len_ptr -= bi_size - n_sectors; in dm_accept_partial_bio()
1277 bio->bi_iter.bi_size = n_sectors << SECTOR_SHIFT; in dm_accept_partial_bio()
/drivers/mtd/spi-nor/
Dcore.h269 u16 n_sectors; member
330 .n_sectors = (_n_sectors), \
345 .n_sectors = (_n_sectors), \
351 .n_sectors = (_n_sectors), \
364 .n_sectors = (_n_sectors), \
Dxilinx.c69 nor->mtd.size = 8 * nor->page_size * nor->info->n_sectors; in xilinx_nor_setup()
Dcore.c1581 bp_slots_needed = ilog2(nor->info->n_sectors); in spi_nor_get_min_prot_length_sr()
2755 params->size = (u64)info->sector_size * info->n_sectors; in spi_nor_info_init_params()
/drivers/ata/
Dlibata-core.c2485 dev->n_sectors = 0; in ata_dev_configure()
2524 dev->n_sectors = ata_id_n_sectors(id); in ata_dev_configure()
2546 if (dev->n_sectors >= (1UL << 28) && in ata_dev_configure()
2563 (unsigned long long)dev->n_sectors, in ata_dev_configure()
2588 (unsigned long long)dev->n_sectors, in ata_dev_configure()
3715 u64 n_sectors = dev->n_sectors; in ata_dev_revalidate() local
3745 if (dev->class != ATA_DEV_ATA || !n_sectors || in ata_dev_revalidate()
3746 dev->n_sectors == n_sectors) in ata_dev_revalidate()
3751 (unsigned long long)n_sectors, in ata_dev_revalidate()
3752 (unsigned long long)dev->n_sectors); in ata_dev_revalidate()
[all …]
Dlibata-scsi.c294 if (dev && dev->n_sectors < dev->n_native_sectors) { in ata_scsi_unlock_native_capacity()
1388 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat()
2418 u64 last_lba = dev->n_sectors - 1; /* LBA of the last block */ in ata_scsiop_read_cap()
3556 } else if (block >= dev->n_sectors) { in ata_scsi_zbc_out_xlat()
/drivers/mtd/devices/
Dst_spi_fsm.c301 u16 n_sectors; member
1428 for (offs = 0; offs < info->sector_size * info->n_sectors;) { in stfsm_s25fl_config()
1435 (offs >= (info->sector_size - info->n_sectors * 4))) in stfsm_s25fl_config()
2080 if (info->sector_size * info->n_sectors > 0x1000000) in stfsm_probe()
2104 fsm->mtd.size = info->sector_size * info->n_sectors; in stfsm_probe()