Lines Matching refs:sptr
301 const char *sptr; in isp_get_specific_options() local
345 sptr = NULL; in isp_get_specific_options()
348 name, (const char **) &sptr) == 0 && sptr != NULL) { in isp_get_specific_options()
349 if (strcmp(sptr, "lport") == 0) { in isp_get_specific_options()
351 } else if (strcmp(sptr, "nport") == 0) { in isp_get_specific_options()
353 } else if (strcmp(sptr, "lport-only") == 0) { in isp_get_specific_options()
355 } else if (strcmp(sptr, "nport-only") == 0) { in isp_get_specific_options()
393 sptr = NULL; in isp_get_specific_options()
396 name, (const char **) &sptr); in isp_get_specific_options()
397 if (tval == 0 && sptr != NULL && *sptr++ == 'w') { in isp_get_specific_options()
399 ISP_FC_PC(isp, chan)->def_wwpn = strtouq(sptr, &eptr, 16); in isp_get_specific_options()
400 if (eptr < sptr + 16 || ISP_FC_PC(isp, chan)->def_wwpn == -1) { in isp_get_specific_options()
401 device_printf(dev, "mangled portwwn hint '%s'\n", sptr); in isp_get_specific_options()
406 sptr = NULL; in isp_get_specific_options()
409 name, (const char **) &sptr); in isp_get_specific_options()
410 if (tval == 0 && sptr != NULL && *sptr++ == 'w') { in isp_get_specific_options()
412 ISP_FC_PC(isp, chan)->def_wwnn = strtouq(sptr, &eptr, 16); in isp_get_specific_options()
413 if (eptr < sptr + 16 || ISP_FC_PC(isp, chan)->def_wwnn == 0) { in isp_get_specific_options()
414 device_printf(dev, "mangled nodewwn hint '%s'\n", sptr); in isp_get_specific_options()