IB/umad: Fix bit ordering and 32-on-64 problems on big endian systems