Lines Matching defs:algo
111 cc_refer(struct cc_algo *algo)
114 refcount_acquire(&algo->cc_refcount);
118 cc_release(struct cc_algo *algo)
121 refcount_release(&algo->cc_refcount);
126 cc_attach(struct tcpcb *tp, struct cc_algo *algo)
132 CC_ALGO(tp) = algo;
133 cc_refer(algo);
140 struct cc_algo *algo;
143 algo = CC_ALGO(tp);
145 cc_release(algo);
174 /* Find algo with specified name and set it to default. */
198 struct cc_algo *algo;
206 STAILQ_FOREACH(algo, &cc_list, entries) {
223 STAILQ_FOREACH(algo, &cc_list, entries) {
225 algo->name,
226 (algo == CC_DEFAULT_ALGO()) ? '*' : ' ',
227 algo->cc_refcount);
307 /* Remove algo from cc_list so that new connections can't use it. */
628 cc_stop_new_assignments(struct cc_algo *algo)
631 if (cc_check_default(algo)) {
636 algo->flags |= CC_MODULE_BEING_REMOVED;
647 struct cc_algo *algo;
651 algo = (struct cc_algo *)data;
655 if ((algo->cc_data_sz == NULL) && (algo->cb_init != NULL)) {
664 if (algo->mod_init != NULL)
665 err = algo->mod_init();
667 err = cc_register_algo(algo);
674 err = cc_stop_new_assignments(algo);
682 if (cc_check_default(algo)) {
691 err = cc_deregister_algo_locked(algo);
693 if ((err == 0) && (algo->mod_destroy != NULL)) {
694 algo->mod_destroy();