Lines Matching refs:opt

162 				 const struct e1000_option *opt,  in e1000_validate_option()  argument
166 *value = opt->def; in e1000_validate_option()
170 switch (opt->type) { in e1000_validate_option()
175 opt->name); in e1000_validate_option()
179 opt->name); in e1000_validate_option()
184 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
186 opt->name, *value); in e1000_validate_option()
194 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
195 ent = &opt->arg.l.p[i]; in e1000_validate_option()
210 opt->name, *value, opt->err); in e1000_validate_option()
211 *value = opt->def; in e1000_validate_option()
238 static const struct e1000_option opt = { in e1000e_check_options() local
250 e1000_validate_option(&adapter->tx_int_delay, &opt, in e1000e_check_options()
253 adapter->tx_int_delay = opt.def; in e1000e_check_options()
258 static const struct e1000_option opt = { in e1000e_check_options() local
270 e1000_validate_option(&adapter->tx_abs_int_delay, &opt, in e1000e_check_options()
273 adapter->tx_abs_int_delay = opt.def; in e1000e_check_options()
278 static struct e1000_option opt = { in e1000e_check_options() local
289 opt.def = BURST_RDTR; in e1000e_check_options()
293 e1000_validate_option(&adapter->rx_int_delay, &opt, in e1000e_check_options()
296 adapter->rx_int_delay = opt.def; in e1000e_check_options()
301 static struct e1000_option opt = { in e1000e_check_options() local
312 opt.def = BURST_RADV; in e1000e_check_options()
316 e1000_validate_option(&adapter->rx_abs_int_delay, &opt, in e1000e_check_options()
319 adapter->rx_abs_int_delay = opt.def; in e1000e_check_options()
324 static const struct e1000_option opt = { in e1000e_check_options() local
343 e1000_validate_option(&adapter->itr, &opt, adapter)) in e1000e_check_options()
344 adapter->itr = opt.def; in e1000e_check_options()
349 adapter->itr = opt.def; in e1000e_check_options()
356 "%s set to default %d\n", opt.name, in e1000e_check_options()
364 opt.name); in e1000e_check_options()
368 "%s set to dynamic mode\n", opt.name); in e1000e_check_options()
374 opt.name); in e1000e_check_options()
375 adapter->itr_setting = opt.def; in e1000e_check_options()
380 opt.name); in e1000e_check_options()
386 opt.name); in e1000e_check_options()
401 static struct e1000_option opt = { in e1000e_check_options() local
414 opt.err = kstrdup("defaulting to 2 (MSI-X)", in e1000e_check_options()
416 opt.def = E1000E_INT_MODE_MSIX; in e1000e_check_options()
417 opt.arg.r.max = E1000E_INT_MODE_MSIX; in e1000e_check_options()
419 opt.err = kstrdup("defaulting to 1 (MSI)", GFP_KERNEL); in e1000e_check_options()
420 opt.def = E1000E_INT_MODE_MSI; in e1000e_check_options()
421 opt.arg.r.max = E1000E_INT_MODE_MSI; in e1000e_check_options()
424 if (!opt.err) { in e1000e_check_options()
434 e1000_validate_option(&int_mode, &opt, adapter); in e1000e_check_options()
437 adapter->int_mode = opt.def; in e1000e_check_options()
441 kfree(opt.err); in e1000e_check_options()
446 static const struct e1000_option opt = { in e1000e_check_options() local
456 e1000_validate_option(&spd, &opt, adapter); in e1000e_check_options()
463 static const struct e1000_option opt = { in e1000e_check_options() local
473 e1000_validate_option(&crc_stripping, &opt, adapter); in e1000e_check_options()
485 static const struct e1000_option opt = { in e1000e_check_options() local
491 bool enabled = opt.def; in e1000e_check_options()
496 e1000_validate_option(&kmrn_lock_loss, &opt, adapter); in e1000e_check_options()
506 static const struct e1000_option opt = { in e1000e_check_options() local
517 e1000_validate_option(&write_protect_nvm, &opt, in e1000e_check_options()
522 if (opt.def) in e1000e_check_options()