Lines Matching refs:hash
35 struct lznt_hash hash[LZNT_CHUNK_SIZE]; member
52 const u8 **hash; in longest_match_std() local
58 hash = &(ctx->hash[hash_index].p1); in longest_match_std()
60 if (hash[0] >= ctx->unc && hash[0] < src && hash[0][0] == src[0] && in longest_match_std()
61 hash[0][1] == src[1] && hash[0][2] == src[2]) { in longest_match_std()
65 hash[0] + 3, ctx->max_len - 3); in longest_match_std()
68 if (hash[1] >= ctx->unc && hash[1] < src && hash[1][0] == src[0] && in longest_match_std()
69 hash[1][1] == src[1] && hash[1][2] == src[2]) { in longest_match_std()
73 hash[1] + 3, ctx->max_len - 3); in longest_match_std()
78 ctx->best_match = hash[1]; in longest_match_std()
81 ctx->best_match = hash[0]; in longest_match_std()
84 hash[1] = hash[0]; in longest_match_std()
85 hash[0] = src; in longest_match_std()
299 struct lznt *r = kzalloc(level ? offsetof(struct lznt, hash) in get_lznt_ctx()
328 memset(ctx->hash, 0, sizeof(ctx->hash)); in compress_lznt()