Lines Matching refs:option

52 	int *option;  in bnx_cfg_readbool()  local
58 DDI_PROP_DONTPASS, paramname, &option, &num_options); in bnx_cfg_readbool()
64 if (option[inst] == 1) { in bnx_cfg_readbool()
72 ddi_prop_free(option); in bnx_cfg_readbool()
80 int *option; in bnx_cfg_readint() local
84 paramname, &option, &num_options); in bnx_cfg_readint()
89 *paramval = option[inst]; in bnx_cfg_readint()
92 ddi_prop_free(option); in bnx_cfg_readint()
108 int option; in bnx_cfg_init() local
179 option = 0; in bnx_cfg_init()
181 "transfer-speed", &option); in bnx_cfg_init()
182 switch (option) { in bnx_cfg_init()
219 option = USER_OPTION_CKSUM_DEFAULT; in bnx_cfg_init()
221 "checksum", &option); in bnx_cfg_init()
222 switch (option) { in bnx_cfg_init()
251 option = USER_OPTION_STATSTICKS_DEFAULT; in bnx_cfg_init()
253 USER_OPTION_KEYWORD_STATSTICKS, &option); in bnx_cfg_init()
254 if (option >= USER_OPTION_STATSTICKS_MIN && in bnx_cfg_init()
255 option <= USER_OPTION_STATSTICKS_MAX) { in bnx_cfg_init()
256 lmdevice->params.stats_ticks = option; in bnx_cfg_init()
262 option = USER_OPTION_TXTICKS_DEFAULT; in bnx_cfg_init()
264 "tx_coalesce_ticks", &option); in bnx_cfg_init()
265 if (option >= USER_OPTION_TICKS_MIN && in bnx_cfg_init()
266 option <= USER_OPTION_TICKS_MAX) { in bnx_cfg_init()
267 lmdevice->params.tx_ticks = option; in bnx_cfg_init()
273 option = USER_OPTION_TXTICKS_INT_DEFAULT; in bnx_cfg_init()
275 "tx_coalesce_ticks_int", &option); in bnx_cfg_init()
276 if (option >= USER_OPTION_TICKS_MIN && in bnx_cfg_init()
277 option <= USER_OPTION_TICKS_MAX) { in bnx_cfg_init()
278 lmdevice->params.tx_ticks_int = option; in bnx_cfg_init()
284 option = USER_OPTION_RXTICKS_DEFAULT; in bnx_cfg_init()
286 "rx_coalesce_ticks", &option); in bnx_cfg_init()
287 if (option >= USER_OPTION_TICKS_MIN && in bnx_cfg_init()
288 option <= USER_OPTION_TICKS_MAX) { in bnx_cfg_init()
289 lmdevice->params.rx_ticks = option; in bnx_cfg_init()
295 option = USER_OPTION_RXTICKS_INT_DEFAULT; in bnx_cfg_init()
297 "rx_coalesce_ticks_int", &option); in bnx_cfg_init()
298 if (option >= USER_OPTION_TICKS_INT_MIN && in bnx_cfg_init()
299 option <= USER_OPTION_TICKS_INT_MAX) { in bnx_cfg_init()
300 lmdevice->params.rx_ticks_int = option; in bnx_cfg_init()
307 option = USER_OPTION_TXFRAMES_DEFAULT; in bnx_cfg_init()
309 "tx_coalesce_frames", &option); in bnx_cfg_init()
310 if (option >= USER_OPTION_FRAMES_MIN && in bnx_cfg_init()
311 option <= USER_OPTION_FRAMES_MAX) { in bnx_cfg_init()
312 lmdevice->params.tx_quick_cons_trip = option; in bnx_cfg_init()
319 option = USER_OPTION_TXFRAMES_INT_DEFAULT; in bnx_cfg_init()
321 "tx_coalesce_frames_int", &option); in bnx_cfg_init()
322 if (option >= USER_OPTION_FRAMES_MIN && in bnx_cfg_init()
323 option <= USER_OPTION_FRAMES_MAX) { in bnx_cfg_init()
324 lmdevice->params.tx_quick_cons_trip_int = option; in bnx_cfg_init()
331 option = USER_OPTION_RXFRAMES_DEFAULT; in bnx_cfg_init()
333 "rx_coalesce_frames", &option); in bnx_cfg_init()
334 if (option >= USER_OPTION_FRAMES_MIN && in bnx_cfg_init()
335 option <= USER_OPTION_FRAMES_MAX) { in bnx_cfg_init()
336 lmdevice->params.rx_quick_cons_trip = option; in bnx_cfg_init()
343 option = USER_OPTION_RXFRAMES_INT_DEFAULT; in bnx_cfg_init()
345 "rx_coalesce_frames_int", &option); in bnx_cfg_init()
346 if (option >= USER_OPTION_FRAMES_MIN && in bnx_cfg_init()
347 option <= USER_OPTION_FRAMES_MAX) { in bnx_cfg_init()
348 lmdevice->params.rx_quick_cons_trip_int = option; in bnx_cfg_init()
355 option = USER_OPTION_TX_DESC_CNT_DEFAULT; in bnx_cfg_init()
357 "tx_descriptor_count", &option); in bnx_cfg_init()
358 if (option < USER_OPTION_TX_DESC_CNT_MIN || in bnx_cfg_init()
359 option > USER_OPTION_TX_DESC_CNT_MAX) { in bnx_cfg_init()
360 option = USER_OPTION_TX_DESC_CNT_DEFAULT; in bnx_cfg_init()
364 _TX_QINFO(umdevice, 0).desc_cnt = option; in bnx_cfg_init()
365 lmdevice->params.l2_tx_bd_page_cnt[0] = option / MAX_BD_PER_PAGE; in bnx_cfg_init()
366 if (option % MAX_BD_PER_PAGE) { in bnx_cfg_init()
374 option = USER_OPTION_RX_DESC_CNT_DEFAULT; in bnx_cfg_init()
376 "rx_descriptor_count", &option); in bnx_cfg_init()
377 if (option < USER_OPTION_RX_DESC_CNT_MIN || in bnx_cfg_init()
378 option > USER_OPTION_RX_DESC_CNT_MAX) { in bnx_cfg_init()
379 option = USER_OPTION_RX_DESC_CNT_DEFAULT; in bnx_cfg_init()
382 lmdevice->params.l2_rx_desc_cnt[0] = option; in bnx_cfg_init()
383 option = (option * BNX_RECV_MAX_FRAGS) / MAX_BD_PER_PAGE; in bnx_cfg_init()
384 lmdevice->params.l2_rx_bd_page_cnt[0] = option; in bnx_cfg_init()
385 if (option % MAX_BD_PER_PAGE) { in bnx_cfg_init()
389 option = USER_OPTION_MTU_DEFAULT; in bnx_cfg_init()
391 "mtu", &option); in bnx_cfg_init()
392 if (option < USER_OPTION_MTU_MIN) { in bnx_cfg_init()
394 } else if (option > USER_OPTION_MTU_MAX) { in bnx_cfg_init()
397 umdevice->dev_var.mtu = option; in bnx_cfg_init()
403 option = USER_OPTION_TX_DCOPY_THRESH_DEFAULT; in bnx_cfg_init()
405 "tx_copy_thresh", &option); in bnx_cfg_init()
406 if (option < MIN_ETHERNET_PACKET_SIZE) { in bnx_cfg_init()
407 option = MIN_ETHERNET_PACKET_SIZE; in bnx_cfg_init()
409 umdevice->tx_copy_threshold = option; in bnx_cfg_init()
412 option = USER_OPTION_RX_DCOPY_DEFAULT; in bnx_cfg_init()
414 &option); in bnx_cfg_init()
415 if (option) { in bnx_cfg_init()