Lines Matching refs:opt

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