/linux-6.12.1/drivers/block/ |
D | ataflop.c | 1184 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()
|
D | n64cart.c | 150 set_capacity(disk, size >> SECTOR_SHIFT); in n64cart_probe()
|
D | z2ram.c | 278 set_capacity(z2ram_gendisk[device], z2ram_size >> 9); in z2_open()
|
D | swim.c | 635 set_capacity(fs->disk, fs->total_secs); in floppy_open() 847 set_capacity(swd->unit[drive].disk, 2880); in swim_floppy_init()
|
D | brd.c | 370 set_capacity(disk, rd_size * 2); in brd_alloc()
|
D | ps3disk.c | 459 set_capacity(gendisk, in ps3disk_probe()
|
D | amiflop.c | 1701 set_capacity(unit[drive].gendisk[system], unit[drive].blocks); in floppy_open() 1801 set_capacity(disk, 880 * 2); in fd_alloc_disk()
|
D | ps3vram.c | 747 set_capacity(gendisk, priv->size >> 9); in ps3vram_probe()
|
/linux-6.12.1/arch/xtensa/platforms/iss/ |
D | simdisk.c | 172 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/ |
D | genhd.c | 59 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/ |
D | gen_disk.rs | 154 unsafe { bindings::set_capacity(gendisk, self.capacity_sectors) }; in build()
|
/linux-6.12.1/drivers/s390/block/ |
D | dasd_genhd.c | 104 set_capacity(block->gdp, 0); in dasd_gendisk_alloc()
|
D | scm_blk.c | 493 set_capacity(bdev->gendisk, scmdev->size >> 9); in scm_blk_dev_setup()
|
D | dasd_ioctl.c | 83 set_capacity(bdev->bd_disk, 0); in dasd_ioctl_disable()
|
D | dcssblk.c | 649 set_capacity(dev_info->gd, seg_byte_size >> 9); // size in sectors in dcssblk_add_store()
|
/linux-6.12.1/arch/m68k/emu/ |
D | nfblock.c | 136 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
|
/linux-6.12.1/drivers/mtd/ubi/ |
D | block.c | 419 set_capacity(gd, disk_capacity); in ubiblock_create() 531 set_capacity(dev->gd, disk_capacity); in ubiblock_resize()
|
/linux-6.12.1/drivers/scsi/ |
D | sr.c | 344 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/ |
D | aoedev.c | 236 set_capacity(d->gd, 0); in aoedev_downdev()
|
D | aoeblk.c | 409 set_capacity(gd, ssize); in aoeblk_gdalloc()
|
/linux-6.12.1/drivers/mtd/ |
D | mtd_blkdevs.c | 372 set_capacity(gd, ((u64)new->size * tr->blksize) >> 9); in add_mtd_blktrans_dev()
|
/linux-6.12.1/block/partitions/ |
D | core.c | 681 set_capacity(disk, 0); in bdev_disk_changed()
|
/linux-6.12.1/drivers/nvdimm/ |
D | pmem.c | 553 set_capacity(disk, (pmem->size - pmem->pfn_pad - pmem->data_offset) in pmem_attach_disk()
|
/linux-6.12.1/include/linux/ |
D | blkdev.h | 835 void set_capacity(struct gendisk *disk, sector_t size);
|
/linux-6.12.1/drivers/md/bcache/ |
D | sysfs.c | 587 set_capacity(d->disk, u->sectors); in STORE()
|