Home
last modified time | relevance | path

Searched refs:min3 (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.1.9/include/linux/
Dminmax.h60 #define min3(x, y, z) min((typeof(x))min(x, y), z) macro
/linux-6.1.9/drivers/gpu/drm/udl/
Dudl_transfer.c104 cmd_pixel_end = pixel + (min3(MAX_CMD_PIXELS + 1UL, in udl_compress_hline16()
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_pe_sip.c18 size_t len = min3(max_len, callid_len, buf_len - *idx - 1); in ip_vs_dbg_callid()
/linux-6.1.9/sound/usb/line6/
Dmidi.c47 req = min3(line6_midibuf_bytes_free(mb), line6->max_packet_size, in line6_midi_transmit()
/linux-6.1.9/arch/arm64/mm/
Dinit.c223 zone_dma_bits = min3(32U, dt_zone_dma_bits, acpi_zone_dma_bits); in zone_sizes_init()
/linux-6.1.9/arch/powerpc/mm/book3s32/
Dmmu.c108 return min3(max_size, 1U << base_shift, 1U << block_shift); in bat_block_size()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dnetdev_rx.c182 return min3(available_cpus, available_contexts, in hfi1_num_netdev_contexts()
/linux-6.1.9/drivers/hid/
Dhid-u2fzero.c230 actual_length = min3((size_t)ret - min_length, in u2fzero_rng_read()
Duhid.c266 ret = min3(count, (size_t)req->size, (size_t)UHID_DATA_MAX); in uhid_hid_get_report()
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/dss/
Dpll.c172 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc()
/linux-6.1.9/drivers/cxl/
Dpci.c199 size_t n = min3(mbox_cmd->size_out, cxlds->payload_size, out_len); in __cxl_pci_mbox_send_cmd()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dqp.c651 size = min3(max_table_offset - last_offset, in mlx4_create_zones()
657 candidate_size = min3( in mlx4_create_zones()
/linux-6.1.9/drivers/spi/
Dspi-sun4i.c153 len = min3(len, (int)cnt, sspi->len); in sun4i_spi_fill_fifo()
Dspi-pic32.c178 return min3(tx_left, tx_room, (u32)(pic32s->fifo_n_elm - rxtx_gap)); in pic32_tx_max()
Dspi-mem.c469 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
Dspi-dw-core.c129 return min3((u32)dws->tx_len, tx_room, rxtx_gap); in dw_spi_tx_max()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/
Dcmsg.c439 return min3(req_max, reply_max, NFP_BPF_MAP_CACHE_CNT); in nfp_bpf_ctrl_cmsg_cache_cnt()
/linux-6.1.9/drivers/gpu/drm/omapdrm/dss/
Dpll.c240 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc_a()
/linux-6.1.9/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-hash.c315 todo = min3((u32)(end - i) / 4, rx_cnt, (u32)in_r / 4); in sun4i_hash()
/linux-6.1.9/arch/s390/pci/
Dpci_dma.c582 zdev->iommu_size = min3(s390_iommu_aperture, in zpci_dma_init_device()
/linux-6.1.9/mm/
Dswap_state.c708 *end = min3(rpfn, PFN_DOWN(vma->vm_end), in swap_ra_clamp_pfn()
/linux-6.1.9/drivers/hid/intel-ish-hid/
Dishtp-fw-loader.c654 payload_max_size = min3(fw->size, in ish_fw_xfer_direct_dma()
/linux-6.1.9/arch/x86/xen/
Dsetup.c796 extra_pages = min3(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), in xen_memory_setup()
/linux-6.1.9/arch/x86/kvm/vmx/
Dpmu_intel.c553 min3(ARRAY_SIZE(fixed_pmc_events), in intel_pmu_refresh()
/linux-6.1.9/drivers/net/ethernet/fungible/funcore/
Dfun_dev.c591 fdev->max_qid = min3(cq_count, sq_count, num_dbs / 2) - 1; in fun_get_dev_limits()

123