Lines Matching full:opt

176 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt)  in ixgb_validate_option()  argument
179 *value = opt->def; in ixgb_validate_option()
183 switch (opt->type) { in ixgb_validate_option()
187 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
190 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
195 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
196 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
204 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option()
205 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
218 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
219 *value = opt->def; in ixgb_validate_option()
243 static const struct ixgb_option opt = { in ixgb_check_options() local
255 ixgb_validate_option(&tx_ring->count, &opt); in ixgb_check_options()
257 tx_ring->count = opt.def; in ixgb_check_options()
262 static const struct ixgb_option opt = { in ixgb_check_options() local
274 ixgb_validate_option(&rx_ring->count, &opt); in ixgb_check_options()
276 rx_ring->count = opt.def; in ixgb_check_options()
281 static const struct ixgb_option opt = { in ixgb_check_options() local
290 ixgb_validate_option(&rx_csum, &opt); in ixgb_check_options()
293 adapter->rx_csum = opt.def; in ixgb_check_options()
306 static const struct ixgb_option opt = { in ixgb_check_options() local
317 ixgb_validate_option(&fc, &opt); in ixgb_check_options()
320 adapter->hw.fc.type = opt.def; in ixgb_check_options()
324 static const struct ixgb_option opt = { in ixgb_check_options() local
335 ixgb_validate_option(&adapter->hw.fc.high_water, &opt); in ixgb_check_options()
337 adapter->hw.fc.high_water = opt.def; in ixgb_check_options()
343 static const struct ixgb_option opt = { in ixgb_check_options() local
354 ixgb_validate_option(&adapter->hw.fc.low_water, &opt); in ixgb_check_options()
356 adapter->hw.fc.low_water = opt.def; in ixgb_check_options()
362 static const struct ixgb_option opt = { in ixgb_check_options() local
373 ixgb_validate_option(&pause_time, &opt); in ixgb_check_options()
376 adapter->hw.fc.pause_time = opt.def; in ixgb_check_options()
392 static const struct ixgb_option opt = { in ixgb_check_options() local
403 ixgb_validate_option(&adapter->rx_int_delay, &opt); in ixgb_check_options()
405 adapter->rx_int_delay = opt.def; in ixgb_check_options()
409 static const struct ixgb_option opt = { in ixgb_check_options() local
420 ixgb_validate_option(&adapter->tx_int_delay, &opt); in ixgb_check_options()
422 adapter->tx_int_delay = opt.def; in ixgb_check_options()
427 static const struct ixgb_option opt = { in ixgb_check_options() local
436 ixgb_validate_option(&ide, &opt); in ixgb_check_options()
439 adapter->tx_int_delay_enable = opt.def; in ixgb_check_options()