Lines Matching defs:len
103 static __u32 dx_hack_hash_unsigned(const char *name, int len)
108 while (len--) {
119 static __u32 dx_hack_hash_signed(const char *name, int len)
124 while (len--) {
135 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num)
141 pad = (__u32)len | ((__u32)len << 8);
145 if (len > num*4)
146 len = num * 4;
147 for (i = 0; i < len; i++) {
161 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num)
167 pad = (__u32)len | ((__u32)len << 8);
171 if (len > num*4)
172 len = num * 4;
173 for (i = 0; i < len; i++) {
188 * Returns the hash of a filename. If len is 0 and name is NULL, then
200 static int __ext4fs_dirhash(const struct inode *dir, const char *name, int len,
229 hash = dx_hack_hash_unsigned(name, len);
232 hash = dx_hack_hash_signed(name, len);
239 while (len > 0) {
240 (*str2hashbuf)(p, len, in, 8);
242 len -= 32;
253 while (len > 0) {
254 (*str2hashbuf)(p, len, in, 4);
256 len -= 16;
264 struct qstr qname = QSTR_INIT(name, len);
294 int ext4fs_dirhash(const struct inode *dir, const char *name, int len,
301 struct qstr qstr = {.name = name, .len = len };
303 if (len && IS_CASEFOLDED(dir) &&
322 return __ext4fs_dirhash(dir, name, len, hinfo);