Home
last modified time | relevance | path

Searched refs:cpu_port (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.15/drivers/bus/
Darm-cci.c116 struct cpu_port { struct
132 static inline void init_cpu_port(struct cpu_port *port, u32 index, u64 mpidr) in init_cpu_port() argument
138 static inline bool cpu_port_is_valid(struct cpu_port *port) in cpu_port_is_valid()
143 static inline bool cpu_port_match(struct cpu_port *port, u64 mpidr) in cpu_port_match()
148 static struct cpu_port cpu_port[NR_CPUS]; variable
205 init_cpu_port(&cpu_port[cpu], port, cpu_logical_map(cpu)); in cci_ace_init_ports()
209 WARN(!cpu_port_is_valid(&cpu_port[cpu]), in cci_ace_init_ports()
270 is_valid = cpu_port_is_valid(&cpu_port[cpu]); in cci_disable_port_by_cpu()
271 if (is_valid && cpu_port_match(&cpu_port[cpu], mpidr)) { in cci_disable_port_by_cpu()
272 cci_port_control(cpu_port[cpu].port, false); in cci_disable_port_by_cpu()
[all …]
/Linux-v5.15/drivers/net/ethernet/ti/
Dam65-cpsw-switchdev.c152 bool cpu_port = netif_is_bridge_master(orig_dev); in am65_cpsw_port_vlan_add() local
161 if (cpu_port) { in am65_cpsw_port_vlan_add()
183 if (cpu_port) in am65_cpsw_port_vlan_add()
200 bool cpu_port = netif_is_bridge_master(orig_dev); in am65_cpsw_port_vlan_del() local
205 if (cpu_port) in am65_cpsw_port_vlan_del()
217 if (cpu_port) in am65_cpsw_port_vlan_del()
240 bool cpu_port = netif_is_bridge_master(orig_dev); in am65_cpsw_port_vlans_add() local
246 if (cpu_port && !(vlan->flags & BRIDGE_VLAN_INFO_BRENTRY)) in am65_cpsw_port_vlans_add()
264 bool cpu_port = netif_is_bridge_master(orig_dev); in am65_cpsw_port_mdb_add() local
269 if (cpu_port) in am65_cpsw_port_mdb_add()
[all …]
Dcpsw_switchdev.c168 bool cpu_port = netif_is_bridge_master(orig_dev); in cpsw_port_vlan_add() local
177 if (cpu_port) { in cpsw_port_vlan_add()
199 if (cpu_port) in cpsw_port_vlan_add()
215 bool cpu_port = netif_is_bridge_master(orig_dev); in cpsw_port_vlan_del() local
220 if (cpu_port) in cpsw_port_vlan_del()
232 if (cpu_port) in cpsw_port_vlan_del()
255 bool cpu_port = netif_is_bridge_master(orig_dev); in cpsw_port_vlans_add() local
261 if (cpu_port && !(vlan->flags & BRIDGE_VLAN_INFO_BRENTRY)) in cpsw_port_vlans_add()
272 bool cpu_port = netif_is_bridge_master(orig_dev); in cpsw_port_mdb_add() local
277 if (cpu_port) in cpsw_port_mdb_add()
[all …]
/Linux-v5.15/drivers/net/dsa/b53/
Db53_common.c498 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in b53_imp_vlan_setup() argument
510 pvlan |= BIT(cpu_port); in b53_imp_vlan_setup()
565 unsigned int cpu_port; in b53_enable_port() local
572 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_enable_port()
596 b53_imp_vlan_setup(ds, cpu_port); in b53_enable_port()
1225 if (is5301x(dev) && port == dev->cpu_port) in b53_adjust_link()
1295 if (port != dev->cpu_port) { in b53_adjust_link()
1296 b53_force_port_config(dev, dev->cpu_port, 2000, in b53_adjust_link()
1298 b53_force_link(dev, dev->cpu_port, 1); in b53_adjust_link()
1853 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() local
[all …]
Db53_priv.h127 unsigned int cpu_port; member
320 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
/Linux-v5.15/drivers/net/dsa/
Dlantiq_gswip.c244 int cpu_port; member
616 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_add_single_port_br() local
642 vlan_mapping.val[1] = BIT(port) | BIT(cpu_port); in gswip_add_single_port_br()
781 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_setup() local
805 gswip_switch_w(priv, BIT(cpu_port), GSWIP_PCE_PMAP1); in gswip_setup()
806 gswip_switch_w(priv, BIT(cpu_port), GSWIP_PCE_PMAP2); in gswip_setup()
807 gswip_switch_w(priv, BIT(cpu_port), GSWIP_PCE_PMAP3); in gswip_setup()
838 GSWIP_FDMA_PCTRLp(cpu_port)); in gswip_setup()
842 GSWIP_PCE_PCTRL_0p(cpu_port)); in gswip_setup()
845 GSWIP_MAC_CTRL_2p(cpu_port)); in gswip_setup()
[all …]
Drtl8366rb.c870 BIT(smi->cpu_port)); in rtl8366rb_setup()
876 BIT(smi->cpu_port), in rtl8366rb_setup()
1001 if (port != smi->cpu_port) in rtl8366rb_mac_link_up()
1038 if (port != smi->cpu_port) in rtl8366rb_mac_link_down()
1486 smi->cpu_port = RTL8366RB_PORT_NUM_CPU; in rtl8366rb_detect()
Drealtek-smi-core.h62 unsigned int cpu_port; member
Drtl8366.c310 if (port == smi->cpu_port) in rtl8366_init_vlan()
319 mask = BIT(port) | BIT(smi->cpu_port); in rtl8366_init_vlan()
Dbcm_sf2.c992 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol() local
1009 if (priv->wol_ports_mask && priv->wol_ports_mask != (1 << cpu_port)) in bcm_sf2_sw_set_wol()
1010 priv->wol_ports_mask |= (1 << cpu_port); in bcm_sf2_sw_set_wol()
1012 priv->wol_ports_mask &= ~(1 << cpu_port); in bcm_sf2_sw_set_wol()
Dbcm_sf2_cfp.c850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_cfp_rule_insert() local
861 ring_cookie = cpu_port * SF2_NUM_EGRESS_QUEUES; in bcm_sf2_cfp_rule_insert()
/Linux-v5.15/drivers/net/dsa/microchip/
Dksz9477.c412 if (port != dev->cpu_port) in ksz9477_port_stp_state_set()
417 if (port != dev->cpu_port && in ksz9477_port_stp_state_set()
428 if (port == dev->cpu_port) in ksz9477_port_stp_state_set()
443 if (port != dev->cpu_port && in ksz9477_port_stp_state_set()
534 vlan_table[1] &= ~(BIT(dev->cpu_port)); in ksz9477_port_vlan_add()
536 vlan_table[2] |= BIT(port) | BIT(dev->cpu_port); in ksz9477_port_vlan_add()
1169 static void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port) in ksz9477_port_setup() argument
1177 if (cpu_port) in ksz9477_port_setup()
1254 if (cpu_port) in ksz9477_port_setup()
1278 dev->cpu_port = i; in ksz9477_config_cpu_port()
[all …]
Dksz_common.h69 int cpu_port; /* port connected to CPU */ member
120 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
Dksz8795.c1040 if (port == dev->cpu_port) in ksz8_port_stp_state_set()
1162 port != dev->cpu_port) { in ksz8_port_vlan_add()
1342 static void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port) in ksz8_port_setup() argument
1367 if (cpu_port) { in ksz8_port_setup()
1394 p = &dev->ports[dev->cpu_port]; in ksz8_config_cpu_port()
1398 ksz8_port_setup(dev, dev->cpu_port, true); in ksz8_config_cpu_port()
1512 if (port == dev->cpu_port) { in ksz8_validate()
1713 dev->cpu_port = fls(chip->cpu_ports) - 1; in ksz8_switch_init()
Dksz_common.c29 if (i == port || i == dev->cpu_port) in ksz_update_port_member()
/Linux-v5.15/sound/soc/generic/
Daudio-graph-card.c436 struct device_node *cpu_port; in __graph_for_each_link() local
446 cpu_port = it.node; in __graph_for_each_link()
451 cpu_ep = of_get_next_child(cpu_port, cpu_ep); in __graph_for_each_link()
/Linux-v5.15/drivers/net/dsa/xrs700x/
Dxrs700x.c385 bool cpu_port = dsa_is_cpu_port(ds, port); in xrs700x_port_setup() local
403 val = cpu_port ? XRS_PORT_MODE_MANAGEMENT : XRS_PORT_MODE_NORMAL; in xrs700x_port_setup()
408 if (!cpu_port) { in xrs700x_port_setup()
/Linux-v5.15/arch/arm/boot/dts/
Dam335x-sl50.dts184 dais = <&cpu_port>;
555 cpu_port: port { label
/Linux-v5.15/drivers/net/dsa/hirschmann/
Dhellcreek.c997 struct hellcreek_port *cpu_port = &hellcreek->ports[CPU_PORT]; in hellcreek_setup_cpu_and_tunnel_port() local
1010 cpu_port->ptcfg = ptcfg; in hellcreek_setup_cpu_and_tunnel_port()