Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/hw/efa/
Defa_com.c266 struct efa_comp_ctx *comp_ctx) in efa_com_put_comp_ctx() argument
268 u16 cmd_id = EFA_GET(&comp_ctx->user_cqe->acq_common_descriptor.command, in efa_com_put_comp_ctx()
273 comp_ctx->occupied = 0; in efa_com_put_comp_ctx()
282 if (aq->comp_ctx[ctx_id].occupied && capture) { in efa_com_get_comp_ctx()
291 aq->comp_ctx[ctx_id].occupied = 1; in efa_com_get_comp_ctx()
296 return &aq->comp_ctx[ctx_id]; in efa_com_get_comp_ctx()
306 struct efa_comp_ctx *comp_ctx; in __efa_com_submit_admin_cmd() local
326 comp_ctx = efa_com_get_comp_ctx(aq, cmd_id, true); in __efa_com_submit_admin_cmd()
327 if (!comp_ctx) { in __efa_com_submit_admin_cmd()
332 comp_ctx->status = EFA_CMD_SUBMITTED; in __efa_com_submit_admin_cmd()
[all …]
Defa_com.h62 struct efa_comp_ctx *comp_ctx; member
/linux-6.6.21/drivers/crypto/cavium/zip/
Dzip_crypto.c74 struct zip_operation *comp_ctx = &zip_ctx->zip_comp; in zip_ctx_init() local
77 zip_static_init_zip_ops(comp_ctx, lzs_flag); in zip_ctx_init()
80 comp_ctx->input = zip_data_buf_alloc(MAX_INPUT_BUFFER_SIZE); in zip_ctx_init()
81 if (!comp_ctx->input) in zip_ctx_init()
84 comp_ctx->output = zip_data_buf_alloc(MAX_OUTPUT_BUFFER_SIZE); in zip_ctx_init()
85 if (!comp_ctx->output) in zip_ctx_init()
102 zip_data_buf_free(comp_ctx->output, MAX_OUTPUT_BUFFER_SIZE); in zip_ctx_init()
105 zip_data_buf_free(comp_ctx->input, MAX_INPUT_BUFFER_SIZE); in zip_ctx_init()
112 struct zip_operation *comp_ctx = &zip_ctx->zip_comp; in zip_ctx_exit() local
115 zip_data_buf_free(comp_ctx->input, MAX_INPUT_BUFFER_SIZE); in zip_ctx_exit()
[all …]
/linux-6.6.21/drivers/net/ethernet/amazon/ena/
Dena_com.c175 struct ena_comp_ctx *comp_ctx) in comp_ctxt_release() argument
177 comp_ctx->occupied = false; in comp_ctxt_release()
191 if (unlikely(!admin_queue->comp_ctx)) { in get_comp_ctxt()
197 if (unlikely(admin_queue->comp_ctx[command_id].occupied && capture)) { in get_comp_ctxt()
205 admin_queue->comp_ctx[command_id].occupied = true; in get_comp_ctxt()
208 return &admin_queue->comp_ctx[command_id]; in get_comp_ctxt()
217 struct ena_comp_ctx *comp_ctx; in __ena_com_submit_admin_cmd() local
243 comp_ctx = get_comp_ctxt(admin_queue, cmd_id, true); in __ena_com_submit_admin_cmd()
244 if (unlikely(!comp_ctx)) in __ena_com_submit_admin_cmd()
247 comp_ctx->status = ENA_CMD_SUBMITTED; in __ena_com_submit_admin_cmd()
[all …]
Dena_com.h221 struct ena_comp_ctx *comp_ctx; member
/linux-6.6.21/drivers/infiniband/hw/erdma/
Derdma_cmdq.c367 static int erdma_poll_cmd_completion(struct erdma_comp_wait *comp_ctx, in erdma_poll_cmd_completion() argument
374 if (comp_ctx->cmd_status != ERDMA_CMD_STATUS_ISSUED) in erdma_poll_cmd_completion()
386 static int erdma_wait_cmd_completion(struct erdma_comp_wait *comp_ctx, in erdma_wait_cmd_completion() argument
391 wait_for_completion_timeout(&comp_ctx->wait_event, in erdma_wait_cmd_completion()
394 if (unlikely(comp_ctx->cmd_status != ERDMA_CMD_STATUS_FINISHED)) { in erdma_wait_cmd_completion()
396 comp_ctx->cmd_status = ERDMA_CMD_STATUS_TIMEOUT; in erdma_wait_cmd_completion()
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dqat_comp_algs.c36 u8 comp_ctx[QAT_COMP_CTX_SIZE]; member
282 ctx->inst->build_deflate_ctx(ctx->comp_ctx); in qat_comp_alg_init_tfm()
375 qat_comp_create_compression_req(ctx->comp_ctx, req, in qat_comp_alg_compress_decompress()
380 qat_comp_create_decompression_req(ctx->comp_ctx, req, in qat_comp_alg_compress_decompress()
/linux-6.6.21/drivers/infiniband/hw/irdma/
Duk.c973 u64 comp_ctx, qword0, qword2, qword3; in irdma_uk_cq_poll_cmpl() local
1076 get_64bit_val(cqe, 8, &comp_ctx); in irdma_uk_cq_poll_cmpl()
1079 qp = (struct irdma_qp_uk *)(unsigned long)comp_ctx; in irdma_uk_cq_poll_cmpl()
1494 u64 qword3, comp_ctx; in irdma_uk_clean_cq() local
1514 get_64bit_val(cqe, 8, &comp_ctx); in irdma_uk_clean_cq()
1515 if ((void *)(unsigned long)comp_ctx == q) in irdma_uk_clean_cq()
Dpuda.c219 u64 comp_ctx; in irdma_puda_poll_info() local
282 get_64bit_val(cqe, 8, &comp_ctx); in irdma_puda_poll_info()
283 info->qp = (struct irdma_qp_uk *)(unsigned long)comp_ctx; in irdma_puda_poll_info()