/drivers/crypto/hisilicon/zip/ |
D | zip_crypto.c | 113 struct hisi_zip_qp_ctx qp_ctx[HZIP_CTX_Q_NUM]; member 218 struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_create_req() argument 221 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; in hisi_zip_create_req() 231 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req() 253 static void hisi_zip_remove_req(struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_remove_req() argument 256 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; in hisi_zip_remove_req() 334 struct hisi_zip_qp_ctx *qp_ctx) in hisi_zip_do_work() argument 336 struct hisi_acc_sgl_pool *pool = qp_ctx->sgl_pool; in hisi_zip_do_work() 337 struct hisi_zip_dfx *dfx = &qp_ctx->zip_dev->dfx; in hisi_zip_do_work() 339 struct hisi_qp *qp = qp_ctx->qp; in hisi_zip_do_work() [all …]
|
/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 136 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id() argument 140 spin_lock_bh(&qp_ctx->req_lock); in sec_alloc_req_id() 141 req_id = idr_alloc_cyclic(&qp_ctx->req_idr, NULL, 0, qp_ctx->qp->sq_depth, GFP_ATOMIC); in sec_alloc_req_id() 142 spin_unlock_bh(&qp_ctx->req_lock); in sec_alloc_req_id() 148 req->qp_ctx = qp_ctx; in sec_alloc_req_id() 149 qp_ctx->req_list[req_id] = req; in sec_alloc_req_id() 156 struct sec_qp_ctx *qp_ctx = req->qp_ctx; in sec_free_req_id() local 159 if (unlikely(req_id < 0 || req_id >= qp_ctx->qp->sq_depth)) { in sec_free_req_id() 164 qp_ctx->req_list[req_id] = NULL; in sec_free_req_id() 165 req->qp_ctx = NULL; in sec_free_req_id() [all …]
|
D | sec.h | 49 struct sec_qp_ctx *qp_ctx; member 136 struct sec_qp_ctx *qp_ctx; member
|
/drivers/infiniband/hw/irdma/ |
D | ctrl.c | 637 void irdma_sc_qp_setctx_roce(struct irdma_sc_qp *qp, __le64 *qp_ctx, in irdma_sc_qp_setctx_roce() argument 655 set_64bit_val(qp_ctx, 0, in irdma_sc_qp_setctx_roce() 670 set_64bit_val(qp_ctx, 8, qp->sq_pa); in irdma_sc_qp_setctx_roce() 671 set_64bit_val(qp_ctx, 16, qp->rq_pa); in irdma_sc_qp_setctx_roce() 675 set_64bit_val(qp_ctx, 24, in irdma_sc_qp_setctx_roce() 681 set_64bit_val(qp_ctx, 32, in irdma_sc_qp_setctx_roce() 684 set_64bit_val(qp_ctx, 40, in irdma_sc_qp_setctx_roce() 687 set_64bit_val(qp_ctx, 48, in irdma_sc_qp_setctx_roce() 691 set_64bit_val(qp_ctx, 56, in irdma_sc_qp_setctx_roce() 696 set_64bit_val(qp_ctx, 64, in irdma_sc_qp_setctx_roce() [all …]
|
D | puda.c | 569 __le64 *qp_ctx = qp->hw_host_ctx; in irdma_puda_qp_setctx() local 571 set_64bit_val(qp_ctx, 8, qp->sq_pa); in irdma_puda_qp_setctx() 572 set_64bit_val(qp_ctx, 16, qp->rq_pa); in irdma_puda_qp_setctx() 573 set_64bit_val(qp_ctx, 24, in irdma_puda_qp_setctx() 576 set_64bit_val(qp_ctx, 48, in irdma_puda_qp_setctx() 578 set_64bit_val(qp_ctx, 56, 0); in irdma_puda_qp_setctx() 580 set_64bit_val(qp_ctx, 64, 1); in irdma_puda_qp_setctx() 581 set_64bit_val(qp_ctx, 136, in irdma_puda_qp_setctx() 584 set_64bit_val(qp_ctx, 144, in irdma_puda_qp_setctx() 586 set_64bit_val(qp_ctx, 160, in irdma_puda_qp_setctx() [all …]
|
D | type.h | 1262 void irdma_sc_qp_setctx(struct irdma_sc_qp *qp, __le64 *qp_ctx, 1264 void irdma_sc_qp_setctx_roce(struct irdma_sc_qp *qp, __le64 *qp_ctx,
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | resource_tracker.c | 709 struct mlx4_qp_context *qp_ctx = inbox->buf + 8; in update_gid() local 711 u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in update_gid() 715 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid() 717 qp_ctx->pri_path.mgid_index = in update_gid() 720 qp_ctx->pri_path.mgid_index = slave | 0x80; in update_gid() 724 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid() 726 qp_ctx->pri_path.mgid_index += in update_gid() 728 qp_ctx->pri_path.mgid_index &= 0x7f; in update_gid() 730 qp_ctx->pri_path.mgid_index = slave & 0x7F; in update_gid() 734 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in update_gid() [all …]
|
/drivers/crypto/hisilicon/ |
D | qm.c | 2485 struct hisi_qp_ctx qp_ctx; in hisi_qm_uacce_ioctl() local 2488 if (copy_from_user(&qp_ctx, (void __user *)arg, in hisi_qm_uacce_ioctl() 2492 if (qp_ctx.qc_type != 0 && qp_ctx.qc_type != 1) in hisi_qm_uacce_ioctl() 2495 qm_set_sqctype(q, qp_ctx.qc_type); in hisi_qm_uacce_ioctl() 2496 qp_ctx.id = qp->qp_id; in hisi_qm_uacce_ioctl() 2498 if (copy_to_user((void __user *)arg, &qp_ctx, in hisi_qm_uacce_ioctl()
|
/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 466 struct hpre_ctx *ctx = qp->qp_ctx; in hpre_alg_cb() 494 qp->qp_ctx = ctx; in hpre_ctx_init()
|