Lines Matching refs:opt
203 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt) in ixgb_validate_option() argument
206 *value = opt->def; in ixgb_validate_option()
210 switch (opt->type) { in ixgb_validate_option()
214 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
217 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
222 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
223 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
231 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option()
232 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
245 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
246 *value = opt->def; in ixgb_validate_option()
270 static const struct ixgb_option opt = { in ixgb_check_options() local
282 ixgb_validate_option(&tx_ring->count, &opt); in ixgb_check_options()
284 tx_ring->count = opt.def; in ixgb_check_options()
289 static const struct ixgb_option opt = { in ixgb_check_options() local
301 ixgb_validate_option(&rx_ring->count, &opt); in ixgb_check_options()
303 rx_ring->count = opt.def; in ixgb_check_options()
308 static const struct ixgb_option opt = { in ixgb_check_options() local
317 ixgb_validate_option(&rx_csum, &opt); in ixgb_check_options()
320 adapter->rx_csum = opt.def; in ixgb_check_options()
333 static const struct ixgb_option opt = { in ixgb_check_options() local
344 ixgb_validate_option(&fc, &opt); in ixgb_check_options()
347 adapter->hw.fc.type = opt.def; in ixgb_check_options()
351 static const struct ixgb_option opt = { in ixgb_check_options() local
362 ixgb_validate_option(&adapter->hw.fc.high_water, &opt); in ixgb_check_options()
364 adapter->hw.fc.high_water = opt.def; in ixgb_check_options()
370 static const struct ixgb_option opt = { in ixgb_check_options() local
381 ixgb_validate_option(&adapter->hw.fc.low_water, &opt); in ixgb_check_options()
383 adapter->hw.fc.low_water = opt.def; in ixgb_check_options()
389 static const struct ixgb_option opt = { in ixgb_check_options() local
400 ixgb_validate_option(&pause_time, &opt); in ixgb_check_options()
403 adapter->hw.fc.pause_time = opt.def; in ixgb_check_options()
419 static const struct ixgb_option opt = { in ixgb_check_options() local
430 ixgb_validate_option(&adapter->rx_int_delay, &opt); in ixgb_check_options()
432 adapter->rx_int_delay = opt.def; in ixgb_check_options()
436 static const struct ixgb_option opt = { in ixgb_check_options() local
447 ixgb_validate_option(&adapter->tx_int_delay, &opt); in ixgb_check_options()
449 adapter->tx_int_delay = opt.def; in ixgb_check_options()
454 static const struct ixgb_option opt = { in ixgb_check_options() local
463 ixgb_validate_option(&ide, &opt); in ixgb_check_options()
466 adapter->tx_int_delay_enable = opt.def; in ixgb_check_options()