Lines Matching refs:opt
174 const struct e1000_option *opt, in e1000_validate_option() argument
178 *value = opt->def; in e1000_validate_option()
182 switch (opt->type) { in e1000_validate_option()
187 opt->name); in e1000_validate_option()
191 opt->name); in e1000_validate_option()
196 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in e1000_validate_option()
198 opt->name, *value); in e1000_validate_option()
206 for (i = 0; i < opt->arg.l.nr; i++) { in e1000_validate_option()
207 ent = &opt->arg.l.p[i]; in e1000_validate_option()
222 opt->name, *value, opt->err); in e1000_validate_option()
223 *value = opt->def; in e1000_validate_option()
250 static const struct e1000_option opt = { in e1000e_check_options() local
262 e1000_validate_option(&adapter->tx_int_delay, &opt, in e1000e_check_options()
265 adapter->tx_int_delay = opt.def; in e1000e_check_options()
270 static const struct e1000_option opt = { in e1000e_check_options() local
282 e1000_validate_option(&adapter->tx_abs_int_delay, &opt, in e1000e_check_options()
285 adapter->tx_abs_int_delay = opt.def; in e1000e_check_options()
290 static struct e1000_option opt = { in e1000e_check_options() local
302 e1000_validate_option(&adapter->rx_int_delay, &opt, in e1000e_check_options()
305 adapter->rx_int_delay = opt.def; in e1000e_check_options()
310 static const struct e1000_option opt = { in e1000e_check_options() local
322 e1000_validate_option(&adapter->rx_abs_int_delay, &opt, in e1000e_check_options()
325 adapter->rx_abs_int_delay = opt.def; in e1000e_check_options()
330 static const struct e1000_option opt = { in e1000e_check_options() local
349 e1000_validate_option(&adapter->itr, &opt, adapter)) in e1000e_check_options()
350 adapter->itr = opt.def; in e1000e_check_options()
355 adapter->itr = opt.def; in e1000e_check_options()
362 "%s set to default %d\n", opt.name, in e1000e_check_options()
370 opt.name); in e1000e_check_options()
374 "%s set to dynamic mode\n", opt.name); in e1000e_check_options()
380 opt.name); in e1000e_check_options()
381 adapter->itr_setting = opt.def; in e1000e_check_options()
386 opt.name); in e1000e_check_options()
392 opt.name); in e1000e_check_options()
407 static struct e1000_option opt = { in e1000e_check_options() local
420 opt.err = kstrdup("defaulting to 2 (MSI-X)", in e1000e_check_options()
422 opt.def = E1000E_INT_MODE_MSIX; in e1000e_check_options()
423 opt.arg.r.max = E1000E_INT_MODE_MSIX; in e1000e_check_options()
425 opt.err = kstrdup("defaulting to 1 (MSI)", GFP_KERNEL); in e1000e_check_options()
426 opt.def = E1000E_INT_MODE_MSI; in e1000e_check_options()
427 opt.arg.r.max = E1000E_INT_MODE_MSI; in e1000e_check_options()
430 if (!opt.err) { in e1000e_check_options()
440 e1000_validate_option(&int_mode, &opt, adapter); in e1000e_check_options()
443 adapter->int_mode = opt.def; in e1000e_check_options()
447 kfree(opt.err); in e1000e_check_options()
452 static const struct e1000_option opt = { in e1000e_check_options() local
462 e1000_validate_option(&spd, &opt, adapter); in e1000e_check_options()
469 static const struct e1000_option opt = { in e1000e_check_options() local
479 e1000_validate_option(&crc_stripping, &opt, adapter); in e1000e_check_options()
491 static const struct e1000_option opt = { in e1000e_check_options() local
497 bool enabled = opt.def; in e1000e_check_options()
502 e1000_validate_option(&kmrn_lock_loss, &opt, adapter); in e1000e_check_options()
512 static const struct e1000_option opt = { in e1000e_check_options() local
523 e1000_validate_option(&write_protect_nvm, &opt, in e1000e_check_options()
528 if (opt.def) in e1000e_check_options()