Home
last modified time | relevance | path

Searched refs:set_capacity (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.1.9/drivers/block/
Dataflop.c1184 set_capacity(unit[SelectedDrive].disk[0], in fd_rwsec_done1()
1199 set_capacity(unit[SelectedDrive].disk[0], in fd_rwsec_done1()
1543 set_capacity(bd->rq->q->disk, UDT->blocks); in ataflop_queue_rq()
1563 set_capacity(bd->rq->q->disk, UDT->blocks); in ataflop_queue_rq()
1687 set_capacity(disk, UDT->blocks); in fd_locked_ioctl()
1733 set_capacity(disk, UDT->blocks); in fd_locked_ioctl()
1756 set_capacity(disk, MAX_DISK_SIZE * 2); in fd_locked_ioctl()
2008 set_capacity(disk, MAX_DISK_SIZE * 2); in ataflop_alloc_disk()
Dn64cart.c144 set_capacity(disk, size >> SECTOR_SHIFT); in n64cart_probe()
Dz2ram.c280 set_capacity(z2ram_gendisk[device], z2ram_size >> 9); in z2_open()
Dswim.c637 set_capacity(fs->disk, fs->total_secs); in floppy_open()
846 set_capacity(swd->unit[drive].disk, 2880); in swim_floppy_init()
Dbrd.c401 set_capacity(disk, rd_size * 2); in brd_alloc()
Dps3disk.c462 set_capacity(gendisk, in ps3disk_probe()
Damiflop.c1703 set_capacity(unit[drive].gendisk[system], unit[drive].blocks); in floppy_open()
1800 set_capacity(disk, 880 * 2); in fd_alloc_disk()
Dps3vram.c751 set_capacity(gendisk, priv->size >> 9); in ps3vram_probe()
Dsunvdc.c853 set_capacity(g, port->vdisk_size); in probe_disk()
/linux-6.1.9/arch/xtensa/platforms/iss/
Dsimdisk.c172 set_capacity(dev->gd, dev->size >> SECTOR_SHIFT); in simdisk_attach()
283 set_capacity(dev->gd, 0); in simdisk_setup()
/linux-6.1.9/block/
Dgenhd.c58 void set_capacity(struct gendisk *disk, sector_t sectors) in set_capacity() function
67 EXPORT_SYMBOL(set_capacity);
78 set_capacity(disk, size); in set_capacity_and_notify()
615 set_capacity(disk, 0); in del_gendisk()
692 set_capacity(disk, 0); in invalidate_disk()
/linux-6.1.9/drivers/s390/block/
Ddasd_genhd.c100 set_capacity(block->gdp, 0); in dasd_gendisk_alloc()
Dscm_blk.c496 set_capacity(bdev->gendisk, scmdev->size >> 9); in scm_blk_dev_setup()
Ddasd_ioctl.c89 set_capacity(bdev->bd_disk, 0); in dasd_ioctl_disable()
Ddcssblk.c644 set_capacity(dev_info->gd, seg_byte_size >> 9); // size in sectors in dcssblk_add_store()
/linux-6.1.9/arch/m68k/emu/
Dnfblock.c130 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
/linux-6.1.9/drivers/scsi/
Dsr.c341 set_capacity(cd->disk, error_sector); in sr_done()
677 set_capacity(disk, cd->capacity); in sr_probe()
789 set_capacity(cd->disk, cd->capacity); in get_sectorsize()
/linux-6.1.9/drivers/mtd/ubi/
Dblock.c436 set_capacity(gd, disk_capacity); in ubiblock_create()
561 set_capacity(dev->gd, disk_capacity); in ubiblock_resize()
/linux-6.1.9/drivers/block/paride/
Dpf.c596 set_capacity(pf->disk, xl(buf, 0) + 1); in pf_get_capacity()
599 set_capacity(pf->disk, 0); in pf_get_capacity()
Dpd.c942 set_capacity(disk->gd, disk->capacity); in pd_probe_drive()
/linux-6.1.9/drivers/block/aoe/
Daoedev.c236 set_capacity(d->gd, 0); in aoedev_downdev()
Daoeblk.c398 set_capacity(gd, d->ssize); in aoeblk_gdalloc()
/linux-6.1.9/drivers/mtd/
Dmtd_blkdevs.c365 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev()
/linux-6.1.9/block/partitions/
Dcore.c684 set_capacity(disk, 0); in bdev_disk_changed()
/linux-6.1.9/drivers/nvdimm/
Dpmem.c574 set_capacity(disk, (pmem->size - pmem->pfn_pad - pmem->data_offset) in pmem_attach_disk()

12