/freebsd-13-stable/sys/ofed/include/rdma/ |
H A D | rdmavt_cq.h | 74 /* these are actually size ibcq.cqe + 1 */ 84 struct ib_cq ibcq; member in struct:rvt_cq 94 static inline struct rvt_cq *ibcq_to_rvtcq(struct ib_cq *ibcq) argument 96 return container_of(ibcq, struct rvt_cq, ibcq);
|
/freebsd-13-stable/contrib/ofed/libmlx5/ |
H A D | cq.c | 729 static inline int poll_cq(struct ibv_cq *ibcq, int ne, 732 static inline int poll_cq(struct ibv_cq *ibcq, int ne, argument 735 struct mlx5_cq *cq = to_mcq(ibcq); 792 static inline void _mlx5_end_poll(struct ibv_cq_ex *ibcq, 795 static inline void _mlx5_end_poll(struct ibv_cq_ex *ibcq, argument 798 struct mlx5_cq *cq = to_mcq(ibv_cq_ex_to_cq(ibcq)); 828 static inline int mlx5_start_poll(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr, 831 static inline int mlx5_start_poll(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr, argument 834 struct mlx5_cq *cq = to_mcq(ibv_cq_ex_to_cq(ibcq)); 896 static inline int mlx5_next_poll(struct ibv_cq_ex *ibcq, 899 mlx5_next_poll(struct ibv_cq_ex *ibcq, enum polling_mode stall, int cqe_version) argument 919 mlx5_next_poll_adaptive_v0(struct ibv_cq_ex *ibcq) argument 924 mlx5_next_poll_adaptive_v1(struct ibv_cq_ex *ibcq) argument 929 mlx5_next_poll_v0(struct ibv_cq_ex *ibcq) argument 934 mlx5_next_poll_v1(struct ibv_cq_ex *ibcq) argument 939 mlx5_start_poll_v0(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 945 mlx5_start_poll_v1(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 951 mlx5_start_poll_v0_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 957 mlx5_start_poll_v1_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 963 mlx5_start_poll_adaptive_stall_v0_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 969 mlx5_start_poll_stall_v0_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 975 mlx5_start_poll_adaptive_stall_v1_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 981 mlx5_start_poll_stall_v1_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 987 mlx5_start_poll_stall_v0(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 993 mlx5_start_poll_adaptive_stall_v0(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 999 mlx5_start_poll_adaptive_stall_v1(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 1005 mlx5_start_poll_stall_v1(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 1011 mlx5_end_poll_adaptive_stall_lock(struct ibv_cq_ex *ibcq) argument 1016 mlx5_end_poll_stall_lock(struct ibv_cq_ex *ibcq) argument 1021 mlx5_end_poll_adaptive_stall(struct ibv_cq_ex *ibcq) argument 1026 mlx5_end_poll_stall(struct ibv_cq_ex *ibcq) argument 1031 mlx5_end_poll(struct ibv_cq_ex *ibcq) argument 1036 mlx5_end_poll_lock(struct ibv_cq_ex *ibcq) argument 1041 mlx5_poll_cq(struct ibv_cq *ibcq, int ne, struct ibv_wc *wc) argument 1046 mlx5_poll_cq_v1(struct ibv_cq *ibcq, int ne, struct ibv_wc *wc) argument 1051 mlx5_cq_read_wc_opcode(struct ibv_cq_ex *ibcq) argument 1094 mlx5_cq_read_wc_qp_num(struct ibv_cq_ex *ibcq) argument 1101 mlx5_cq_read_wc_flags(struct ibv_cq_ex *ibcq) argument 1127 mlx5_cq_read_wc_byte_len(struct ibv_cq_ex *ibcq) argument 1134 mlx5_cq_read_wc_vendor_err(struct ibv_cq_ex *ibcq) argument 1142 mlx5_cq_read_wc_imm_data(struct ibv_cq_ex *ibcq) argument 1154 mlx5_cq_read_wc_slid(struct ibv_cq_ex *ibcq) argument 1161 mlx5_cq_read_wc_sl(struct ibv_cq_ex *ibcq) argument 1168 mlx5_cq_read_wc_src_qp(struct ibv_cq_ex *ibcq) argument 1175 mlx5_cq_read_wc_dlid_path_bits(struct ibv_cq_ex *ibcq) argument 1182 mlx5_cq_read_wc_completion_ts(struct ibv_cq_ex *ibcq) argument 1189 mlx5_cq_read_wc_cvlan(struct ibv_cq_ex *ibcq) argument 1196 mlx5_cq_read_flow_tag(struct ibv_cq_ex *ibcq) argument [all...] |
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_cq.c | 45 struct ib_cq *ibcq = &to_mibcq(cq)->ibcq; local 46 ibcq->comp_handler(ibcq, ibcq->cq_context); 52 struct ib_cq *ibcq; local 60 ibcq = &to_mibcq(cq)->ibcq; 61 if (ibcq->event_handler) { 62 event.device = ibcq 373 mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) argument 872 mlx4_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument 900 mlx4_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) argument [all...] |
H A D | mlx4_ib.h | 122 struct ib_cq ibcq; member in struct:mlx4_ib_cq 654 static inline struct mlx4_ib_cq *to_mcq(struct ib_cq *ibcq) argument 656 return container_of(ibcq, struct mlx4_ib_cq, ibcq); 739 int mlx4_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); 745 int mlx4_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc);
|
/freebsd-13-stable/contrib/ofed/libmlx4/ |
H A D | cq.c | 397 int mlx4_poll_cq(struct ibv_cq *ibcq, int ne, struct ibv_wc *wc) argument 399 struct mlx4_cq *cq = to_mcq(ibcq); 420 static inline void _mlx4_end_poll(struct ibv_cq_ex *ibcq, int lock) 422 static inline void _mlx4_end_poll(struct ibv_cq_ex *ibcq, int lock) argument 424 struct mlx4_cq *cq = to_mcq(ibv_cq_ex_to_cq(ibcq)); 432 static inline int _mlx4_start_poll(struct ibv_cq_ex *ibcq, 436 static inline int _mlx4_start_poll(struct ibv_cq_ex *ibcq, argument 440 struct mlx4_cq *cq = to_mcq(ibv_cq_ex_to_cq(ibcq)); 466 static int mlx4_next_poll(struct ibv_cq_ex *ibcq) argument 468 struct mlx4_cq *cq = to_mcq(ibv_cq_ex_to_cq(ibcq)); 479 mlx4_end_poll(struct ibv_cq_ex *ibcq) argument 484 mlx4_end_poll_lock(struct ibv_cq_ex *ibcq) argument 489 mlx4_start_poll(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 495 mlx4_start_poll_lock(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_attr *attr) argument 501 mlx4_cq_read_wc_opcode(struct ibv_cq_ex *ibcq) argument 539 mlx4_cq_read_wc_qp_num(struct ibv_cq_ex *ibcq) argument 546 mlx4_cq_read_wc_flags(struct ibv_cq_ex *ibcq) argument 581 mlx4_cq_read_wc_byte_len(struct ibv_cq_ex *ibcq) argument 588 mlx4_cq_read_wc_vendor_err(struct ibv_cq_ex *ibcq) argument 596 mlx4_cq_read_wc_imm_data(struct ibv_cq_ex *ibcq) argument 608 mlx4_cq_read_wc_slid(struct ibv_cq_ex *ibcq) argument 615 mlx4_cq_read_wc_sl(struct ibv_cq_ex *ibcq) argument 625 mlx4_cq_read_wc_src_qp(struct ibv_cq_ex *ibcq) argument 632 mlx4_cq_read_wc_dlid_path_bits(struct ibv_cq_ex *ibcq) argument 639 mlx4_cq_read_wc_completion_ts(struct ibv_cq_ex *ibcq) argument [all...] |
H A D | verbs.c | 574 int mlx4_resize_cq(struct ibv_cq *ibcq, int cqe) argument 576 struct mlx4_cq *cq = to_mcq(ibcq); 589 if (cqe == ibcq->cqe + 1) { 601 ret = mlx4_alloc_cq_buf(to_mdev(ibcq->context->device), &buf, cqe, cq->cqe_size); 605 old_cqe = ibcq->cqe; 608 ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd, sizeof cmd,
|
H A D | mlx4.h | 324 static inline struct mlx4_cq *to_mcq(struct ibv_cq *ibcq) argument
|
/freebsd-13-stable/sys/dev/mthca/ |
H A D | mthca_cq.c | 181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); 235 cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context); 259 event.element.cq = &cq->ibcq; 260 if (cq->ibcq.event_handler) 261 cq->ibcq.event_handler(&event, cq->ibcq.cq_context); 295 cqe_sw(get_cqe(cq, prod_index & cq->ibcq.cqe)); 297 if (prod_index == cq->cons_index + cq->ibcq 659 mthca_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry) argument 741 mthca_arbel_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) argument [all...] |
H A D | mthca_provider.h | 204 struct ib_cq ibcq; member in struct:mthca_cq 326 static inline struct mthca_cq *to_mcq(struct ib_cq *ibcq) argument 328 return container_of(ibcq, struct mthca_cq, ibcq);
|
H A D | mthca_provider.c | 713 return &cq->ibcq; 776 static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) argument 778 struct mthca_dev *dev = to_mdev(ibcq->device); 779 struct mthca_cq *cq = to_mcq(ibcq); 790 if (entries == ibcq->cqe + 1) { 830 tcqe = cq->ibcq.cqe; 832 cq->ibcq.cqe = cq->resize_buf->cqe; 844 ibcq->cqe = entries - 1;
|
/freebsd-13-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | ev.c | 74 event.device = chp->ibcq.device; 76 event.element.cq = &chp->ibcq; 83 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context); 206 (*chp->ibcq.comp_handler)(&chp->ibcq, chp->ibcq.cq_context);
|
H A D | qp.c | 637 (*schp->ibcq.comp_handler)(&schp->ibcq, 638 schp->ibcq.cq_context); 667 (*rchp->ibcq.comp_handler)(&rchp->ibcq, 668 rchp->ibcq.cq_context); 1198 (*rchp->ibcq.comp_handler)(&rchp->ibcq, 1199 rchp->ibcq.cq_context); 1205 (*rchp->ibcq [all...] |
H A D | cq.c | 865 int c4iw_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument 872 chp = to_c4iw_cq(ibcq); 975 chp->ibcq.cqe = entries - 2; 1023 return &chp->ibcq; 1043 int c4iw_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) argument 1049 chp = to_c4iw_cq(ibcq);
|
H A D | iw_cxgbe.h | 419 struct ib_cq ibcq; member in struct:c4iw_cq 428 static inline struct c4iw_cq *to_c4iw_cq(struct ib_cq *ibcq) argument 430 return container_of(ibcq, struct c4iw_cq, ibcq); 923 int c4iw_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc); 953 int c4iw_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags);
|
/freebsd-13-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 36 struct ib_cq *ibcq = &to_mibcq(cq)->ibcq; local 38 ibcq->comp_handler(ibcq, ibcq->cq_context); 44 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); 45 struct ib_cq *ibcq = &cq->ibcq; local 54 if (ibcq->event_handler) { 57 event.element.cq = ibcq; 665 mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument 697 mlx5_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) argument 1249 mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata) argument 1378 mlx5_ib_get_cqe_size(struct mlx5_ib_dev *dev, struct ib_cq *ibcq) argument 1390 mlx5_ib_generate_wc(struct ib_cq *ibcq, struct ib_wc *wc) argument [all...] |
H A D | mlx5_ib.h | 458 struct ib_cq ibcq; member in struct:mlx5_ib_cq 745 static inline struct mlx5_ib_cq *to_mcq(struct ib_cq *ibcq) argument 747 return container_of(ibcq, struct mlx5_ib_cq, ibcq); 858 int mlx5_ib_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc); 859 int mlx5_ib_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags); 861 int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata); 919 int mlx5_ib_get_cqe_size(struct mlx5_ib_dev *dev, struct ib_cq *ibcq); 996 int mlx5_ib_generate_wc(struct ib_cq *ibcq, struct ib_wc *wc);
|
/freebsd-13-stable/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.h | 85 extern int qlnxr_gsi_poll_cq(struct ib_cq *ibcq,
|
H A D | qlnxr_cm.c | 84 if (cq->ibcq.comp_handler) 85 (*cq->ibcq.comp_handler) (&cq->ibcq, cq->ibcq.cq_context); 145 if (cq->ibcq.comp_handler) 146 (*cq->ibcq.comp_handler) (&cq->ibcq, cq->ibcq.cq_context); 827 qlnxr_gsi_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument 829 struct qlnxr_dev *dev = get_qlnxr_dev((ibcq [all...] |
H A D | qlnxr_os.c | 344 if (!cq->destroyed && cq->ibcq.comp_handler) { 346 "ibcq = %p cq_context = 0x%x\n", 347 &cq->ibcq, cq->ibcq.cq_context); 349 (*cq->ibcq.comp_handler) (&cq->ibcq, cq->ibcq.cq_context); 626 struct ib_cq *ibcq = &cq->ibcq; local 628 if (ibcq [all...] |
H A D | qlnxr_def.h | 518 struct ib_cq ibcq; /* must be first */ member in struct:qlnxr_cq 793 get_qlnxr_cq(struct ib_cq *ibcq) argument 795 return container_of(ibcq, struct qlnxr_cq, ibcq);
|
H A D | qlnxr_verbs.c | 1924 cq->ibcq.cqe = chain_entries; 1941 cq->ibcq.cqe = cq->pbl.capacity; 1998 return &cq->ibcq; 2019 int qlnxr_resize_cq(struct ib_cq *ibcq, int new_cnt, struct ib_udata *udata) argument 2022 struct qlnxr_dev *dev = get_qlnxr_dev((ibcq->device)); 2033 qlnxr_destroy_cq(struct ib_cq *ibcq) argument 2035 struct qlnxr_dev *dev = get_qlnxr_dev((ibcq->device)); 2038 struct qlnxr_cq *cq = get_qlnxr_cq(ibcq); 2070 if (ibcq->uobject && ibcq 5635 qlnxr_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) argument 5733 qlnxr_arm_cq(struct ib_cq *ibcq, enum ib_cq_notify_flags flags) argument [all...] |
/freebsd-13-stable/contrib/ofed/libcxgb4/ |
H A D | cq.c | 711 int c4iw_poll_cq(struct ibv_cq *ibcq, int num_entries, struct ibv_wc *wc) argument 717 chp = to_c4iw_cq(ibcq); 739 int c4iw_arm_cq(struct ibv_cq *ibcq, int solicited) argument 745 chp = to_c4iw_cq(ibcq);
|
H A D | verbs.c | 242 int c4iw_resize_cq(struct ibv_cq *ibcq, int cqe) argument 249 ret = ibv_cmd_resize_cq(ibcq, cqe, &cmd, sizeof cmd, &resp, sizeof resp); 257 int c4iw_destroy_cq(struct ibv_cq *ibcq) argument 260 struct c4iw_cq *chp = to_c4iw_cq(ibcq); 261 struct c4iw_dev *dev = to_c4iw_dev(ibcq->context->device); 264 ret = ibv_cmd_destroy_cq(ibcq);
|
H A D | libcxgb4.h | 141 static inline struct c4iw_cq *to_c4iw_cq(struct ibv_cq *ibcq) argument
|
/freebsd-13-stable/contrib/ofed/libibverbs/ |
H A D | cmd.c | 538 int ibv_cmd_poll_cq(struct ibv_cq *ibcq, int ne, struct ibv_wc *wc) argument 552 cmd.cq_handle = ibcq->handle; 555 if (write(ibcq->context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) { 585 int ibv_cmd_req_notify_cq(struct ibv_cq *ibcq, int solicited_only) argument 590 cmd.cq_handle = ibcq->handle; 593 if (write(ibcq->context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd)
|