Lines Matching refs:req_id
125 int req_id; in sec_alloc_req_id() local
129 req_id = idr_alloc_cyclic(&qp_ctx->req_idr, NULL, in sec_alloc_req_id()
132 if (unlikely(req_id < 0)) { in sec_alloc_req_id()
134 return req_id; in sec_alloc_req_id()
138 qp_ctx->req_list[req_id] = req; in sec_alloc_req_id()
140 return req_id; in sec_alloc_req_id()
146 int req_id = req->req_id; in sec_free_req_id() local
148 if (unlikely(req_id < 0 || req_id >= QM_Q_DEPTH)) { in sec_free_req_id()
153 qp_ctx->req_list[req_id] = NULL; in sec_free_req_id()
157 idr_remove(&qp_ctx->req_idr, req_id); in sec_free_req_id()
851 int req_id = req->req_id; in GEN_SEC_SETKEY_FUNC() local
862 qp_ctx->res[req_id].pbuf, copy_size); in GEN_SEC_SETKEY_FUNC()
870 mac_offset = qp_ctx->res[req_id].pbuf + copy_size - authsize; in GEN_SEC_SETKEY_FUNC()
874 req->in_dma = qp_ctx->res[req_id].pbuf_dma; in GEN_SEC_SETKEY_FUNC()
887 int req_id = req->req_id; in sec_cipher_pbuf_unmap() local
895 qp_ctx->res[req_id].pbuf, copy_size); in sec_cipher_pbuf_unmap()
926 struct sec_alg_res *res = &qp_ctx->res[req->req_id]; in sec_cipher_map()
955 req->req_id, in sec_cipher_map()
976 req->req_id, in sec_cipher_map()
1272 sec_sqe->type2.tag = cpu_to_le16((u16)req->req_id); in sec_skcipher_bd_fill()
1711 req->req_id = sec_alloc_req_id(req, qp_ctx); in sec_request_init()
1712 if (unlikely(req->req_id < 0)) { in sec_request_init()
1714 return req->req_id; in sec_request_init()