[E1000E]: convert register test macros to functions