Lines Matching refs:hash
90 __u32 hash;
99 /* Initialize the default seed for the hash checksum functions */
113 hash = buf[0];
114 hmdfs_hash = hash & ~HMDFS_HASH_COL_BIT;
694 if (le32_to_cpu(de->hash) == namehash &&
700 le32_to_cpu(de->hash) == namehash &&
727 bidx = get_bucketaddr(level, ctx->hash % nbucket) * BUCKET_BLOCKS;
735 de = find_in_block(dentry_blk, ctx->hash, ctx->name,
764 ctx->hash = hmdfs_dentry_hash(ctx->name, ctx->sbi->s_case_sensitive);
811 de->hash = cpu_to_le32(name_hash);
1167 static void concat_cachefile_name(char *s, uint64_t hash, const char *id,
1173 snprintf(s + offset, PATH_MAX - offset, "%016llx", hash);
1175 snprintf(s + offset, PATH_MAX - offset, "%s_%016llx", id, hash);
1182 uint64_t hash;
1197 hash = path_hash(relative_path, strlen(relative_path),
1199 concat_cachefile_name(fullname, hash, cid, server);
1414 uint64_t hash;
1458 hash = path_hash(relative_path, strlen(relative_path),
1460 concat_cachefile_name(cache_file_name, hash, CLOUD_CID, false);
1744 static int get_cid_and_hash(const char *name, uint64_t *hash, char *cid)
1759 if (sscanf(++p, "%llx", hash) != 1)
1770 uint64_t hash;
1803 if (get_cid_and_hash(name, &hash, cid)) {
1804 hmdfs_err("get cid and hash fail");