Lines Matching defs:len
76 static u32 crc32_mips_le_hw(u32 crc_, const u8 *p, unsigned int len)
81 while (len >= sizeof(u64)) {
86 len -= sizeof(u64);
89 if (len & sizeof(u32)) {
91 while (len >= sizeof(u32)) {
97 len -= sizeof(u32);
100 if (len & sizeof(u16)) {
107 if (len & sizeof(u8)) {
116 static u32 crc32c_mips_le_hw(u32 crc_, const u8 *p, unsigned int len)
121 while (len >= sizeof(u64)) {
126 len -= sizeof(u64);
129 if (len & sizeof(u32)) {
131 while (len >= sizeof(u32)) {
137 len -= sizeof(u32);
140 if (len & sizeof(u16)) {
147 if (len & sizeof(u8)) {
226 static int __chksum_finup(u32 crc, const u8 *data, unsigned int len, u8 *out)
228 put_unaligned_le32(crc32_mips_le_hw(crc, data, len), out);
232 static int __chksumc_finup(u32 crc, const u8 *data, unsigned int len, u8 *out)
234 put_unaligned_le32(~crc32c_mips_le_hw(crc, data, len), out);
239 unsigned int len, u8 *out)
243 return __chksum_finup(ctx->crc, data, len, out);
247 unsigned int len, u8 *out)
251 return __chksumc_finup(ctx->crc, data, len, out);