Lines Matching refs:nbytes
709 size_t *nbytes, void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_parse_int() argument
730 if (nbytes == NULL) in bhnd_nvram_parse_int()
731 nbytes = &local_nbytes; in bhnd_nvram_parse_int()
735 *nbytes = 0; in bhnd_nvram_parse_int()
744 for (; *nbytes < maxlen; (*nbytes)++) { in bhnd_nvram_parse_int()
745 if (!bhnd_nv_isspace(str[*nbytes])) in bhnd_nvram_parse_int()
750 if (*nbytes == maxlen) in bhnd_nvram_parse_int()
754 if (str[*nbytes] == '-') { in bhnd_nvram_parse_int()
757 (*nbytes)++; in bhnd_nvram_parse_int()
758 } else if (str[*nbytes] == '+') { in bhnd_nvram_parse_int()
760 (*nbytes)++; in bhnd_nvram_parse_int()
764 if (*nbytes == maxlen) in bhnd_nvram_parse_int()
770 if (maxlen - *nbytes >= 2 && str[*nbytes] == '0' && in bhnd_nvram_parse_int()
771 (str[*nbytes+1] == 'x' || str[*nbytes+1] == 'X')) in bhnd_nvram_parse_int()
774 (*nbytes) += 2; in bhnd_nvram_parse_int()
779 if (*nbytes == maxlen) in bhnd_nvram_parse_int()
784 if (str[*nbytes] == '0') { in bhnd_nvram_parse_int()
862 for (; *nbytes < maxlen; (*nbytes)++) { in bhnd_nvram_parse_int()
867 c = str[*nbytes]; in bhnd_nvram_parse_int()