Lines Matching refs:opt

178 ixgb_validate_option(unsigned int *value, const struct ixgb_option *opt)  in ixgb_validate_option()  argument
181 *value = opt->def; in ixgb_validate_option()
185 switch (opt->type) { in ixgb_validate_option()
189 pr_info("%s Enabled\n", opt->name); in ixgb_validate_option()
192 pr_info("%s Disabled\n", opt->name); in ixgb_validate_option()
197 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in ixgb_validate_option()
198 pr_info("%s set to %i\n", opt->name, *value); in ixgb_validate_option()
206 for (i = 0; i < opt->arg.l.nr; i++) { in ixgb_validate_option()
207 ent = &opt->arg.l.p[i]; in ixgb_validate_option()
220 pr_info("Invalid %s specified (%i) %s\n", opt->name, *value, opt->err); in ixgb_validate_option()
221 *value = opt->def; in ixgb_validate_option()
245 static const struct ixgb_option opt = { in ixgb_check_options() local
257 ixgb_validate_option(&tx_ring->count, &opt); in ixgb_check_options()
259 tx_ring->count = opt.def; in ixgb_check_options()
264 static const struct ixgb_option opt = { in ixgb_check_options() local
276 ixgb_validate_option(&rx_ring->count, &opt); in ixgb_check_options()
278 rx_ring->count = opt.def; in ixgb_check_options()
283 static const struct ixgb_option opt = { in ixgb_check_options() local
292 ixgb_validate_option(&rx_csum, &opt); in ixgb_check_options()
295 adapter->rx_csum = opt.def; in ixgb_check_options()
308 static const struct ixgb_option opt = { in ixgb_check_options() local
319 ixgb_validate_option(&fc, &opt); in ixgb_check_options()
322 adapter->hw.fc.type = opt.def; in ixgb_check_options()
326 static const struct ixgb_option opt = { in ixgb_check_options() local
337 ixgb_validate_option(&adapter->hw.fc.high_water, &opt); in ixgb_check_options()
339 adapter->hw.fc.high_water = opt.def; in ixgb_check_options()
345 static const struct ixgb_option opt = { in ixgb_check_options() local
356 ixgb_validate_option(&adapter->hw.fc.low_water, &opt); in ixgb_check_options()
358 adapter->hw.fc.low_water = opt.def; in ixgb_check_options()
364 static const struct ixgb_option opt = { in ixgb_check_options() local
375 ixgb_validate_option(&pause_time, &opt); in ixgb_check_options()
378 adapter->hw.fc.pause_time = opt.def; in ixgb_check_options()
394 static const struct ixgb_option opt = { in ixgb_check_options() local
405 ixgb_validate_option(&adapter->rx_int_delay, &opt); in ixgb_check_options()
407 adapter->rx_int_delay = opt.def; in ixgb_check_options()
411 static const struct ixgb_option opt = { in ixgb_check_options() local
422 ixgb_validate_option(&adapter->tx_int_delay, &opt); in ixgb_check_options()
424 adapter->tx_int_delay = opt.def; in ixgb_check_options()
429 static const struct ixgb_option opt = { in ixgb_check_options() local
438 ixgb_validate_option(&ide, &opt); in ixgb_check_options()
441 adapter->tx_int_delay_enable = opt.def; in ixgb_check_options()