Lines Matching refs:tc
165 int tc; in ixgbe_dcb_unpack_pfc() local
167 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { in ixgbe_dcb_unpack_pfc()
168 if (tc_config[tc].dcb_pfc != pfc_disabled) in ixgbe_dcb_unpack_pfc()
169 *pfc_en |= BIT(tc); in ixgbe_dcb_unpack_pfc()
177 int tc; in ixgbe_dcb_unpack_refill() local
179 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_refill()
180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill()
186 int tc; in ixgbe_dcb_unpack_max() local
188 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_max()
189 max[tc] = tc_config[tc].desc_credits_max; in ixgbe_dcb_unpack_max()
196 int tc; in ixgbe_dcb_unpack_bwgid() local
198 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_bwgid()
199 bwgid[tc] = tc_config[tc].path[direction].bwg_id; in ixgbe_dcb_unpack_bwgid()
206 int tc; in ixgbe_dcb_unpack_prio() local
208 for (tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) in ixgbe_dcb_unpack_prio()
209 ptype[tc] = tc_config[tc].path[direction].prio_type; in ixgbe_dcb_unpack_prio()
216 u8 tc = cfg->num_tcs.pg_tcs; in ixgbe_dcb_get_tc_from_up() local
219 if (!tc) in ixgbe_dcb_get_tc_from_up()
227 for (tc--; tc; tc--) { in ixgbe_dcb_get_tc_from_up()
228 if (prio_mask & tc_config[tc].path[direction].up_to_tc_bitmap) in ixgbe_dcb_get_tc_from_up()
232 return tc; in ixgbe_dcb_get_tc_from_up()