Home
last modified time | relevance | path

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

12

/Linux-v5.4/block/
Dblk-settings.c195 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
502 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
503 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
504 t->max_dev_sectors = min_not_zero(t->max_dev_sectors, b->max_dev_sectors); in blk_stack_limits()
509 t->bounce_pfn = min_not_zero(t->bounce_pfn, b->bounce_pfn); in blk_stack_limits()
511 t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, in blk_stack_limits()
513 t->virt_boundary_mask = min_not_zero(t->virt_boundary_mask, in blk_stack_limits()
516 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
517 t->max_discard_segments = min_not_zero(t->max_discard_segments, in blk_stack_limits()
519 t->max_integrity_segments = min_not_zero(t->max_integrity_segments, in blk_stack_limits()
[all …]
Dblk-sysfs.c232 max_hw_sectors_kb = min_not_zero(max_hw_sectors_kb, (unsigned long) in queue_max_sectors_store()
/Linux-v5.4/arch/powerpc/include/asm/
Ddma-direct.h11 min_not_zero(*dev->dma_mask, dev->bus_dma_mask); in dma_capable()
/Linux-v5.4/include/linux/
Ddma-direct.h31 min_not_zero(*dev->dma_mask, dev->bus_dma_mask); in dma_capable()
Dkernel.h905 #define min_not_zero(x, y) ({ \ macro
Ddma-mapping.h696 return min_not_zero(dma_get_mask(dev), dev->bus_dma_mask) < in dma_addressing_limited()
/Linux-v5.4/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.4/kernel/dma/
Dcontiguous.c119 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
Ddirect.c82 min_not_zero(dev->coherent_dma_mask, dev->bus_dma_mask); in dma_coherent_ok()
/Linux-v5.4/arch/x86/mm/
Dmem_encrypt.c369 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
/Linux-v5.4/drivers/scsi/
Dsd.c792 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard()
802 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard()
811 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard()
815 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard()
962 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
965 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
3156 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk()
3163 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()
Dscsi_lib.c1794 min_not_zero(shost->sg_prot_tablesize, in __scsi_init_queue()
/Linux-v5.4/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.4/sound/soc/
Dsoc-pcm.c399 rate_max = min_not_zero(rate_max, codec_stream->rate_max); in soc_pcm_init_runtime_hw()
426 hw->rate_max = min_not_zero(hw->rate_max, cpu_stream->rate_max); in soc_pcm_init_runtime_hw()
427 hw->rate_max = min_not_zero(hw->rate_max, rate_max); in soc_pcm_init_runtime_hw()
1624 runtime->hw.rate_max = min_not_zero(stream->rate_max, UINT_MAX); in dpcm_init_runtime_hw()
1758 *rate_max = min_not_zero(*rate_max, cpu_stream->rate_max); in dpcm_runtime_merge_rate()
1776 *rate_max = min_not_zero(*rate_max, in dpcm_runtime_merge_rate()
/Linux-v5.4/drivers/watchdog/
Dwatchdog_dev.c138 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()
/Linux-v5.4/drivers/mmc/core/
Dsdio.c500 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()
/Linux-v5.4/drivers/block/
Dvirtio_blk.c893 min_not_zero(v, in virtblk_probe()
/Linux-v5.4/drivers/nvdimm/
Dregion_devs.c81 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
/Linux-v5.4/drivers/dma/
Dnbpfaxi.c435 max_burst = min_not_zero(nbpf->max_burst_mem_read, in nbpf_xfer_ds()
/Linux-v5.4/drivers/block/drbd/
Ddrbd_req.c1732 et = min_not_zero(dt, ent); in request_timer_fn()
/Linux-v5.4/drivers/nvme/host/
Dcore.c2182 max_segments = min_not_zero(max_segments, ctrl->max_segments); in nvme_set_queue_limits()
2806 min_not_zero(ctrl->max_hw_sectors, max_hw_sectors); in nvme_init_identify()
/Linux-v5.4/sound/core/
Dpcm_lib.c1384 params->msbits = min_not_zero(params->msbits, msbits); in snd_pcm_hw_rule_msbits()
/Linux-v5.4/drivers/md/
Ddm-snap.c856 chunk_size = min_not_zero(chunk_size, in __minimum_chunk_size()

12