Lines Matching refs:tval

287 	int tval;  in isp_get_generic_options()  local
289 tval = 0; in isp_get_generic_options()
290 …int_value(device_get_name(dev), device_get_unit(dev), "fwload_disable", &tval) == 0 && tval != 0) { in isp_get_generic_options()
293 tval = 0; in isp_get_generic_options()
294 …e_int_value(device_get_name(dev), device_get_unit(dev), "fwload_force", &tval) == 0 && tval != 0) { in isp_get_generic_options()
302 tval = 0; in isp_get_generic_options()
303 …e_int_value(device_get_name(dev), device_get_unit(dev), "ignore_nvram", &tval) == 0 && tval != 0) { in isp_get_generic_options()
306 tval = 0; in isp_get_generic_options()
307 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "debug", &tval); in isp_get_generic_options()
308 if (tval) { in isp_get_generic_options()
309 isp->isp_dblev = tval; in isp_get_generic_options()
316 tval = -1; in isp_get_generic_options()
317 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "vports", &tval); in isp_get_generic_options()
318 if (tval > 0 && tval <= 254) { in isp_get_generic_options()
319 isp_nvports = tval; in isp_get_generic_options()
321 tval = 7; in isp_get_generic_options()
322 (void) resource_int_value(device_get_name(dev), device_get_unit(dev), "quickboot_time", &tval); in isp_get_generic_options()
323 isp_quickboot_time = tval; in isp_get_generic_options()
330 int tval = 0; in isp_get_specific_options() local
339 name, &tval)) { in isp_get_specific_options()
342 ISP_FC_PC(isp, chan)->default_id = tval - chan; in isp_get_specific_options()
346 tval = -1; in isp_get_specific_options()
349 name, &tval) == 0) { in isp_get_specific_options()
350 switch (tval) { in isp_get_specific_options()
355 device_printf(dev, "Chan %d setting role to 0x%x\n", chan, tval); in isp_get_specific_options()
358 tval = -1; in isp_get_specific_options()
362 if (tval == -1) { in isp_get_specific_options()
363 tval = ISP_DEFAULT_ROLES; in isp_get_specific_options()
365 ISP_FC_PC(isp, chan)->def_role = tval; in isp_get_specific_options()
367 tval = 0; in isp_get_specific_options()
370 name, &tval) == 0 && tval != 0) { in isp_get_specific_options()
394 tval = 0; in isp_get_specific_options()
397 name, &tval); in isp_get_specific_options()
398 if (tval) { in isp_get_specific_options()
403 tval = 0; in isp_get_specific_options()
406 name, &tval); in isp_get_specific_options()
407 if (tval) { in isp_get_specific_options()
423 tval = resource_string_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
425 if (tval == 0 && sptr != NULL && *sptr++ == 'w') { in isp_get_specific_options()
436 tval = resource_string_value(device_get_name(dev), device_get_unit(dev), in isp_get_specific_options()
438 if (tval == 0 && sptr != NULL && *sptr++ == 'w') { in isp_get_specific_options()
447 tval = -1; in isp_get_specific_options()
450 name, &tval); in isp_get_specific_options()
451 if (tval >= 0 && tval < 0xffff) { in isp_get_specific_options()
452 ISP_FC_PC(isp, chan)->loop_down_limit = tval; in isp_get_specific_options()
457 tval = -1; in isp_get_specific_options()
460 name, &tval); in isp_get_specific_options()
461 if (tval >= 0 && tval < 0xffff) { in isp_get_specific_options()
462 ISP_FC_PC(isp, chan)->gone_device_time = tval; in isp_get_specific_options()