Home
last modified time | relevance | path

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

/linux/drivers/crypto/hisilicon/zip/
H A Dzip_crypto.c57 struct hisi_zip_qp_ctx *qp_ctx; member
91 struct hisi_zip_qp_ctx qp_ctx[HZIP_CTX_Q_NUM]; member
138 static struct hisi_zip_req *hisi_zip_create_req(struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_create_req() argument
141 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; in hisi_zip_create_req()
151 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n"); in hisi_zip_create_req()
161 req_cache->qp_ctx = qp_ctx; in hisi_zip_create_req()
166 static void hisi_zip_remove_req(struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_remove_req() argument
169 struct hisi_zip_req_q *req_q = &qp_ctx->req_q; in hisi_zip_remove_req()
250 static int hisi_zip_do_work(struct hisi_zip_qp_ctx *qp_ctx, in hisi_zip_do_work() argument
253 struct hisi_acc_sgl_pool *pool = qp_ctx->sgl_pool; in hisi_zip_do_work()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c703 struct mlx4_qp_context *qp_ctx = inbox->buf + 8; in update_gid() local
705 u32 ts = (be32_to_cpu(qp_ctx->flags) >> 16) & 0xff; in update_gid()
709 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
711 qp_ctx->pri_path.mgid_index = in update_gid()
714 qp_ctx->pri_path.mgid_index = slave | 0x80; in update_gid()
718 port = (qp_ctx->pri_path.sched_queue >> 6 & 1) + 1; in update_gid()
720 qp_ctx->pri_path.mgid_index += in update_gid()
722 qp_ctx->pri_path.mgid_index &= 0x7f; in update_gid()
724 qp_ctx->pri_path.mgid_index = slave & 0x7F; in update_gid()
728 port = (qp_ctx->alt_path.sched_queue >> 6 & 1) + 1; in update_gid()
[all …]