Home
last modified time | relevance | path

Searched refs:discard_granularity (Results 1 – 25 of 55) sorted by relevance

123

/openbmc/qemu/tests/qemu-iotests/
H A D172.out28 discard_granularity = 4294967295 (4 GiB)
57 discard_granularity = 4294967295 (4 GiB)
96 discard_granularity = 4294967295 (4 GiB)
110 discard_granularity = 4294967295 (4 GiB)
153 discard_granularity = 4294967295 (4 GiB)
167 discard_granularity = 4294967295 (4 GiB)
211 discard_granularity = 4294967295 (4 GiB)
225 discard_granularity = 4294967295 (4 GiB)
254 discard_granularity = 4294967295 (4 GiB)
293 discard_granularity = 4294967295 (4 GiB)
[all …]
/openbmc/qemu/hw/block/
H A Dblock.c151 if (conf->discard_granularity == -1) { in blkconf_blocksizes()
153 conf->discard_granularity = bs->bl.pdiscard_alignment; in blkconf_blocksizes()
155 conf->discard_granularity = bs->bl.request_alignment; in blkconf_blocksizes()
188 if (conf->discard_granularity != -1 && in blkconf_blocksizes()
189 !QEMU_IS_ALIGNED(conf->discard_granularity, in blkconf_blocksizes()
H A Dxen-block.c391 if (conf->discard_granularity == -1) { in xen_block_realize()
392 conf->discard_granularity = conf->physical_block_size; in xen_block_realize()
398 conf->discard_granularity); in xen_block_realize()
H A Dvirtio-blk.c1176 uint32_t discard_granularity = conf->discard_granularity; in virtio_blk_update_config() local
1177 if (discard_granularity == -1 || !s->conf.report_discard_granularity) { in virtio_blk_update_config()
1178 discard_granularity = blk_size; in virtio_blk_update_config()
1183 discard_granularity >> BDRV_SECTOR_BITS); in virtio_blk_update_config()
/openbmc/linux/block/
H A Dblk-settings.c51 lim->discard_granularity = 0; in blk_set_default_limits()
510 granularity = lim->discard_granularity >> SECTOR_SHIFT; in queue_limit_discard_alignment()
662 if (b->discard_granularity) { in blk_stack_limits()
665 if (t->discard_granularity != 0 && in blk_stack_limits()
667 top = t->discard_granularity + t->discard_alignment; in blk_stack_limits()
668 bottom = b->discard_granularity + alignment; in blk_stack_limits()
679 t->discard_granularity = max(t->discard_granularity, in blk_stack_limits()
680 b->discard_granularity); in blk_stack_limits()
682 t->discard_granularity; in blk_stack_limits()
H A Dblk-lib.c15 unsigned int discard_granularity = bdev_discard_granularity(bdev); in bio_discard_limit() local
22 round_up(sector, discard_granularity >> SECTOR_SHIFT); in bio_discard_limit()
35 return round_down(UINT_MAX, discard_granularity) >> SECTOR_SHIFT; in bio_discard_limit()
H A Dblk-sysfs.c158 return queue_var_show(q->limits.discard_granularity, page); in queue_discard_granularity_show()
183 if (max_discard & (q->limits.discard_granularity - 1)) in queue_discard_max_store()
/openbmc/qemu/hw/ide/
H A Dide-dev.c94 if (dev->conf.discard_granularity == -1) { in ide_dev_initfn()
95 dev->conf.discard_granularity = 512; in ide_dev_initfn()
96 } else if (dev->conf.discard_granularity && in ide_dev_initfn()
97 dev->conf.discard_granularity != 512) { in ide_dev_initfn()
/openbmc/qemu/include/hw/block/
H A Dblock.h28 uint32_t discard_granularity; member
62 _conf.discard_granularity, -1), \
/openbmc/linux/drivers/md/
H A Ddm-zero.c66 limits->discard_granularity = 512; in zero_io_hints()
H A Ddm-target.c156 limits->discard_granularity = 512; in io_err_io_hints()
H A Ddm-clone-target.c2052 limits->discard_granularity = clone->region_size << SECTOR_SHIFT; in set_discard_limits()
2064 limits->discard_granularity = dest_limits->discard_granularity; in set_discard_limits()
/openbmc/linux/drivers/block/
H A Dvirtio_blk.c1312 u32 discard_granularity = 0; in virtblk_probe() local
1472 discard_sector_alignment, &discard_granularity); in virtblk_probe()
1515 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_probe()
1561 if (discard_granularity) in virtblk_probe()
1562 q->limits.discard_granularity = discard_granularity << SECTOR_SHIFT; in virtblk_probe()
1564 q->limits.discard_granularity = blk_size; in virtblk_probe()
H A Dxen-blkfront.c221 unsigned int discard_granularity; member
955 rq->limits.discard_granularity = info->discard_granularity ?: in blkif_set_queue_limits()
2149 info->discard_granularity = xenbus_read_unsigned(info->xbdev->otherend, in blkfront_setup_discard()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-proto.h150 __le32 discard_granularity; member
H A Drnbd-clt.c1350 dev->queue->limits.discard_granularity = in setup_request_queue()
1351 le32_to_cpu(rsp->discard_granularity); in setup_request_queue()
1634 le32_to_cpu(rsp->discard_granularity), in rnbd_clt_map_device()
/openbmc/qemu/hw/nvme/
H A Dns.c50 npdg = ns->blkconf.discard_granularity / ns->lbasz; in nvme_ns_init_format()
53 if (ret >= 0 && bdi.cluster_size > ns->blkconf.discard_granularity) { in nvme_ns_init_format()
165 if (ns->blkconf.discard_granularity == -1) { in nvme_ns_init_blk()
166 ns->blkconf.discard_granularity = in nvme_ns_init_blk()
/openbmc/linux/include/uapi/linux/
H A Dublk_cmd.h358 __u32 discard_granularity; member
/openbmc/linux/drivers/mmc/core/
H A Dqueue.c187 q->limits.discard_granularity = card->pref_erase << 9; in mmc_queue_setup_discard()
190 q->limits.discard_granularity = SECTOR_SIZE; in mmc_queue_setup_discard()
/openbmc/linux/drivers/block/drbd/
H A Ddrbd_worker.c596 int discard_granularity = 0; in make_resync_request() local
618 discard_granularity = rcu_dereference(device->ldev->disk_conf)->rs_discard_granularity; in make_resync_request()
686 if (discard_granularity && size == discard_granularity) in make_resync_request()
736 size == discard_granularity ? P_RS_THIN_REQ : P_RS_DATA_REQUEST, in make_resync_request()
H A Ddrbd_nl.c1194 q->limits.discard_granularity = granularity; in blk_queue_discard_granularity()
1262 unsigned int discard_granularity = in fixup_discard_support() local
1263 device->rq_queue->limits.discard_granularity >> SECTOR_SHIFT; in fixup_discard_support()
1265 if (discard_granularity > max_discard) { in fixup_discard_support()
1459 unsigned int discard_granularity = bdev_discard_granularity(bdev); in sanitize_disk_conf() local
1462 if (discard_granularity > disk_conf->rs_discard_granularity) in sanitize_disk_conf()
1463 disk_conf->rs_discard_granularity = discard_granularity; in sanitize_disk_conf()
1466 discard_granularity; in sanitize_disk_conf()
/openbmc/linux/fs/ntfs3/
H A Dsuper.c1189 sbi->discard_granularity = bdev_discard_granularity(bdev); in ntfs_fill_super()
1191 ~(u64)(sbi->discard_granularity - 1); in ntfs_fill_super()
1675 start = (lbo + sbi->discard_granularity - 1) & in ntfs_discard()
/openbmc/linux/Documentation/ABI/stable/
H A Dsysfs-block226 What: /sys/block/<disk>/queue/discard_granularity
232 block size. The discard_granularity parameter indicates the size
234 device. Otherwise the discard_granularity will be set to match
235 the device's physical block size. A discard_granularity of 0
/openbmc/linux/include/linux/
H A Dblkdev.h321 unsigned int discard_granularity; member
1224 return bdev_get_queue(bdev)->limits.discard_granularity; in bdev_discard_granularity()
/openbmc/linux/drivers/mtd/
H A Dmtd_blkdevs.c381 new->rq->limits.discard_granularity = tr->blksize; in add_mtd_blktrans_dev()

123