Loop offset is lower config_loopoffset bits. Bit mask of that should be bit 0 to bit config_loopoffset - 1. Change-Id: Id80b8e05ececdfd9c626832a03a5dd6b0db29839