Lines Matching refs:algo

111 cc_refer(struct cc_algo *algo)  in cc_refer()  argument
114 refcount_acquire(&algo->cc_refcount); in cc_refer()
118 cc_release(struct cc_algo *algo) in cc_release() argument
121 refcount_release(&algo->cc_refcount); in cc_release()
126 cc_attach(struct tcpcb *tp, struct cc_algo *algo) in cc_attach() argument
132 CC_ALGO(tp) = algo; in cc_attach()
133 cc_refer(algo); in cc_attach()
140 struct cc_algo *algo; in cc_detach() local
143 algo = CC_ALGO(tp); in cc_detach()
145 cc_release(algo); in cc_detach()
198 struct cc_algo *algo; in cc_list_available() local
206 STAILQ_FOREACH(algo, &cc_list, entries) { in cc_list_available()
223 STAILQ_FOREACH(algo, &cc_list, entries) { in cc_list_available()
225 algo->name, in cc_list_available()
226 (algo == CC_DEFAULT_ALGO()) ? '*' : ' ', in cc_list_available()
227 algo->cc_refcount); in cc_list_available()
617 cc_stop_new_assignments(struct cc_algo *algo) in cc_stop_new_assignments() argument
620 if (cc_check_default(algo)) { in cc_stop_new_assignments()
625 algo->flags |= CC_MODULE_BEING_REMOVED; in cc_stop_new_assignments()
636 struct cc_algo *algo; in cc_modevent() local
640 algo = (struct cc_algo *)data; in cc_modevent()
644 if ((algo->cc_data_sz == NULL) && (algo->cb_init != NULL)) { in cc_modevent()
653 if (algo->mod_init != NULL) in cc_modevent()
654 err = algo->mod_init(); in cc_modevent()
656 err = cc_register_algo(algo); in cc_modevent()
663 err = cc_stop_new_assignments(algo); in cc_modevent()
671 if (cc_check_default(algo)) { in cc_modevent()
680 err = cc_deregister_algo_locked(algo); in cc_modevent()
682 if ((err == 0) && (algo->mod_destroy != NULL)) { in cc_modevent()
683 algo->mod_destroy(); in cc_modevent()