Home
last modified time | relevance | path

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

12

/linux-6.1.9/block/ !
Dblk-settings.c137 max_sectors = min_not_zero(max_hw_sectors, limits->max_dev_sectors); in blk_queue_max_hw_sectors()
552 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
553 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
554 t->max_dev_sectors = min_not_zero(t->max_dev_sectors, b->max_dev_sectors); in blk_stack_limits()
561 t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, in blk_stack_limits()
563 t->virt_boundary_mask = min_not_zero(t->virt_boundary_mask, in blk_stack_limits()
566 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
567 t->max_discard_segments = min_not_zero(t->max_discard_segments, in blk_stack_limits()
569 t->max_integrity_segments = min_not_zero(t->max_integrity_segments, in blk_stack_limits()
572 t->max_segment_size = min_not_zero(t->max_segment_size, in blk_stack_limits()
[all …]
Dblk-merge.c198 return min_not_zero(mask - offset + 1, in get_max_segment_size()
Dblk-sysfs.c250 max_hw_sectors_kb = min_not_zero(max_hw_sectors_kb, (unsigned long) in queue_max_sectors_store()
/linux-6.1.9/arch/x86/mm/ !
Dmem_encrypt.c32 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
/linux-6.1.9/include/linux/ !
Dminmax.h75 #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.h475 return min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < in dma_addressing_limited()
/linux-6.1.9/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.c125 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in dctcp_update_alpha()
/linux-6.1.9/tools/testing/selftests/bpf/ !
Dbpf_tcp_helpers.h195 #define min_not_zero(x, y) ({ \ macro
/linux-6.1.9/drivers/scsi/ !
Dsd.c803 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard()
813 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard()
822 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard()
826 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard()
977 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
980 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
3281 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk()
3295 rw_max = min_not_zero(logical_to_sectors(sdp, dev_max), in sd_revalidate_disk()
3304 rw_max = min_not_zero(rw_max, sdp->host->opt_sectors); in sd_revalidate_disk()
/linux-6.1.9/drivers/nvme/target/ !
Dpassthru.c105 max_hw_sectors = min_not_zero(pctrl->max_segments << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << (PAGE_SHIFT - 9), in nvmet_passthru_override_id_ctrl()
/linux-6.1.9/kernel/dma/ !
Dcontiguous.c179 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
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()
Dmapping.c119 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
/linux-6.1.9/tools/testing/selftests/bpf/progs/ !
Dbpf_dctcp.c130 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in BPF_PROG()
/linux-6.1.9/drivers/block/ !
Dvirtio_blk.c633 min_not_zero(num_request_queues, nr_cpu_ids), in init_vq()
1100 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_probe()
1130 max_discard_segs = min_not_zero(max_discard_segs, v); in virtblk_probe()
/linux-6.1.9/drivers/target/ !
Dtarget_core_pscsi.c301 min_not_zero((int)sd->sector_size, 512); in pscsi_add_device_to_list()
303 min_not_zero(sd->host->max_sectors, queue_max_hw_sectors(q)); in pscsi_add_device_to_list()
/linux-6.1.9/drivers/nvdimm/ !
Dregion_devs.c81 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
339 avail = min_not_zero(avail, nd_pmem_max_contiguous_dpa( in nd_region_allocatable_dpa()
/linux-6.1.9/drivers/net/wwan/t7xx/ !
Dt7xx_hif_dpmaif_tx.c146 real_rel_cnt = min_not_zero(budget, rel_cnt); in t7xx_dpmaif_tx_release()
/linux-6.1.9/drivers/thunderbolt/ !
Dtunnel.c92 spare = min_not_zero(sw->max_dma_credits, TB_DMA_CREDITS); in tb_available_credits()
1103 credits = min_not_zero(TB_DMA_CREDITS, nhi->sw->max_dma_credits); in tb_tunnel_alloc_dma()
/linux-6.1.9/drivers/acpi/arm64/ !
Diort.c2006 limit = min_not_zero(limit, local_limit); in acpi_iort_dma_get_max_cpu_address()
2015 limit = min_not_zero(limit, local_limit); in acpi_iort_dma_get_max_cpu_address()
/linux-6.1.9/drivers/gpu/drm/panfrost/ !
Dpanfrost_mmu.c264 *count = min_not_zero(blk_offset, size) / SZ_4K; in get_pgsize()
/linux-6.1.9/drivers/mmc/core/ !
Dsdio.c579 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()
/linux-6.1.9/drivers/watchdog/ !
Dwatchdog_dev.c113 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()

12