H A D | xgbe-common.h | 1450 #define GET_BITS(_var, _index, _width) \ 1451 (((_var) >> (_index)) & ((0x1 << (_width)) - 1)) 1453 #define SET_BITS(_var, _index, _width, _val) \ 1455 (_var) &= ~(((0x1 << (_width)) - 1) << (_index)); \ 1456 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 1459 #define GET_BITS_LE(_var, _index, _width) \ 1460 ((le32_to_cpu((_var)) >> (_index)) & ((0x1 << (_width)) - 1)) 1462 #define SET_BITS_LE(_var, _index, _width, _val) \ 1464 (_var) &= cpu_to_le32(~(((0x1 << (_width)) - 1) << (_index))); \ 1465 (_var) | 1434 GET_BITS(_var,_index,_width) global() argument 1437 SET_BITS(_var,_index,_width,_val) global() argument 1443 GET_BITS_LE(_var,_index,_width) global() argument 1446 SET_BITS_LE(_var,_index,_width,_val) global() argument 1461 XGMAC_GET_BITS(_var,_prefix,_field) global() argument 1466 XGMAC_SET_BITS(_var,_prefix,_field,_val) global() argument 1471 XGMAC_GET_BITS_LE(_var,_prefix,_field) global() argument 1476 XGMAC_SET_BITS_LE(_var,_prefix,_field,_val) global() argument 1562 XPCS_GET_BITS(_var,_prefix,_field) global() argument 1567 XPCS_SET_BITS(_var,_prefix,_field,_val) global() argument 1587 XSIR_GET_BITS(_var,_prefix,_field) global() argument 1592 XSIR_SET_BITS(_var,_prefix,_field,_val) global() argument 1663 XP_GET_BITS(_var,_prefix,_field) global() argument 1668 XP_SET_BITS(_var,_prefix,_field,_val) global() argument 1697 XI2C_GET_BITS(_var,_prefix,_field) global() argument 1702 XI2C_SET_BITS(_var,_prefix,_field,_val) global() argument [all...] |