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