Lines Matching refs:slot
112 uint32_t hv, slot; in ps_sd_new() local
123 slot = hv & data->hash_max; in ps_sd_new()
132 sd->next = data->hash[slot]; in ps_sd_new()
133 data->hash[slot] = sd; in ps_sd_new()
143 ps_mm_debug(("inserting %s(%p) into slot %d\n", ZSTR_VAL(key), sd, slot)); in ps_sd_new()
150 uint32_t slot; in ps_sd_destroy() local
152 slot = ps_sd_hash(sd->key) & data->hash_max; in ps_sd_destroy()
154 if (data->hash[slot] == sd) { in ps_sd_destroy()
155 data->hash[slot] = sd->next; in ps_sd_destroy()
160 for (prev = data->hash[slot]; prev->next != sd; prev = prev->next); in ps_sd_destroy()
176 uint32_t hv, slot; in ps_sd_lookup() local
180 slot = hv & data->hash_max; in ps_sd_lookup()
182 for (prev = NULL, ret = data->hash[slot]; ret; prev = ret, ret = ret->next) { in ps_sd_lookup()
188 if (ret && rw && ret != data->hash[slot]) { in ps_sd_lookup()
194 ret->next = data->hash[slot]; in ps_sd_lookup()
195 data->hash[slot] = ret; in ps_sd_lookup()
198 ps_mm_debug(("lookup(%s): ret=%p,hv=%u,slot=%d\n", ZSTR_VAL(key), ret, hv, slot)); in ps_sd_lookup()