Lines Matching refs:ceqn
188 static int erdma_set_ceq_irq(struct erdma_dev *dev, u16 ceqn) in erdma_set_ceq_irq() argument
190 struct erdma_eq_cb *eqc = &dev->ceqs[ceqn]; in erdma_set_ceq_irq()
193 snprintf(eqc->irq.name, ERDMA_IRQNAME_SIZE, "erdma-ceq%u@pci:%s", ceqn, in erdma_set_ceq_irq()
195 eqc->irq.msix_vector = pci_irq_vector(dev->pdev, ceqn + 1); in erdma_set_ceq_irq()
197 tasklet_init(&dev->ceqs[ceqn].tasklet, erdma_intr_ceq_task, in erdma_set_ceq_irq()
198 (unsigned long)&dev->ceqs[ceqn]); in erdma_set_ceq_irq()
200 cpumask_set_cpu(cpumask_local_spread(ceqn + 1, dev->attrs.numa_node), in erdma_set_ceq_irq()
216 static void erdma_free_ceq_irq(struct erdma_dev *dev, u16 ceqn) in erdma_free_ceq_irq() argument
218 struct erdma_eq_cb *eqc = &dev->ceqs[ceqn]; in erdma_free_ceq_irq()
242 static int erdma_ceq_init_one(struct erdma_dev *dev, u16 ceqn) in erdma_ceq_init_one() argument
244 struct erdma_eq *eq = &dev->ceqs[ceqn].eq; in erdma_ceq_init_one()
252 (ceqn + 1) * ERDMA_DB_SIZE; in erdma_ceq_init_one()
253 dev->ceqs[ceqn].dev = dev; in erdma_ceq_init_one()
254 dev->ceqs[ceqn].ready = true; in erdma_ceq_init_one()
257 ret = create_eq_cmd(dev, ceqn + 1, eq); in erdma_ceq_init_one()
260 dev->ceqs[ceqn].ready = false; in erdma_ceq_init_one()
266 static void erdma_ceq_uninit_one(struct erdma_dev *dev, u16 ceqn) in erdma_ceq_uninit_one() argument
268 struct erdma_eq *eq = &dev->ceqs[ceqn].eq; in erdma_ceq_uninit_one()
272 dev->ceqs[ceqn].ready = 0; in erdma_ceq_uninit_one()
277 req.eqn = ceqn + 1; in erdma_ceq_uninit_one()
279 req.vector_idx = ceqn + 1; in erdma_ceq_uninit_one()