Lines Matching refs:cp
748 bcm_strtoul(const char *cp, char **endp, uint base) in bcm_strtoul() argument
755 while (bcm_isspace(*cp)) in bcm_strtoul()
756 cp++; in bcm_strtoul()
758 if (cp[0] == '+') in bcm_strtoul()
759 cp++; in bcm_strtoul()
760 else if (cp[0] == '-') { in bcm_strtoul()
762 cp++; in bcm_strtoul()
766 if (cp[0] == '0') { in bcm_strtoul()
767 if ((cp[1] == 'x') || (cp[1] == 'X')) { in bcm_strtoul()
769 cp = &cp[2]; in bcm_strtoul()
772 cp = &cp[1]; in bcm_strtoul()
776 } else if (base == 16 && (cp[0] == '0') && ((cp[1] == 'x') || (cp[1] == 'X'))) { in bcm_strtoul()
777 cp = &cp[2]; in bcm_strtoul()
782 while (bcm_isxdigit(*cp) && in bcm_strtoul()
783 (value = bcm_isdigit(*cp) ? *cp-'0' : bcm_toupper(*cp)-'A'+10) < base) { in bcm_strtoul()
789 cp++; in bcm_strtoul()
796 *endp = DISCARD_QUAL(cp, char); in bcm_strtoul()