Home
last modified time | relevance | path

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

12

/linux-6.12.1/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()
2012 set_capacity(disk, MAX_DISK_SIZE * 2); in ataflop_alloc_disk()
Dn64cart.c150 set_capacity(disk, size >> SECTOR_SHIFT); in n64cart_probe()
Dz2ram.c278 set_capacity(z2ram_gendisk[device], z2ram_size >> 9); in z2_open()
Dswim.c635 set_capacity(fs->disk, fs->total_secs); in floppy_open()
847 set_capacity(swd->unit[drive].disk, 2880); in swim_floppy_init()
Dbrd.c370 set_capacity(disk, rd_size * 2); in brd_alloc()
Dps3disk.c459 set_capacity(gendisk, in ps3disk_probe()
Damiflop.c1701 set_capacity(unit[drive].gendisk[system], unit[drive].blocks); in floppy_open()
1801 set_capacity(disk, 880 * 2); in fd_alloc_disk()
Dps3vram.c747 set_capacity(gendisk, priv->size >> 9); in ps3vram_probe()
/linux-6.12.1/arch/xtensa/platforms/iss/
Dsimdisk.c172 set_capacity(dev->gd, dev->size >> SECTOR_SHIFT); in simdisk_attach()
288 set_capacity(dev->gd, 0); in simdisk_setup()
/linux-6.12.1/block/
Dgenhd.c59 void set_capacity(struct gendisk *disk, sector_t sectors) in set_capacity() function
63 EXPORT_SYMBOL(set_capacity);
74 set_capacity(disk, size); in set_capacity_and_notify()
598 set_capacity(disk, 0); in __blk_mark_disk_dead()
747 set_capacity(disk, 0); in invalidate_disk()
/linux-6.12.1/rust/kernel/block/mq/
Dgen_disk.rs154 unsafe { bindings::set_capacity(gendisk, self.capacity_sectors) }; in build()
/linux-6.12.1/drivers/s390/block/
Ddasd_genhd.c104 set_capacity(block->gdp, 0); in dasd_gendisk_alloc()
Dscm_blk.c493 set_capacity(bdev->gendisk, scmdev->size >> 9); in scm_blk_dev_setup()
Ddasd_ioctl.c83 set_capacity(bdev->bd_disk, 0); in dasd_ioctl_disable()
Ddcssblk.c649 set_capacity(dev_info->gd, seg_byte_size >> 9); // size in sectors in dcssblk_add_store()
/linux-6.12.1/arch/m68k/emu/
Dnfblock.c136 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
/linux-6.12.1/drivers/mtd/ubi/
Dblock.c419 set_capacity(gd, disk_capacity); in ubiblock_create()
531 set_capacity(dev->gd, disk_capacity); in ubiblock_resize()
/linux-6.12.1/drivers/scsi/
Dsr.c344 set_capacity(cd->disk, error_sector); in sr_done()
678 set_capacity(disk, cd->capacity); in sr_probe()
795 set_capacity(cd->disk, cd->capacity); in get_sectorsize()
/linux-6.12.1/drivers/block/aoe/
Daoedev.c236 set_capacity(d->gd, 0); in aoedev_downdev()
Daoeblk.c409 set_capacity(gd, ssize); in aoeblk_gdalloc()
/linux-6.12.1/drivers/mtd/
Dmtd_blkdevs.c372 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev()
/linux-6.12.1/block/partitions/
Dcore.c681 set_capacity(disk, 0); in bdev_disk_changed()
/linux-6.12.1/drivers/nvdimm/
Dpmem.c553 set_capacity(disk, (pmem->size - pmem->pfn_pad - pmem->data_offset) in pmem_attach_disk()
/linux-6.12.1/include/linux/
Dblkdev.h835 void set_capacity(struct gendisk *disk, sector_t size);
/linux-6.12.1/drivers/md/bcache/
Dsysfs.c587 set_capacity(d->disk, u->sectors); in STORE()

12