Lines Matching defs:alg
120 struct rate_control_alg *alg;
126 list_for_each_entry(alg, &rate_ctrl_algs, list) {
127 if (!strcmp(alg->ops->name, ops->name)) {
135 alg = kzalloc(sizeof(*alg), GFP_KERNEL);
136 if (alg == NULL) {
140 alg->ops = ops;
142 list_add_tail(&alg->list, &rate_ctrl_algs);
151 struct rate_control_alg *alg;
154 list_for_each_entry(alg, &rate_ctrl_algs, list) {
155 if (alg->ops == ops) {
156 list_del(&alg->list);
157 kfree(alg);
168 struct rate_control_alg *alg;
175 list_for_each_entry(alg, &rate_ctrl_algs, list) {
176 if (!strcmp(alg->ops->name, name)) {
177 ops = alg->ops;
200 /* try default if specific alg requested but not found */
205 /* try built-in one if specific alg requested but not found */