Lines Matching refs:opt

184 				 const struct e1000_option *opt,  in e1000_validate_option()  argument
188 *value = opt->def; in e1000_validate_option()
192 switch (opt->type) { in e1000_validate_option()
196 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option()
199 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option()
204 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
205 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option()
213 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
214 ent = &opt->arg.l.p[i]; in e1000_validate_option()
228 opt->name, *value, opt->err); in e1000_validate_option()
229 *value = opt->def; in e1000_validate_option()
247 struct e1000_option opt; in e1000_check_options() local
260 opt = (struct e1000_option) { in e1000_check_options()
274 e1000_validate_option(&tx_ring->count, &opt, adapter); in e1000_check_options()
278 tx_ring->count = opt.def; in e1000_check_options()
288 opt = (struct e1000_option) { in e1000_check_options()
303 e1000_validate_option(&rx_ring->count, &opt, adapter); in e1000_check_options()
307 rx_ring->count = opt.def; in e1000_check_options()
313 opt = (struct e1000_option) { in e1000_check_options()
322 e1000_validate_option(&rx_csum, &opt, adapter); in e1000_check_options()
325 adapter->rx_csum = opt.def; in e1000_check_options()
338 opt = (struct e1000_option) { in e1000_check_options()
349 e1000_validate_option(&fc, &opt, adapter); in e1000_check_options()
352 adapter->hw.fc = adapter->hw.original_fc = opt.def; in e1000_check_options()
356 opt = (struct e1000_option) { in e1000_check_options()
367 e1000_validate_option(&adapter->tx_int_delay, &opt, in e1000_check_options()
370 adapter->tx_int_delay = opt.def; in e1000_check_options()
374 opt = (struct e1000_option) { in e1000_check_options()
385 e1000_validate_option(&adapter->tx_abs_int_delay, &opt, in e1000_check_options()
388 adapter->tx_abs_int_delay = opt.def; in e1000_check_options()
392 opt = (struct e1000_option) { in e1000_check_options()
403 e1000_validate_option(&adapter->rx_int_delay, &opt, in e1000_check_options()
406 adapter->rx_int_delay = opt.def; in e1000_check_options()
410 opt = (struct e1000_option) { in e1000_check_options()
421 e1000_validate_option(&adapter->rx_abs_int_delay, &opt, in e1000_check_options()
424 adapter->rx_abs_int_delay = opt.def; in e1000_check_options()
428 opt = (struct e1000_option) { in e1000_check_options()
441 e_dev_info("%s turned off\n", opt.name); in e1000_check_options()
445 opt.name); in e1000_check_options()
451 "mode\n", opt.name); in e1000_check_options()
457 "(2000-8000) ints mode\n", opt.name); in e1000_check_options()
461 e1000_validate_option(&adapter->itr, &opt, in e1000_check_options()
472 adapter->itr_setting = opt.def; in e1000_check_options()
477 opt = (struct e1000_option) { in e1000_check_options()
486 e1000_validate_option(&spd, &opt, adapter); in e1000_check_options()
489 adapter->smart_power_down = opt.def; in e1000_check_options()
539 struct e1000_option opt; in e1000_check_copper_options() local
550 opt = (struct e1000_option) { in e1000_check_copper_options()
561 e1000_validate_option(&speed, &opt, adapter); in e1000_check_copper_options()
563 speed = opt.def; in e1000_check_copper_options()
572 opt = (struct e1000_option) { in e1000_check_copper_options()
583 e1000_validate_option(&dplx, &opt, adapter); in e1000_check_copper_options()
585 dplx = opt.def; in e1000_check_copper_options()
628 opt = (struct e1000_option) { in e1000_check_copper_options()
639 e1000_validate_option(&an, &opt, adapter); in e1000_check_copper_options()
641 an = opt.def; in e1000_check_copper_options()