Lines Matching refs:hash
91 __u32 hash;
100 /* Initialize the default seed for the hash checksum functions */
114 hash = buf[0];
115 hmdfs_hash = hash & ~HMDFS_HASH_COL_BIT;
695 if (le32_to_cpu(de->hash) == namehash &&
701 le32_to_cpu(de->hash) == namehash &&
728 bidx = get_bucketaddr(level, ctx->hash % nbucket) * BUCKET_BLOCKS;
736 de = find_in_block(dentry_blk, ctx->hash, ctx->name,
765 ctx->hash = hmdfs_dentry_hash(ctx->name, ctx->sbi->s_case_sensitive);
812 de->hash = cpu_to_le32(name_hash);
1168 static void concat_cachefile_name(char *s, uint64_t hash, const char *id,
1174 snprintf(s + offset, PATH_MAX - offset, "%016llx", hash);
1176 snprintf(s + offset, PATH_MAX - offset, "%s_%016llx", id, hash);
1183 uint64_t hash;
1198 hash = path_hash(relative_path, strlen(relative_path),
1200 concat_cachefile_name(fullname, hash, cid, server);
1415 uint64_t hash;
1459 hash = path_hash(relative_path, strlen(relative_path),
1461 concat_cachefile_name(cache_file_name, hash, CLOUD_CID, false);
1745 static int get_cid_and_hash(const char *name, uint64_t *hash, char *cid)
1760 if (sscanf(++p, "%llx", hash) != 1)
1771 uint64_t hash;
1804 if (get_cid_and_hash(name, &hash, cid)) {
1805 hmdfs_err("get cid and hash fail");