Lines Matching refs:eq
154 struct erdma_eq *eq = &cmdq->eq; in erdma_cmdq_eq_init() local
157 eq->depth = cmdq->max_outstandings; in erdma_cmdq_eq_init()
158 buf_size = eq->depth << EQE_SHIFT; in erdma_cmdq_eq_init()
160 eq->qbuf = in erdma_cmdq_eq_init()
162 &eq->qbuf_dma_addr, GFP_KERNEL | __GFP_ZERO); in erdma_cmdq_eq_init()
163 if (!eq->qbuf) in erdma_cmdq_eq_init()
166 spin_lock_init(&eq->lock); in erdma_cmdq_eq_init()
167 atomic64_set(&eq->event_num, 0); in erdma_cmdq_eq_init()
169 eq->db_addr = in erdma_cmdq_eq_init()
171 eq->db_record = (u64 *)(eq->qbuf + buf_size); in erdma_cmdq_eq_init()
174 upper_32_bits(eq->qbuf_dma_addr)); in erdma_cmdq_eq_init()
176 lower_32_bits(eq->qbuf_dma_addr)); in erdma_cmdq_eq_init()
177 erdma_reg_write32(dev, ERDMA_REGS_CMDQ_EQ_DEPTH_REG, eq->depth); in erdma_cmdq_eq_init()
179 eq->qbuf_dma_addr + buf_size); in erdma_cmdq_eq_init()
235 (cmdq->eq.depth << EQE_SHIFT) + in erdma_cmdq_init()
237 cmdq->eq.qbuf, cmdq->eq.qbuf_dma_addr); in erdma_cmdq_init()
268 (cmdq->eq.depth << EQE_SHIFT) + in erdma_cmdq_destroy()
270 cmdq->eq.qbuf, cmdq->eq.qbuf_dma_addr); in erdma_cmdq_destroy()
382 while (get_next_valid_eqe(&cmdq->eq)) { in erdma_cmdq_completion_handler()
383 cmdq->eq.ci++; in erdma_cmdq_completion_handler()
392 notify_eq(&cmdq->eq); in erdma_cmdq_completion_handler()