/linux-6.12.1/block/ |
D | blk-settings.c | 277 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/ |
D | mem_encrypt.c | 35 u64 dma_dev_mask = min_not_zero(dev->coherent_dma_mask, in force_dma_unencrypted()
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | bpf_dctcp.c | 18 #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/ |
D | dm-zone.c | 310 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/ |
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 | 154 alpha -= min_not_zero(alpha, alpha >> dctcp_shift_g); in dctcp_update_alpha()
|
/linux-6.12.1/include/linux/ |
D | dma-direct.h | 133 return end <= min_not_zero(*dev->dma_mask, dev->bus_dma_limit); in dma_capable()
|
D | minmax.h | 184 #define min_not_zero(x, y) ({ \ macro
|
/linux-6.12.1/drivers/nvme/target/ |
D | passthru.c | 105 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/ |
D | direct.c | 49 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()
|
D | contiguous.c | 226 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
|
D | mapping.c | 131 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/ |
D | sd.c | 868 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/ |
D | target_core_pscsi.c | 299 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/ |
D | virtio_blk.c | 986 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/ |
D | region_devs.c | 124 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/ |
D | pcie-rcar-gen4.c | 147 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/ |
D | t7xx_hif_dpmaif_tx.c | 146 real_rel_cnt = min_not_zero(budget, rel_cnt); in t7xx_dpmaif_tx_release()
|
/linux-6.12.1/drivers/acpi/arm64/ |
D | iort.c | 2013 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/ |
D | panfrost_mmu.c | 266 *count = min_not_zero(blk_offset, size) / SZ_4K; in get_pgsize()
|
/linux-6.12.1/drivers/thunderbolt/ |
D | tunnel.c | 107 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/ |
D | kbuf.c | 230 needed = min_not_zero(needed, (size_t) PEEK_MAX_IMPORT); in io_ring_buffers_peek()
|
D | net.c | 600 .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/ |
D | watchdog_dev.c | 114 hw_heartbeat_ms = min_not_zero(timeout_ms, wdd->max_hw_heartbeat_ms); in watchdog_next_keepalive()
|
/linux-6.12.1/drivers/mmc/core/ |
D | sdio.c | 579 max_rate = min_not_zero(card->quirk_max_rate, in sdio_set_bus_speed_mode()
|