Home
last modified time | relevance | path

Searched refs:cqe_ctx_id (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/hw/rdma/
H A Drdma_rm.h79 int rdma_rm_alloc_cqe_ctx(RdmaDeviceResources *dev_res, uint32_t *cqe_ctx_id,
81 void *rdma_rm_get_cqe_ctx(RdmaDeviceResources *dev_res, uint32_t cqe_ctx_id);
82 void rdma_rm_dealloc_cqe_ctx(RdmaDeviceResources *dev_res, uint32_t cqe_ctx_id);
H A Drdma_backend.c66 unsigned long cqe_ctx_id = GPOINTER_TO_INT(data); in free_cqe_ctx() local
68 bctx = rdma_rm_get_cqe_ctx(rdma_dev_res, cqe_ctx_id); in free_cqe_ctx()
70 rdma_rm_dealloc_cqe_ctx(rdma_dev_res, cqe_ctx_id); in free_cqe_ctx()
78 unsigned long cqe_ctx_id; in clean_recv_mads() local
81 cqe_ctx_id = rdma_protected_gqueue_pop_int64(&backend_dev-> in clean_recv_mads()
83 if (cqe_ctx_id != -ENOENT) { in clean_recv_mads()
85 free_cqe_ctx(GINT_TO_POINTER(cqe_ctx_id), in clean_recv_mads()
88 } while (cqe_ctx_id != -ENOENT); in clean_recv_mads()
1108 unsigned long cqe_ctx_id; in process_incoming_mad_req() local
1115 if (cqe_ctx_id == -ENOENT) { in process_incoming_mad_req()
[all …]
H A Drdma_rm.c652 void *rdma_rm_get_cqe_ctx(RdmaDeviceResources *dev_res, uint32_t cqe_ctx_id) in rdma_rm_get_cqe_ctx() argument
656 cqe_ctx = rdma_res_tbl_get(&dev_res->cqe_ctx_tbl, cqe_ctx_id); in rdma_rm_get_cqe_ctx()
664 int rdma_rm_alloc_cqe_ctx(RdmaDeviceResources *dev_res, uint32_t *cqe_ctx_id, in rdma_rm_alloc_cqe_ctx() argument
669 cqe_ctx = rdma_res_tbl_alloc(&dev_res->cqe_ctx_tbl, cqe_ctx_id); in rdma_rm_alloc_cqe_ctx()
679 void rdma_rm_dealloc_cqe_ctx(RdmaDeviceResources *dev_res, uint32_t cqe_ctx_id) in rdma_rm_dealloc_cqe_ctx() argument
681 rdma_res_tbl_dealloc(&dev_res->cqe_ctx_tbl, cqe_ctx_id); in rdma_rm_dealloc_cqe_ctx()