Lines Matching refs:hash
46 uint32_t hash = 0; in md_byte_hash() local
51 hash = (hash >> 27) | (hash << 5) | bp[i]; in md_byte_hash()
54 return (hash); in md_byte_hash()
61 uint32_t hash; in md_find_string() local
63 hash = md_byte_hash((uint8_t *)strp, strlen(strp)); in md_find_string()
66 *hashp = hash; in md_find_string()
69 if (msp->hash == hash && strcmp(msp->strp, strp) == 0) in md_find_string()
80 uint32_t hash; in md_new_string() local
82 msp = md_find_string(mdp, strp, &hash); in md_new_string()
93 msp->hash = hash; in md_new_string()
107 uint32_t hash; in md_find_data_block() local
109 hash = md_byte_hash(datap, len); in md_find_data_block()
112 *hashp = hash; in md_find_data_block()
116 dbp->hash == hash && bcmp(dbp->datap, datap, len) == 0) in md_find_data_block()
127 uint32_t hash; in md_new_data_block() local
129 dbp = md_find_data_block(mdp, bufp, len, &hash); in md_new_data_block()
141 dbp->hash = hash; in md_new_data_block()