/linux/drivers/md/ |
A D | dm-integrity.c | 284 sector_t n_sectors; member 606 n_sectors, in block_bitmap_op() 613 if (unlikely(!n_sectors)) in block_bitmap_op() 759 if (n_sectors) in access_page_list() 1085 io_loc.count = n_sectors; in rw_journal_sectors() 1199 io_loc.count = n_sectors; in copy_from_journal() 1953 unsigned n_sectors; in __journal_read_write() local 1956 n_sectors = dio->range.n_sectors; in __journal_read_write() 2074 } while (n_sectors); in __journal_read_write() 2134 dio->range.n_sectors = min(dio->range.n_sectors, in dm_integrity_map_continue() [all …]
|
A D | dm-rq.c | 26 unsigned n_sectors; member 133 blk_rq_pos(orig), tio->n_sectors, true, in rq_end_stats() 448 tio->n_sectors = blk_rq_sectors(orig); in dm_start_request() 450 blk_rq_pos(orig), tio->n_sectors, false, 0, in dm_start_request()
|
A D | dm-bufio.c | 581 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()
|
A D | dm-writecache.c | 975 static int writecache_read_metadata(struct dm_writecache *wc, sector_t n_sectors) in writecache_read_metadata() argument 982 region.count = n_sectors; in writecache_read_metadata() 1877 unsigned n_sectors; in __writecache_writeback_ssd() local 1883 n_sectors = e->wc_list_contiguous << (wc->block_size_bits - SECTOR_SHIFT); in __writecache_writeback_ssd() 1887 from.count = n_sectors; in __writecache_writeback_ssd() 1890 to.count = n_sectors; in __writecache_writeback_ssd() 1897 while ((n_sectors -= wc->block_size >> SECTOR_SHIFT)) { in __writecache_writeback_ssd()
|
A D | dm.c | 1154 void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors) in dm_accept_partial_bio() argument 1163 BUG_ON(n_sectors > bi_size); in dm_accept_partial_bio() 1165 *tio->len_ptr -= bi_size - n_sectors; in dm_accept_partial_bio() 1166 bio->bi_iter.bi_size = n_sectors << SECTOR_SHIFT; in dm_accept_partial_bio()
|
/linux/drivers/mtd/spi-nor/ |
A D | core.h | 328 u16 n_sectors; member 403 .n_sectors = (_n_sectors), \ 418 .n_sectors = (_n_sectors), \ 424 .n_sectors = (_n_sectors), \ 437 .n_sectors = (_n_sectors), \
|
A D | xilinx.c | 69 nor->mtd.size = 8 * nor->page_size * nor->info->n_sectors; in xilinx_nor_setup()
|
A D | swp.c | 41 bp_slots_needed = ilog2(nor->info->n_sectors); in spi_nor_get_min_prot_length_sr()
|
A D | core.c | 2556 params->size = (u64)info->sector_size * info->n_sectors; in spi_nor_info_init_params()
|
/linux/drivers/ata/ |
A D | libata-core.c | 2404 if (dev->n_sectors >= (1UL << 28) && in ata_dev_config_lba() 2418 (unsigned long long)dev->n_sectors, in ata_dev_config_lba() 2445 (unsigned long long)dev->n_sectors, in ata_dev_config_chs() 2636 dev->n_sectors = 0; in ata_dev_configure() 2675 dev->n_sectors = ata_id_n_sectors(id); in ata_dev_configure() 3804 u64 n_sectors = dev->n_sectors; in ata_dev_revalidate() local 3835 dev->n_sectors == n_sectors) in ata_dev_revalidate() 3840 (unsigned long long)n_sectors, in ata_dev_revalidate() 3849 dev->n_sectors > n_sectors && dev->n_sectors == n_native_sectors) { in ata_dev_revalidate() 3864 dev->n_sectors < n_sectors && n_sectors == n_native_sectors && in ata_dev_revalidate() [all …]
|
A D | libata-scsi.c | 301 if (dev && dev->n_sectors < dev->n_native_sectors) { in ata_scsi_unlock_native_capacity() 1395 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat() 2407 u64 last_lba = dev->n_sectors - 1; /* LBA of the last block */ in ata_scsiop_read_cap() 3526 } else if (block >= dev->n_sectors) { in ata_scsi_zbc_out_xlat()
|
/linux/drivers/mtd/devices/ |
A D | st_spi_fsm.c | 301 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()
|
/linux/fs/hpfs/ |
A D | hpfs.h | 87 __le32 n_sectors; /* size of filesystem */ member
|
A D | super.c | 620 sbi->sb_fs_size = le32_to_cpu(superblock->n_sectors); in hpfs_fill_super()
|
/linux/include/linux/ |
A D | device-mapper.h | 471 void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors);
|
A D | libata.h | 708 u64 n_sectors; /* size of device, if ATA */ member 763 #define ATA_DEVICE_CLEAR_BEGIN offsetof(struct ata_device, n_sectors)
|