Lines Matching refs:ceqn

173 static int erdma_set_ceq_irq(struct erdma_dev *dev, u16 ceqn)  in erdma_set_ceq_irq()  argument
175 struct erdma_eq_cb *eqc = &dev->ceqs[ceqn]; in erdma_set_ceq_irq()
178 snprintf(eqc->irq.name, ERDMA_IRQNAME_SIZE, "erdma-ceq%u@pci:%s", ceqn, in erdma_set_ceq_irq()
180 eqc->irq.msix_vector = pci_irq_vector(dev->pdev, ceqn + 1); in erdma_set_ceq_irq()
182 tasklet_init(&dev->ceqs[ceqn].tasklet, erdma_intr_ceq_task, in erdma_set_ceq_irq()
183 (unsigned long)&dev->ceqs[ceqn]); in erdma_set_ceq_irq()
185 cpumask_set_cpu(cpumask_local_spread(ceqn + 1, dev->attrs.numa_node), in erdma_set_ceq_irq()
201 static void erdma_free_ceq_irq(struct erdma_dev *dev, u16 ceqn) in erdma_free_ceq_irq() argument
203 struct erdma_eq_cb *eqc = &dev->ceqs[ceqn]; in erdma_free_ceq_irq()
229 static int erdma_ceq_init_one(struct erdma_dev *dev, u16 ceqn) in erdma_ceq_init_one() argument
231 struct erdma_eq *eq = &dev->ceqs[ceqn].eq; in erdma_ceq_init_one()
247 (ceqn + 1) * ERDMA_DB_SIZE; in erdma_ceq_init_one()
250 dev->ceqs[ceqn].dev = dev; in erdma_ceq_init_one()
253 ret = create_eq_cmd(dev, ceqn + 1, eq); in erdma_ceq_init_one()
254 dev->ceqs[ceqn].ready = ret ? false : true; in erdma_ceq_init_one()
259 static void erdma_ceq_uninit_one(struct erdma_dev *dev, u16 ceqn) in erdma_ceq_uninit_one() argument
261 struct erdma_eq *eq = &dev->ceqs[ceqn].eq; in erdma_ceq_uninit_one()
266 dev->ceqs[ceqn].ready = 0; in erdma_ceq_uninit_one()
271 req.eqn = ceqn + 1; in erdma_ceq_uninit_one()
273 req.vector_idx = ceqn + 1; in erdma_ceq_uninit_one()