Lines Matching refs:vmdq_i
324 u16 vmdq_i = adapter->ring_feature[RING_F_VMDQ].limit; in ixgbe_set_dcb_sriov_queues() local
340 vmdq_i = min_t(u16, vmdq_i, MAX_TX_QUEUES / tcs); in ixgbe_set_dcb_sriov_queues()
343 vmdq_i += adapter->ring_feature[RING_F_VMDQ].offset; in ixgbe_set_dcb_sriov_queues()
347 vmdq_i = min_t(u16, vmdq_i, 16); in ixgbe_set_dcb_sriov_queues()
351 vmdq_i = min_t(u16, vmdq_i, 32); in ixgbe_set_dcb_sriov_queues()
357 fcoe_i = (128 / __ALIGN_MASK(1, ~vmdq_m)) - vmdq_i; in ixgbe_set_dcb_sriov_queues()
361 vmdq_i -= adapter->ring_feature[RING_F_VMDQ].offset; in ixgbe_set_dcb_sriov_queues()
364 adapter->ring_feature[RING_F_VMDQ].indices = vmdq_i; in ixgbe_set_dcb_sriov_queues()
377 adapter->num_rx_pools = vmdq_i; in ixgbe_set_dcb_sriov_queues()
380 adapter->num_tx_queues = vmdq_i * tcs; in ixgbe_set_dcb_sriov_queues()
382 adapter->num_rx_queues = vmdq_i * tcs; in ixgbe_set_dcb_sriov_queues()
396 fcoe->offset = vmdq_i * tcs; in ixgbe_set_dcb_sriov_queues()
497 u16 vmdq_i = adapter->ring_feature[RING_F_VMDQ].limit; in ixgbe_set_sriov_queues() local
510 rss_i = min_t(u16, rss_i, MAX_TX_QUEUES / vmdq_i); in ixgbe_set_sriov_queues()
513 vmdq_i += adapter->ring_feature[RING_F_VMDQ].offset; in ixgbe_set_sriov_queues()
516 vmdq_i = min_t(u16, IXGBE_MAX_VMDQ_INDICES, vmdq_i); in ixgbe_set_sriov_queues()
519 if (vmdq_i > 32) { in ixgbe_set_sriov_queues()
533 fcoe_i = 128 - (vmdq_i * __ALIGN_MASK(1, ~vmdq_m)); in ixgbe_set_sriov_queues()
537 vmdq_i -= adapter->ring_feature[RING_F_VMDQ].offset; in ixgbe_set_sriov_queues()
540 adapter->ring_feature[RING_F_VMDQ].indices = vmdq_i; in ixgbe_set_sriov_queues()
547 adapter->num_rx_pools = vmdq_i; in ixgbe_set_sriov_queues()
550 adapter->num_rx_queues = vmdq_i * rss_i; in ixgbe_set_sriov_queues()
551 adapter->num_tx_queues = vmdq_i * rss_i; in ixgbe_set_sriov_queues()
571 if (vmdq_i > 1 && fcoe_i) { in ixgbe_set_sriov_queues()
574 fcoe->offset = vmdq_i * rss_i; in ixgbe_set_sriov_queues()
601 if (vmdq_i > 1) in ixgbe_set_sriov_queues()