It should be a standard CRC-5 algorithm, but it was taken from the BITMAINtech driver (credit in the header). I didn't see another CRC-5 implementation yet in the bfgminer codebase.