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)
288 #define XGMAC_RXPI BIT(31)
289 #define XGMAC_NPE GENMASK(23, 16)
292 #define XGMAC_STARTBUSY BIT(31)
293 #define XGMAC_WRRDN BIT(16)
298 #define XGMAC_MEUIS BIT(1)
299 #define XGMAC_MECIS BIT(0)
301 #define XGMAC_RPCEIE BIT(12)
302 #define XGMAC_ECEIE BIT(8)
303 #define XGMAC_RXCEIE BIT(4)
304 #define XGMAC_TXCEIE BIT(0)
307 #define XGMAC_DPP_DISABLE BIT(0)
309 #define XGMAC_TQS GENMASK(25, 16)
310 #define XGMAC_TQS_SHIFT 16
317 #define XGMAC_TSF BIT(1)
323 #define XGMAC_CC BIT(3)
329 #define XGMAC_RQS GENMASK(25, 16)
330 #define XGMAC_RQS_SHIFT 16
331 #define XGMAC_EHFC BIT(7)
332 #define XGMAC_RSF BIT(5)
341 #define XGMAC_RXOIE BIT(16)
343 #define XGMAC_RXOVFIS BIT(16)
344 #define XGMAC_ABPSIS BIT(1)
345 #define XGMAC_TXUNFIS BIT(0)
350 #define XGMAC_SWR BIT(0)
354 #define XGMAC_RD_OSR_LMT GENMASK(21, 16)
355 #define XGMAC_RD_OSR_LMT_SHIFT 16
356 #define XGMAC_EN_LPI BIT(15)
357 #define XGMAC_LPI_XIT_PKT BIT(14)
358 #define XGMAC_AAL BIT(12)
359 #define XGMAC_EAME BIT(11)
361 #define XGMAC_BLEN256 BIT(7)
362 #define XGMAC_BLEN128 BIT(6)
363 #define XGMAC_BLEN64 BIT(5)
364 #define XGMAC_BLEN32 BIT(4)
365 #define XGMAC_BLEN16 BIT(3)
366 #define XGMAC_BLEN8 BIT(2)
367 #define XGMAC_BLEN4 BIT(1)
368 #define XGMAC_UNDEF BIT(0)
378 #define XGMAC_FTOV BIT(0)
381 #define XGMAC_MCSIS BIT(31)
382 #define XGMAC_MSUIS BIT(29)
383 #define XGMAC_MSCIS BIT(28)
384 #define XGMAC_DEUIS BIT(1)
385 #define XGMAC_DECIS BIT(0)
387 #define XGMAC_DCEIE BIT(1)
388 #define XGMAC_TCEIE BIT(0)
392 #define XGMAC_SPH BIT(24)
393 #define XGMAC_PBLx8 BIT(16)
395 #define XGMAC_EDSE BIT(28)
396 #define XGMAC_TxPBL GENMASK(21, 16)
397 #define XGMAC_TxPBL_SHIFT 16
398 #define XGMAC_TSE BIT(12)
399 #define XGMAC_OSP BIT(4)
400 #define XGMAC_TXST BIT(0)
402 #define XGMAC_RxPBL GENMASK(21, 16)
403 #define XGMAC_RxPBL_SHIFT 16
406 #define XGMAC_RXST BIT(0)
416 #define XGMAC_NIE BIT(15)
417 #define XGMAC_AIE BIT(14)
418 #define XGMAC_RBUE BIT(7)
419 #define XGMAC_RIE BIT(6)
420 #define XGMAC_TBUE BIT(2)
421 #define XGMAC_TIE BIT(0)
429 #define XGMAC_NIS BIT(15)
430 #define XGMAC_AIS BIT(14)
431 #define XGMAC_FBE BIT(12)
432 #define XGMAC_RBU BIT(7)
433 #define XGMAC_RI BIT(6)
434 #define XGMAC_TBU BIT(2)
435 #define XGMAC_TPS BIT(1)
436 #define XGMAC_TI BIT(0)
446 #define XGMAC_TDES0_LTV BIT(31)
449 #define XGMAC_TDES2_IVT GENMASK(31, 16)
450 #define XGMAC_TDES2_IVT_SHIFT 16
451 #define XGMAC_TDES2_IOC BIT(31)
452 #define XGMAC_TDES2_TTSE BIT(30)
453 #define XGMAC_TDES2_B2L GENMASK(29, 16)
454 #define XGMAC_TDES2_B2L_SHIFT 16
458 #define XGMAC_TDES3_OWN BIT(31)
459 #define XGMAC_TDES3_CTXT BIT(30)
460 #define XGMAC_TDES3_FD BIT(29)
461 #define XGMAC_TDES3_LD BIT(28)
464 #define XGMAC_TDES3_TCMSSV BIT(26)
467 #define XGMAC_TDES3_TBSV BIT(24)
472 #define XGMAC_TDES3_TSE BIT(18)
473 #define XGMAC_TDES3_IVLTV BIT(17)
474 #define XGMAC_TDES3_CIC GENMASK(17, 16)
475 #define XGMAC_TDES3_CIC_SHIFT 16
477 #define XGMAC_TDES3_VLTV BIT(16)
481 #define XGMAC_RDES3_OWN BIT(31)
482 #define XGMAC_RDES3_CTXT BIT(30)
483 #define XGMAC_RDES3_IOC BIT(30)
484 #define XGMAC_RDES3_LD BIT(28)
485 #define XGMAC_RDES3_CDA BIT(27)
486 #define XGMAC_RDES3_RSV BIT(26)
493 #define XGMAC_RDES3_ES BIT(15)
495 #define XGMAC_RDES3_TSD BIT(6)
496 #define XGMAC_RDES3_TSA BIT(4)