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