Lines Matching defs:hc_head
235 V_tcp_hostcache.hashbase = (struct hc_head *)
236 malloc(V_tcp_hostcache.hashsize * sizeof(struct hc_head),
295 struct hc_head *hc_head;
311 hc_head = &V_tcp_hostcache.hashbase[hash];
318 THC_LOCK(&hc_head->hch_mtx);
323 TAILQ_FOREACH(hc_entry, &hc_head->hch_bucket, rmx_q) {
339 THC_UNLOCK(&hc_head->hch_mtx);
354 struct hc_head *hc_head;
370 hc_head = &V_tcp_hostcache.hashbase[hash];
377 THC_LOCK(&hc_head->hch_mtx);
382 if (hc_head->hch_length >= V_tcp_hostcache.bucket_limit ||
384 hc_entry = TAILQ_LAST(&hc_head->hch_bucket, hc_qhead);
395 THC_UNLOCK(&hc_head->hch_mtx);
398 TAILQ_REMOVE(&hc_head->hch_bucket, hc_entry, rmx_q);
416 THC_UNLOCK(&hc_head->hch_mtx);
430 hc_entry->rmx_head = hc_head;
436 TAILQ_INSERT_HEAD(&hc_head->hch_bucket, hc_entry, rmx_q);