Lines Matching refs:ports
113 static struct cci_ace_port *ports;
124 * Code disabling CCI cpu ports runs with D-cache invalidated
169 ace_match = ports[i].type == type;
170 if (ace_match && cci_portn == ports[i].dn)
188 * Port index look-up speeds up the function disabling ports by CPU,
235 void __iomem *base = ports[port].base;
257 * controlling that CPU cluster. Code disabling CPU CCI ports
330 /* Use matched port index to look up the corresponding ports entry */
335 " ldr r0, [r0, r2] @ *(&ports) \n"
337 " mla r0, r2, r3, r0 @ &ports[index] \n"
359 " .word ports - 6b \n"
417 if (port >= nb_cci_ports || ports[port].type == ACE_INVALID_PORT)
420 * CCI control for ports connected to CPUS is extremely fragile
423 * indexing is therefore disabled for ACE ports.
425 if (ports[port].type == ACE_PORT)
454 ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL);
455 if (!ports)
482 ports[i].base = ioremap(res.start, resource_size(&res));
483 ports[i].phys = res.start;
485 if (ret || !ports[i].base) {
493 ports[i].type = ACE_PORT;
498 ports[i].type = ACE_LITE_PORT;
501 ports[i].dn = cp;
511 /* initialize a stashed array of ACE ports to speed-up look-up */
520 sync_cache_w(&ports);
522 __sync_cache_range_w(ports, sizeof(*ports) * nb_cci_ports);