/drivers/crypto/hisilicon/zip/ |
D | zip_crypto.c | 109 struct hisi_zip_qp_ctx qp_ctx[HZIP_CTX_Q_NUM]; member 214 struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_create_req() argument 217 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; in hisi_zip_create_req() 227 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req() 249 static void hisi_zip_remove_req(struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_remove_req() argument 252 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; in hisi_zip_remove_req() 331 struct hisi_zip_qp_ctx *qp_ctx) in hisi_zip_do_work() argument 333 struct hisi_acc_sgl_pool *pool = qp_ctx->sgl_pool; in hisi_zip_do_work() 334 struct hisi_zip_dfx *dfx = &qp_ctx->zip_dev->dfx; in hisi_zip_do_work() 336 struct hisi_qp *qp = qp_ctx->qp; in hisi_zip_do_work() [all …]
|
/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 123 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id() argument 127 spin_lock_bh(&qp_ctx->req_lock); in sec_alloc_req_id() 129 req_id = idr_alloc_cyclic(&qp_ctx->req_idr, NULL, in sec_alloc_req_id() 131 spin_unlock_bh(&qp_ctx->req_lock); in sec_alloc_req_id() 137 req->qp_ctx = qp_ctx; in sec_alloc_req_id() 138 qp_ctx->req_list[req_id] = req; in sec_alloc_req_id() 145 struct sec_qp_ctx *qp_ctx = req->qp_ctx; in sec_free_req_id() local 153 qp_ctx->req_list[req_id] = NULL; in sec_free_req_id() 154 req->qp_ctx = NULL; in sec_free_req_id() 156 spin_lock_bh(&qp_ctx->req_lock); in sec_free_req_id() [all …]
|
D | sec.h | 48 struct sec_qp_ctx *qp_ctx; member 135 struct sec_qp_ctx *qp_ctx; member
|
/drivers/infiniband/hw/irdma/ |
D | ctrl.c | 616 void irdma_sc_qp_setctx_roce(struct irdma_sc_qp *qp, __le64 *qp_ctx, in irdma_sc_qp_setctx_roce() argument 634 set_64bit_val(qp_ctx, 0, in irdma_sc_qp_setctx_roce() 649 set_64bit_val(qp_ctx, 8, qp->sq_pa); in irdma_sc_qp_setctx_roce() 650 set_64bit_val(qp_ctx, 16, qp->rq_pa); in irdma_sc_qp_setctx_roce() 654 set_64bit_val(qp_ctx, 24, in irdma_sc_qp_setctx_roce() 660 set_64bit_val(qp_ctx, 32, in irdma_sc_qp_setctx_roce() 663 set_64bit_val(qp_ctx, 40, in irdma_sc_qp_setctx_roce() 666 set_64bit_val(qp_ctx, 48, in irdma_sc_qp_setctx_roce() 670 set_64bit_val(qp_ctx, 56, in irdma_sc_qp_setctx_roce() 675 set_64bit_val(qp_ctx, 64, in irdma_sc_qp_setctx_roce() [all …]
|
D | puda.c | 576 __le64 *qp_ctx = qp->hw_host_ctx; in irdma_puda_qp_setctx() local 578 set_64bit_val(qp_ctx, 8, qp->sq_pa); in irdma_puda_qp_setctx() 579 set_64bit_val(qp_ctx, 16, qp->rq_pa); in irdma_puda_qp_setctx() 580 set_64bit_val(qp_ctx, 24, in irdma_puda_qp_setctx() 583 set_64bit_val(qp_ctx, 48, in irdma_puda_qp_setctx() 585 set_64bit_val(qp_ctx, 56, 0); in irdma_puda_qp_setctx() 587 set_64bit_val(qp_ctx, 64, 1); in irdma_puda_qp_setctx() 588 set_64bit_val(qp_ctx, 136, in irdma_puda_qp_setctx() 591 set_64bit_val(qp_ctx, 144, in irdma_puda_qp_setctx() 593 set_64bit_val(qp_ctx, 160, in irdma_puda_qp_setctx() [all …]
|
D | type.h | 1266 void irdma_sc_qp_setctx(struct irdma_sc_qp *qp, __le64 *qp_ctx, 1268 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.h | 307 void *qp_ctx; member
|
D | qm.c | 3044 struct hisi_qp_ctx qp_ctx; in hisi_qm_uacce_ioctl() local 3047 if (copy_from_user(&qp_ctx, (void __user *)arg, in hisi_qm_uacce_ioctl() 3051 if (qp_ctx.qc_type != 0 && qp_ctx.qc_type != 1) in hisi_qm_uacce_ioctl() 3054 qm_set_sqctype(q, qp_ctx.qc_type); in hisi_qm_uacce_ioctl() 3055 qp_ctx.id = qp->qp_id; in hisi_qm_uacce_ioctl() 3057 if (copy_to_user((void __user *)arg, &qp_ctx, in hisi_qm_uacce_ioctl()
|
/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 460 struct hpre_ctx *ctx = qp->qp_ctx; in hpre_alg_cb() 488 qp->qp_ctx = ctx; in hpre_ctx_init()
|