• Home
  • Raw
  • Download

Lines Matching refs:reg

51 	u32    reg           = 0;  in ixgbe_dcb_config_rx_arbiter_82599()  local
60 reg = IXGBE_RTRPCS_RRM | IXGBE_RTRPCS_RAC | IXGBE_RTRPCS_ARBDIS; in ixgbe_dcb_config_rx_arbiter_82599()
61 IXGBE_WRITE_REG(hw, IXGBE_RTRPCS, reg); in ixgbe_dcb_config_rx_arbiter_82599()
64 reg = 0; in ixgbe_dcb_config_rx_arbiter_82599()
66 reg |= (prio_tc[i] << (i * IXGBE_RTRUP2TC_UP_SHIFT)); in ixgbe_dcb_config_rx_arbiter_82599()
67 IXGBE_WRITE_REG(hw, IXGBE_RTRUP2TC, reg); in ixgbe_dcb_config_rx_arbiter_82599()
73 reg = credit_refill | (credit_max << IXGBE_RTRPT4C_MCL_SHIFT); in ixgbe_dcb_config_rx_arbiter_82599()
75 reg |= (u32)(bwg_id[i]) << IXGBE_RTRPT4C_BWG_SHIFT; in ixgbe_dcb_config_rx_arbiter_82599()
78 reg |= IXGBE_RTRPT4C_LSP; in ixgbe_dcb_config_rx_arbiter_82599()
80 IXGBE_WRITE_REG(hw, IXGBE_RTRPT4C(i), reg); in ixgbe_dcb_config_rx_arbiter_82599()
87 reg = IXGBE_RTRPCS_RRM | IXGBE_RTRPCS_RAC; in ixgbe_dcb_config_rx_arbiter_82599()
88 IXGBE_WRITE_REG(hw, IXGBE_RTRPCS, reg); in ixgbe_dcb_config_rx_arbiter_82599()
109 u32 reg, max_credits; in ixgbe_dcb_config_tx_desc_arbiter_82599() local
121 reg = max_credits << IXGBE_RTTDT2C_MCL_SHIFT; in ixgbe_dcb_config_tx_desc_arbiter_82599()
122 reg |= refill[i]; in ixgbe_dcb_config_tx_desc_arbiter_82599()
123 reg |= (u32)(bwg_id[i]) << IXGBE_RTTDT2C_BWG_SHIFT; in ixgbe_dcb_config_tx_desc_arbiter_82599()
126 reg |= IXGBE_RTTDT2C_GSP; in ixgbe_dcb_config_tx_desc_arbiter_82599()
129 reg |= IXGBE_RTTDT2C_LSP; in ixgbe_dcb_config_tx_desc_arbiter_82599()
131 IXGBE_WRITE_REG(hw, IXGBE_RTTDT2C(i), reg); in ixgbe_dcb_config_tx_desc_arbiter_82599()
138 reg = IXGBE_RTTDCS_TDPAC | IXGBE_RTTDCS_TDRM; in ixgbe_dcb_config_tx_desc_arbiter_82599()
139 IXGBE_WRITE_REG(hw, IXGBE_RTTDCS, reg); in ixgbe_dcb_config_tx_desc_arbiter_82599()
161 u32 reg; in ixgbe_dcb_config_tx_data_arbiter_82599() local
168 reg = IXGBE_RTTPCS_TPPAC | IXGBE_RTTPCS_TPRM | in ixgbe_dcb_config_tx_data_arbiter_82599()
171 IXGBE_WRITE_REG(hw, IXGBE_RTTPCS, reg); in ixgbe_dcb_config_tx_data_arbiter_82599()
174 reg = 0; in ixgbe_dcb_config_tx_data_arbiter_82599()
176 reg |= (prio_tc[i] << (i * IXGBE_RTTUP2TC_UP_SHIFT)); in ixgbe_dcb_config_tx_data_arbiter_82599()
177 IXGBE_WRITE_REG(hw, IXGBE_RTTUP2TC, reg); in ixgbe_dcb_config_tx_data_arbiter_82599()
181 reg = refill[i]; in ixgbe_dcb_config_tx_data_arbiter_82599()
182 reg |= (u32)(max[i]) << IXGBE_RTTPT2C_MCL_SHIFT; in ixgbe_dcb_config_tx_data_arbiter_82599()
183 reg |= (u32)(bwg_id[i]) << IXGBE_RTTPT2C_BWG_SHIFT; in ixgbe_dcb_config_tx_data_arbiter_82599()
186 reg |= IXGBE_RTTPT2C_GSP; in ixgbe_dcb_config_tx_data_arbiter_82599()
189 reg |= IXGBE_RTTPT2C_LSP; in ixgbe_dcb_config_tx_data_arbiter_82599()
191 IXGBE_WRITE_REG(hw, IXGBE_RTTPT2C(i), reg); in ixgbe_dcb_config_tx_data_arbiter_82599()
198 reg = IXGBE_RTTPCS_TPPAC | IXGBE_RTTPCS_TPRM | in ixgbe_dcb_config_tx_data_arbiter_82599()
200 IXGBE_WRITE_REG(hw, IXGBE_RTTPCS, reg); in ixgbe_dcb_config_tx_data_arbiter_82599()
215 u32 i, j, fcrtl, reg; in ixgbe_dcb_config_pfc_82599() local
222 reg = IXGBE_READ_REG(hw, IXGBE_MFLCN); in ixgbe_dcb_config_pfc_82599()
223 reg |= IXGBE_MFLCN_DPF; in ixgbe_dcb_config_pfc_82599()
230 reg &= ~(IXGBE_MFLCN_RPFCE_MASK | IXGBE_MFLCN_RFCE); in ixgbe_dcb_config_pfc_82599()
233 reg |= pfc_en << IXGBE_MFLCN_RPFCE_SHIFT; in ixgbe_dcb_config_pfc_82599()
236 reg |= IXGBE_MFLCN_RPFCE; in ixgbe_dcb_config_pfc_82599()
238 IXGBE_WRITE_REG(hw, IXGBE_MFLCN, reg); in ixgbe_dcb_config_pfc_82599()
258 reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; in ixgbe_dcb_config_pfc_82599()
268 reg = IXGBE_READ_REG(hw, IXGBE_RXPBSIZE(i)) - 24576; in ixgbe_dcb_config_pfc_82599()
272 IXGBE_WRITE_REG(hw, IXGBE_FCRTH_82599(i), reg); in ixgbe_dcb_config_pfc_82599()
281 reg = hw->fc.pause_time * 0x00010001; in ixgbe_dcb_config_pfc_82599()
283 IXGBE_WRITE_REG(hw, IXGBE_FCTTV(i), reg); in ixgbe_dcb_config_pfc_82599()
300 u32 reg = 0; in ixgbe_dcb_config_tc_stats_82599() local
310 reg = 0x01010101 * (i / 4); in ixgbe_dcb_config_tc_stats_82599()
311 IXGBE_WRITE_REG(hw, IXGBE_RQSMR(i), reg); in ixgbe_dcb_config_tc_stats_82599()
323 reg = 0x00000000; in ixgbe_dcb_config_tc_stats_82599()
325 reg = 0x01010101; in ixgbe_dcb_config_tc_stats_82599()
327 reg = 0x02020202; in ixgbe_dcb_config_tc_stats_82599()
329 reg = 0x03030303; in ixgbe_dcb_config_tc_stats_82599()
331 reg = 0x04040404; in ixgbe_dcb_config_tc_stats_82599()
333 reg = 0x05050505; in ixgbe_dcb_config_tc_stats_82599()
335 reg = 0x06060606; in ixgbe_dcb_config_tc_stats_82599()
337 reg = 0x07070707; in ixgbe_dcb_config_tc_stats_82599()
338 IXGBE_WRITE_REG(hw, IXGBE_TQSM(i), reg); in ixgbe_dcb_config_tc_stats_82599()