Lines Matching refs:pos
50 static enum pkcs11_rc read_attr_advance(void *buf, size_t blen, size_t *pos, in read_attr_advance() argument
58 if (ADD_OVERFLOW(*pos, sizeof(*attr), &data_pos) || data_pos > blen) in read_attr_advance()
60 TEE_MemMove(attr, b + *pos, sizeof(*attr)); in read_attr_advance()
66 *pos = next_pos; in read_attr_advance()
78 size_t pos = sizeof(struct pkcs11_object_head); in sanitize_class_and_type() local
84 while (pos != src_size) { in sanitize_class_and_type()
85 rc = read_attr_advance(src, src_size, &pos, &cli_ref, &data); in sanitize_class_and_type()
173 size_t pos = sizeof(struct pkcs11_object_head); in sanitize_boolprops() local
186 while (pos != src_size) { in sanitize_boolprops()
187 rc = read_attr_advance(src, src_size, &pos, &cli_ref, &data); in sanitize_boolprops()
256 size_t pos = sizeof(head); in sanitize_client_object() local
282 while (pos != sz_from_hdr) { in sanitize_client_object()
283 rc = read_attr_advance(src, sz_from_hdr, &pos, &cli_ref, &data); in sanitize_client_object()