Home
last modified time | relevance | path

Searched refs:qp_ctx (Results 1 – 9 of 9) sorted by relevance

/drivers/crypto/hisilicon/zip/
Dzip_crypto.c95 struct hisi_zip_qp_ctx qp_ctx[HZIP_CTX_Q_NUM]; member
161 qp->qp_ctx = ctx; in hisi_zip_start_qp()
196 ret = hisi_zip_start_qp(qps[i], &hisi_zip_ctx->qp_ctx[i], i, in hisi_zip_ctx_init()
200 hisi_qm_stop_qp(hisi_zip_ctx->qp_ctx[j].qp); in hisi_zip_ctx_init()
206 hisi_zip_ctx->qp_ctx[i].zip_dev = hisi_zip; in hisi_zip_ctx_init()
217 hisi_zip_release_qp(&hisi_zip_ctx->qp_ctx[i]); in hisi_zip_ctx_exit()
258 req_q = &ctx->qp_ctx[i].req_q; in hisi_zip_create_req_q()
286 kfree(ctx->qp_ctx[HZIP_QPC_DECOMP].req_q.req_bitmap); in hisi_zip_create_req_q()
288 kfree(ctx->qp_ctx[HZIP_QPC_COMP].req_q.q); in hisi_zip_create_req_q()
290 kfree(ctx->qp_ctx[HZIP_QPC_COMP].req_q.req_bitmap); in hisi_zip_create_req_q()
[all …]
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c87 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id() argument
91 spin_lock_bh(&qp_ctx->req_lock); in sec_alloc_req_id()
93 req_id = idr_alloc_cyclic(&qp_ctx->req_idr, NULL, in sec_alloc_req_id()
95 spin_unlock_bh(&qp_ctx->req_lock); in sec_alloc_req_id()
101 req->qp_ctx = qp_ctx; in sec_alloc_req_id()
102 qp_ctx->req_list[req_id] = req; in sec_alloc_req_id()
108 struct sec_qp_ctx *qp_ctx = req->qp_ctx; in sec_free_req_id() local
116 qp_ctx->req_list[req_id] = NULL; in sec_free_req_id()
117 req->qp_ctx = NULL; in sec_free_req_id()
119 spin_lock_bh(&qp_ctx->req_lock); in sec_free_req_id()
[all …]
Dsec.h43 struct sec_qp_ctx *qp_ctx; member
120 struct sec_qp_ctx *qp_ctx; member
/drivers/infiniband/hw/i40iw/
Di40iw_puda.c481 u64 *qp_ctx = qp->hw_host_ctx; in i40iw_puda_qp_setctx() local
483 set_64bit_val(qp_ctx, 8, qp->sq_pa); in i40iw_puda_qp_setctx()
484 set_64bit_val(qp_ctx, 16, qp->rq_pa); in i40iw_puda_qp_setctx()
486 set_64bit_val(qp_ctx, 24, in i40iw_puda_qp_setctx()
490 set_64bit_val(qp_ctx, 48, LS_64(rsrc->buf_size, I40IW_UDA_QPC_MAXFRAMESIZE)); in i40iw_puda_qp_setctx()
491 set_64bit_val(qp_ctx, 56, 0); in i40iw_puda_qp_setctx()
492 set_64bit_val(qp_ctx, 64, 1); in i40iw_puda_qp_setctx()
494 set_64bit_val(qp_ctx, 136, in i40iw_puda_qp_setctx()
498 set_64bit_val(qp_ctx, 160, LS_64(1, I40IWQPC_PRIVEN)); in i40iw_puda_qp_setctx()
500 set_64bit_val(qp_ctx, 168, in i40iw_puda_qp_setctx()
[all …]
Di40iw_ctrl.c723 u64 qp_ctx, temp, temp1; in i40iw_sc_ccq_get_cqe_info() local
740 get_64bit_val(cqe, 8, &qp_ctx); in i40iw_sc_ccq_get_cqe_info()
741 cqp = (struct i40iw_sc_cqp *)(unsigned long)qp_ctx; in i40iw_sc_ccq_get_cqe_info()
2838 u64 *qp_ctx, in i40iw_sc_qp_setctx() argument
2866 set_64bit_val(qp_ctx, 8, qp->sq_pa); in i40iw_sc_qp_setctx()
2867 set_64bit_val(qp_ctx, 16, qp->rq_pa); in i40iw_sc_qp_setctx()
2873 set_64bit_val(qp_ctx, in i40iw_sc_qp_setctx()
2877 set_64bit_val(qp_ctx, in i40iw_sc_qp_setctx()
2882 set_64bit_val(qp_ctx, in i40iw_sc_qp_setctx()
2885 set_64bit_val(qp_ctx, in i40iw_sc_qp_setctx()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c709 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/
Dqm.h279 void *qp_ctx; member
Dqm.c2131 struct hisi_qp_ctx qp_ctx; in hisi_qm_uacce_ioctl() local
2134 if (copy_from_user(&qp_ctx, (void __user *)arg, in hisi_qm_uacce_ioctl()
2138 if (qp_ctx.qc_type != 0 && qp_ctx.qc_type != 1) in hisi_qm_uacce_ioctl()
2141 qm_set_sqctype(q, qp_ctx.qc_type); in hisi_qm_uacce_ioctl()
2142 qp_ctx.id = qp->qp_id; in hisi_qm_uacce_ioctl()
2144 if (copy_to_user((void __user *)arg, &qp_ctx, in hisi_qm_uacce_ioctl()
/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c411 struct hpre_ctx *ctx = qp->qp_ctx; in hpre_alg_cb()
433 qp->qp_ctx = ctx; in hpre_ctx_init()