Home
last modified time | relevance | path

Searched refs:token_id (Results 1 – 3 of 3) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dpkcs11_token.c55 struct ck_token *get_token(unsigned int token_id) in get_token() argument
57 if (token_id < TOKEN_COUNT) in get_token()
58 return &ck_token[confine_array_index(token_id, TOKEN_COUNT)]; in get_token()
253 uint32_t token_id = 0; in entry_ck_slot_list() local
254 const size_t out_size = sizeof(token_id) * TOKEN_COUNT; in entry_ck_slot_list()
270 for (token_id = 0, id = out->memref.buffer; token_id < TOKEN_COUNT; in entry_ck_slot_list()
271 token_id++, id += sizeof(token_id)) in entry_ck_slot_list()
272 TEE_MemMove(id, &token_id, sizeof(token_id)); in entry_ck_slot_list()
319 uint32_t token_id = 0; in entry_ck_slot_info() local
338 rc = serialargs_get(&ctrlargs, &token_id, sizeof(token_id)); in entry_ck_slot_info()
[all …]
H A Dpersistent_token.c578 struct ck_token *init_persistent_db(unsigned int token_id) in init_persistent_db() argument
580 struct ck_token *token = get_token(token_id); in init_persistent_db()
606 IMSG("PKCS11 token %u: load db", token_id); in init_persistent_db()
654 IMSG("PKCS11 token %u: init db", token_id); in init_persistent_db()
H A Dpkcs11_token.h199 struct ck_token *get_token(unsigned int token_id);
208 struct ck_token *init_persistent_db(unsigned int token_id);