Lines Matching +full:reg +full:- +full:names
1 /* Copyright 2008 - 2016 Freescale Semiconductor, Inc.
11 * names of its contributors may be used to endorse or promote products
44 dev_crit(pcfg->dev, "%s: Portal failure on cpu %d\n", in init_pcfg()
45 __func__, pcfg->cpu); in init_pcfg()
50 affine_bportals[pcfg->cpu] = p; in init_pcfg()
52 dev_info(pcfg->dev, "Portal initialised, cpu %d\n", pcfg->cpu); in init_pcfg()
71 irq_set_affinity(pcfg->irq, cpumask_of(cpu)); in bman_offline_cpu()
87 irq_set_affinity(pcfg->irq, cpumask_of(cpu)); in bman_online_cpu()
99 struct device *dev = &pdev->dev; in bman_portal_probe()
100 struct device_node *node = dev->of_node; in bman_portal_probe()
107 return -EPROBE_DEFER; in bman_portal_probe()
109 dev_err(&pdev->dev, "failing probe due to bman probe error\n"); in bman_portal_probe()
110 return -ENODEV; in bman_portal_probe()
115 __bman_portals_probed = -1; in bman_portal_probe()
116 return -ENOMEM; in bman_portal_probe()
119 pcfg->dev = dev; in bman_portal_probe()
124 dev_err(dev, "Can't get %pOF property 'reg::CE'\n", node); in bman_portal_probe()
131 dev_err(dev, "Can't get %pOF property 'reg::CI'\n", node); in bman_portal_probe()
135 pcfg->cpu = -1; in bman_portal_probe()
140 pcfg->irq = irq; in bman_portal_probe()
142 pcfg->addr_virt_ce = memremap(addr_phys[0]->start, in bman_portal_probe()
145 if (!pcfg->addr_virt_ce) { in bman_portal_probe()
150 pcfg->addr_virt_ci = ioremap(addr_phys[1]->start, in bman_portal_probe()
152 if (!pcfg->addr_virt_ci) { in bman_portal_probe()
158 cpu = cpumask_next_zero(-1, &portal_cpus); in bman_portal_probe()
168 pcfg->cpu = cpu; in bman_portal_probe()
198 iounmap(pcfg->addr_virt_ci); in bman_portal_probe()
200 memunmap(pcfg->addr_virt_ce); in bman_portal_probe()
202 __bman_portals_probed = -1; in bman_portal_probe()
204 return -ENXIO; in bman_portal_probe()
209 .compatible = "fsl,bman-portal",