/linux-6.3-rc2/block/ |
A D | blk-settings.c | 48 lim->max_discard_sectors = 0; in blk_set_default_limits() 179 unsigned int max_discard_sectors) in blk_queue_max_discard_sectors() argument 181 q->limits.max_hw_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors() 182 q->limits.max_discard_sectors = max_discard_sectors; in blk_queue_max_discard_sectors() 505 if (!lim->max_discard_sectors) in queue_limit_discard_alignment() 675 t->max_discard_sectors = min_not_zero(t->max_discard_sectors, in blk_stack_limits() 676 b->max_discard_sectors); in blk_stack_limits()
|
A D | blk-merge.c | 112 unsigned int max_discard_sectors, granularity; in bio_split_discard() local 121 max_discard_sectors = in bio_split_discard() 122 min(lim->max_discard_sectors, bio_allowed_max_sectors(lim)); in bio_split_discard() 123 max_discard_sectors -= max_discard_sectors % granularity; in bio_split_discard() 125 if (unlikely(!max_discard_sectors)) { in bio_split_discard() 130 if (bio_sectors(bio) <= max_discard_sectors) in bio_split_discard() 133 split_sectors = max_discard_sectors; in bio_split_discard()
|
A D | blk-sysfs.c | 185 (unsigned long long)q->limits.max_discard_sectors << 9); in queue_discard_max_show() 207 q->limits.max_discard_sectors = max_discard; in queue_discard_max_store()
|
A D | blk.h | 170 return min(q->limits.max_discard_sectors, in blk_queue_get_max_sectors()
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | ublk_cmd.h | 242 __u32 max_discard_sectors; member
|
A D | virtio_blk.h | 99 __virtio32 max_discard_sectors; member
|
/linux-6.3-rc2/drivers/s390/block/ |
A D | dasd_fba.c | 771 unsigned int max_bytes, max_discard_sectors; in dasd_fba_setup_blk_queue() local 789 max_discard_sectors = max_bytes / logical_block_size; in dasd_fba_setup_blk_queue() 791 blk_queue_max_discard_sectors(q, max_discard_sectors); in dasd_fba_setup_blk_queue() 792 blk_queue_max_write_zeroes_sectors(q, max_discard_sectors); in dasd_fba_setup_blk_queue()
|
/linux-6.3-rc2/drivers/block/rnbd/ |
A D | rnbd-proto.h | 140 __le32 max_discard_sectors; member
|
A D | rnbd-clt.c | 1349 le32_to_cpu(rsp->max_discard_sectors)); in setup_request_queue() 1356 le32_to_cpu(rsp->max_discard_sectors)); in setup_request_queue() 1633 le32_to_cpu(rsp->max_discard_sectors), in rnbd_clt_map_device()
|
A D | rnbd-srv.c | 550 rsp->max_discard_sectors = cpu_to_le32(bdev_max_discard_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
|
/linux-6.3-rc2/drivers/block/ |
A D | loop.c | 762 u32 granularity, max_discard_sectors; in loop_config_discard() local 774 max_discard_sectors = backingq->limits.max_write_zeroes_sectors; in loop_config_discard() 783 max_discard_sectors = 0; in loop_config_discard() 789 max_discard_sectors = UINT_MAX >> 9; in loop_config_discard() 793 max_discard_sectors = 0; in loop_config_discard() 796 if (max_discard_sectors) { in loop_config_discard() 798 blk_queue_max_discard_sectors(q, max_discard_sectors); in loop_config_discard() 799 blk_queue_max_write_zeroes_sectors(q, max_discard_sectors); in loop_config_discard()
|
A D | ublk_drv.c | 237 blk_queue_max_discard_sectors(q, p->max_discard_sectors); in ublk_dev_param_discard_apply() 264 if (p->max_discard_sectors && p->max_discard_segments != 1) in ublk_validate_params()
|
A D | virtio_blk.c | 1406 max_discard_sectors, &v); in virtblk_probe()
|
/linux-6.3-rc2/include/linux/ |
A D | blkdev.h | 298 unsigned int max_discard_sectors; member 921 unsigned int max_discard_sectors); 1228 return bdev_get_queue(bdev)->limits.max_discard_sectors; in bdev_max_discard_sectors()
|
/linux-6.3-rc2/drivers/md/ |
A D | dm-clone-target.c | 2035 else if (dest_limits->max_discard_sectors < clone->region_size) in disable_passdown_if_not_supported() 2053 limits->max_discard_sectors = round_down(UINT_MAX >> SECTOR_SHIFT, clone->region_size); in set_discard_limits() 2062 limits->max_discard_sectors = dest_limits->max_discard_sectors; in set_discard_limits()
|
A D | dm-rq.c | 219 !clone->q->limits.max_discard_sectors) in dm_done()
|
A D | dm-cache-target.c | 3380 else if (origin_limits->max_discard_sectors < cache->sectors_per_block) in disable_passdown_if_not_supported() 3397 limits->max_discard_sectors = min_t(sector_t, cache->discard_block_size * 1024, in set_discard_limits() 3407 limits->max_discard_sectors = origin_limits->max_discard_sectors; in set_discard_limits()
|
A D | dm-log-writes.c | 874 limits->max_discard_sectors = (UINT_MAX >> SECTOR_SHIFT); in log_writes_io_hints()
|
A D | dm-zoned-target.c | 1005 limits->max_discard_sectors = chunk_sectors; in dmz_io_hints()
|
A D | dm-table.c | 1950 q->limits.max_discard_sectors = 0; in dm_table_set_restrictions()
|
/linux-6.3-rc2/drivers/vdpa/vdpa_sim/ |
A D | vdpa_sim_blk.c | 348 blk_config->max_discard_sectors = in vdpasim_blk_get_config()
|
/linux-6.3-rc2/drivers/block/drbd/ |
A D | drbd_receiver.c | 1518 unsigned int max_discard_sectors, granularity; in drbd_issue_discard_or_zero_out() local 1529 max_discard_sectors = min(bdev_max_discard_sectors(bdev), (1U << 22)); in drbd_issue_discard_or_zero_out() 1530 max_discard_sectors -= max_discard_sectors % granularity; in drbd_issue_discard_or_zero_out() 1531 if (unlikely(!max_discard_sectors)) in drbd_issue_discard_or_zero_out() 1552 while (nr_sectors >= max_discard_sectors) { in drbd_issue_discard_or_zero_out() 1553 err |= blkdev_issue_discard(bdev, start, max_discard_sectors, in drbd_issue_discard_or_zero_out() 1555 nr_sectors -= max_discard_sectors; in drbd_issue_discard_or_zero_out() 1556 start += max_discard_sectors; in drbd_issue_discard_or_zero_out()
|
A D | drbd_nl.c | 1213 unsigned int max_discard_sectors; in decide_on_discard_support() local 1234 max_discard_sectors = drbd_max_discard_sectors(connection); in decide_on_discard_support() 1235 blk_queue_max_discard_sectors(q, max_discard_sectors); in decide_on_discard_support() 1236 blk_queue_max_write_zeroes_sectors(q, max_discard_sectors); in decide_on_discard_support() 1261 unsigned int max_discard = device->rq_queue->limits.max_discard_sectors; in fixup_discard_support()
|
/linux-6.3-rc2/drivers/nvme/host/ |
A D | core.c | 1667 if (ctrl->max_discard_sectors == 0) { in nvme_config_discard() 1678 if (queue->limits.max_discard_sectors) in nvme_config_discard() 1682 ctrl->max_discard_sectors = nvme_lba_to_sect(ns, ctrl->dmrsl); in nvme_config_discard() 1684 blk_queue_max_discard_sectors(queue, ctrl->max_discard_sectors); in nvme_config_discard() 3037 ctrl->max_discard_sectors = UINT_MAX; in nvme_init_non_mdts_limits() 3040 ctrl->max_discard_sectors = 0; in nvme_init_non_mdts_limits()
|
A D | nvme.h | 290 u32 max_discard_sectors; member
|