Lines Matching defs:alg
128 struct rate_control_alg *alg;
134 list_for_each_entry(alg, &rate_ctrl_algs, list) {
135 if (!strcmp(alg->ops->name, ops->name)) {
143 alg = kzalloc(sizeof(*alg), GFP_KERNEL);
144 if (alg == NULL) {
148 alg->ops = ops;
150 list_add_tail(&alg->list, &rate_ctrl_algs);
159 struct rate_control_alg *alg;
162 list_for_each_entry(alg, &rate_ctrl_algs, list) {
163 if (alg->ops == ops) {
164 list_del(&alg->list);
165 kfree(alg);
176 struct rate_control_alg *alg;
183 list_for_each_entry(alg, &rate_ctrl_algs, list) {
184 if (!strcmp(alg->ops->name, name)) {
185 ops = alg->ops;
208 /* try default if specific alg requested but not found */
213 /* try built-in one if specific alg requested but not found */