Home
last modified time | relevance | path

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

/drivers/block/
Dmg_disk.c124 u32 n_sectors; member
373 host->n_sectors = ata_id_u32(id, ATA_ID_LBA_CAPACITY); in mg_get_disk_id()
380 host->cyls = (host->n_sectors - MG_RES_SEC) / in mg_get_disk_id()
382 host->nres_sectors = host->n_sectors - host->cyls * in mg_get_disk_id()
384 host->n_sectors -= host->nres_sectors; in mg_get_disk_id()
394 host->n_sectors, host->nres_sectors); in mg_get_disk_id()
1010 set_capacity(host->gd, host->n_sectors); in mg_probe()
/drivers/ata/
Dlibata-core.c2268 dev->n_sectors = 0; in ata_dev_configure()
2307 dev->n_sectors = ata_id_n_sectors(id); in ata_dev_configure()
2329 if (dev->n_sectors >= (1UL << 28) && in ata_dev_configure()
2346 (unsigned long long)dev->n_sectors, in ata_dev_configure()
2371 (unsigned long long)dev->n_sectors, in ata_dev_configure()
4038 u64 n_sectors = dev->n_sectors; in ata_dev_revalidate() local
4068 if (dev->class != ATA_DEV_ATA || !n_sectors || in ata_dev_revalidate()
4069 dev->n_sectors == n_sectors) in ata_dev_revalidate()
4074 (unsigned long long)n_sectors, in ata_dev_revalidate()
4075 (unsigned long long)dev->n_sectors); in ata_dev_revalidate()
[all …]
Dlibata-scsi.c422 if (dev && dev->n_sectors < dev->n_native_sectors) { in ata_scsi_unlock_native_capacity()
1552 u64 dev_sectors = qc->dev->n_sectors; in ata_scsi_verify_xlat()
2527 u64 last_lba = dev->n_sectors - 1; /* LBA of the last block */ in ata_scsiop_read_cap()
/drivers/mtd/spi-nor/
Dspi-nor.c57 u16 n_sectors; member
626 .n_sectors = (_n_sectors), \
641 .n_sectors = (_n_sectors), \
647 .n_sectors = (_n_sectors), \
1183 mtd->size = info->sector_size * info->n_sectors; in spi_nor_scan()
/drivers/mtd/devices/
Dst_spi_fsm.c306 u16 n_sectors; member
1433 for (offs = 0; offs < info->sector_size * info->n_sectors;) { in stfsm_s25fl_config()
1440 (offs >= (info->sector_size - info->n_sectors * 4))) in stfsm_s25fl_config()
2090 if (info->sector_size * info->n_sectors > 0x1000000) in stfsm_probe()
2113 fsm->mtd.size = info->sector_size * info->n_sectors; in stfsm_probe()
/drivers/md/
Ddm.c92 unsigned n_sectors; member
1089 tio->n_sectors, true, tio->duration_jiffies, in rq_end_stats()
1459 void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors) in dm_accept_partial_bio() argument
1465 BUG_ON(n_sectors > bi_size); in dm_accept_partial_bio()
1466 *tio->len_ptr -= bi_size - n_sectors; in dm_accept_partial_bio()
1467 bio->bi_iter.bi_size = n_sectors << SECTOR_SHIFT; in dm_accept_partial_bio()
2079 tio->n_sectors = blk_rq_sectors(orig); in dm_start_request()
2081 tio->n_sectors, false, 0, &tio->stats_aux); in dm_start_request()