| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_controlq.c | 36 struct ice_ctl_q_info *cq = &hw->adminq; in ice_adminq_init_regs() local 38 ICE_CQ_INIT_REGS(cq, PF_FW); in ice_adminq_init_regs() 49 struct ice_ctl_q_info *cq = &hw->mailboxq; in ice_mailbox_init_regs() local 51 ICE_CQ_INIT_REGS(cq, PF_MBX); in ice_mailbox_init_regs() 62 struct ice_ctl_q_info *cq = &hw->sbq; in ice_sb_init_regs() local 64 ICE_CQ_INIT_REGS(cq, PF_SB); in ice_sb_init_regs() 70 * @cq: pointer to the specific Control queue 74 bool ice_check_sq_alive(struct ice_hw *hw, struct ice_ctl_q_info *cq) in ice_check_sq_alive() argument 77 if (cq->sq.len && cq in ice_check_sq_alive() 91 ice_alloc_ctrlq_sq_ring(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_alloc_ctrlq_sq_ring() argument 111 ice_alloc_ctrlq_rq_ring(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_alloc_ctrlq_rq_ring() argument 147 ice_alloc_rq_bufs(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_alloc_rq_bufs() argument 219 ice_alloc_sq_bufs(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_alloc_sq_bufs() argument 287 ice_cfg_sq_regs(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_cfg_sq_regs() argument 299 ice_cfg_rq_regs(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_cfg_rq_regs() argument 348 ice_init_sq(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_init_sq() argument 408 ice_init_rq(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_init_rq() argument 461 ice_shutdown_sq(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_shutdown_sq() argument 536 ice_shutdown_rq(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_shutdown_rq() argument 572 struct ice_ctl_q_info *cq = &hw->adminq; ice_init_check_adminq() local 608 struct ice_ctl_q_info *cq; ice_init_ctrlq() local 690 struct ice_ctl_q_info *cq; ice_shutdown_ctrlq() local 786 ice_init_ctrlq_locks(struct ice_ctl_q_info * cq) ice_init_ctrlq_locks() argument 824 ice_destroy_ctrlq_locks(struct ice_ctl_q_info * cq) ice_destroy_ctrlq_locks() argument 857 ice_clean_sq(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_clean_sq() argument 912 ice_debug_cq(struct ice_hw * hw,struct ice_ctl_q_info * cq,void * desc,void * buf,u16 buf_len,bool response) ice_debug_cq() argument 967 ice_sq_done(struct ice_hw * hw,struct ice_ctl_q_info * cq) ice_sq_done() argument 995 ice_sq_send_cmd(struct ice_hw * hw,struct ice_ctl_q_info * cq,struct libie_aq_desc * desc,void * buf,u16 buf_size,struct ice_sq_cd * cd) ice_sq_send_cmd() argument 1173 ice_clean_rq_elem(struct ice_hw * hw,struct ice_ctl_q_info * cq,struct ice_rq_event_info * e,u16 * pending) ice_clean_rq_elem() argument [all...] |
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_cq.c | 169 static inline struct mthca_cqe *get_cqe(struct mthca_cq *cq, int entry) in get_cqe() argument 171 return get_cqe_from_buf(&cq->buf, entry); in get_cqe() 179 static inline struct mthca_cqe *next_cqe_sw(struct mthca_cq *cq) in next_cqe_sw() argument 181 return cqe_sw(get_cqe(cq, cq->cons_index & cq->ibcq.cqe)); in next_cqe_sw() 201 * incr is ignored in native Arbel (mem-free) mode, so cq->cons_index 204 static inline void update_cons_index(struct mthca_dev *dev, struct mthca_cq *cq, in update_cons_index() argument 208 *cq->set_ci_db = cpu_to_be32(cq in update_cons_index() 219 struct mthca_cq *cq; mthca_cq_completion() local 236 struct mthca_cq *cq; mthca_cq_event() local 273 mthca_cq_clean(struct mthca_dev * dev,struct mthca_cq * cq,u32 qpn,struct mthca_srq * srq) mthca_cq_clean() argument 325 mthca_cq_resize_copy_cqes(struct mthca_cq * cq) mthca_cq_resize_copy_cqes() argument 372 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) handle_error_cqe() argument 479 mthca_poll_one(struct mthca_dev * dev,struct mthca_cq * cq,struct mthca_qp ** cur_qp,int * freed,struct ib_wc * entry) mthca_poll_one() argument 658 struct mthca_cq *cq = to_mcq(ibcq); mthca_poll_cq() local 723 mthca_tavor_arm_cq(struct ib_cq * cq,enum ib_cq_notify_flags flags) mthca_tavor_arm_cq() argument 738 struct mthca_cq *cq = to_mcq(ibcq); mthca_arbel_arm_cq() local 770 mthca_init_cq(struct mthca_dev * dev,int nent,struct mthca_ucontext * ctx,u32 pdn,struct mthca_cq * cq) mthca_init_cq() argument 889 get_cq_refcount(struct mthca_dev * dev,struct mthca_cq * cq) get_cq_refcount() argument 901 mthca_free_cq(struct mthca_dev * dev,struct mthca_cq * cq) mthca_free_cq() argument [all...] |
| /linux/drivers/scsi/snic/ |
| H A D | vnic_cq.c | 10 void svnic_cq_free(struct vnic_cq *cq) in svnic_cq_free() argument 12 svnic_dev_free_desc_ring(cq->vdev, &cq->ring); in svnic_cq_free() 14 cq->ctrl = NULL; in svnic_cq_free() 17 int svnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, in svnic_cq_alloc() argument 20 cq->index = index; in svnic_cq_alloc() 21 cq->vdev = vdev; in svnic_cq_alloc() 23 cq->ctrl = svnic_dev_get_res(vdev, RES_TYPE_CQ, index); in svnic_cq_alloc() 24 if (!cq->ctrl) { in svnic_cq_alloc() 30 return svnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in svnic_cq_alloc() 33 void svnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable, in svnic_cq_init() argument [all …]
|
| H A D | vnic_cq_fw.h | 10 vnic_cq_fw_service(struct vnic_cq *cq, in vnic_cq_fw_service() argument 21 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service() 22 cq->ring.desc_size * cq->to_clean); in vnic_cq_fw_service() 25 while (color != cq->last_color) { in vnic_cq_fw_service() 27 if ((*q_service)(cq->vdev, cq->index, desc)) in vnic_cq_fw_service() 30 cq->to_clean++; in vnic_cq_fw_service() 31 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_fw_service() 32 cq->to_clean = 0; in vnic_cq_fw_service() 33 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_fw_service() 36 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service() [all …]
|
| H A D | vnic_cq.h | 46 static inline unsigned int svnic_cq_service(struct vnic_cq *cq, in svnic_cq_service() argument 57 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in svnic_cq_service() 58 cq->ring.desc_size * cq->to_clean); in svnic_cq_service() 62 while (color != cq->last_color) { in svnic_cq_service() 64 if ((*q_service)(cq->vdev, cq_desc, type, in svnic_cq_service() 68 cq->to_clean++; in svnic_cq_service() 69 if (cq->to_clean == cq->ring.desc_count) { in svnic_cq_service() 70 cq->to_clean = 0; in svnic_cq_service() 71 cq->last_color = cq->last_color ? 0 : 1; in svnic_cq_service() 74 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in svnic_cq_service() [all …]
|
| /linux/drivers/scsi/fnic/ |
| H A D | vnic_cq.c | 12 void vnic_cq_free(struct vnic_cq *cq) in vnic_cq_free() argument 14 vnic_dev_free_desc_ring(cq->vdev, &cq->ring); in vnic_cq_free() 16 cq->ctrl = NULL; in vnic_cq_free() 19 int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index, in vnic_cq_alloc() argument 24 cq->index = index; in vnic_cq_alloc() 25 cq->vdev = vdev; in vnic_cq_alloc() 27 cq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_CQ, index); in vnic_cq_alloc() 28 if (!cq->ctrl) { in vnic_cq_alloc() 33 err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); in vnic_cq_alloc() 40 void vnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable, in vnic_cq_init() argument [all …]
|
| H A D | vnic_cq_copy.h | 12 struct vnic_cq *cq, in vnic_cq_copy_service() argument 23 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service() 24 cq->ring.desc_size * cq->to_clean); in vnic_cq_copy_service() 27 while (color != cq->last_color) { in vnic_cq_copy_service() 29 if ((*q_service)(cq->vdev, cq->index, desc)) in vnic_cq_copy_service() 32 cq->to_clean++; in vnic_cq_copy_service() 33 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_copy_service() 34 cq->to_clean = 0; in vnic_cq_copy_service() 35 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_copy_service() 38 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service() [all …]
|
| H A D | vnic_cq.h | 58 static inline unsigned int vnic_cq_service(struct vnic_cq *cq, in vnic_cq_service() argument 69 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service() 70 cq->ring.desc_size * cq->to_clean); in vnic_cq_service() 74 while (color != cq->last_color) { in vnic_cq_service() 76 if ((*q_service)(cq->vdev, cq_desc, type, in vnic_cq_service() 80 cq->to_clean++; in vnic_cq_service() 81 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service() 82 cq->to_clean = 0; in vnic_cq_service() 83 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_service() 86 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | cq.c | 69 void mlx5_add_cq_to_tasklet(struct mlx5_core_cq *cq, in mlx5_add_cq_to_tasklet() argument 73 struct mlx5_eq_tasklet *tasklet_ctx = cq->tasklet_ctx.priv; in mlx5_add_cq_to_tasklet() 82 if (list_empty_careful(&cq->tasklet_ctx.list)) { in mlx5_add_cq_to_tasklet() 83 mlx5_cq_hold(cq); in mlx5_add_cq_to_tasklet() 91 list_add_tail(&cq->tasklet_ctx.list, &tasklet_ctx->list); in mlx5_add_cq_to_tasklet() 100 static void mlx5_core_cq_dummy_cb(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe) in mlx5_core_cq_dummy_cb() argument 102 mlx5_core_err(cq->eq->core.dev, in mlx5_core_cq_dummy_cb() 103 "CQ default completion callback, CQ #%u\n", cq->cqn); in mlx5_core_cq_dummy_cb() 108 int mlx5_create_cq(struct mlx5_core_dev *dev, struct mlx5_core_cq *cq, in mlx5_create_cq() argument 127 cq->cqn = MLX5_GET(create_cq_out, out, cqn); in mlx5_create_cq() [all …]
|
| H A D | wc.c | 45 struct mlx5_wc_cq cq; member 50 struct mlx5_wc_cq *cq) in mlx5_wc_create_cqwq() argument 52 struct mlx5_core_cq *mcq = &cq->mcq; in mlx5_wc_create_cqwq() 57 err = mlx5_cqwq_create(mdev, ¶m, cqc, &cq->wq, &cq->wq_ctrl); in mlx5_wc_create_cqwq() 62 mcq->set_ci_db = cq->wq_ctrl.db.db; in mlx5_wc_create_cqwq() 63 mcq->arm_db = cq->wq_ctrl.db.db + 1; in mlx5_wc_create_cqwq() 65 for (i = 0; i < mlx5_cqwq_get_size(&cq->wq); i++) { in mlx5_wc_create_cqwq() 66 struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(&cq->wq, i); in mlx5_wc_create_cqwq() 71 cq->mdev = mdev; in mlx5_wc_create_cqwq() 76 static int create_wc_cq(struct mlx5_wc_cq *cq, void *cqc_data) in create_wc_cq() argument [all …]
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_hw_queues.c | 15 struct hw_cq *cq = NULL; in efct_hw_init_queues() local 44 cq = efct_hw_new_cq(eq, in efct_hw_init_queues() 46 if (!cq) { in efct_hw_init_queues() 51 mq = efct_hw_new_mq(cq, EFCT_HW_MQ_DEPTH); in efct_hw_init_queues() 59 cq = efct_hw_new_cq(eq, hw->num_qentries[SLI4_QTYPE_CQ]); in efct_hw_init_queues() 60 if (!cq) { in efct_hw_init_queues() 65 wq = efct_hw_new_wq(cq, hw->num_qentries[SLI4_QTYPE_WQ]); in efct_hw_init_queues() 162 struct hw_cq *cq = kzalloc_obj(*cq); in efct_hw_new_cq() local 164 if (!cq) in efct_hw_new_cq() 167 cq->eq = eq; in efct_hw_new_cq() [all …]
|
| /linux/include/linux/mlx5/ |
| H A D | cq.h | 48 void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe); 56 void (*comp)(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe); 131 static inline void mlx5_cq_set_ci(struct mlx5_core_cq *cq) 133 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); 141 static inline void mlx5_cq_arm(struct mlx5_core_cq *cq, u32 cmd, in mlx5_cq_set_ci() argument 149 sn = cq->arm_sn & 3; 152 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx5_cq_arm() 160 doorbell[1] = cpu_to_be32(cq->cqn); in mlx5_cq_arm() 165 static inline void mlx5_cq_hold(struct mlx5_core_cq *cq) in mlx5_cq_arm() 151 mlx5_cq_arm(struct mlx5_core_cq * cq,u32 cmd,void __iomem * uar_page,u32 cons_index) mlx5_cq_arm() argument 175 mlx5_cq_hold(struct mlx5_core_cq * cq) mlx5_cq_hold() argument 180 mlx5_cq_put(struct mlx5_core_cq * cq) mlx5_cq_put() argument [all...] |
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A D | t4.h | 703 static inline void write_gts(struct t4_cq *cq, u32 val) in write_gts() argument 705 if (cq->bar2_va) in write_gts() 706 writel(val | INGRESSQID_V(cq->bar2_qid), in write_gts() 707 cq->bar2_va + SGE_UDB_GTS); in write_gts() 709 writel(val | INGRESSQID_V(cq->cqid), cq->gts); in write_gts() 712 static inline int t4_clear_cq_armed(struct t4_cq *cq) in t4_clear_cq_armed() argument 714 return test_and_clear_bit(CQ_ARMED, &cq->flags); in t4_clear_cq_armed() 717 static inline int t4_arm_cq(struct t4_cq *cq, int se) in t4_arm_cq() argument 721 set_bit(CQ_ARMED, &cq->flags); in t4_arm_cq() 722 while (cq->cidx_inc > CIDXINC_M) { in t4_arm_cq() [all …]
|
| H A D | restrack.c | 271 static int fill_cq(struct sk_buff *msg, struct t4_cq *cq) in fill_cq() argument 273 if (rdma_nl_put_driver_u32(msg, "cqid", cq->cqid)) in fill_cq() 275 if (rdma_nl_put_driver_u32(msg, "memsize", cq->memsize)) in fill_cq() 277 if (rdma_nl_put_driver_u32(msg, "size", cq->size)) in fill_cq() 279 if (rdma_nl_put_driver_u32(msg, "cidx", cq->cidx)) in fill_cq() 281 if (rdma_nl_put_driver_u32(msg, "cidx_inc", cq->cidx_inc)) in fill_cq() 283 if (rdma_nl_put_driver_u32(msg, "sw_cidx", cq->sw_cidx)) in fill_cq() 285 if (rdma_nl_put_driver_u32(msg, "sw_pidx", cq->sw_pidx)) in fill_cq() 287 if (rdma_nl_put_driver_u32(msg, "sw_in_use", cq->sw_in_use)) in fill_cq() 289 if (rdma_nl_put_driver_u32(msg, "vector", cq->vector)) in fill_cq() [all …]
|
| /linux/drivers/net/ethernet/cisco/enic/ |
| H A D | vnic_cq.h | 59 static inline void *vnic_cq_to_clean(struct vnic_cq *cq) in vnic_cq_to_clean() argument 61 return ((u8 *)cq->ring.descs + cq->ring.desc_size * cq->to_clean); in vnic_cq_to_clean() 64 static inline void vnic_cq_inc_to_clean(struct vnic_cq *cq) in vnic_cq_inc_to_clean() argument 66 cq->to_clean++; in vnic_cq_inc_to_clean() 67 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_inc_to_clean() 68 cq->to_clean = 0; in vnic_cq_inc_to_clean() 69 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_inc_to_clean() 73 void vnic_cq_free(struct vnic_cq *cq); 74 int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index, 76 int vnic_cq_alloc_with_type(struct vnic_dev *vdev, struct vnic_cq *cq, [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | aso.c | 28 struct mlx5_aso_cq cq; member 40 static void mlx5_aso_free_cq(struct mlx5_aso_cq *cq) in mlx5_aso_free_cq() argument 42 mlx5_wq_destroy(&cq->wq_ctrl); in mlx5_aso_free_cq() 46 void *cqc_data, struct mlx5_aso_cq *cq) in mlx5_aso_alloc_cq() argument 48 struct mlx5_core_cq *mcq = &cq->mcq; in mlx5_aso_alloc_cq() 56 err = mlx5_cqwq_create(mdev, ¶m, cqc_data, &cq->wq, &cq->wq_ctrl); in mlx5_aso_alloc_cq() 61 mcq->set_ci_db = cq->wq_ctrl.db.db; in mlx5_aso_alloc_cq() 62 mcq->arm_db = cq->wq_ctrl.db.db + 1; in mlx5_aso_alloc_cq() 64 for (i = 0; i < mlx5_cqwq_get_size(&cq in mlx5_aso_alloc_cq() 75 create_aso_cq(struct mlx5_aso_cq * cq,void * cqc_data) create_aso_cq() argument 115 mlx5_aso_destroy_cq(struct mlx5_aso_cq * cq) mlx5_aso_destroy_cq() argument 122 mlx5_aso_create_cq(struct mlx5_core_dev * mdev,int numa_node,struct mlx5_aso_cq * cq) mlx5_aso_create_cq() argument 393 struct mlx5_aso_cq *cq = &aso->cq; mlx5_aso_poll_cq() local [all...] |
| /linux/include/trace/events/ |
| H A D | rdma_core.h | 51 struct ib_cq *cq 54 TP_ARGS(cq), 61 cq->timestamp = ktime_get(); 62 cq->interrupt = true; 64 __entry->cq_id = cq->res.id; 72 struct ib_cq *cq 75 TP_ARGS(cq), 82 cq->timestamp = ktime_get(); 83 cq->interrupt = false; 85 __entry->cq_id = cq->res.id; [all …]
|
| /linux/drivers/net/ethernet/alibaba/eea/ |
| H A D | eea_ring.c | 15 tx_idx = (u64)tx_ering->cq.hw_idx; in eea_ering_irq_active() 16 rx_idx = (u64)ering->cq.hw_idx; in eea_ering_irq_active() 30 desc = ering->cq.desc + (ering->cq.head << ering->cq.desc_size_shift); in eea_ering_cq_get_desc() 32 phase = READ_ONCE(*(u8 *)(desc + ering->cq.desc_size - 1)); in eea_ering_cq_get_desc() 34 if ((phase & EEA_RING_DESC_F_CQ_PHASE) == ering->cq.phase) { in eea_ering_cq_get_desc() 113 struct eea_ring_cq *cq = &ering->cq; in eea_ering_cq_ack_desc() local 115 cq->head += num; in eea_ering_cq_ack_desc() 116 cq->hw_idx += num; in eea_ering_cq_ack_desc() 118 if (unlikely(cq->head >= ering->num)) { in eea_ering_cq_ack_desc() 119 cq->head -= ering->num; in eea_ering_cq_ack_desc() [all …]
|
| /linux/drivers/infiniband/sw/siw/ |
| H A D | siw_cq.c | 48 int siw_reap_cqe(struct siw_cq *cq, struct ib_wc *wc) in siw_reap_cqe() argument 53 spin_lock_irqsave(&cq->lock, flags); in siw_reap_cqe() 55 cqe = &cq->queue[cq->cq_get % cq->num_cqe]; in siw_reap_cqe() 66 if (likely(rdma_is_kernel_res(&cq->base_cq.res))) { in siw_reap_cqe() 74 siw_dbg_cq(cq, in siw_reap_cqe() 76 cq->cq_get % cq->num_cqe, cqe->opcode, in siw_reap_cqe() 100 cq->cq_get++; in siw_reap_cqe() 102 spin_unlock_irqrestore(&cq->lock, flags); in siw_reap_cqe() 106 spin_unlock_irqrestore(&cq->lock, flags); in siw_reap_cqe() 116 void siw_cq_flush(struct siw_cq *cq) in siw_cq_flush() argument [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_txrx.c | 43 struct otx2_cq_queue *cq, 58 struct otx2_cq_queue *cq) in otx2_nix_cq_op_status() argument 60 u64 incr = (u64)(cq->cq_idx) << 32; in otx2_nix_cq_op_status() 71 cq->cq_tail = status & 0xFFFFF; in otx2_nix_cq_op_status() 72 cq->cq_head = (status >> 20) & 0xFFFFF; in otx2_nix_cq_op_status() 73 if (cq->cq_tail < cq->cq_head) in otx2_nix_cq_op_status() 74 cq->pend_cqe = (cq->cqe_cnt - cq in otx2_nix_cq_op_status() 82 otx2_get_next_cqe(struct otx2_cq_queue * cq) otx2_get_next_cqe() argument 126 otx2_snd_pkt_handler(struct otx2_nic * pfvf,struct otx2_cq_queue * cq,struct otx2_snd_queue * sq,struct nix_cqe_tx_s * cqe,int budget,int * tx_pkts,int * tx_bytes) otx2_snd_pkt_handler() argument 332 otx2_rcv_pkt_handler(struct otx2_nic * pfvf,struct napi_struct * napi,struct otx2_cq_queue * cq,struct nix_cqe_rx_s * cqe,bool * need_xdp_flush) otx2_rcv_pkt_handler() argument 395 otx2_rx_napi_handler(struct otx2_nic * pfvf,struct napi_struct * napi,struct otx2_cq_queue * cq,int budget) otx2_rx_napi_handler() argument 436 otx2_refill_pool_ptrs(void * dev,struct otx2_cq_queue * cq) otx2_refill_pool_ptrs() argument 465 otx2_tx_napi_handler(struct otx2_nic * pfvf,struct otx2_cq_queue * cq,int budget) otx2_tx_napi_handler() argument 568 struct otx2_cq_queue *cq = NULL; otx2_napi_handler() local 1276 otx2_cleanup_rx_cqes(struct otx2_nic * pfvf,struct otx2_cq_queue * cq,int qidx) otx2_cleanup_rx_cqes() argument 1318 otx2_cleanup_tx_cqes(struct otx2_nic * pfvf,struct otx2_cq_queue * cq) otx2_cleanup_tx_cqes() argument 1491 otx2_xdp_rcv_pkt_handler(struct otx2_nic * pfvf,struct bpf_prog * prog,struct nix_cqe_rx_s * cqe,struct otx2_cq_queue * cq,u32 * metasize,bool * need_xdp_flush) otx2_xdp_rcv_pkt_handler() argument [all...] |
| /linux/drivers/infiniband/sw/rdmavt/ |
| H A D | trace_cq.h | 36 TP_PROTO(struct rvt_cq *cq, 38 TP_ARGS(cq, attr), 39 TP_STRUCT__entry(RDI_DEV_ENTRY(cq->rdi) 46 TP_fast_assign(RDI_DEV_ASSIGN(cq->rdi); 47 __entry->ip = cq->ip; 51 cq->comp_vector_cpu; 62 TP_PROTO(struct rvt_cq *cq, const struct ib_cq_init_attr *attr), 63 TP_ARGS(cq, attr)); 70 TP_PROTO(struct rvt_cq *cq, struct ib_wc *wc, u32 idx), 71 TP_ARGS(cq, wc, idx), [all …]
|
| /linux/drivers/net/ethernet/amd/pds_core/ |
| H A D | adminq.c | 12 struct pdsc_cq *cq = &qcq->cq; in pdsc_process_notifyq() local 17 cq_info = &cq->info[cq->tail_idx]; in pdsc_process_notifyq() 54 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in pdsc_process_notifyq() 55 cq_info = &cq->info[cq->tail_idx]; in pdsc_process_notifyq() 81 struct pdsc_cq *cq = &qcq->cq; in pdsc_process_adminq() local 108 comp = cq->info[cq->tail_idx].comp; in pdsc_process_adminq() 109 while (pdsc_color_match(comp->color, cq->done_color)) { in pdsc_process_adminq() 122 if (cq->tail_idx == cq->num_descs - 1) in pdsc_process_adminq() 123 cq->done_color = !cq->done_color; in pdsc_process_adminq() 124 cq->tail_idx = (cq->tail_idx + 1) & (cq->num_descs - 1); in pdsc_process_adminq() [all …]
|
| /linux/include/linux/mlx4/ |
| H A D | cq.h | 147 static inline void mlx4_cq_arm(struct mlx4_cq *cq, u32 cmd, in mlx4_cq_arm() argument 155 sn = cq->arm_sn & 3; in mlx4_cq_arm() 156 ci = cq->cons_index & 0xffffff; in mlx4_cq_arm() 158 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx4_cq_arm() 166 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); in mlx4_cq_arm() 172 static inline void mlx4_cq_set_ci(struct mlx4_cq *cq) in mlx4_cq_set_ci() argument 174 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); in mlx4_cq_set_ci() 182 int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, 184 int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq,
|
| /linux/drivers/nvme/target/ |
| H A D | pci-epf.c | 132 struct nvmet_pci_epf_queue *cq; member 166 struct nvmet_pci_epf_queue *cq; member 571 struct nvmet_pci_epf_queue *cq, bool force) in nvmet_pci_epf_should_raise_irq() argument 573 struct nvmet_pci_epf_irq_vector *iv = cq->iv; in nvmet_pci_epf_should_raise_irq() 577 if (!cq->qid) in nvmet_pci_epf_should_raise_irq() 596 struct nvmet_pci_epf_queue *cq, bool force) in nvmet_pci_epf_raise_irq() argument 602 if (!test_bit(NVMET_PCI_EPF_Q_LIVE, &cq->flags) || in nvmet_pci_epf_raise_irq() 603 !test_bit(NVMET_PCI_EPF_Q_IRQ_ENABLED, &cq->flags)) in nvmet_pci_epf_raise_irq() 608 if (!nvmet_pci_epf_should_raise_irq(ctrl, cq, force)) in nvmet_pci_epf_raise_irq() 621 nvme_epf->irq_type, cq in nvmet_pci_epf_raise_irq() 1151 struct nvmet_pci_epf_queue *cq = iod->cq; nvmet_pci_epf_complete_iod() local 1250 struct nvmet_pci_epf_queue *cq = &ctrl->cq[cqid]; nvmet_pci_epf_create_cq() local 1332 struct nvmet_pci_epf_queue *cq = &ctrl->cq[cqid]; nvmet_pci_epf_delete_cq() local 1352 struct nvmet_pci_epf_queue *cq = &ctrl->cq[cqid]; nvmet_pci_epf_create_sq() local 1740 struct nvmet_pci_epf_queue *cq = nvmet_pci_epf_cq_work() local [all...] |
| /linux/drivers/infiniband/hw/ionic/ |
| H A D | ionic_admin.c | 25 /* will poll for admin cq to tolerate and report from missed event */ 28 /* work queue for polling the event queue and admin cq */ 79 static bool ionic_admin_next_cqe(struct ionic_ibdev *dev, struct ionic_cq *cq, in ionic_admin_next_cqe() argument 82 struct ionic_v1_cqe *qcqe = ionic_queue_at_prod(&cq->q); in ionic_admin_next_cqe() 84 if (unlikely(cq->color != ionic_v1_cqe_color(qcqe))) in ionic_admin_next_cqe() 96 struct ionic_cq *cq = &aq->vcq->cq[0]; in ionic_admin_poll_locked() local 126 old_prod = cq->q.prod; in ionic_admin_poll_locked() 128 while (ionic_admin_next_cqe(dev, cq, &cqe)) { in ionic_admin_poll_locked() 173 ionic_queue_produce(&cq in ionic_admin_poll_locked() 520 struct ionic_cq *cq; ionic_create_rdma_admincq() local 634 struct ionic_cq *cq, *cq_tmp; ionic_flush_qs() local 793 struct ionic_cq *cq; ionic_cq_event() local [all...] |