/freebsd-10-stable/sys/ofed/drivers/net/mlx4/ |
H A D | en_cq.c | 34 #include <linux/mlx4/cq.h> 41 static void mlx4_en_cq_event(struct mlx4_cq *cq, enum mlx4_event event) argument 53 struct mlx4_en_cq *cq; local 56 cq = kzalloc_node(sizeof(struct mlx4_en_cq), GFP_KERNEL, node); 57 if (!cq) { 58 cq = kzalloc(sizeof(struct mlx4_en_cq), GFP_KERNEL); 59 if (!cq) { 65 cq->size = entries; 66 cq->buf_size = cq 107 mlx4_en_activate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq, int cq_idx) argument 175 struct mlx4_en_cq *cq = *pcq; local 187 mlx4_en_deactivate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq) argument 200 mlx4_en_set_cq_moder(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq) argument 206 mlx4_en_arm_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq) argument [all...] |
H A D | cq.c | 40 #include <linux/mlx4/cq.h> 57 struct mlx4_cq *cq; local 61 cq = radix_tree_lookup(&mlx4_priv(dev)->cq_table.tree, 63 if (cq) 64 atomic_inc(&cq->refcount); 68 if (!cq) { 73 ++cq->arm_sn; 75 cq->comp(cq); 77 if (atomic_dec_and_test(&cq 84 struct mlx4_cq *cq; local 128 mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, u16 count, u16 period) argument 152 mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, int entries, struct mlx4_mtt *mtt) argument 180 mlx4_cq_ignore_overrun(struct mlx4_dev *dev, struct mlx4_cq *cq) argument 274 mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt, struct mlx4_uar *uar, u64 db_rec, struct mlx4_cq *cq, unsigned vector, int collapsed, int timestamp_en) argument 351 mlx4_cq_free(struct mlx4_dev *dev, struct mlx4_cq *cq) argument [all...] |
H A D | mlx4_en.h | 51 #include <linux/mlx4/cq.h> 370 /* Per-core Tx cq processing support */ 626 static inline void mlx4_en_cq_init_lock(struct mlx4_en_cq *cq) argument 628 spin_lock_init(&cq->poll_lock); 629 cq->state = MLX4_EN_CQ_STATEIDLE; 632 /* called from the device poll rutine to get ownership of a cq */ 633 static inline bool mlx4_en_cq_lock_napi(struct mlx4_en_cq *cq) argument 636 spin_lock(&cq->poll_lock); 637 if (cq->state & MLX4_CQ_LOCKED) { 638 WARN_ON(cq 649 mlx4_en_cq_unlock_napi(struct mlx4_en_cq *cq) argument 664 mlx4_en_cq_lock_poll(struct mlx4_en_cq *cq) argument 686 mlx4_en_cq_unlock_poll(struct mlx4_en_cq *cq) argument 700 mlx4_en_cq_ll_polling(struct mlx4_en_cq *cq) argument 706 mlx4_en_cq_init_lock(struct mlx4_en_cq *cq) argument 710 mlx4_en_cq_lock_napi(struct mlx4_en_cq *cq) argument 715 mlx4_en_cq_unlock_napi(struct mlx4_en_cq *cq) argument 720 mlx4_en_cq_lock_poll(struct mlx4_en_cq *cq) argument 725 mlx4_en_cq_unlock_poll(struct mlx4_en_cq *cq) argument 730 mlx4_en_cq_ll_polling(struct mlx4_en_cq *cq) argument [all...] |
/freebsd-10-stable/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_txrx.c | 31 mlx5e_get_cqe(struct mlx5e_cq *cq) argument 35 cqe = mlx5_cqwq_get_wqe(&cq->wq, mlx5_cqwq_get_ci(&cq->wq)); 37 if ((cqe->op_own ^ mlx5_cqwq_get_wrap_cnt(&cq->wq)) & MLX5_CQE_OWNER_MASK) 49 struct mlx5e_cq *cq = container_of(mcq, struct mlx5e_cq, mcq); local 51 if_printf(cq->priv->ifp, "%s: cqn=0x%.6x event=0x%.2x\n",
|
/freebsd-10-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_cq.c | 33 #include <dev/mlx5/cq.h> 38 struct mlx5_core_cq *cq; local 46 cq = entry->cq; 47 if (cq == NULL) { 51 ++cq->arm_sn; 52 cq->comp(cq); 59 cq = radix_tree_lookup(&table->tree, cqn); 60 if (likely(cq)) 80 struct mlx5_core_cq *cq; local 102 mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, struct mlx5_create_cq_mbox_in *in, int inlen) argument 155 mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq) argument 209 mlx5_core_query_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, struct mlx5_query_cq_mbox_out *out) argument 232 mlx5_core_modify_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, struct mlx5_modify_cq_mbox_in *in, int in_sz) argument 251 mlx5_core_modify_cq_moderation(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, u16 cq_period, u16 cq_max_count) argument 269 mlx5_core_modify_cq_moderation_mode(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, u16 cq_period, u16 cq_max_count, u8 cq_mode) argument [all...] |
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/ |
H A D | cq.c | 34 #include <linux/mlx4/cq.h> 45 static void mlx4_ib_cq_comp(struct mlx4_cq *cq) argument 47 struct ib_cq *ibcq = &to_mibcq(cq)->ibcq; 51 static void mlx4_ib_cq_event(struct mlx4_cq *cq, enum mlx4_event type) argument 58 "on CQ %06x\n", type, cq->cqn); 62 ibcq = &to_mibcq(cq)->ibcq; 66 event.element.cq = ibcq; 76 static void *get_cqe(struct mlx4_ib_cq *cq, int n) argument 78 return get_cqe_from_buf(&cq->buf, n); 81 static void *get_sw_cqe(struct mlx4_ib_cq *cq, in argument 90 next_cqe_sw(struct mlx4_ib_cq *cq) argument 95 mlx4_ib_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period) argument 181 struct mlx4_ib_cq *cq; local 276 mlx4_alloc_resize_buf(struct mlx4_ib_dev *dev, struct mlx4_ib_cq *cq, int entries) argument 300 mlx4_alloc_resize_umem(struct mlx4_ib_dev *dev, struct mlx4_ib_cq *cq, int entries, struct ib_udata *udata) argument 329 mlx4_ib_get_outstanding_cqes(struct mlx4_ib_cq *cq) argument 340 mlx4_ib_cq_resize_copy_cqes(struct mlx4_ib_cq *cq) argument 368 struct mlx4_ib_cq *cq = to_mcq(ibcq); local 468 struct mlx4_ib_cq *cq = to_mcq(ibcq); local 476 mlx4_ib_destroy_cq(struct ib_cq *cq) argument 582 use_tunnel_data(struct mlx4_ib_qp *qp, struct mlx4_ib_cq *cq, struct ib_wc *wc, unsigned tail, struct mlx4_cqe *cqe) argument 602 mlx4_ib_poll_one(struct mlx4_ib_cq *cq, struct mlx4_ib_qp **cur_qp, struct ib_wc *wc) argument 804 struct mlx4_ib_cq *cq = to_mcq(ibcq); local 839 __mlx4_ib_cq_clean(struct mlx4_ib_cq *cq, u32 qpn, struct mlx4_ib_srq *srq) argument 892 mlx4_ib_cq_clean(struct mlx4_ib_cq *cq, u32 qpn, struct mlx4_ib_srq *srq) argument [all...] |
/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/ |
H A D | mthca_cq.c | 168 static inline struct mthca_cqe *get_cqe(struct mthca_cq *cq, int entry) argument 170 return get_cqe_from_buf(&cq->buf, entry); 178 static inline struct mthca_cqe *next_cqe_sw(struct mthca_cq *cq) argument 180 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); 200 * incr is ignored in native Arbel (mem-free) mode, so cq->cons_index 203 static inline void update_cons_index(struct mthca_dev *dev, struct mthca_cq *cq, argument 207 *cq->set_ci_db = cpu_to_be32(cq 223 struct mthca_cq *cq; local 240 struct mthca_cq *cq; local 277 mthca_cq_clean(struct mthca_dev *dev, struct mthca_cq *cq, u32 qpn, struct mthca_srq *srq) argument 329 mthca_cq_resize_copy_cqes(struct mthca_cq *cq) argument 376 handle_error_cqe(struct mthca_dev *dev, struct mthca_cq *cq, struct mthca_qp *qp, int wqe_index, int is_send, struct mthca_err_cqe *cqe, struct ib_wc *entry, int *free_cqe) argument 482 mthca_poll_one(struct mthca_dev *dev, struct mthca_cq *cq, struct mthca_qp **cur_qp, int *freed, struct ib_wc *entry) argument 663 struct mthca_cq *cq = to_mcq(ibcq); local 728 mthca_tavor_arm_cq(struct ib_cq *cq, enum ib_cq_notify_flags flags) argument 743 struct mthca_cq *cq = to_mcq(ibcq); local 773 mthca_init_cq(struct mthca_dev *dev, int nent, struct mthca_ucontext *ctx, u32 pdn, struct mthca_cq *cq) argument 900 get_cq_refcount(struct mthca_dev *dev, struct mthca_cq *cq) argument 911 mthca_free_cq(struct mthca_dev *dev, struct mthca_cq *cq) argument [all...] |
/freebsd-10-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 35 static void mlx5_ib_cq_comp(struct mlx5_core_cq *cq) argument 37 struct ib_cq *ibcq = &to_mibcq(cq)->ibcq; 44 struct mlx5_ib_cq *cq = container_of(mcq, struct mlx5_ib_cq, mcq); local 45 struct mlx5_ib_dev *dev = to_mdev(cq->ibcq.device); 46 struct ib_cq *ibcq = &cq->ibcq; 58 event.element.cq = ibcq; 68 static void *get_cqe(struct mlx5_ib_cq *cq, int n) argument 70 return get_cqe_from_buf(&cq->buf, n, cq->mcq.cqe_sz); 78 static void *get_sw_cqe(struct mlx5_ib_cq *cq, in argument 93 next_cqe_sw(struct mlx5_ib_cq *cq) argument 429 mlx5_ib_poll_sw_comp(struct mlx5_ib_cq *cq, int num_entries, struct ib_wc *wc, int *npolled) argument 454 mlx5_poll_one(struct mlx5_ib_cq *cq, struct mlx5_ib_qp **cur_qp, struct ib_wc *wc) argument 599 struct mlx5_ib_cq *cq = to_mcq(ibcq); local 664 create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, struct ib_ucontext *context, struct mlx5_ib_cq *cq, int entries, struct mlx5_create_cq_mbox_in **cqb, int *cqe_size, int *index, int *inlen) argument 757 destroy_cq_user(struct mlx5_ib_cq *cq, struct ib_ucontext *context) argument 764 init_cq_buf(struct mlx5_ib_cq *cq, struct mlx5_ib_cq_buf *buf) argument 777 create_cq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, int cqe_size, struct mlx5_create_cq_mbox_in **cqb, int *index, int *inlen) argument 819 destroy_cq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq) argument 832 struct mlx5_ib_cq *cq; local 922 mlx5_ib_destroy_cq(struct ib_cq *cq) argument 947 __mlx5_ib_cq_clean(struct mlx5_ib_cq *cq, u32 rsn, struct mlx5_ib_srq *srq) argument 998 mlx5_ib_cq_clean(struct mlx5_ib_cq *cq, u32 qpn, struct mlx5_ib_srq *srq) argument 1008 mlx5_ib_modify_cq(struct ib_cq *cq, u16 cq_count, u16 cq_period) argument 1050 resize_user(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, struct ib_udata *udata, int *npas, int *page_shift, int *cqe_size) argument 1083 un_resize_user(struct mlx5_ib_cq *cq) argument 1088 resize_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, int cqe_size) argument 1110 un_resize_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq) argument 1116 copy_resize_cqes(struct mlx5_ib_cq *cq) argument 1174 struct mlx5_ib_cq *cq = to_mcq(ibcq); local 1293 struct mlx5_ib_cq *cq; local [all...] |
/freebsd-10-stable/contrib/ofed/libmlx4/src/ |
H A D | cq.c | 110 static struct mlx4_cqe *get_cqe(struct mlx4_cq *cq, int entry) argument 112 return cq->buf.buf + entry * cq->cqe_size; 115 static void *get_sw_cqe(struct mlx4_cq *cq, int n) argument 117 struct mlx4_cqe *cqe = get_cqe(cq, n & cq->ibv_cq.cqe); 118 struct mlx4_cqe *tcqe = cq->cqe_size == 64 ? cqe + 1 : cqe; 121 !!(n & (cq->ibv_cq.cqe + 1))) ? NULL : tcqe; 124 static struct mlx4_cqe *next_cqe_sw(struct mlx4_cq *cq) argument 126 return get_sw_cqe(cq, c 129 update_cons_index(struct mlx4_cq *cq) argument 192 mlx4_poll_one(struct mlx4_cq *cq, struct mlx4_qp **cur_qp, struct ibv_wc *wc) argument 345 struct mlx4_cq *cq = to_mcq(ibcq); local 368 struct mlx4_cq *cq = to_mcq(ibvcq); local 394 mlx4_cq_event(struct ibv_cq *cq) argument 399 __mlx4_cq_clean(struct mlx4_cq *cq, uint32_t qpn, struct mlx4_srq *srq) argument 459 mlx4_cq_clean(struct mlx4_cq *cq, uint32_t qpn, struct mlx4_srq *srq) argument 466 mlx4_get_outstanding_cqes(struct mlx4_cq *cq) argument 476 mlx4_cq_resize_copy_cqes(struct mlx4_cq *cq, void *buf, int old_cqe) argument [all...] |
/freebsd-10-stable/sys/dev/mlx5/ |
H A D | cq.h | 25 * $FreeBSD: stable/10/sys/dev/mlx5/cq.h 321996 2017-08-03 13:57:17Z hselasky $ 122 static inline void mlx5_cq_set_ci(struct mlx5_core_cq *cq) argument 124 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); 132 static inline void mlx5_cq_arm(struct mlx5_core_cq *cq, u32 cmd, argument 141 sn = cq->arm_sn & 3; 144 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); 152 doorbell[1] = cpu_to_be32(cq->cqn); 159 int mlx5_core_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, 161 int mlx5_core_destroy_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq); [all...] |
/freebsd-10-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | cq.c | 33 __FBSDID("$FreeBSD: stable/10/sys/dev/cxgbe/iw_cxgbe/cq.c 314776 2017-03-06 15:16:15Z np $"); 52 static int destroy_cq(struct c4iw_rdev *rdev, struct t4_cq *cq, argument 75 res->u.cq.restype = FW_RI_RES_TYPE_CQ; 76 res->u.cq.op = FW_RI_RES_OP_RESET; 77 res->u.cq.iqid = cpu_to_be32(cq->cqid); 85 kfree(cq->sw_queue); 86 contigfree(cq->queue, cq->memsize, M_DEVBUF); 87 c4iw_put_cqid(rdev, cq 92 create_cq(struct c4iw_rdev *rdev, struct t4_cq *cq, struct c4iw_dev_ucontext *uctx) argument 197 insert_recv_cqe(struct t4_wq *wq, struct t4_cq *cq) argument 214 c4iw_flush_rq(struct t4_wq *wq, struct t4_cq *cq, int count) argument 229 insert_sq_cqe(struct t4_wq *wq, struct t4_cq *cq, struct t4_swsqe *swcqe) argument 248 c4iw_flush_sq(struct t4_wq *wq, struct t4_cq *cq, int count) argument 269 c4iw_flush_hw_cq(struct t4_cq *cq) argument 304 c4iw_count_scqes(struct t4_cq *cq, struct t4_wq *wq, int *count) argument 323 c4iw_count_rcqes(struct t4_cq *cq, struct t4_wq *wq, int *count) argument 342 flush_completed_wrs(struct t4_wq *wq, struct t4_cq *cq) argument 423 poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit) argument 920 c4iw_resize_cq(struct ib_cq *cq, int cqe, struct ib_udata *udata) argument [all...] |
H A D | t4.h | 475 static inline int t4_arm_cq(struct t4_cq *cq, int se) argument 479 while (cq->cidx_inc > CIDXINC_MASK) { 481 INGRESSQID(cq->cqid); 482 writel(val, cq->gts); 483 cq->cidx_inc -= CIDXINC_MASK; 485 val = SEINTARM(se) | CIDXINC(cq->cidx_inc) | TIMERREG(6) | 486 INGRESSQID(cq->cqid); 487 writel(val, cq->gts); 488 cq->cidx_inc = 0; 492 static inline void t4_swcq_produce(struct t4_cq *cq) argument 499 t4_swcq_consume(struct t4_cq *cq) argument 506 t4_hwcq_consume(struct t4_cq *cq) argument 523 t4_valid_cqe(struct t4_cq *cq, struct t4_cqe *cqe) argument 528 t4_next_hw_cqe(struct t4_cq *cq, struct t4_cqe **cqe) argument 550 t4_next_sw_cqe(struct t4_cq *cq) argument 557 t4_next_cqe(struct t4_cq *cq, struct t4_cqe **cqe) argument 570 t4_cq_in_error(struct t4_cq *cq) argument 575 t4_set_cq_in_error(struct t4_cq *cq) argument [all...] |
/freebsd-10-stable/lib/libc/gen/ |
H A D | disklabel.c | 69 char *cp, *cq; /* can't be register */ local 81 cq = dp->d_typename; 83 while (cq < dp->d_typename + sizeof(dp->d_typename) - 1 && 84 (*cq = *cp) && *cq != '|' && *cq != ':') 85 cq++, cp++; 86 *cq = '\0'; 88 if (cgetstr(buf, "ty", &cq) > 0) { 89 if (strcmp(cq, "removabl [all...] |
/freebsd-10-stable/contrib/ofed/libmthca/src/ |
H A D | cq.c | 125 static inline struct mthca_cqe *get_cqe(struct mthca_cq *cq, int entry) argument 127 return cq->buf.buf + entry * MTHCA_CQ_ENTRY_SIZE; 130 static inline struct mthca_cqe *cqe_sw(struct mthca_cq *cq, int i) argument 132 struct mthca_cqe *cqe = get_cqe(cq, i); 136 static inline struct mthca_cqe *next_cqe_sw(struct mthca_cq *cq) argument 138 return cqe_sw(cq, cq->cons_index & cq->ibv_cq.cqe); 148 * incr is ignored in native Arbel (mem-free) mode, so cq->cons_index 151 static inline void update_cons_index(struct mthca_cq *cq, in argument 175 handle_error_cqe(struct mthca_cq *cq, struct mthca_qp *qp, int wqe_index, int is_send, struct mthca_err_cqe *cqe, struct ibv_wc *wc, int *free_cqe) argument 290 mthca_poll_one(struct mthca_cq *cq, struct mthca_qp **cur_qp, int *freed, struct ibv_wc *wc) argument 462 struct mthca_cq *cq = to_mcq(ibcq); local 486 mthca_tavor_arm_cq(struct ibv_cq *cq, int solicited) argument 503 struct mthca_cq *cq = to_mcq(ibvcq); local 535 mthca_arbel_cq_event(struct ibv_cq *cq) argument 549 __mthca_cq_clean(struct mthca_cq *cq, uint32_t qpn, struct mthca_srq *srq) argument 593 mthca_cq_clean(struct mthca_cq *cq, uint32_t qpn, struct mthca_srq *srq) argument 600 mthca_cq_resize_copy_cqes(struct mthca_cq *cq, void *buf, int old_cqe) argument [all...] |
H A D | verbs.c | 193 struct mthca_cq *cq; local 200 cq = malloc(sizeof *cq); 201 if (!cq) 204 cq->cons_index = 0; 206 if (pthread_spin_init(&cq->lock, PTHREAD_PROCESS_PRIVATE)) 210 if (mthca_alloc_cq_buf(to_mdev(context->device), &cq->buf, cqe)) 213 cq->mr = __mthca_reg_mr(to_mctx(context)->pd, cq->buf.buf, 216 if (!cq 285 struct mthca_cq *cq = to_mcq(ibcq); local 350 mthca_destroy_cq(struct ibv_cq *cq) argument [all...] |
/freebsd-10-stable/sys/ofed/include/linux/mlx4/ |
H A D | cq.h | 141 static inline void mlx4_cq_arm(struct mlx4_cq *cq, u32 cmd, argument 149 sn = cq->arm_sn & 3; 150 ci = cq->cons_index & 0xffffff; 152 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); 160 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); 166 static inline void mlx4_cq_set_ci(struct mlx4_cq *cq) argument 168 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); 176 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, 178 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, [all...] |
/freebsd-10-stable/contrib/ofed/libcxgb4/src/ |
H A D | cq.c | 45 static void insert_recv_cqe(struct t4_wq *wq, struct t4_cq *cq) argument 49 PDBG("%s wq %p cq %p sw_cidx %u sw_pidx %u\n", __func__, 50 wq, cq, cq->sw_cidx, cq->sw_pidx); 57 cqe.bits_type_ts = cpu_to_be64(V_CQE_GENBIT((u64)cq->gen)); 58 cq->sw_queue[cq->sw_pidx] = cqe; 59 t4_swcq_produce(cq); 62 int c4iw_flush_rq(struct t4_wq *wq, struct t4_cq *cq, in argument 77 insert_sq_cqe(struct t4_wq *wq, struct t4_cq *cq, struct t4_swsqe *swcqe) argument 103 struct t4_cq *cq = &chp->cq; local 129 flush_completed_wrs(struct t4_wq *wq, struct t4_cq *cq) argument 303 c4iw_count_rcqes(struct t4_cq *cq, struct t4_wq *wq, int *count) argument 348 poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit) argument [all...] |
H A D | t4.h | 585 static inline int t4_arm_cq(struct t4_cq *cq, int se) argument 589 while (cq->cidx_inc > M_CIDXINC) { 591 V_INGRESSQID(cq->cqid & cq->qid_mask); 592 writel(val, cq->ugts); 593 cq->cidx_inc -= M_CIDXINC; 595 val = V_SEINTARM(se) | V_CIDXINC(cq->cidx_inc) | V_TIMERREG(6) | 596 V_INGRESSQID(cq->cqid & cq->qid_mask); 597 writel(val, cq 602 t4_swcq_produce(struct t4_cq *cq) argument 614 t4_swcq_consume(struct t4_cq *cq) argument 622 t4_hwcq_consume(struct t4_cq *cq) argument 640 t4_valid_cqe(struct t4_cq *cq, struct t4_cqe *cqe) argument 645 t4_next_hw_cqe(struct t4_cq *cq, struct t4_cqe **cqe) argument 669 t4_next_sw_cqe(struct t4_cq *cq) argument 682 t4_cq_notempty(struct t4_cq *cq) argument 687 t4_next_cqe(struct t4_cq *cq, struct t4_cqe **cqe) argument 699 t4_cq_in_error(struct t4_cq *cq) argument 704 t4_set_cq_in_error(struct t4_cq *cq) argument 709 t4_reset_cq_in_error(struct t4_cq *cq) argument [all...] |
H A D | libcxgb4.h | 101 struct t4_cq cq; member in struct:c4iw_cq 138 return to_c4iw_xxx(cq, cq); 184 int c4iw_resize_cq(struct ibv_cq *cq, int cqe); 185 int c4iw_destroy_cq(struct ibv_cq *cq); 186 int c4iw_poll_cq(struct ibv_cq *cq, int ne, struct ibv_wc *wc); 187 int c4iw_arm_cq(struct ibv_cq *cq, int solicited); 188 void c4iw_cq_event(struct ibv_cq *cq); 189 void c4iw_init_cq_buf(struct c4iw_cq *cq, int nent); 225 int c4iw_flush_rq(struct t4_wq *wq, struct t4_cq *cq, in 250 unsigned long cq; member in struct:c4iw_stats [all...] |
/freebsd-10-stable/sys/dev/oce/ |
H A D | oce_queue.c | 77 static void oce_cq_del(POCE_SOFTC sc, struct oce_cq *cq); 321 struct oce_cq *cq; local 325 cq = oce_cq_create(sc, 329 if (!cq) 333 wq->cq = cq; 344 eq->cq[eq->cq_valid] = cq; 346 cq->cb_arg = wq; 347 cq 513 struct oce_cq *cq; local 664 struct oce_cq *cq; local 884 struct oce_cq *cq = NULL; local 923 oce_cq_del(POCE_SOFTC sc, struct oce_cq *cq) argument 1075 struct oce_cq *cq = wq->cq; local 1124 struct oce_cq *cq; local [all...] |
/freebsd-10-stable/contrib/groff/font/devdvi/ |
H A D | TBI | 12 ff cq 111848 20 cq ' -92624 21 ' cq -92624 22 cq cq -92624 25 cq ? 123498 27 cq ! 123498 175 Fn cq 111848 177 f cq 111848 190 n cq [all...] |
H A D | TI | 13 ff cq 109373 21 cq ' -80390 22 ' cq -80390 23 cq cq -80390 26 cq ? 107187 28 cq ! 107187 176 Fn cq 109373 178 f cq 109373 191 n cq [all...] |
/freebsd-10-stable/sys/dev/cxgb/ulp/iw_cxgb/ |
H A D | iw_cxgb_hal.c | 109 cxio_hal_cq_op(struct cxio_rdev *rdev_p, struct t3_cq *cq, argument 121 ret = t3_sge_cqcntxt_op(sc, cq->cqid, op, credit); 132 if (Q_PTR2IDX((cq->rptr), cq->size_log2) != ret) { 135 rptr = cq->rptr; 141 while (Q_PTR2IDX((rptr+1), cq->size_log2) != ret) 149 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2); 150 while (!CQ_VLD_ENTRY(rptr, cq->size_log2, cqe)) { 197 cxio_create_cq(struct cxio_rdev *rdev_p, struct t3_cq *cq, in argument 343 cxio_destroy_cq(struct cxio_rdev *rdev_p, struct t3_cq *cq) argument 383 insert_recv_cqe(struct t3_wq *wq, struct t3_cq *cq) argument 402 cxio_flush_rq(struct t3_wq *wq, struct t3_cq *cq, int count) argument 421 insert_sq_cqe(struct t3_wq *wq, struct t3_cq *cq, struct t3_swsq *sqp) argument 443 cxio_flush_sq(struct t3_wq *wq, struct t3_cq *cq, int count) argument 464 cxio_flush_hw_cq(struct t3_cq *cq) argument 501 cxio_count_scqes(struct t3_cq *cq, struct t3_wq *wq, int *count) argument 519 cxio_count_rcqes(struct t3_cq *cq, struct t3_wq *wq, int *count) argument 1077 flush_completed_wrs(struct t3_wq *wq, struct t3_cq *cq) argument 1154 cxio_poll_cq(struct t3_wq *wq, struct t3_cq *cq, struct t3_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit) argument [all...] |
H A D | iw_cxgb_wr.h | 677 static inline int cxio_cq_in_error(struct t3_cq *cq) argument 680 &cq->queue[1 << cq->size_log2])->cq_err; 683 static inline void cxio_set_cq_in_error(struct t3_cq *cq) argument 686 &cq->queue[1 << cq->size_log2])->cq_err = 1; 694 static inline struct t3_cqe *cxio_next_hw_cqe(struct t3_cq *cq) argument 698 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq 704 cxio_next_sw_cqe(struct t3_cq *cq) argument 715 cxio_next_cqe(struct t3_cq *cq) argument [all...] |
/freebsd-10-stable/contrib/ofed/libibverbs/src/ |
H A D | verbs.c | 276 struct ibv_cq *cq; local 280 cq = context->ops.create_cq(context, cqe, channel, comp_vector); 282 if (cq) { 283 cq->context = context; 284 cq->channel = channel; 287 cq->cq_context = cq_context; 288 cq->comp_events_completed = 0; 289 cq->async_events_completed = 0; 290 pthread_mutex_init(&cq->mutex, NULL); 291 pthread_cond_init(&cq 300 __ibv_resize_cq(struct ibv_cq *cq, int cqe) argument 309 __ibv_destroy_cq(struct ibv_cq *cq) argument 329 __ibv_get_cq_event(struct ibv_comp_channel *channel, struct ibv_cq **cq, void **cq_context) argument 347 __ibv_ack_cq_events(struct ibv_cq *cq, unsigned int nevents) argument [all...] |