Home | History | Annotate | Download | only in netinet

Lines Matching refs:softc

117 /* Parameters:  softc(I) - pointer to soft context main structure           */
122 ipf_lookup_soft_create(ipf_main_softc_t *softc)
135 softl->ipf_back[i] = (*(*l)->ipfl_create)(softc);
137 ipf_lookup_soft_destroy(softc, softl);
149 /* Parameters: softc(I) - pointer to soft context main structure */
155 ipf_lookup_soft_init(ipf_main_softc_t *softc, void *arg)
162 err = (*backends[i]->ipfl_init)(softc, softl->ipf_back[i]);
174 /* Parameters: softc(I) - pointer to soft context main structure */
180 ipf_lookup_soft_fini(ipf_main_softc_t *softc, void *arg)
187 (*backends[i]->ipfl_fini)(softc,
198 /* Parameters: softc(I) - pointer to soft context main structure */
204 ipf_lookup_expire(ipf_main_softc_t *softc)
206 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
209 WRITE_ENTER(&softc->ipf_poolrw);
211 (*backends[i]->ipfl_expire)(softc, softl->ipf_back[i]);
212 RWLOCK_EXIT(&softc->ipf_poolrw);
219 /* Parameters: softc(I) - pointer to soft context main structure */
227 ipf_lookup_soft_destroy(ipf_main_softc_t *softc, void *arg)
234 (*backends[i]->ipfl_destroy)(softc,
245 /* Parameters: softc(I) - pointer to soft context main structure */
259 ipf_lookup_ioctl(ipf_main_softc_t *softc, void *data, ioctlcmd_t cmd,
273 WRITE_ENTER(&softc->ipf_poolrw);
274 err = ipf_lookup_addnode(softc, data, uid);
275 RWLOCK_EXIT(&softc->ipf_poolrw);
280 WRITE_ENTER(&softc->ipf_poolrw);
281 err = ipf_lookup_delnode(softc, data, uid);
282 RWLOCK_EXIT(&softc->ipf_poolrw);
286 WRITE_ENTER(&softc->ipf_poolrw);
287 err = ipf_lookup_addtable(softc, data);
288 RWLOCK_EXIT(&softc->ipf_poolrw);
292 WRITE_ENTER(&softc->ipf_poolrw);
293 err = ipf_lookup_deltable(softc, data);
294 RWLOCK_EXIT(&softc->ipf_poolrw);
299 WRITE_ENTER(&softc->ipf_poolrw);
300 err = ipf_lookup_stats(softc, data);
301 RWLOCK_EXIT(&softc->ipf_poolrw);
305 WRITE_ENTER(&softc->ipf_poolrw);
306 err = ipf_lookup_flush(softc, data);
307 RWLOCK_EXIT(&softc->ipf_poolrw);
311 err = ipf_lookup_iterate(softc, data, uid, ctx);
315 err = ipf_lookup_deltok(softc, data, uid, ctx);
331 /* Parameters: softc(I) - pointer to soft context main structure */
339 ipf_lookup_addnode(ipf_main_softc_t *softc, void *data, int uid)
341 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
363 err = (*(*l)->ipfl_node_add)(softc,
382 /* Parameters: softc(I) - pointer to soft context main structure */
389 ipf_lookup_delnode(ipf_main_softc_t *softc, void *data, int uid)
391 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
413 err = (*(*l)->ipfl_node_del)(softc, softl->ipf_back[i],
430 /* Parameters: softc(I) - pointer to soft context main structure */
437 ipf_lookup_addtable(ipf_main_softc_t *softc, void *data)
439 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
460 err = (*(*l)->ipfl_table_add)(softc,
491 /* Parameters: softc(I) - pointer to soft context main structure */
498 ipf_lookup_deltable(ipf_main_softc_t *softc, void *data)
500 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
521 err = (*(*l)->ipfl_table_del)(softc,
539 /* Parameters: softc(I) - pointer to soft context main structure */
545 ipf_lookup_stats(ipf_main_softc_t *softc, void *data)
547 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
567 err = (*(*l)->ipfl_stats_get)(softc,
586 /* Parameters: softc(I) - pointer to soft context main structure */
593 ipf_lookup_flush(ipf_main_softc_t *softc, void *data)
595 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
622 num += (*(*l)->ipfl_flush)(softc,
643 /* Parameters: softc(I) - pointer to soft context main structure */
651 ipf_lookup_deref(ipf_main_softc_t *softc, int type, void *ptr)
653 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
661 WRITE_ENTER(&softc->ipf_poolrw);
662 (*backends[i]->ipfl_table_deref)(softc,
665 RWLOCK_EXIT(&softc->ipf_poolrw);
675 /* Parameters: softc(I) - pointer to soft context main structure */
683 ipf_lookup_iterate(ipf_main_softc_t *softc, void *data, int uid, void *ctx)
685 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
691 err = ipf_inobj(softc, data, NULL, &iter, IPFOBJ_LOOKUPITER);
706 token = ipf_token_find(softc, iter.ili_key, uid, ctx);
715 err = (*backends[i]->ipfl_iter_next)(softc,
728 WRITE_ENTER(&softc->ipf_tokens);
729 ipf_token_deref(softc, token);
730 RWLOCK_EXIT(&softc->ipf_tokens);
739 /* Parameters: softc(I) - pointer to soft context main structure */
750 ipf_lookup_iterderef(ipf_main_softc_t *softc, u_32_t type, void *data)
752 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
763 WRITE_ENTER(&softc->ipf_poolrw);
767 (*backends[i]->ipfl_iter_deref)(softc,
775 RWLOCK_EXIT(&softc->ipf_poolrw);
782 /* Parameters: softc(I) - pointer to soft context main structure */
792 ipf_lookup_deltok(ipf_main_softc_t *softc, void *data, int uid, void *ctx)
800 error = ipf_token_del(softc, key, uid, ctx);
809 /* Parameters: softc(I) - pointer to soft context main structure */
822 ipf_lookup_res_num(ipf_main_softc_t *softc, int unit, u_int type, u_int number,
829 return ipf_lookup_res_name(softc, unit, type, name, funcptr);
836 /* Parameters: softc(I) - pointer to soft context main structure */
849 ipf_lookup_res_name(ipf_main_softc_t *softc, int unit, u_int type, char *name,
852 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
857 READ_ENTER(&softc->ipf_poolrw);
876 RWLOCK_EXIT(&softc->ipf_poolrw);
885 /* Parameters: softc(I) - pointer to soft context main structure */
894 ipf_lookup_find_htable(ipf_main_softc_t *softc, int unit, char *name)
896 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
901 READ_ENTER(&softc->ipf_poolrw);
909 RWLOCK_EXIT(&softc->ipf_poolrw);
918 /* Parameters: softc(I) - pointer to soft context main structure */
926 ipf_lookup_sync(ipf_main_softc_t *softc, void *ifp)
928 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
932 READ_ENTER(&softc->ipf_poolrw);
936 (*(*l)->ipfl_sync)(softc, softl->ipf_back[i]);
938 RWLOCK_EXIT(&softc->ipf_poolrw);
944 ipf_lookup_dump(softc, arg)
945 ipf_main_softc_t *softc;
948 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft;
954 ipf_pool_dump(softc, softl->ipf_back[i]);
960 ipf_htable_dump(softc, softl->ipf_back[i]);