Home
last modified time | relevance | path

Searched refs:min_not_zero (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v5.10/block/
Dblk-settings.c161 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 …]
Dblk-merge.c173 return min_not_zero(mask - offset + 1, in get_max_segment_size()
Dblk-sysfs.c240 max_hw_sectors_kb = min_not_zero(max_hw_sectors_kb, (unsigned long) in queue_max_sectors_store()
/Linux-v5.10/include/linux/
Dminmax.h81 #define min_not_zero(x, y) ({ \ macro
Ddma-direct.h110 return end <= min_not_zero(*dev->dma_mask, dev->bus_dma_limit); in dma_capable()
Ddma-mapping.h448 return min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < in dma_addressing_limited()
/Linux-v5.10/net/ipv4/
Dtcp_cdg.c145 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()
Dtcp_dctcp.c123 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in dctcp_update_alpha()
/Linux-v5.10/drivers/nvme/target/
Dpassthru.c48 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/
Ddirect.c50 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()
Dcontiguous.c179 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
Dmapping.c116 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dbpf_dctcp.c96 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in BPF_PROG()
/Linux-v5.10/tools/testing/selftests/bpf/
Dbpf_tcp_helpers.h183 #define min_not_zero(x, y) ({ \ macro
/Linux-v5.10/arch/x86/mm/
Dmem_encrypt.c377 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
/Linux-v5.10/drivers/scsi/
Dsd.c841 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/
Dsoc-pcm.c533 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/
Dtarget_core_pscsi.c304 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()
Dtarget_core_spc.c523 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/
Dwatchdog_dev.c134 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()
/Linux-v5.10/drivers/mmc/core/
Dsdio.c564 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()
/Linux-v5.10/drivers/block/
Dvirtio_blk.c873 min_not_zero(v, in virtblk_probe()
/Linux-v5.10/drivers/nvdimm/
Dregion_devs.c81 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
/Linux-v5.10/drivers/iommu/
Ddma-iommu.c425 dma_limit = min_not_zero(dma_limit, dev->bus_dma_limit); in iommu_dma_alloc_iova()
/Linux-v5.10/drivers/infiniband/ulp/rtrs/
Drtrs-clt.c1746 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()

12