Lines Matching refs:tc
111 static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, in ixgbe_get_first_reg_idx() argument
124 *tx = tc << 2; /* 0, 4, 8, 12, 16, 20, 24, 28 */ in ixgbe_get_first_reg_idx()
125 *rx = tc << 3; /* 0, 8, 16, 24, 32, 40, 48, 56 */ in ixgbe_get_first_reg_idx()
137 *rx = tc << 4; in ixgbe_get_first_reg_idx()
138 if (tc < 3) in ixgbe_get_first_reg_idx()
139 *tx = tc << 5; /* 0, 32, 64 */ in ixgbe_get_first_reg_idx()
140 else if (tc < 5) in ixgbe_get_first_reg_idx()
141 *tx = (tc + 2) << 4; /* 80, 96 */ in ixgbe_get_first_reg_idx()
143 *tx = (tc + 8) << 3; /* 104, 112, 120 */ in ixgbe_get_first_reg_idx()
150 *rx = tc << 5; in ixgbe_get_first_reg_idx()
151 if (tc < 2) in ixgbe_get_first_reg_idx()
152 *tx = tc << 6; /* 0, 64 */ in ixgbe_get_first_reg_idx()
154 *tx = (tc + 4) << 4; /* 96, 112 */ in ixgbe_get_first_reg_idx()
172 int tc, offset, rss_i, i; in ixgbe_cache_ring_dcb() local
181 for (tc = 0, offset = 0; tc < num_tcs; tc++, offset += rss_i) { in ixgbe_cache_ring_dcb()
182 ixgbe_get_first_reg_idx(adapter, tc, &tx_idx, &rx_idx); in ixgbe_cache_ring_dcb()
186 adapter->tx_ring[offset + i]->dcb_tc = tc; in ixgbe_cache_ring_dcb()
187 adapter->rx_ring[offset + i]->dcb_tc = tc; in ixgbe_cache_ring_dcb()
468 u8 tc = ixgbe_fcoe_get_tc(adapter); in ixgbe_set_dcb_queues() local
472 f->offset = rss_i * tc; in ixgbe_set_dcb_queues()