Lines Matching refs:option

109 struct team_option_inst { /* One for each option instance */
112 struct team_option *option;
121 struct team_option *option;
123 list_for_each_entry(option, &team->option_list, list) {
124 if (strcmp(option->name, opt_name) == 0)
125 return option;
137 struct team_option *option)
142 if (opt_inst->option == option)
147 static int __team_option_inst_add(struct team *team, struct team_option *option,
154 array_size = option->array_size;
162 opt_inst->option = option;
168 if (option->init)
169 option->init(team, &opt_inst->info);
176 struct team_option *option)
180 if (!option->per_port) {
181 err = __team_option_inst_add(team, option, NULL);
188 __team_option_inst_del_option(team, option);
193 struct team_option *option)
198 if (opt_inst->option == option) {
211 if (opt_inst->option->per_port &&
220 struct team_option *option;
223 list_for_each_entry(option, &team->option_list, list) {
224 if (!option->per_port)
226 err = __team_option_inst_add(team, option, port);
251 const struct team_option *option,
262 for (i = 0; i < option_count; i++, option++) {
263 if (__team_find_option(team, option->name)) {
267 dst_opts[i] = kmemdup(option, sizeof(*option), GFP_KERNEL);
300 const struct team_option *option,
305 for (i = 0; i < option_count; i++, option++) {
308 del_opt = __team_find_option(team, option->name);
315 const struct team_option *option,
320 for (i = 0; i < option_count; i++, option++) {
323 del_opt = __team_find_option(team, option->name);
335 const struct team_option *option,
340 err = __team_options_register(team, option, option_count);
349 const struct team_option *option,
352 __team_options_mark_removed(team, option, option_count);
354 __team_options_unregister(team, option, option_count);
362 if (!opt_inst->option->getter)
365 opt_inst->option->getter(team, ctx);
373 if (!opt_inst->option->setter)
375 return opt_inst->option->setter(team, ctx);
2330 struct team_option *option = opt_inst->option;
2344 if (nla_put_string(skb, TEAM_ATTR_OPTION_NAME, option->name))
2350 if (opt_inst->option->array_size &&
2355 switch (option->type) {
2610 struct team_option *option = opt_inst->option;
2618 if (option->type != opt_type ||
2619 strcmp(option->name, opt_name) ||
2621 (option->array_size && !opt_is_array) ||