Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/amazon/ena/
Dena_com.c173 struct ena_comp_ctx *comp_ctx) in comp_ctxt_release() argument
175 comp_ctx->occupied = false; in comp_ctxt_release()
189 if (unlikely(!admin_queue->comp_ctx)) { in get_comp_ctxt()
195 if (unlikely(admin_queue->comp_ctx[command_id].occupied && capture)) { in get_comp_ctxt()
203 admin_queue->comp_ctx[command_id].occupied = true; in get_comp_ctxt()
206 return &admin_queue->comp_ctx[command_id]; in get_comp_ctxt()
215 struct ena_comp_ctx *comp_ctx; in __ena_com_submit_admin_cmd() local
241 comp_ctx = get_comp_ctxt(admin_queue, cmd_id, true); in __ena_com_submit_admin_cmd()
242 if (unlikely(!comp_ctx)) in __ena_com_submit_admin_cmd()
245 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.1.9/drivers/infiniband/hw/erdma/
Derdma_cmdq.c395 static int erdma_poll_cmd_completion(struct erdma_comp_wait *comp_ctx, in erdma_poll_cmd_completion() argument
402 if (comp_ctx->cmd_status != ERDMA_CMD_STATUS_ISSUED) in erdma_poll_cmd_completion()
414 static int erdma_wait_cmd_completion(struct erdma_comp_wait *comp_ctx, in erdma_wait_cmd_completion() argument
419 wait_for_completion_timeout(&comp_ctx->wait_event, in erdma_wait_cmd_completion()
422 if (unlikely(comp_ctx->cmd_status != ERDMA_CMD_STATUS_FINISHED)) { in erdma_wait_cmd_completion()
424 comp_ctx->cmd_status = ERDMA_CMD_STATUS_TIMEOUT; in erdma_wait_cmd_completion()
/linux-6.1.9/drivers/infiniband/hw/irdma/
Duk.c1048 u64 comp_ctx, qword0, qword2, qword3; in irdma_uk_cq_poll_cmpl() local
1152 get_64bit_val(cqe, 8, &comp_ctx); in irdma_uk_cq_poll_cmpl()
1155 qp = (struct irdma_qp_uk *)(unsigned long)comp_ctx; in irdma_uk_cq_poll_cmpl()
1511 u64 qword3, comp_ctx; in irdma_uk_clean_cq() local
1528 get_64bit_val(cqe, 8, &comp_ctx); in irdma_uk_clean_cq()
1529 if ((void *)(unsigned long)comp_ctx == q) in irdma_uk_clean_cq()
Dpuda.c219 u64 comp_ctx; in irdma_puda_poll_info() local
276 get_64bit_val(cqe, 8, &comp_ctx); in irdma_puda_poll_info()
277 info->qp = (struct irdma_qp_uk *)(unsigned long)comp_ctx; in irdma_puda_poll_info()