Lines Matching +full:16 +full:- +full:bit
1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
28 #define XGMAC_CONFIG_JD BIT(16)
29 #define XGMAC_CONFIG_TE BIT(0)
32 #define XGMAC_CONFIG_ARPEN BIT(31)
33 #define XGMAC_CONFIG_GPSL GENMASK(29, 16)
34 #define XGMAC_CONFIG_GPSL_SHIFT 16
38 #define XGMAC_CONFIG_S2KP BIT(11)
39 #define XGMAC_CONFIG_LM BIT(10)
40 #define XGMAC_CONFIG_IPC BIT(9)
41 #define XGMAC_CONFIG_JE BIT(8)
42 #define XGMAC_CONFIG_WD BIT(7)
43 #define XGMAC_CONFIG_GPSLCE BIT(6)
44 #define XGMAC_CONFIG_CST BIT(2)
45 #define XGMAC_CONFIG_ACS BIT(1)
46 #define XGMAC_CONFIG_RE BIT(0)
50 #define XGMAC_FILTER_RA BIT(31)
51 #define XGMAC_FILTER_IPFE BIT(20)
52 #define XGMAC_FILTER_VTFE BIT(16)
53 #define XGMAC_FILTER_HPF BIT(10)
54 #define XGMAC_FILTER_PCF BIT(7)
55 #define XGMAC_FILTER_PM BIT(4)
56 #define XGMAC_FILTER_HMC BIT(2)
57 #define XGMAC_FILTER_PR BIT(0)
61 #define XGMAC_VLAN_EDVLP BIT(26)
62 #define XGMAC_VLAN_VTHM BIT(25)
63 #define XGMAC_VLAN_DOVLTC BIT(20)
64 #define XGMAC_VLAN_ESVL BIT(18)
65 #define XGMAC_VLAN_ETV BIT(16)
69 #define XGMAC_VLAN_VLTI BIT(20)
70 #define XGMAC_VLAN_CSVL BIT(19)
71 #define XGMAC_VLAN_VLC GENMASK(17, 16)
72 #define XGMAC_VLAN_VLC_SHIFT 16
81 #define XGMAC_TACPQE BIT(23)
82 #define XGMAC_DCBCPQ GENMASK(19, 16)
83 #define XGMAC_DCBCPQ_SHIFT 16
84 #define XGMAC_MCBCQEN BIT(15)
96 #define XGMAC_LPIIS BIT(5)
97 #define XGMAC_PMTIS BIT(4)
99 #define XGMAC_TSIE BIT(12)
100 #define XGMAC_LPIIE BIT(5)
101 #define XGMAC_PMTIE BIT(4)
104 #define XGMAC_PT GENMASK(31, 16)
105 #define XGMAC_PT_SHIFT 16
106 #define XGMAC_TFE BIT(1)
108 #define XGMAC_RFE BIT(0)
110 #define XGMAC_GLBLUCAST BIT(9)
111 #define XGMAC_RWKPKTEN BIT(2)
112 #define XGMAC_MGKPKTEN BIT(1)
113 #define XGMAC_PWRDWN BIT(0)
115 #define XGMAC_TXCGE BIT(21)
116 #define XGMAC_LPITXA BIT(19)
117 #define XGMAC_PLS BIT(17)
118 #define XGMAC_LPITXEN BIT(16)
119 #define XGMAC_RLPIEX BIT(3)
120 #define XGMAC_RLPIEN BIT(2)
121 #define XGMAC_TLPIEX BIT(1)
122 #define XGMAC_TLPIEN BIT(0)
125 #define XGMAC_HWFEAT_EDMA BIT(31)
126 #define XGMAC_HWFEAT_EDIFFC BIT(30)
127 #define XGMAC_HWFEAT_VXN BIT(29)
128 #define XGMAC_HWFEAT_SAVLANINS BIT(27)
131 #define XGMAC_HWFEAT_RXCOESEL BIT(16)
132 #define XGMAC_HWFEAT_TXCOESEL BIT(14)
133 #define XGMAC_HWFEAT_EEESEL BIT(13)
134 #define XGMAC_HWFEAT_TSSEL BIT(12)
135 #define XGMAC_HWFEAT_AVSEL BIT(11)
136 #define XGMAC_HWFEAT_RAVSEL BIT(10)
137 #define XGMAC_HWFEAT_ARPOFFSEL BIT(9)
138 #define XGMAC_HWFEAT_MMCSEL BIT(8)
139 #define XGMAC_HWFEAT_MGKSEL BIT(7)
140 #define XGMAC_HWFEAT_RWKSEL BIT(6)
141 #define XGMAC_HWFEAT_SMASEL BIT(5)
142 #define XGMAC_HWFEAT_VLHASH BIT(4)
143 #define XGMAC_HWFEAT_HDSEL BIT(3)
144 #define XGMAC_HWFEAT_GMIISEL BIT(1)
149 #define XGMAC_HWFEAT_RSSEN BIT(20)
150 #define XGMAC_HWFEAT_DBGMEMA BIT(19)
151 #define XGMAC_HWFEAT_TSOEN BIT(18)
152 #define XGMAC_HWFEAT_SPHEN BIT(17)
153 #define XGMAC_HWFEAT_DCBEN BIT(16)
155 #define XGMAC_HWFEAT_ADVTHWORD BIT(13)
156 #define XGMAC_HWFEAT_PTOEN BIT(12)
157 #define XGMAC_HWFEAT_OSTEN BIT(11)
159 #define XGMAC_HWFEAT_PFCEN BIT(5)
170 #define XGMAC_HWFEAT_TBSSEL BIT(27)
171 #define XGMAC_HWFEAT_FPESEL BIT(26)
172 #define XGMAC_HWFEAT_SGFSEL BIT(25)
175 #define XGMAC_HWFEAT_ESTSEL BIT(19)
176 #define XGMAC_HWFEAT_TTSFD GENMASK(18, 16)
178 #define XGMAC_HWFEAT_DVLAN BIT(13)
181 #define XGMAC_HWFEAT_POUOST BIT(8)
183 #define XGMAC_HWFEAT_CBTISEL BIT(4)
184 #define XGMAC_HWFEAT_FRPSEL BIT(3)
187 #define XGMAC_HWFEAT_EASP BIT(4)
191 #define XGMAC_PRTYEN BIT(1)
192 #define XGMAC_TMOUTEN BIT(0)
197 #define XGMAC_EFPE BIT(0)
200 #define XGMAC_AE BIT(31)
201 #define XGMAC_DCS GENMASK(19, 16)
202 #define XGMAC_DCS_SHIFT 16
205 #define XGMAC_IDDR GENMASK(16, 8)
208 #define XGMAC_TT BIT(1)
209 #define XGMAC_XB BIT(0)
212 #define XGMAC_L4DPIM0 BIT(21)
213 #define XGMAC_L4DPM0 BIT(20)
214 #define XGMAC_L4SPIM0 BIT(19)
215 #define XGMAC_L4SPM0 BIT(18)
216 #define XGMAC_L4PEN0 BIT(16)
219 #define XGMAC_L3DAIM0 BIT(5)
220 #define XGMAC_L3DAM0 BIT(4)
221 #define XGMAC_L3SAIM0 BIT(3)
222 #define XGMAC_L3SAM0 BIT(2)
223 #define XGMAC_L3PEN0 BIT(0)
225 #define XGMAC_L4DP0 GENMASK(31, 16)
226 #define XGMAC_L4DP0_SHIFT 16
234 #define XGMAC_UDP4TE BIT(3)
235 #define XGMAC_TCP4TE BIT(2)
236 #define XGMAC_IP2TE BIT(1)
237 #define XGMAC_RSSE BIT(0)
240 #define XGMAC_ADDRT BIT(2)
241 #define XGMAC_CT BIT(1)
242 #define XGMAC_OB BIT(0)
245 #define XGMAC_TXTSC BIT(15)
250 #define XGMAC_PPS_MAXIDX(x) ((((x) + 1) * 8) - 1)
255 GENMASK(XGMAC_PPS_MAXIDX(x) - 1, XGMAC_PPS_MAXIDX(x) - 2) & \
256 ((val) << (XGMAC_PPS_MAXIDX(x) - 2))
262 #define XGMAC_PPSENx(x) BIT(4 + (x) * 8)
265 #define XGMAC_TRGTBUSY0 BIT(31)
271 #define XGMAC_FRPE BIT(15)
276 #define XGMAC_RAA BIT(2)
282 #define XGMAC_QDDMACH BIT(7)
290 #define XGMAC_SSWL BIT(1)
291 #define XGMAC_EEST BIT(0)
300 #define XGMAC_GCRR BIT(2)
301 #define XGMAC_SRWO BIT(0)
304 #define XGMAC_RXPI BIT(31)
305 #define XGMAC_NPE GENMASK(23, 16)
308 #define XGMAC_STARTBUSY BIT(31)
309 #define XGMAC_WRRDN BIT(16)
314 #define XGMAC_MEUIS BIT(1)
315 #define XGMAC_MECIS BIT(0)
317 #define XGMAC_RPCEIE BIT(12)
318 #define XGMAC_ECEIE BIT(8)
319 #define XGMAC_RXCEIE BIT(4)
320 #define XGMAC_TXCEIE BIT(0)
323 #define XGMAC_DPP_DISABLE BIT(0)
325 #define XGMAC_TQS GENMASK(25, 16)
326 #define XGMAC_TQS_SHIFT 16
333 #define XGMAC_TSF BIT(1)
339 #define XGMAC_CC BIT(3)
345 #define XGMAC_RQS GENMASK(25, 16)
346 #define XGMAC_RQS_SHIFT 16
347 #define XGMAC_EHFC BIT(7)
348 #define XGMAC_RSF BIT(5)
357 #define XGMAC_RXOIE BIT(16)
359 #define XGMAC_RXOVFIS BIT(16)
360 #define XGMAC_ABPSIS BIT(1)
361 #define XGMAC_TXUNFIS BIT(0)
366 #define XGMAC_SWR BIT(0)
370 #define XGMAC_RD_OSR_LMT GENMASK(21, 16)
371 #define XGMAC_RD_OSR_LMT_SHIFT 16
372 #define XGMAC_EN_LPI BIT(15)
373 #define XGMAC_LPI_XIT_PKT BIT(14)
374 #define XGMAC_AAL BIT(12)
375 #define XGMAC_EAME BIT(11)
377 #define XGMAC_BLEN256 BIT(7)
378 #define XGMAC_BLEN128 BIT(6)
379 #define XGMAC_BLEN64 BIT(5)
380 #define XGMAC_BLEN32 BIT(4)
381 #define XGMAC_BLEN16 BIT(3)
382 #define XGMAC_BLEN8 BIT(2)
383 #define XGMAC_BLEN4 BIT(1)
384 #define XGMAC_UNDEF BIT(0)
394 #define XGMAC_FTOV BIT(0)
397 #define XGMAC_MCSIS BIT(31)
398 #define XGMAC_MSUIS BIT(29)
399 #define XGMAC_MSCIS BIT(28)
400 #define XGMAC_DEUIS BIT(1)
401 #define XGMAC_DECIS BIT(0)
403 #define XGMAC_DCEIE BIT(1)
404 #define XGMAC_TCEIE BIT(0)
408 #define XGMAC_SPH BIT(24)
409 #define XGMAC_PBLx8 BIT(16)
411 #define XGMAC_EDSE BIT(28)
412 #define XGMAC_TxPBL GENMASK(21, 16)
413 #define XGMAC_TxPBL_SHIFT 16
414 #define XGMAC_TSE BIT(12)
415 #define XGMAC_OSP BIT(4)
416 #define XGMAC_TXST BIT(0)
418 #define XGMAC_RxPBL GENMASK(21, 16)
419 #define XGMAC_RxPBL_SHIFT 16
422 #define XGMAC_RXST BIT(0)
432 #define XGMAC_NIE BIT(15)
433 #define XGMAC_AIE BIT(14)
434 #define XGMAC_RBUE BIT(7)
435 #define XGMAC_RIE BIT(6)
436 #define XGMAC_TBUE BIT(2)
437 #define XGMAC_TIE BIT(0)
445 #define XGMAC_NIS BIT(15)
446 #define XGMAC_AIS BIT(14)
447 #define XGMAC_FBE BIT(12)
448 #define XGMAC_RBU BIT(7)
449 #define XGMAC_RI BIT(6)
450 #define XGMAC_TBU BIT(2)
451 #define XGMAC_TPS BIT(1)
452 #define XGMAC_TI BIT(0)
462 #define XGMAC_TDES0_LTV BIT(31)
465 #define XGMAC_TDES2_IVT GENMASK(31, 16)
466 #define XGMAC_TDES2_IVT_SHIFT 16
467 #define XGMAC_TDES2_IOC BIT(31)
468 #define XGMAC_TDES2_TTSE BIT(30)
469 #define XGMAC_TDES2_B2L GENMASK(29, 16)
470 #define XGMAC_TDES2_B2L_SHIFT 16
474 #define XGMAC_TDES3_OWN BIT(31)
475 #define XGMAC_TDES3_CTXT BIT(30)
476 #define XGMAC_TDES3_FD BIT(29)
477 #define XGMAC_TDES3_LD BIT(28)
480 #define XGMAC_TDES3_TCMSSV BIT(26)
483 #define XGMAC_TDES3_TBSV BIT(24)
488 #define XGMAC_TDES3_TSE BIT(18)
489 #define XGMAC_TDES3_IVLTV BIT(17)
490 #define XGMAC_TDES3_CIC GENMASK(17, 16)
491 #define XGMAC_TDES3_CIC_SHIFT 16
493 #define XGMAC_TDES3_VLTV BIT(16)
497 #define XGMAC_RDES3_OWN BIT(31)
498 #define XGMAC_RDES3_CTXT BIT(30)
499 #define XGMAC_RDES3_IOC BIT(30)
500 #define XGMAC_RDES3_LD BIT(28)
501 #define XGMAC_RDES3_CDA BIT(27)
502 #define XGMAC_RDES3_RSV BIT(26)
509 #define XGMAC_RDES3_ES BIT(15)
511 #define XGMAC_RDES3_TSD BIT(6)
512 #define XGMAC_RDES3_TSA BIT(4)