Lines Matching refs:hosts
61 } hosts;
103 LIST_FOREACH(host, &hosts.hash[index], hash) {
108 if (hosts.count < HOST_POOL_SIZE) {
110 host = &hosts.entries[hosts.count++];
114 hosts.count++;
119 STAILQ_FOREACH(host, &hosts.pool, link) {
128 STAILQ_REMOVE_AFTER(&hosts.pool, prev, link);
129 else STAILQ_REMOVE_HEAD(&hosts.pool, link);
134 LIST_INSERT_HEAD(&hosts.hash[index], host, hash);
135 STAILQ_INSERT_TAIL(&hosts.pool, host, link);
286 memset(&hosts, 0, sizeof(hosts));
291 STAILQ_INIT(&hosts.pool);
296 LIST_INIT(&hosts.hash[index]);
313 log_cache("%-6s pool(%u x hash) = %u, entries(%u x %u) = %u", "hosts",
314 HASH_SIZE, sizeof(hosts), HOST_POOL_SIZE, sizeof(struct host_entry),
554 while ((host = STAILQ_FIRST(&hosts.pool))) {
555 STAILQ_REMOVE_HEAD(&hosts.pool, link);