Lines Matching refs:sptr
329 const char *sptr; in isp_get_specific_options() local
373 sptr = NULL; in isp_get_specific_options()
376 name, (const char **) &sptr) == 0 && sptr != NULL) { in isp_get_specific_options()
377 if (strcmp(sptr, "lport") == 0) { in isp_get_specific_options()
379 } else if (strcmp(sptr, "nport") == 0) { in isp_get_specific_options()
381 } else if (strcmp(sptr, "lport-only") == 0) { in isp_get_specific_options()
383 } else if (strcmp(sptr, "nport-only") == 0) { in isp_get_specific_options()
421 sptr = NULL; in isp_get_specific_options()
424 name, (const char **) &sptr); in isp_get_specific_options()
425 if (tval == 0 && sptr != NULL && *sptr++ == 'w') { in isp_get_specific_options()
427 ISP_FC_PC(isp, chan)->def_wwpn = strtouq(sptr, &eptr, 16); in isp_get_specific_options()
428 if (eptr < sptr + 16 || ISP_FC_PC(isp, chan)->def_wwpn == -1) { in isp_get_specific_options()
429 device_printf(dev, "mangled portwwn hint '%s'\n", sptr); in isp_get_specific_options()
434 sptr = NULL; in isp_get_specific_options()
437 name, (const char **) &sptr); in isp_get_specific_options()
438 if (tval == 0 && sptr != NULL && *sptr++ == 'w') { in isp_get_specific_options()
440 ISP_FC_PC(isp, chan)->def_wwnn = strtouq(sptr, &eptr, 16); in isp_get_specific_options()
441 if (eptr < sptr + 16 || ISP_FC_PC(isp, chan)->def_wwnn == 0) { in isp_get_specific_options()
442 device_printf(dev, "mangled nodewwn hint '%s'\n", sptr); in isp_get_specific_options()