Lines Matching refs:ctx

359 			   struct team_gsetter_ctx *ctx)
364 opt_inst->option->getter(team, ctx);
370 struct team_gsetter_ctx *ctx)
374 return opt_inst->option->setter(team, ctx);
1380 static void team_mode_option_get(struct team *team, struct team_gsetter_ctx *ctx)
1382 ctx->data.str_val = team->mode->kind;
1385 static int team_mode_option_set(struct team *team, struct team_gsetter_ctx *ctx)
1387 return team_change_mode(team, ctx->data.str_val);
1391 struct team_gsetter_ctx *ctx)
1393 ctx->data.u32_val = team->notify_peers.count;
1397 struct team_gsetter_ctx *ctx)
1399 team->notify_peers.count = ctx->data.u32_val;
1404 struct team_gsetter_ctx *ctx)
1406 ctx->data.u32_val = team->notify_peers.interval;
1410 struct team_gsetter_ctx *ctx)
1412 team->notify_peers.interval = ctx->data.u32_val;
1417 struct team_gsetter_ctx *ctx)
1419 ctx->data.u32_val = team->mcast_rejoin.count;
1423 struct team_gsetter_ctx *ctx)
1425 team->mcast_rejoin.count = ctx->data.u32_val;
1430 struct team_gsetter_ctx *ctx)
1432 ctx->data.u32_val = team->mcast_rejoin.interval;
1436 struct team_gsetter_ctx *ctx)
1438 team->mcast_rejoin.interval = ctx->data.u32_val;
1443 struct team_gsetter_ctx *ctx)
1445 struct team_port *port = ctx->info->port;
1447 ctx->data.bool_val = team_port_enabled(port);
1451 struct team_gsetter_ctx *ctx)
1453 struct team_port *port = ctx->info->port;
1455 if (ctx->data.bool_val)
1463 struct team_gsetter_ctx *ctx)
1465 struct team_port *port = ctx->info->port;
1467 ctx->data.bool_val = port->user.linkup;
1473 struct team_gsetter_ctx *ctx)
1475 struct team_port *port = ctx->info->port;
1477 port->user.linkup = ctx->data.bool_val;
1484 struct team_gsetter_ctx *ctx)
1486 struct team_port *port = ctx->info->port;
1488 ctx->data.bool_val = port->user.linkup_enabled;
1492 struct team_gsetter_ctx *ctx)
1494 struct team_port *port = ctx->info->port;
1496 port->user.linkup_enabled = ctx->data.bool_val;
1503 struct team_gsetter_ctx *ctx)
1505 struct team_port *port = ctx->info->port;
1507 ctx->data.s32_val = port->priority;
1511 struct team_gsetter_ctx *ctx)
1513 struct team_port *port = ctx->info->port;
1514 s32 priority = ctx->data.s32_val;
1524 struct team_gsetter_ctx *ctx)
1526 struct team_port *port = ctx->info->port;
1528 ctx->data.u32_val = port->queue_id;
1532 struct team_gsetter_ctx *ctx)
1534 struct team_port *port = ctx->info->port;
1535 u16 new_queue_id = ctx->data.u32_val;
2353 struct team_gsetter_ctx ctx;
2356 ctx.info = opt_inst_info;
2357 err = team_option_get(team, opt_inst, &ctx);
2380 if (nla_put_u32(skb, TEAM_ATTR_OPTION_DATA, ctx.data.u32_val))
2387 ctx.data.str_val))
2393 if (nla_put(skb, TEAM_ATTR_OPTION_DATA, ctx.data.bin_val.len,
2394 ctx.data.bin_val.ptr))
2400 if (ctx.data.bool_val &&
2407 if (nla_put_s32(skb, TEAM_ATTR_OPTION_DATA, ctx.data.s32_val))
2632 struct team_gsetter_ctx ctx;
2646 ctx.info = opt_inst_info;
2649 ctx.data.u32_val = nla_get_u32(attr_data);
2656 ctx.data.str_val = nla_data(attr_data);
2659 ctx.data.bin_val.len = nla_len(attr_data);
2660 ctx.data.bin_val.ptr = nla_data(attr_data);
2663 ctx.data.bool_val = attr_data ? true : false;
2666 ctx.data.s32_val = nla_get_s32(attr_data);
2671 err = team_option_set(team, opt_inst, &ctx);