Lines Matching refs:pcfg
39 static struct bman_portal *init_pcfg(struct bm_portal_config *pcfg) in init_pcfg() argument
41 struct bman_portal *p = bman_create_affine_portal(pcfg); in init_pcfg()
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()
60 const struct bm_portal_config *pcfg; in bman_offline_cpu() local
65 pcfg = bman_get_bm_portal_config(p); in bman_offline_cpu()
66 if (!pcfg) in bman_offline_cpu()
71 irq_set_affinity(pcfg->irq, cpumask_of(cpu)); in bman_offline_cpu()
78 const struct bm_portal_config *pcfg; in bman_online_cpu() local
83 pcfg = bman_get_bm_portal_config(p); in bman_online_cpu()
84 if (!pcfg) in bman_online_cpu()
87 irq_set_affinity(pcfg->irq, cpumask_of(cpu)); in bman_online_cpu()
101 struct bm_portal_config *pcfg; in bman_portal_probe() local
113 pcfg = devm_kmalloc(dev, sizeof(*pcfg), GFP_KERNEL); in bman_portal_probe()
114 if (!pcfg) { in bman_portal_probe()
119 pcfg->dev = dev; 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()
168 pcfg->cpu = cpu; in bman_portal_probe()
170 if (!init_pcfg(pcfg)) { in bman_portal_probe()
199 iounmap(pcfg->addr_virt_ci); in bman_portal_probe()
201 memunmap(pcfg->addr_virt_ce); in bman_portal_probe()