Lines Matching refs:min_t
304 queues = min_t(int, IXGBE_MAX_XDP_QS, nr_cpu_ids); in ixgbe_xdp_queues()
344 vmdq_i = min_t(u16, vmdq_i, MAX_TX_QUEUES / tcs); in ixgbe_set_dcb_sriov_queues()
351 vmdq_i = min_t(u16, vmdq_i, 16); in ixgbe_set_dcb_sriov_queues()
355 vmdq_i = min_t(u16, vmdq_i, 32); in ixgbe_set_dcb_sriov_queues()
395 fcoe_i = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_dcb_sriov_queues()
443 rss_i = min_t(u16, rss_i, 4); in ixgbe_set_dcb_queues()
447 rss_i = min_t(u16, rss_i, 8); in ixgbe_set_dcb_queues()
451 rss_i = min_t(u16, rss_i, 16); in ixgbe_set_dcb_queues()
457 rss_i = min_t(int, rss_i, f->limit); in ixgbe_set_dcb_queues()
474 f->indices = min_t(u16, rss_i, f->limit); in ixgbe_set_dcb_queues()
514 rss_i = min_t(u16, rss_i, MAX_TX_QUEUES / vmdq_i); in ixgbe_set_sriov_queues()
520 vmdq_i = min_t(u16, IXGBE_MAX_VMDQ_INDICES, vmdq_i); in ixgbe_set_sriov_queues()
526 rss_i = min_t(u16, rss_i, 2); in ixgbe_set_sriov_queues()
573 fcoe_i = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_sriov_queues()
581 fcoe_i = min_t(u16, fcoe_i + rss_i, num_online_cpus()); in ixgbe_set_sriov_queues()
588 fcoe->indices = min_t(u16, fcoe_i, fcoe->limit); in ixgbe_set_sriov_queues()
673 fcoe_i = min_t(u16, f->limit + rss_i, num_online_cpus()); in ixgbe_set_rss_queues()
674 fcoe_i = min_t(u16, fcoe_i, dev->num_tx_queues); in ixgbe_set_rss_queues()
681 f->indices = min_t(u16, fcoe_i, f->limit); in ixgbe_set_rss_queues()
752 vectors = min_t(int, vectors, num_online_cpus()); in ixgbe_acquire_msix_vectors()
763 vectors = min_t(int, vectors, hw->mac.max_msix_vectors); in ixgbe_acquire_msix_vectors()
805 adapter->num_q_vectors = min_t(int, vectors, adapter->max_q_vectors); in ixgbe_acquire_msix_vectors()