Lines Matching refs:softp

271 	ipf_pool_softc_t *softp;
273 KMALLOC(softp, ipf_pool_softc_t *);
274 if (softp == NULL) {
279 bzero((char *)softp, sizeof(*softp));
281 softp->ipf_radix = ipf_rx_create();
282 if (softp->ipf_radix == NULL) {
284 KFREE(softp);
288 return softp;
305 ipf_pool_softc_t *softp = arg;
307 ipf_rx_init(softp->ipf_radix);
329 ipf_pool_softc_t *softp = arg;
336 for (q = softp->ipf_pool_list[i + 1]; (p = q) != NULL; ) {
358 ipf_pool_softc_t *softp = arg;
360 ipf_rx_destroy(softp->ipf_radix);
362 KFREE(softp);
602 ipf_pool_softc_t *softp = arg;
611 bcopy((char *)&softp->ipf_pool_stats, (char *)&stats, sizeof(stats));
615 stats.ipls_list[i] = softp->ipf_pool_list[i];
619 stats.ipls_list[unit] = ipf_pool_exists(softp, unit - 1,
622 stats.ipls_list[unit] = softp->ipf_pool_list[unit];
641 /* Parameters: softp(I) - pointer to soft context pool information */
649 ipf_pool_exists(softp, unit, name)
650 ipf_pool_softc_t *softp;
659 for (p = softp->ipf_pool_list[i]; p != NULL;
669 for (p = softp->ipf_pool_list[unit + 1]; p != NULL;
696 ipf_pool_softc_t *softp = arg;
699 p = ipf_pool_exists(softp, unit, name);
736 /* Parameters: softp(I) - pointer to soft context pool information */
745 ipf_pool_findeq(softp, ipo, addr, mask)
746 ipf_pool_softc_t *softp;
827 /* softp(I) - pointer to soft context pool information */
836 ipf_pool_insert_node(softc, softp, ipo, node)
838 ipf_pool_softc_t *softp;
883 for (n = softp->ipf_node_explist; n != NULL; n = n->ipn_dnext) {
899 if (softp->ipf_node_explist == NULL) {
900 softp->ipf_node_explist = x;
901 x->ipn_pdnext = &softp->ipf_node_explist;
926 softp->ipf_pool_stats.ipls_nodes++;
936 /* softp(I) - pointer to soft context pool information */
951 ipf_pool_create(softc, softp, op)
953 ipf_pool_softc_t *softp;
963 h = ipf_pool_exists(softp, unit, op->iplo_name);
981 if (ipf_rx_inithead(softp->ipf_radix, &h->ipo_head) != 0) {
999 for (p = softp->ipf_pool_list[unit + 1]; p != NULL; ) {
1008 p = softp->ipf_pool_list[unit + 1];
1019 h->ipo_radix = softp->ipf_radix;
1024 h->ipo_next = softp->ipf_pool_list[unit + 1];
1025 if (softp->ipf_pool_list[unit + 1] != NULL)
1026 softp->ipf_pool_list[unit + 1]->ipo_pnext = &h->ipo_next;
1027 h->ipo_pnext = &softp->ipf_pool_list[unit + 1];
1028 softp->ipf_pool_list[unit + 1] = h;
1030 softp->ipf_pool_stats.ipls_pools++;
1047 ipf_pool_remove_node(softc, softp, ipo, ipe)
1049 ipf_pool_softc_t *softp;
1072 ipf_pool_node_deref(softp, ipe);
1084 /* softp(I) - pointer to soft context pool information */
1098 ipf_pool_destroy(softc, softp, unit, name)
1100 ipf_pool_softc_t *softp;
1106 ipo = ipf_pool_exists(softp, unit, name);
1113 ipf_pool_clearnodes(softc, softp, ipo);
1118 ipf_pool_free(softc, softp, ipo);
1144 ipf_pool_softc_t *softp = arg;
1152 for (q = softp->ipf_pool_list[i + 1]; (p = q) != NULL; ) {
1154 err = ipf_pool_destroy(softc, softp, i, p->ipo_name);
1167 /* softp(I) - pointer to soft context pool information */
1180 ipf_pool_free(softc, softp, ipo)
1182 ipf_pool_softc_t *softp;
1186 ipf_pool_clearnodes(softc, softp, ipo);
1194 softp->ipf_pool_stats.ipls_pools--;
1202 /* softp(I) - pointer to soft context pool information */
1209 ipf_pool_clearnodes(softc, softp, ipo)
1211 ipf_pool_softc_t *softp;
1217 ipf_pool_remove_node(softc, softp, ipo, n);
1256 /* Parameters: softp(I) - pointer to soft context pool information */
1264 ipf_pool_node_deref(softp, ipn)
1265 ipf_pool_softc_t *softp;
1273 softp->ipf_pool_stats.ipls_nodes--;
1294 ipf_pool_softc_t *softp = arg;
1313 nextipo = softp->ipf_pool_list[(int)ilp->ili_unit + 1];
1377 ipf_pool_deref(softc, softp, ipo);
1390 ipf_pool_node_deref(softp, node);
1419 ipf_pool_softc_t *softp = arg;
1430 ipf_pool_deref(softc, softp, (ip_pool_t *)data);
1434 ipf_pool_node_deref(softp, (ip_pool_node_t *)data);
1458 ipf_pool_softc_t *softp = arg;
1461 while ((n = softp->ipf_node_explist) != NULL) {
1468 ipf_pool_remove_node(softc, softp, n->ipn_owner, n);
1481 ipf_pool_softc_t *softp = arg;
1487 for (ipl = softp->ipf_pool_list[i]; ipl != NULL;