Lines Matching full:len
119 static ext2_dirhash_t dx_hack_hash (const char *name, int len,
127 while (len--) {
141 static void str2hashbuf(const char *msg, int len, __u32 *buf, int num,
149 pad = (__u32)len | ((__u32)len << 8);
153 if (len > num*4)
154 len = num * 4;
155 for (i=0; i < len; i++) {
177 * Returns the hash of a filename. If len is 0 and name is NULL, then
189 errcode_t ext2fs_dirhash(int version, const char *name, int len,
221 hash = dx_hack_hash(name, len, unsigned_flag);
227 while (len > 0) {
228 str2hashbuf(p, len, in, 8, unsigned_flag);
230 len -= 32;
240 while (len > 0) {
241 str2hashbuf(p, len, in, 4, unsigned_flag);
243 len -= 16;