Lines Matching refs:offset_r
1078 off_t offset_r = TPM_HEADER_SIZE, offset_t; in tpm2_parse_create_primary() local
1083 keyhandle = tpm_buf_read_u32(buf, &offset_r); in tpm2_parse_create_primary()
1089 param_len = tpm_buf_read_u32(buf, &offset_r); in tpm2_parse_create_primary()
1099 len = tpm_buf_read_u16(buf, &offset_r); in tpm2_parse_create_primary()
1100 offset_t = offset_r; in tpm2_parse_create_primary()
1107 sha256(&buf->data[offset_r], len, name + 2); in tpm2_parse_create_primary()
1175 offset_r += len; in tpm2_parse_create_primary()
1178 if (offset_t != offset_r) in tpm2_parse_create_primary()
1180 if (offset_r > param_len) in tpm2_parse_create_primary()
1184 len = tpm_buf_read_u16(buf, &offset_r); in tpm2_parse_create_primary()
1185 offset_r += len; in tpm2_parse_create_primary()
1186 if (offset_r > param_len) in tpm2_parse_create_primary()
1190 len = tpm_buf_read_u16(buf, &offset_r); in tpm2_parse_create_primary()
1191 offset_r += len; in tpm2_parse_create_primary()
1192 if (len != SHA256_DIGEST_SIZE || offset_r > param_len) in tpm2_parse_create_primary()
1197 val = tpm_buf_read_u16(buf, &offset_r); in tpm2_parse_create_primary()
1198 if (val != TPM2_ST_CREATION || offset_r > param_len) in tpm2_parse_create_primary()
1202 val = tpm_buf_read_u32(buf, &offset_r); in tpm2_parse_create_primary()
1203 if (val != hierarchy || offset_r > param_len) in tpm2_parse_create_primary()
1207 len = tpm_buf_read_u16(buf, &offset_r); in tpm2_parse_create_primary()
1208 offset_r += len; in tpm2_parse_create_primary()
1209 if (offset_r > param_len) in tpm2_parse_create_primary()
1216 len = tpm_buf_read_u16(buf, &offset_r); in tpm2_parse_create_primary()
1217 if (offset_r + len != param_len + 8) in tpm2_parse_create_primary()
1222 if (memcmp(chip->null_key_name, &buf->data[offset_r], in tpm2_parse_create_primary()