Home
last modified time | relevance | path

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

12

/linux-6.12.1/block/
Dblk-settings.c277 max_hw_sectors = min_not_zero(lim->max_hw_sectors, in blk_validate_limits()
523 t->max_sectors = min_not_zero(t->max_sectors, b->max_sectors); in blk_stack_limits()
524 t->max_user_sectors = min_not_zero(t->max_user_sectors, in blk_stack_limits()
526 t->max_hw_sectors = min_not_zero(t->max_hw_sectors, b->max_hw_sectors); in blk_stack_limits()
527 t->max_dev_sectors = min_not_zero(t->max_dev_sectors, b->max_dev_sectors); in blk_stack_limits()
533 t->seg_boundary_mask = min_not_zero(t->seg_boundary_mask, in blk_stack_limits()
535 t->virt_boundary_mask = min_not_zero(t->virt_boundary_mask, in blk_stack_limits()
538 t->max_segments = min_not_zero(t->max_segments, b->max_segments); in blk_stack_limits()
539 t->max_discard_segments = min_not_zero(t->max_discard_segments, in blk_stack_limits()
541 t->max_integrity_segments = min_not_zero(t->max_integrity_segments, in blk_stack_limits()
[all …]
/linux-6.12.1/arch/x86/mm/
Dmem_encrypt.c35 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dbpf_dctcp.c18 #define min_not_zero(x, y) ({ \ macro
137 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in BPF_PROG()
/linux-6.12.1/drivers/md/
Ddm-zone.c310 min_not_zero(max_active_zones, zlim->lim->max_active_zones); in device_get_zone_resource_limits()
316 min_not_zero(max_open_zones, zlim->lim->max_open_zones); in device_get_zone_resource_limits()
/linux-6.12.1/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.c154 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in dctcp_update_alpha()
/linux-6.12.1/include/linux/
Ddma-direct.h133 return end <= min_not_zero(*dev->dma_mask, dev->bus_dma_limit); in dma_capable()
Dminmax.h184 #define min_not_zero(x, y) ({ \ macro
/linux-6.12.1/drivers/nvme/target/
Dpassthru.c105 max_hw_sectors = min_not_zero(pctrl->max_segments << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
112 max_hw_sectors = min_not_zero(BIO_MAX_VECS << PAGE_SECTORS_SHIFT, in nvmet_passthru_override_id_ctrl()
/linux-6.12.1/kernel/dma/
Ddirect.c49 u64 dma_limit = min_not_zero( in dma_direct_optimal_gfp_mask()
76 min_not_zero(dev->coherent_dma_mask, dev->bus_dma_limit); in dma_coherent_ok()
Dcontiguous.c226 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
Dmapping.c131 return min_not_zero(mask, dev->bus_dma_limit) >= in dma_go_direct()
912 if (min_not_zero(dma_get_mask(dev), dev->bus_dma_limit) < in dma_addressing_limited()
/linux-6.12.1/drivers/scsi/
Dsd.c868 max_blocks = min_not_zero(sdkp->max_unmap_blocks, in sd_config_discard()
878 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS16_BLOCKS); in sd_config_discard()
887 max_blocks = min_not_zero(max_blocks, (u32)SD_MAX_WS10_BLOCKS); in sd_config_discard()
891 max_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_discard()
1106 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
1109 sdkp->max_ws_blocks = min_not_zero(sdkp->max_ws_blocks, in sd_config_write_same()
3781 dev_max = min_not_zero(dev_max, sdkp->max_xfer_blocks); in sd_revalidate_disk()
3796 lim.io_opt = min_not_zero(lim.io_opt, in sd_revalidate_disk()
/linux-6.12.1/drivers/target/
Dtarget_core_pscsi.c299 min_not_zero((int)sd->sector_size, 512); in pscsi_add_device_to_list()
301 min_not_zero(sd->host->max_sectors, queue_max_hw_sectors(q)); in pscsi_add_device_to_list()
/linux-6.12.1/drivers/block/
Dvirtio_blk.c986 min_not_zero(num_request_queues, nr_cpu_ids), in init_vq()
1363 discard_granularity = min_not_zero(discard_granularity, v); in virtblk_read_limits()
1391 max_discard_segs = min_not_zero(max_discard_segs, v); in virtblk_read_limits()
/linux-6.12.1/drivers/nvdimm/
Dregion_devs.c124 num_flush = min_not_zero(num_flush, nvdimm->num_flush); in nd_region_activate()
386 avail = min_not_zero(avail, nd_pmem_max_contiguous_dpa( in nd_region_allocatable_dpa()
/linux-6.12.1/drivers/pci/controller/dwc/
Dpcie-rcar-gen4.c147 changes = min_not_zero(dw->max_link_speed, RCAR_MAX_LINK_SPEED) - 1; in rcar_gen4_pcie_start_link()
/linux-6.12.1/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.12.1/drivers/acpi/arm64/
Diort.c2013 limit = min_not_zero(limit, local_limit); in acpi_iort_dma_get_max_cpu_address()
2022 limit = min_not_zero(limit, local_limit); in acpi_iort_dma_get_max_cpu_address()
/linux-6.12.1/drivers/gpu/drm/panfrost/
Dpanfrost_mmu.c266 *count = min_not_zero(blk_offset, size) / SZ_4K; in get_pgsize()
/linux-6.12.1/drivers/thunderbolt/
Dtunnel.c107 spare = min_not_zero(sw->max_dma_credits, dma_credits); in tb_available_credits()
1686 credits = min_not_zero(dma_credits, nhi->sw->max_dma_credits); in tb_tunnel_alloc_dma()
/linux-6.12.1/io_uring/
Dkbuf.c230 needed = min_not_zero(needed, (size_t) PEEK_MAX_IMPORT); in io_ring_buffers_peek()
Dnet.c600 .max_len = min_not_zero(sr->len, INT_MAX), in io_send()
1089 arg.max_len = min_not_zero(sr->len, kmsg->msg.msg_inq); in io_recv_buf_select()
/linux-6.12.1/drivers/watchdog/
Dwatchdog_dev.c114 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()
/linux-6.12.1/drivers/mmc/core/
Dsdio.c579 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()

12