Lines Matching refs:cpu
55 static int dpaa2_dpio_get_cluster_sdest(struct fsl_mc_device *dpio_dev, int cpu)
72 return cluster_base + cpu / cluster_size;
93 static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu)
113 if (irq_set_affinity_hint(irq->virq, cpumask_of(cpu)))
115 "irq_set_affinity failed irq %d cpu %d\n",
116 irq->virq, cpu);
177 /* get the cpu to use for the affinity hint */
184 desc.cpu = possible_next_cpu;
187 sdest = dpaa2_dpio_get_cluster_sdest(dpio_dev, desc.cpu);
193 dev_err(dev, "dpio_set_stashing_destination failed for cpu%d\n",
194 desc.cpu);
240 err = register_dpio_irq_handlers(dpio_dev, desc.cpu);
277 int err = 0, cpu;
281 cpu = dpaa2_io_get_cpu(priv->io);
287 cpumask_set_cpu(cpu, cpus_unused_mask);