Lines Matching refs:opt

106 static int atl1e_validate_option(int *value, struct atl1e_option *opt,  in atl1e_validate_option()  argument
110 *value = opt->def; in atl1e_validate_option()
114 switch (opt->type) { in atl1e_validate_option()
119 "%s Enabled\n", opt->name); in atl1e_validate_option()
123 "%s Disabled\n", opt->name); in atl1e_validate_option()
128 if (*value >= opt->arg.r.min && *value <= opt->arg.r.max) { in atl1e_validate_option()
130 opt->name, *value); in atl1e_validate_option()
138 for (i = 0; i < opt->arg.l.nr; i++) { in atl1e_validate_option()
139 ent = &opt->arg.l.p[i]; in atl1e_validate_option()
154 opt->name, *value, opt->err); in atl1e_validate_option()
155 *value = opt->def; in atl1e_validate_option()
180 struct atl1e_option opt = { in atl1e_check_options() local
192 atl1e_validate_option(&val, &opt, adapter); in atl1e_check_options()
195 adapter->tx_ring.count = (u16)opt.def; in atl1e_check_options()
199 struct atl1e_option opt = { in atl1e_check_options() local
211 atl1e_validate_option(&val, &opt, adapter); in atl1e_check_options()
214 adapter->rx_ring.page_size = (u32)opt.def * 1024; in atl1e_check_options()
219 struct atl1e_option opt = { in atl1e_check_options() local
231 atl1e_validate_option(&val, &opt, adapter); in atl1e_check_options()
234 adapter->hw.imt = (u16)(opt.def); in atl1e_check_options()
238 struct atl1e_option opt = { in atl1e_check_options() local
250 atl1e_validate_option(&val, &opt, adapter); in atl1e_check_options()
253 adapter->hw.media_type = (u16)(opt.def); in atl1e_check_options()