Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/crypto/sunxi-ss/
Dsun4i-ss-cipher.c75 todo = min3(rx_cnt, ileft, (mi.length - oi) / 4); in sun4i_ss_opti_poll()
90 todo = min3(tx_cnt, oleft, (mo.length - oo) / 4); in sun4i_ss_opti_poll()
242 todo = min3(rx_cnt, ileft / 4, (mi.length - oi) / 4); in sun4i_ss_cipher_poll()
256 todo = min3(rx_cnt * 4 - ob, ileft, in sun4i_ss_cipher_poll()
285 todo = min3(tx_cnt, oleft / 4, (mo.length - oo) / 4); in sun4i_ss_cipher_poll()
Dsun4i-ss-hash.c275 in_r = min3(mi.length - in_i, end - i, in sun4i_hash()
296 in_r = min3(mi.length - in_i, areq->nbytes - i, in sun4i_hash()
299 todo = min3((u32)(end - i) / 4, rx_cnt, (u32)in_r / 4); in sun4i_hash()
323 in_r = min3(mi.length - in_i, areq->nbytes - i, in sun4i_hash()
/Linux-v5.4/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-v5.4/include/linux/
Dbvec.h98 unsigned len = min3(bytes, iter->bi_size, in bvec_iter_advance()
Dkernel.h890 #define min3(x, y, z) min((typeof(x))min(x, y), z) macro
/Linux-v5.4/drivers/gpu/drm/udl/
Dudl_transfer.c144 cmd_pixel_end = pixel + (min3(MAX_CMD_PIXELS + 1UL, in udl_compress_hline16()
/Linux-v5.4/drivers/hid/
Dhid-u2fzero.c205 actual_length = min3((size_t)ret - offsetof(struct u2f_hid_msg, in u2fzero_rng_read()
Duhid.c246 ret = min3(count, (size_t)req->size, (size_t)UHID_DATA_MAX); in uhid_hid_get_report()
/Linux-v5.4/arch/powerpc/mm/book3s32/
Dmmu.c113 return min3(max_size, 1U << base_shift, 1U << block_shift); in block_size()
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_bw.c249 return min3(icl_max_bw(dev_priv, num_planes, 0), in intel_max_data_rate()
/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/dss/
Dpll.c172 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc()
/Linux-v5.4/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-v5.4/drivers/spi/
Dspi-sun4i.c153 len = min3(len, (int)cnt, sspi->len); in sun4i_spi_fill_fifo()
Dspi-sun6i.c165 len = min3(len, (int)cnt, sspi->len); in sun6i_spi_fill_fifo()
Dspi-dw.c161 return min3(tx_left, tx_room, (u32) (dws->fifo_len - rxtx_gap)); in tx_max()
Dspi-mem.c430 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size()
Dspi-pic32.c178 return min3(tx_left, tx_room, (u32)(pic32s->fifo_n_elm - rxtx_gap)); in pic32_tx_max()
/Linux-v5.4/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-v5.4/drivers/gpu/drm/omapdrm/dss/
Dpll.c237 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc_a()
/Linux-v5.4/arch/s390/pci/
Dpci_dma.c577 zdev->iommu_size = min3((u64) high_memory, in zpci_dma_init_device()
/Linux-v5.4/mm/
Dswap_state.c636 *end = min3(rpfn, PFN_DOWN(vma->vm_end), in swap_ra_clamp_pfn()
/Linux-v5.4/drivers/hid/intel-ish-hid/
Dishtp-fw-loader.c647 payload_max_size = min3(fw->size, in ish_fw_xfer_direct_dma()
/Linux-v5.4/arch/x86/xen/
Dsetup.c818 extra_pages = min3(EXTRA_MEM_RATIO * min(max_pfn, PFN_DOWN(MAXMEM)), in xen_memory_setup()
/Linux-v5.4/drivers/crypto/
Dhifn_795x.c1417 copy = min3(drest, size, dst->length); in ablkcipher_add()
1624 copy = min3(srest, dst->length, size); in ablkcipher_get()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dvio.c232 tmp = min3(spare_needed, reserve_freed, (viodev->cmo.entitled - VIO_CMO_MIN_ENT)); in vio_cmo_dealloc()

12