Lines Matching refs:opt

164 				 const struct e1000_option *opt,
168 *value = opt->def;
172 switch (opt->type) {
177 opt->name);
181 opt->name);
186 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) {
188 opt->name, *value);
196 for (i = 0; i < opt->arg.l.nr; i++) {
197 ent = &opt->arg.l.p[i];
212 opt->name, *value, opt->err);
213 *value = opt->def;
240 static const struct e1000_option opt = {
252 e1000_validate_option(&adapter->tx_int_delay, &opt,
255 adapter->tx_int_delay = opt.def;
260 static const struct e1000_option opt = {
272 e1000_validate_option(&adapter->tx_abs_int_delay, &opt,
275 adapter->tx_abs_int_delay = opt.def;
280 static struct e1000_option opt = {
291 opt.def = BURST_RDTR;
295 e1000_validate_option(&adapter->rx_int_delay, &opt,
298 adapter->rx_int_delay = opt.def;
303 static struct e1000_option opt = {
314 opt.def = BURST_RADV;
318 e1000_validate_option(&adapter->rx_abs_int_delay, &opt,
321 adapter->rx_abs_int_delay = opt.def;
326 static const struct e1000_option opt = {
345 e1000_validate_option(&adapter->itr, &opt, adapter))
346 adapter->itr = opt.def;
351 adapter->itr = opt.def;
358 "%s set to default %d\n", opt.name,
366 opt.name);
370 "%s set to dynamic mode\n", opt.name);
376 opt.name);
377 adapter->itr_setting = opt.def;
382 opt.name);
388 opt.name);
403 static struct e1000_option opt = {
416 opt.err = kstrdup("defaulting to 2 (MSI-X)",
418 opt.def = E1000E_INT_MODE_MSIX;
419 opt.arg.r.max = E1000E_INT_MODE_MSIX;
421 opt.err = kstrdup("defaulting to 1 (MSI)", GFP_KERNEL);
422 opt.def = E1000E_INT_MODE_MSI;
423 opt.arg.r.max = E1000E_INT_MODE_MSI;
426 if (!opt.err) {
436 e1000_validate_option(&int_mode, &opt, adapter);
439 adapter->int_mode = opt.def;
443 kfree(opt.err);
448 static const struct e1000_option opt = {
458 e1000_validate_option(&spd, &opt, adapter);
465 static const struct e1000_option opt = {
475 e1000_validate_option(&crc_stripping, &opt, adapter);
487 static const struct e1000_option opt = {
493 bool enabled = opt.def;
498 e1000_validate_option(&kmrn_lock_loss, &opt, adapter);
508 static const struct e1000_option opt = {
519 e1000_validate_option(&write_protect_nvm, &opt,
524 if (opt.def)