/Linux-v5.10/block/ |
D | blk-settings.c | 161 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors() 497 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits() 498 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits() 499 t->max_dev_sectors = min_not_zero(t->max_dev_sectors, b->max_dev_sectors); in blk_stack_limits() 506 t->bounce_pfn = min_not_zero(t->bounce_pfn, b->bounce_pfn); in blk_stack_limits() 508 t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, in blk_stack_limits() 510 t->virt_boundary_mask = min_not_zero(t->virt_boundary_mask, in blk_stack_limits() 513 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits() 514 t->max_discard_segments = min_not_zero(t->max_discard_segments, in blk_stack_limits() 516 t->max_integrity_segments = min_not_zero(t->max_integrity_segments, in blk_stack_limits() [all …]
|
D | blk-merge.c | 173 return min_not_zero(mask - offset + 1, in get_max_segment_size()
|
D | blk-sysfs.c | 240 max_hw_sectors_kb = min_not_zero(max_hw_sectors_kb, (unsigned long) in queue_max_sectors_store()
|
/Linux-v5.10/include/linux/ |
D | minmax.h | 81 #define min_not_zero(x, y) ({ \ macro
|
D | dma-direct.h | 110 return end <= min_not_zero(*dev->dma_mask, dev->bus_dma_limit); in dma_capable()
|
D | dma-mapping.h | 448 return min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < in dma_addressing_limited()
|
/Linux-v5.10/net/ipv4/ |
D | tcp_cdg.c | 145 ca->delay_min = min_not_zero(ca->delay_min, ca->rtt.min); in tcp_cdg_hystart_update() 324 ca->rtt.min = min_not_zero(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked()
|
D | tcp_dctcp.c | 123 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in dctcp_update_alpha()
|
/Linux-v5.10/drivers/nvme/target/ |
D | passthru.c | 48 max_hw_sectors = min_not_zero(pctrl->max_segments << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl() 55 max_hw_sectors = min_not_zero(BIO_MAX_PAGES << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
|
/Linux-v5.10/kernel/dma/ |
D | direct.c | 50 u64 dma_limit = min_not_zero(dma_mask, dev->bus_dma_limit); in dma_direct_optimal_gfp_mask() 75 min_not_zero(dev->coherent_dma_mask, dev->bus_dma_limit); in dma_coherent_ok()
|
D | contiguous.c | 179 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
|
D | mapping.c | 116 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | bpf_dctcp.c | 96 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in BPF_PROG()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | bpf_tcp_helpers.h | 183 #define min_not_zero(x, y) ({ \ macro
|
/Linux-v5.10/arch/x86/mm/ |
D | mem_encrypt.c | 377 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
|
/Linux-v5.10/drivers/scsi/ |
D | sd.c | 841 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard() 851 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard() 860 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard() 864 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard() 1014 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same() 1017 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same() 3242 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk() 3250 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()
|
/Linux-v5.10/sound/soc/ |
D | soc-pcm.c | 533 cpu_rate_max = min_not_zero(cpu_rate_max, cpu_stream->rate_max); in snd_soc_runtime_calc_hw() 556 rate_max = min_not_zero(rate_max, codec_stream->rate_max); in snd_soc_runtime_calc_hw() 585 hw->rate_max = min_not_zero(hw->rate_max, cpu_rate_max); in snd_soc_runtime_calc_hw() 586 hw->rate_max = min_not_zero(hw->rate_max, rate_max); in snd_soc_runtime_calc_hw() 1545 runtime->hw.rate_max = min_not_zero(stream->rate_max, UINT_MAX); in dpcm_init_runtime_hw() 1679 *rate_max = min_not_zero(*rate_max, pcm->rate_max); in dpcm_runtime_merge_rate()
|
/Linux-v5.10/drivers/target/ |
D | target_core_pscsi.c | 304 min_not_zero((int)sd->sector_size, 512); in pscsi_add_device_to_list() 306 min_not_zero(sd->host->max_sectors, queue_max_hw_sectors(q)); in pscsi_add_device_to_list()
|
D | target_core_spc.c | 523 put_unaligned_be32(min_not_zero(mtl, dev->dev_attrib.hw_max_sectors), &buf[8]); in spc_emulate_evpd_b0()
|
/Linux-v5.10/drivers/watchdog/ |
D | watchdog_dev.c | 134 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()
|
/Linux-v5.10/drivers/mmc/core/ |
D | sdio.c | 564 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()
|
/Linux-v5.10/drivers/block/ |
D | virtio_blk.c | 873 min_not_zero(v, in virtblk_probe()
|
/Linux-v5.10/drivers/nvdimm/ |
D | region_devs.c | 81 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
|
/Linux-v5.10/drivers/iommu/ |
D | dma-iommu.c | 425 dma_limit = min_not_zero(dma_limit, dev->bus_dma_limit); in iommu_dma_alloc_iova()
|
/Linux-v5.10/drivers/infiniband/ulp/rtrs/ |
D | rtrs-clt.c | 1746 clt->queue_depth = min_not_zero(sess->queue_depth, in rtrs_rdma_conn_established() 1748 clt->max_io_size = min_not_zero(sess->max_io_size, in rtrs_rdma_conn_established()
|