/openbmc/linux/block/ |
H A D | blk-lib.c | 123 unsigned int max_write_zeroes_sectors; in __blkdev_issue_write_zeroes() local 129 max_write_zeroes_sectors = bdev_write_zeroes_sectors(bdev); in __blkdev_issue_write_zeroes() 131 if (max_write_zeroes_sectors == 0) in __blkdev_issue_write_zeroes() 140 if (nr_sects > max_write_zeroes_sectors) { in __blkdev_issue_write_zeroes() 141 bio->bi_iter.bi_size = max_write_zeroes_sectors << 9; in __blkdev_issue_write_zeroes() 142 nr_sects -= max_write_zeroes_sectors; in __blkdev_issue_write_zeroes() 143 sector += max_write_zeroes_sectors; in __blkdev_issue_write_zeroes()
|
H A D | blk-settings.c | 46 lim->max_write_zeroes_sectors = 0; in blk_set_default_limits() 83 lim->max_write_zeroes_sectors = UINT_MAX; in blk_set_stacking_limits() 205 unsigned int max_write_zeroes_sectors) in blk_queue_max_write_zeroes_sectors() argument 207 q->limits.max_write_zeroes_sectors = max_write_zeroes_sectors; in blk_queue_max_write_zeroes_sectors() 561 t->max_write_zeroes_sectors = min(t->max_write_zeroes_sectors, in blk_stack_limits() 562 b->max_write_zeroes_sectors); in blk_stack_limits()
|
H A D | blk-merge.c | 154 if (!lim->max_write_zeroes_sectors) in bio_split_write_zeroes() 156 if (bio_sectors(bio) <= lim->max_write_zeroes_sectors) in bio_split_write_zeroes() 158 return bio_split(bio, lim->max_write_zeroes_sectors, GFP_NOIO, bs); in bio_split_write_zeroes()
|
H A D | blk.h | 177 return q->limits.max_write_zeroes_sectors; in blk_queue_get_max_sectors()
|
H A D | blk-core.c | 803 if (!q->limits.max_write_zeroes_sectors) in submit_bio_noacct()
|
H A D | blk-sysfs.c | 210 (unsigned long long)q->limits.max_write_zeroes_sectors << 9); in queue_write_zeroes_max_show()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-blk.h | 49 uint32_t max_write_zeroes_sectors; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_blk.h | 113 __virtio32 max_write_zeroes_sectors; member
|
H A D | ublk_cmd.h | 361 __u32 max_write_zeroes_sectors; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_blk.h | 111 __virtio32 max_write_zeroes_sectors; member
|
/openbmc/linux/drivers/target/ |
H A D | target_core_iblock.c | 97 unsigned int max_write_zeroes_sectors; in iblock_configure_device() local 138 max_write_zeroes_sectors = bdev_write_zeroes_sectors(bd); in iblock_configure_device() 139 if (max_write_zeroes_sectors) in iblock_configure_device() 140 dev->dev_attrib.max_write_same_len = max_write_zeroes_sectors; in iblock_configure_device()
|
/openbmc/qemu/hw/block/ |
H A D | virtio-blk.c | 393 max_sectors = is_write_zeroes ? s->conf.max_write_zeroes_sectors : in virtio_blk_handle_discard_write_zeroes() 1192 virtio_stl_p(vdev, &blkcfg.max_write_zeroes_sectors, in virtio_blk_update_config() 1193 s->conf.max_write_zeroes_sectors); in virtio_blk_update_config() 1891 (!conf->max_write_zeroes_sectors || in virtio_blk_device_realize() 1892 conf->max_write_zeroes_sectors > BDRV_REQUEST_MAX_SECTORS)) { in virtio_blk_device_realize() 1895 conf->max_write_zeroes_sectors, in virtio_blk_device_realize() 2014 conf.max_write_zeroes_sectors, BDRV_REQUEST_MAX_SECTORS),
|
/openbmc/linux/drivers/md/ |
H A D | md.h | 851 !bio->bi_bdev->bd_disk->queue->limits.max_write_zeroes_sectors) in mddev_check_write_zeroes() 852 mddev->queue->limits.max_write_zeroes_sectors = 0; in mddev_check_write_zeroes()
|
H A D | dm-rq.c | 222 !clone->q->limits.max_write_zeroes_sectors) in dm_done()
|
H A D | dm-io.c | 327 special_cmd_max_sectors = q->limits.max_write_zeroes_sectors; in do_region()
|
H A D | dm-table.c | 1845 return !q->limits.max_write_zeroes_sectors; in device_not_write_zeroes_capable() 1995 q->limits.max_write_zeroes_sectors = 0; in dm_table_set_restrictions()
|
H A D | dm-zoned-target.c | 1006 limits->max_write_zeroes_sectors = chunk_sectors; in dmz_io_hints()
|
H A D | dm.c | 1084 limits->max_write_zeroes_sectors = 0; in disable_write_zeroes() 1633 max_sectors = limits->max_write_zeroes_sectors; in __process_abnormal_io()
|
/openbmc/qemu/block/export/ |
H A D | vhost-user-blk-server.c | 252 config->max_write_zeroes_sectors in vu_blk_initialize_config()
|
H A D | vduse-blk.c | 322 config.max_write_zeroes_sectors = in vduse_blk_exp_create()
|
/openbmc/linux/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 386 blk_config->max_write_zeroes_sectors = in vdpasim_blk_get_config()
|
/openbmc/linux/include/linux/ |
H A D | blkdev.h | 319 unsigned int max_write_zeroes_sectors; member 1238 return q->limits.max_write_zeroes_sectors; in bdev_write_zeroes_sectors()
|
/openbmc/qemu/contrib/vhost-user-blk/ |
H A D | vhost-user-blk.c | 548 config->max_write_zeroes_sectors = 32768; in vub_initialize_config()
|
/openbmc/linux/drivers/scsi/cxlflash/ |
H A D | vlun.c | 434 sdev->request_queue->limits.max_write_zeroes_sectors >> s; in write_same16()
|
/openbmc/linux/drivers/block/ |
H A D | virtio_blk.c | 1480 max_write_zeroes_sectors, &v); in virtblk_probe()
|