Lines Matching refs:rep
456 struct ep11_cprb *rep, size_t rep_len) in prep_urb() argument
463 u->resp = (u8 __user *)rep; in prep_urb()
534 static int check_reply_cprb(const struct ep11_cprb *rep, const char *func) in check_reply_cprb() argument
537 if (rep->ret_code) { in check_reply_cprb()
539 rep->ret_code); in check_reply_cprb()
540 if (rep->ret_code == 0x000c0003) in check_reply_cprb()
573 struct ep11_cprb *req = NULL, *rep = NULL; in ep11_query_info() local
591 rep = alloc_cprbmem(sizeof(struct ep11_info_rep_pl) + buflen, xflags); in ep11_query_info()
592 if (!rep) in ep11_query_info()
594 rep_pl = (struct ep11_info_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_query_info()
601 rep, sizeof(*rep) + sizeof(*rep_pl) + buflen); in ep11_query_info()
611 rc = check_reply_cprb(rep, __func__); in ep11_query_info()
635 free_cprbmem(rep, 0, false, xflags); in ep11_query_info()
779 struct ep11_cprb *req = NULL, *rep = NULL; in _ep11_genaeskey() local
836 rep = alloc_cprbmem(sizeof(struct keygen_rep_pl), xflags); in _ep11_genaeskey()
837 if (!rep) in _ep11_genaeskey()
839 rep_pl = (struct keygen_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_genaeskey()
846 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_genaeskey()
856 rc = check_reply_cprb(rep, __func__); in _ep11_genaeskey()
882 free_cprbmem(rep, sizeof(struct keygen_rep_pl), true, xflags); in _ep11_genaeskey()
954 struct ep11_cprb *req = NULL, *rep = NULL; in ep11_cryptsingle() local
990 rep = alloc_cprbmem(rep_pl_size, xflags); in ep11_cryptsingle()
991 if (!rep) in ep11_cryptsingle()
993 rep_pl = (struct crypt_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in ep11_cryptsingle()
1000 rep, sizeof(*rep) + rep_pl_size); in ep11_cryptsingle()
1010 rc = check_reply_cprb(rep, __func__); in ep11_cryptsingle()
1049 free_cprbmem(rep, rep_pl_size, true, xflags); in ep11_cryptsingle()
1092 struct ep11_cprb *req = NULL, *rep = NULL; in _ep11_unwrapkey() local
1149 rep = alloc_cprbmem(sizeof(struct uw_rep_pl), xflags); in _ep11_unwrapkey()
1150 if (!rep) in _ep11_unwrapkey()
1152 rep_pl = (struct uw_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_unwrapkey()
1159 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_unwrapkey()
1169 rc = check_reply_cprb(rep, __func__); in _ep11_unwrapkey()
1195 free_cprbmem(rep, sizeof(struct uw_rep_pl), true, xflags); in _ep11_unwrapkey()
1265 struct ep11_cprb *req = NULL, *rep = NULL; in _ep11_wrapkey() local
1305 rep = alloc_cprbmem(sizeof(struct wk_rep_pl), xflags); in _ep11_wrapkey()
1306 if (!rep) in _ep11_wrapkey()
1308 rep_pl = (struct wk_rep_pl *)(((u8 *)rep) + sizeof(*rep)); in _ep11_wrapkey()
1315 rep, sizeof(*rep) + sizeof(*rep_pl)); in _ep11_wrapkey()
1325 rc = check_reply_cprb(rep, __func__); in _ep11_wrapkey()
1351 free_cprbmem(rep, sizeof(struct wk_rep_pl), true, xflags); in _ep11_wrapkey()