Lines Matching refs:opt

216 				    const struct pch_gbe_option *opt,  in pch_gbe_validate_option()  argument
220 *value = opt->def; in pch_gbe_validate_option()
224 switch (opt->type) { in pch_gbe_validate_option()
228 netdev_dbg(adapter->netdev, "%s Enabled\n", opt->name); in pch_gbe_validate_option()
231 netdev_dbg(adapter->netdev, "%s Disabled\n", opt->name); in pch_gbe_validate_option()
236 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in pch_gbe_validate_option()
238 opt->name, *value); in pch_gbe_validate_option()
246 for (i = 0; i < opt->arg.l.nr; i++) { in pch_gbe_validate_option()
247 ent = &opt->arg.l.p[i]; in pch_gbe_validate_option()
262 opt->name, *value, opt->err); in pch_gbe_validate_option()
263 *value = opt->def; in pch_gbe_validate_option()
277 static const struct pch_gbe_option opt = { in pch_gbe_check_copper_options() local
286 pch_gbe_validate_option(&speed, &opt, adapter); in pch_gbe_check_copper_options()
289 static const struct pch_gbe_option opt = { in pch_gbe_check_copper_options() local
298 pch_gbe_validate_option(&dplx, &opt, adapter); in pch_gbe_check_copper_options()
302 static const struct pch_gbe_option opt = { in pch_gbe_check_copper_options() local
313 hw->phy.autoneg_advertised = opt.def; in pch_gbe_check_copper_options()
317 pch_gbe_validate_option(&tmp, &opt, adapter); in pch_gbe_check_copper_options()
439 static const struct pch_gbe_option opt = { in pch_gbe_check_options() local
450 pch_gbe_validate_option(&tx_ring->count, &opt, adapter); in pch_gbe_check_options()
455 static const struct pch_gbe_option opt = { in pch_gbe_check_options() local
466 pch_gbe_validate_option(&rx_ring->count, &opt, adapter); in pch_gbe_check_options()
471 static const struct pch_gbe_option opt = { in pch_gbe_check_options() local
478 pch_gbe_validate_option(&val, &opt, adapter); in pch_gbe_check_options()
483 static const struct pch_gbe_option opt = { in pch_gbe_check_options() local
490 pch_gbe_validate_option(&val, &opt, adapter); in pch_gbe_check_options()
495 static const struct pch_gbe_option opt = { in pch_gbe_check_options() local
505 pch_gbe_validate_option(&tmp, &opt, adapter); in pch_gbe_check_options()