Lines Matching refs:consumed
40 u32 consumed = *_consumed; in vpd_decode_entry() local
42 if (vpd_decode_len(max_len - consumed, &input_buf[consumed], in vpd_decode_entry()
45 if (max_len - consumed < decoded_len) in vpd_decode_entry()
48 consumed += decoded_len; in vpd_decode_entry()
49 *entry = input_buf + consumed; in vpd_decode_entry()
52 if (max_len - consumed < *entry_len) in vpd_decode_entry()
55 consumed += *entry_len; in vpd_decode_entry()
56 *_consumed = consumed; in vpd_decode_entry()
60 int vpd_decode_string(const u32 max_len, const u8 *input_buf, u32 *consumed, in vpd_decode_string() argument
70 if (*consumed >= max_len) in vpd_decode_string()
73 type = input_buf[*consumed]; in vpd_decode_string()
78 (*consumed)++; in vpd_decode_string()
80 if (vpd_decode_entry(max_len, input_buf, consumed, &key, in vpd_decode_string()
84 if (vpd_decode_entry(max_len, input_buf, consumed, &value, in vpd_decode_string()