/linux-master/drivers/crypto/hisilicon/zip/ |
H A D | zip_crypto.c | 83 struct hisi_zip_qp_ctx qp_ctx[HZIP_CTX_Q_NUM]; member in struct:hisi_zip_ctx 111 static struct hisi_zip_req *hisi_zip_create_req(struct hisi_zip_qp_ctx *qp_ctx, argument 114 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; 124 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); 138 static void hisi_zip_remove_req(struct hisi_zip_qp_ctx *qp_ctx, argument 141 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; 211 static int hisi_zip_do_work(struct hisi_zip_qp_ctx *qp_ctx, argument 214 struct hisi_acc_sgl_pool *pool = qp_ctx->sgl_pool; 215 struct hisi_zip_dfx *dfx = &qp_ctx->zip_dev->dfx; 217 struct hisi_qp *qp = qp_ctx 281 struct hisi_zip_qp_ctx *qp_ctx = qp->qp_ctx; local 317 struct hisi_zip_qp_ctx *qp_ctx = &ctx->qp_ctx[HZIP_QPC_COMP]; local 338 struct hisi_zip_qp_ctx *qp_ctx = &ctx->qp_ctx[HZIP_QPC_DECOMP]; local 357 hisi_zip_start_qp(struct hisi_qp *qp, struct hisi_zip_qp_ctx *qp_ctx, int alg_type, int req_type) argument 378 hisi_zip_release_qp(struct hisi_zip_qp_ctx *qp_ctx) argument 400 struct hisi_zip_qp_ctx *qp_ctx; local [all...] |
/linux-master/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 139 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) argument 143 spin_lock_bh(&qp_ctx->req_lock); 144 req_id = idr_alloc_cyclic(&qp_ctx->req_idr, NULL, 0, qp_ctx->qp->sq_depth, GFP_ATOMIC); 145 spin_unlock_bh(&qp_ctx->req_lock); 151 req->qp_ctx = qp_ctx; 152 qp_ctx->req_list[req_id] = req; 159 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 235 struct sec_qp_ctx *qp_ctx = qp->qp_ctx; local 279 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 434 sec_alg_resource_alloc(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) argument 475 sec_alg_resource_free(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) argument 488 sec_alloc_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) argument 532 sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) argument 545 struct sec_qp_ctx *qp_ctx; local 579 sec_release_qp_ctx(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) argument 892 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 929 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 969 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 1422 sec_back_req_clear(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) argument 1444 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 1707 struct sec_qp_ctx *qp_ctx = req->qp_ctx; local 1752 struct sec_qp_ctx *qp_ctx; local [all...] |
H A D | sec.h | 49 struct sec_qp_ctx *qp_ctx; member in struct:sec_req 136 struct sec_qp_ctx *qp_ctx; member in struct:sec_ctx
|
/linux-master/drivers/infiniband/hw/irdma/ |
H A D | ctrl.c | 606 * for ird_size field of qp_ctx. Consumers are expected to provide valid ird size based 634 * @qp_ctx: context ptr 637 void irdma_sc_qp_setctx_roce(struct irdma_sc_qp *qp, __le64 *qp_ctx, argument 655 set_64bit_val(qp_ctx, 0, 670 set_64bit_val(qp_ctx, 8, qp->sq_pa); 671 set_64bit_val(qp_ctx, 16, qp->rq_pa); 675 set_64bit_val(qp_ctx, 24, 681 set_64bit_val(qp_ctx, 32, 684 set_64bit_val(qp_ctx, 40, 687 set_64bit_val(qp_ctx, 4 869 irdma_sc_qp_setctx(struct irdma_sc_qp *qp, __le64 *qp_ctx, struct irdma_qp_host_ctx_info *info) argument 3348 u64 qp_ctx, temp, temp1; local [all...] |
H A D | puda.c | 569 __le64 *qp_ctx = qp->hw_host_ctx; local 571 set_64bit_val(qp_ctx, 8, qp->sq_pa); 572 set_64bit_val(qp_ctx, 16, qp->rq_pa); 573 set_64bit_val(qp_ctx, 24, 576 set_64bit_val(qp_ctx, 48, 578 set_64bit_val(qp_ctx, 56, 0); 580 set_64bit_val(qp_ctx, 64, 1); 581 set_64bit_val(qp_ctx, 136, 584 set_64bit_val(qp_ctx, 144, 586 set_64bit_val(qp_ctx, 16 [all...] |
H A D | type.h | 1217 void irdma_sc_qp_setctx(struct irdma_sc_qp *qp, __le64 *qp_ctx, 1219 void irdma_sc_qp_setctx_roce(struct irdma_sc_qp *qp, __le64 *qp_ctx,
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | resource_tracker.c | 709 struct mlx4_qp_context *qp_ctx = inbox->buf + 8; local 711 u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; 715 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; 717 qp_ctx->pri_path.mgid_index = 720 qp_ctx->pri_path.mgid_index = slave | 0x80; 724 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; 726 qp_ctx->pri_path.mgid_index += 728 qp_ctx->pri_path.mgid_index &= 0x7f; 730 qp_ctx->pri_path.mgid_index = slave & 0x7F; 734 port = (qp_ctx 3190 struct mlx4_qp_context *qp_ctx; local [all...] |
/linux-master/include/linux/ |
H A D | hisi_acc_qm.h | 428 void *qp_ctx; member in struct:hisi_qp
|
/linux-master/drivers/crypto/hisilicon/ |
H A D | qm.c | 2407 struct hisi_qp_ctx qp_ctx; local 2410 if (copy_from_user(&qp_ctx, (void __user *)arg, 2414 if (qp_ctx.qc_type != 0 && qp_ctx.qc_type != 1) 2417 qm_set_sqctype(q, qp_ctx.qc_type); 2418 qp_ctx.id = qp->qp_id; 2420 if (copy_to_user((void __user *)arg, &qp_ctx,
|
/linux-master/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 479 struct hpre_ctx *ctx = qp->qp_ctx; 507 qp->qp_ctx = ctx;
|