Lines Matching refs:slot
115 uint32_t hv, slot; in ps_sd_new() local
129 slot = hv & data->hash_max; in ps_sd_new()
138 sd->next = data->hash[slot]; in ps_sd_new()
139 data->hash[slot] = sd; in ps_sd_new()
149 ps_mm_debug(("inserting %s(%p) into slot %d\n", key, sd, slot)); in ps_sd_new()
156 uint32_t slot; in ps_sd_destroy() local
158 slot = ps_sd_hash(sd->key, strlen(sd->key)) & data->hash_max; in ps_sd_destroy()
160 if (data->hash[slot] == sd) { in ps_sd_destroy()
161 data->hash[slot] = sd->next; in ps_sd_destroy()
166 for (prev = data->hash[slot]; prev->next != sd; prev = prev->next); in ps_sd_destroy()
181 uint32_t hv, slot; in ps_sd_lookup() local
185 slot = hv & data->hash_max; in ps_sd_lookup()
187 for (prev = NULL, ret = data->hash[slot]; ret; prev = ret, ret = ret->next) { in ps_sd_lookup()
193 if (ret && rw && ret != data->hash[slot]) { in ps_sd_lookup()
199 ret->next = data->hash[slot]; in ps_sd_lookup()
200 data->hash[slot] = ret; in ps_sd_lookup()
203 ps_mm_debug(("lookup(%s): ret=%p,hv=%u,slot=%d\n", key, ret, hv, slot)); in ps_sd_lookup()