Lines Matching refs:api
374 size_t pl_size, int api, int func) in prep_head() argument
381 h->func = (api << 16) + func; in prep_head()
493 int api = 1, rc = -ENOMEM; in ep11_query_info() local
500 prep_head(&req_pl->head, sizeof(*req_pl), api, 38); /* get xcp info */ in ep11_query_info()
706 int api, rc = -ENOMEM; in ep11_genaeskey() local
726 api = (!keygenflags || keygenflags & 0x00200000) ? 4 : 1; in ep11_genaeskey()
727 prep_head(&req_pl->head, sizeof(*req_pl), api, 21); /* GenerateKey */ in ep11_genaeskey()
834 int n, api = 1, rc = -ENOMEM; in ep11_cryptsingle() local
848 prep_head(&req_pl->head, req_pl_size, api, (mode ? 20 : 19)); in ep11_cryptsingle()
972 int api, rc = -ENOMEM; in ep11_unwrapkey() local
982 api = (!keygenflags || keygenflags & 0x00200000) ? 4 : 1; in ep11_unwrapkey()
983 prep_head(&req_pl->head, req_pl_size, api, 34); /* UnwrapKey */ in ep11_unwrapkey()
1103 int api, rc = -ENOMEM; in ep11_wrapkey() local
1124 api = (!mech || mech == 0x80060001) ? 4 : 1; /* CKM_IBM_CPACF_WRAP */ in ep11_wrapkey()
1125 prep_head(&req_pl->head, req_pl_size, api, 33); /* WrapKey */ in ep11_wrapkey()