Lines Matching +full:2 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-only */
57 #define GMAC_RXQCTRL_AVCPQ_MASK GENMASK(2, 0)
67 #define GMAC_RXQCTRL_MCBCQEN BIT(20)
69 #define GMAC_RXQCTRL_TACPQE BIT(21)
75 #define GMAC_PACKET_FILTER_PR BIT(0)
76 #define GMAC_PACKET_FILTER_HMC BIT(2)
77 #define GMAC_PACKET_FILTER_PM BIT(4)
78 #define GMAC_PACKET_FILTER_PCF BIT(7)
79 #define GMAC_PACKET_FILTER_HPF BIT(10)
80 #define GMAC_PACKET_FILTER_VTFE BIT(16)
81 #define GMAC_PACKET_FILTER_IPFE BIT(20)
82 #define GMAC_PACKET_FILTER_RA BIT(31)
87 #define GMAC_VLAN_EDVLP BIT(26)
88 #define GMAC_VLAN_VTHM BIT(25)
89 #define GMAC_VLAN_DOVLTC BIT(20)
90 #define GMAC_VLAN_ESVL BIT(18)
91 #define GMAC_VLAN_ETV BIT(16)
93 #define GMAC_VLAN_VLTI BIT(20)
94 #define GMAC_VLAN_CSVL BIT(19)
101 #define GMAC_VLAN_TAG_ETV BIT(16)
104 #define GMAC_VLAN_TAG_CTRL_OB BIT(0)
105 #define GMAC_VLAN_TAG_CTRL_CT BIT(1)
106 #define GMAC_VLAN_TAG_CTRL_OFS_MASK GENMASK(6, 2)
107 #define GMAC_VLAN_TAG_CTRL_OFS_SHIFT 2
110 #define GMAC_VLAN_TAG_CTRL_EVLRXS BIT(24)
119 #define GMAC_VLAN_TAG_DATA_VEN BIT(16)
120 #define GMAC_VLAN_TAG_DATA_ETV BIT(17)
123 #define GMAC_RX_QUEUE_CLEAR(queue) ~(GENMASK(1, 0) << ((queue) * 2))
124 #define GMAC_RX_AV_QUEUE_ENABLE(queue) BIT((queue) * 2)
125 #define GMAC_RX_DCB_QUEUE_ENABLE(queue) BIT(((queue) * 2) + 1)
128 #define GMAC_RX_FLOW_CTRL_RFE BIT(0)
139 #define GMAC_TX_FLOW_CTRL_TFE BIT(1)
143 #define GMAC_INT_RGSMIIS BIT(0)
144 #define GMAC_INT_PCS_LINK BIT(1)
145 #define GMAC_INT_PCS_ANE BIT(2)
146 #define GMAC_INT_PCS_PHYIS BIT(3)
147 #define GMAC_INT_PMT_EN BIT(4)
148 #define GMAC_INT_LPI_EN BIT(5)
149 #define GMAC_INT_TSIE BIT(12)
188 #define GMAC4_LPI_CTRL_STATUS_LPITCSE BIT(21) /* LPI Tx Clock Stop Enable */
189 #define GMAC4_LPI_CTRL_STATUS_LPIATE BIT(20) /* LPI Timer Enable */
190 #define GMAC4_LPI_CTRL_STATUS_LPITXA BIT(19) /* Enable LPI TX Automate */
191 #define GMAC4_LPI_CTRL_STATUS_PLS BIT(17) /* PHY Link Status */
192 #define GMAC4_LPI_CTRL_STATUS_LPIEN BIT(16) /* LPI Enable */
193 #define GMAC4_LPI_CTRL_STATUS_RLPIEX BIT(3) /* Receive LPI Exit */
194 #define GMAC4_LPI_CTRL_STATUS_RLPIEN BIT(2) /* Receive LPI Entry */
195 #define GMAC4_LPI_CTRL_STATUS_TLPIEX BIT(1) /* Transmit LPI Exit */
196 #define GMAC4_LPI_CTRL_STATUS_TLPIEN BIT(0) /* Transmit LPI Entry */
203 #define GMAC_DEBUG_TFCSTS_GEN_PAUSE 2
205 #define GMAC_DEBUG_TPESTS BIT(16)
206 #define GMAC_DEBUG_RFCFCSTS_MASK GENMASK(2, 1)
208 #define GMAC_DEBUG_RPESTS BIT(0)
211 #define GMAC_CONFIG_ARPEN BIT(31)
214 #define GMAC_CONFIG_IPC BIT(27)
217 #define GMAC_CONFIG_2K BIT(22)
218 #define GMAC_CONFIG_ACS BIT(20)
219 #define GMAC_CONFIG_BE BIT(18)
220 #define GMAC_CONFIG_JD BIT(17)
221 #define GMAC_CONFIG_JE BIT(16)
222 #define GMAC_CONFIG_PS BIT(15)
223 #define GMAC_CONFIG_FES BIT(14)
225 #define GMAC_CONFIG_DM BIT(13)
226 #define GMAC_CONFIG_LM BIT(12)
227 #define GMAC_CONFIG_DCRS BIT(9)
228 #define GMAC_CONFIG_TE BIT(1)
229 #define GMAC_CONFIG_RE BIT(0)
234 #define GMAC_CONFIG_EIPG_EN BIT(24)
240 #define GMAC_HW_FEAT_SAVLANINS BIT(27)
241 #define GMAC_HW_FEAT_ADDMAC BIT(18)
242 #define GMAC_HW_FEAT_RXCOESEL BIT(16)
243 #define GMAC_HW_FEAT_TXCOSEL BIT(14)
244 #define GMAC_HW_FEAT_EEESEL BIT(13)
245 #define GMAC_HW_FEAT_TSSEL BIT(12)
246 #define GMAC_HW_FEAT_ARPOFFSEL BIT(9)
247 #define GMAC_HW_FEAT_MMCSEL BIT(8)
248 #define GMAC_HW_FEAT_MGKSEL BIT(7)
249 #define GMAC_HW_FEAT_RWKSEL BIT(6)
250 #define GMAC_HW_FEAT_SMASEL BIT(5)
251 #define GMAC_HW_FEAT_VLHASH BIT(4)
252 #define GMAC_HW_FEAT_PCSSEL BIT(3)
253 #define GMAC_HW_FEAT_HDSEL BIT(2)
254 #define GMAC_HW_FEAT_GMIISEL BIT(1)
255 #define GMAC_HW_FEAT_MIISEL BIT(0)
260 #define GMAC_HW_FEAT_AVSEL BIT(20)
261 #define GMAC_HW_TSOEN BIT(18)
262 #define GMAC_HW_FEAT_SPHEN BIT(17)
277 #define GMAC_HW_FEAT_TBSSEL BIT(27)
278 #define GMAC_HW_FEAT_FPESEL BIT(26)
281 #define GMAC_HW_FEAT_ESTSEL BIT(16)
284 #define GMAC_HW_FEAT_FRPSEL BIT(10)
285 #define GMAC_HW_FEAT_DVLAN BIT(5)
286 #define GMAC_HW_FEAT_NRVF GENMASK(2, 0)
289 #define GMAC_CONFIG1_SAVE_EN BIT(24)
293 #define GMAC_GPO0 BIT(16)
294 #define GMAC_GPO1 BIT(17)
295 #define GMAC_GPO2 BIT(18)
296 #define GMAC_GPO3 BIT(19)
301 #define GMAC_HI_REG_AE BIT(31)
304 #define GMAC_L4DPIM0 BIT(21)
305 #define GMAC_L4DPM0 BIT(20)
306 #define GMAC_L4SPIM0 BIT(19)
307 #define GMAC_L4SPM0 BIT(18)
308 #define GMAC_L4PEN0 BIT(16)
309 #define GMAC_L3DAIM0 BIT(5)
310 #define GMAC_L3DAM0 BIT(4)
311 #define GMAC_L3SAIM0 BIT(3)
312 #define GMAC_L3SAM0 BIT(2)
313 #define GMAC_L3PEN0 BIT(0)
319 #define GMAC_TIMESTAMP_AUXTSTRIG BIT(2)
325 #define MTL_FRPE BIT(15)
331 #define MTL_OPERATION_RAA BIT(2)
332 #define MTL_OPERATION_RAA_SP (0x0 << 2)
333 #define MTL_OPERATION_RAA_WSP (0x1 << 2)
336 #define MTL_INT_QX(x) BIT(x)
352 addr = addrs->mtl_chan + (x * addrs->mtl_chan_offset); in mtl_chanx_base_addr()
365 #define MTL_OP_MODE_RSF BIT(5)
366 #define MTL_OP_MODE_TXQEN_MASK GENMASK(3, 2)
367 #define MTL_OP_MODE_TXQEN_AV BIT(2)
368 #define MTL_OP_MODE_TXQEN BIT(3)
369 #define MTL_OP_MODE_TSF BIT(1)
379 #define MTL_OP_MODE_TTC_96 (2 << MTL_OP_MODE_TTC_SHIFT)
395 #define MTL_OP_MODE_EHFC BIT(7)
402 #define MTL_OP_MODE_RTC_96 (2 << MTL_OP_MODE_RTC_SHIFT)
415 addr = addrs->mtl_ets_ctrl + (x * addrs->mtl_ets_ctrl_offset); in mtl_etsx_ctrl_base_addr()
422 #define MTL_ETS_CTRL_CC BIT(3)
423 #define MTL_ETS_CTRL_AVALG BIT(2)
435 addr = addrs->mtl_txq_weight + (x * addrs->mtl_txq_weight_offset); in mtl_txqx_weight_base_addr()
454 addr = addrs->mtl_send_slp_cred + (x * addrs->mtl_send_slp_cred_offset); in mtl_send_slp_credx_base_addr()
473 addr = addrs->mtl_high_cred + (x * addrs->mtl_high_cred_offset); in mtl_high_credx_base_addr()
492 addr = addrs->mtl_low_cred + (x * addrs->mtl_low_cred_offset); in mtl_low_credx_base_addr()
502 #define MTL_DEBUG_TXSTSFSTS BIT(5)
503 #define MTL_DEBUG_TXFSTS BIT(4)
504 #define MTL_DEBUG_TWCSTS BIT(3)
507 #define MTL_DEBUG_TRCSTS_MASK GENMASK(2, 1)
511 #define MTL_DEBUG_TRCSTS_TXW 2
513 #define MTL_DEBUG_TXPAUSED BIT(0)
520 #define MTL_DEBUG_RXFSTS_AT 2
522 #define MTL_DEBUG_RRCSTS_MASK GENMASK(2, 1)
526 #define MTL_DEBUG_RRCSTS_RSTAT 2
528 #define MTL_DEBUG_RWCSTS BIT(0)
531 #define MTL_RX_OVERFLOW_INT_EN BIT(24)
532 #define MTL_RX_OVERFLOW_INT BIT(16)
543 #define MTL_DEBUG_TXSTSFSTS BIT(5)
544 #define MTL_DEBUG_TXFSTS BIT(4)
545 #define MTL_DEBUG_TWCSTS BIT(3)
548 #define MTL_DEBUG_TRCSTS_MASK GENMASK(2, 1)
552 #define MTL_DEBUG_TRCSTS_TXW 2
554 #define MTL_DEBUG_TXPAUSED BIT(0)
561 #define MTL_DEBUG_RXFSTS_AT 2
563 #define MTL_DEBUG_RRCSTS_MASK GENMASK(2, 1)
567 #define MTL_DEBUG_RRCSTS_RSTAT 2
569 #define MTL_DEBUG_RWCSTS BIT(0)
572 #define GMAC_PHYIF_CTRLSTATUS_TC BIT(0)
573 #define GMAC_PHYIF_CTRLSTATUS_LUD BIT(1)
574 #define GMAC_PHYIF_CTRLSTATUS_SMIDRXS BIT(4)
575 #define GMAC_PHYIF_CTRLSTATUS_LNKMOD BIT(16)
578 #define GMAC_PHYIF_CTRLSTATUS_LNKSTS BIT(19)
579 #define GMAC_PHYIF_CTRLSTATUS_JABTO BIT(20)
580 #define GMAC_PHYIF_CTRLSTATUS_FALSECARDET BIT(21)