Lines Matching refs:opt

182 				 const struct e1000_option *opt,  in e1000_validate_option()  argument
186 *value = opt->def; in e1000_validate_option()
190 switch (opt->type) { in e1000_validate_option()
194 e_dev_info("%s Enabled\n", opt->name); in e1000_validate_option()
197 e_dev_info("%s Disabled\n", opt->name); in e1000_validate_option()
202 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
203 e_dev_info("%s set to %i\n", opt->name, *value); in e1000_validate_option()
211 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
212 ent = &opt->arg.l.p[i]; in e1000_validate_option()
226 opt->name, *value, opt->err); in e1000_validate_option()
227 *value = opt->def; in e1000_validate_option()
245 struct e1000_option opt; in e1000_check_options() local
258 opt = (struct e1000_option) { in e1000_check_options()
272 e1000_validate_option(&tx_ring->count, &opt, adapter); in e1000_check_options()
276 tx_ring->count = opt.def; in e1000_check_options()
286 opt = (struct e1000_option) { in e1000_check_options()
301 e1000_validate_option(&rx_ring->count, &opt, adapter); in e1000_check_options()
305 rx_ring->count = opt.def; in e1000_check_options()
311 opt = (struct e1000_option) { in e1000_check_options()
320 e1000_validate_option(&rx_csum, &opt, adapter); in e1000_check_options()
323 adapter->rx_csum = opt.def; in e1000_check_options()
336 opt = (struct e1000_option) { in e1000_check_options()
347 e1000_validate_option(&fc, &opt, adapter); in e1000_check_options()
350 adapter->hw.fc = adapter->hw.original_fc = opt.def; in e1000_check_options()
354 opt = (struct e1000_option) { in e1000_check_options()
365 e1000_validate_option(&adapter->tx_int_delay, &opt, in e1000_check_options()
368 adapter->tx_int_delay = opt.def; in e1000_check_options()
372 opt = (struct e1000_option) { in e1000_check_options()
383 e1000_validate_option(&adapter->tx_abs_int_delay, &opt, in e1000_check_options()
386 adapter->tx_abs_int_delay = opt.def; in e1000_check_options()
390 opt = (struct e1000_option) { in e1000_check_options()
401 e1000_validate_option(&adapter->rx_int_delay, &opt, in e1000_check_options()
404 adapter->rx_int_delay = opt.def; in e1000_check_options()
408 opt = (struct e1000_option) { in e1000_check_options()
419 e1000_validate_option(&adapter->rx_abs_int_delay, &opt, in e1000_check_options()
422 adapter->rx_abs_int_delay = opt.def; in e1000_check_options()
426 opt = (struct e1000_option) { in e1000_check_options()
439 e_dev_info("%s turned off\n", opt.name); in e1000_check_options()
443 opt.name); in e1000_check_options()
449 "mode\n", opt.name); in e1000_check_options()
455 "(2000-8000) ints mode\n", opt.name); in e1000_check_options()
459 e1000_validate_option(&adapter->itr, &opt, in e1000_check_options()
470 adapter->itr_setting = opt.def; in e1000_check_options()
475 opt = (struct e1000_option) { in e1000_check_options()
484 e1000_validate_option(&spd, &opt, adapter); in e1000_check_options()
487 adapter->smart_power_down = opt.def; in e1000_check_options()
537 struct e1000_option opt; in e1000_check_copper_options() local
548 opt = (struct e1000_option) { in e1000_check_copper_options()
559 e1000_validate_option(&speed, &opt, adapter); in e1000_check_copper_options()
561 speed = opt.def; in e1000_check_copper_options()
570 opt = (struct e1000_option) { in e1000_check_copper_options()
581 e1000_validate_option(&dplx, &opt, adapter); in e1000_check_copper_options()
583 dplx = opt.def; in e1000_check_copper_options()
626 opt = (struct e1000_option) { in e1000_check_copper_options()
637 e1000_validate_option(&an, &opt, adapter); in e1000_check_copper_options()
639 an = opt.def; in e1000_check_copper_options()