/Linux-v6.1/drivers/bus/ |
D | arm-cci.c | 116 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-v6.1/drivers/net/ethernet/ti/ |
D | am65-cpsw-switchdev.c | 152 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() 260 bool cpu_port = netif_is_bridge_master(orig_dev); in am65_cpsw_port_mdb_add() local 265 if (cpu_port) in am65_cpsw_port_mdb_add() 283 bool cpu_port = netif_is_bridge_master(orig_dev); in am65_cpsw_port_mdb_del() local 287 if (cpu_port) in am65_cpsw_port_mdb_del()
|
D | cpsw_switchdev.c | 168 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() 268 bool cpu_port = netif_is_bridge_master(orig_dev); in cpsw_port_mdb_add() local 273 if (cpu_port) in cpsw_port_mdb_add() 291 bool cpu_port = netif_is_bridge_master(orig_dev); in cpsw_port_mdb_del() local 296 if (cpu_port) in cpsw_port_mdb_del()
|
/Linux-v6.1/drivers/net/dsa/ |
D | lantiq_gswip.c | 254 int cpu_port; member 648 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_add_single_port_br() local 674 vlan_mapping.val[1] = BIT(port) | BIT(cpu_port); in gswip_add_single_port_br() 813 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_setup() local 837 gswip_switch_w(priv, BIT(cpu_port), GSWIP_PCE_PMAP1); in gswip_setup() 838 gswip_switch_w(priv, BIT(cpu_port), GSWIP_PCE_PMAP2); in gswip_setup() 839 gswip_switch_w(priv, BIT(cpu_port), GSWIP_PCE_PMAP3); in gswip_setup() 870 GSWIP_FDMA_PCTRLp(cpu_port)); in gswip_setup() 874 GSWIP_PCE_PCTRL_0p(cpu_port)); in gswip_setup() 894 gswip_port_enable(ds, cpu_port, NULL); in gswip_setup() [all …]
|
D | bcm_sf2.c | 1012 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in bcm_sf2_sw_set_wol() local 1029 if (priv->wol_ports_mask && priv->wol_ports_mask != (1 << cpu_port)) in bcm_sf2_sw_set_wol() 1030 priv->wol_ports_mask |= (1 << cpu_port); in bcm_sf2_sw_set_wol() 1032 priv->wol_ports_mask &= ~(1 << cpu_port); in bcm_sf2_sw_set_wol()
|
/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_mdb.c | 109 bool cpu_port = netif_is_bridge_master(mdb->obj.orig_dev); in lan966x_mdb_ip_add() local 125 if (cpu_port) in lan966x_mdb_ip_add() 144 bool cpu_port = netif_is_bridge_master(mdb->obj.orig_dev); in lan966x_mdb_ip_del() local 155 if (cpu_port) { in lan966x_mdb_ip_del() 252 bool cpu_port = netif_is_bridge_master(mdb->obj.orig_dev); in lan966x_mdb_l2_add() local 269 if (cpu_port) { in lan966x_mdb_l2_add() 301 bool cpu_port = netif_is_bridge_master(mdb->obj.orig_dev); in lan966x_mdb_l2_del() local 313 if (cpu_port) { in lan966x_mdb_l2_del()
|
/Linux-v6.1/drivers/net/dsa/microchip/ |
D | lan937x_main.c | 171 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port) in lan937x_port_setup() argument 179 if (cpu_port) in lan937x_port_setup() 196 if (cpu_port) in lan937x_port_setup() 211 dev->cpu_port = dp->index; in lan937x_config_cpu_port()
|
D | ksz9477.c | 410 vlan_table[1] &= ~(BIT(dev->cpu_port)); in ksz9477_port_vlan_add() 412 vlan_table[2] |= BIT(port) | BIT(dev->cpu_port); in ksz9477_port_vlan_add() 991 void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port) in ksz9477_port_setup() argument 998 if (cpu_port) in ksz9477_port_setup() 1037 if (cpu_port) in ksz9477_port_setup() 1062 dev->cpu_port = i; in ksz9477_config_cpu_port() 1101 if (i == dev->cpu_port) in ksz9477_config_cpu_port() 1120 ALU_V_OVERRIDE | BIT(dev->cpu_port)); in ksz9477_enable_stp_addr()
|
D | lan937x.h | 12 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port);
|
D | ksz8.h | 19 void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port);
|
D | ksz9477.h | 18 void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port);
|
D | ksz8795.c | 1047 port != dev->cpu_port) { in ksz8_port_vlan_add() 1188 void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port) in ksz8_port_setup() argument 1212 if (cpu_port) { in ksz8_port_setup() 1240 p = &dev->ports[dev->cpu_port]; in ksz8_config_cpu_port() 1243 ksz8_port_setup(dev, dev->cpu_port, true); in ksz8_config_cpu_port() 1366 dev->cpu_port = fls(dev->info->cpu_ports) - 1; in ksz8_switch_init()
|
D | ksz_common.h | 128 int cpu_port; /* port connected to CPU */ member 287 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port);
|
D | ksz_common.c | 1605 u8 port_member = 0, cpu_port; in ksz_update_port_member() local 1613 cpu_port = BIT(dsa_upstream_port(ds, port)); in ksz_update_port_member() 1653 dev->dev_ops->cfg_port_member(dev, i, val | cpu_port); in ksz_update_port_member() 1656 dev->dev_ops->cfg_port_member(dev, port, port_member | cpu_port); in ksz_update_port_member() 1978 p = &dev->ports[dev->cpu_port]; in ksz_setup()
|
/Linux-v6.1/sound/soc/generic/ |
D | audio-graph-card2.c | 744 struct device_node *cpu_port = lnk; in audio_graph2_link_normal() local 745 struct device_node *cpu_ep = port_to_endpoint(cpu_port); in audio_graph2_link_normal() 761 ret = graph_parse_node(priv, GRAPH_NORMAL, cpu_port, li, 1); in audio_graph2_link_normal() 765 graph_link_init(priv, cpu_port, li, 1); in audio_graph2_link_normal() 1039 struct device_node *cpu_port = lnk; in graph_count_normal() local 1040 struct device_node *cpu_ep = port_to_endpoint(cpu_port); in graph_count_normal() 1049 li->num[li->link].platforms = graph_counter(cpu_port); in graph_count_normal()
|
D | audio-graph-card.c | 440 struct device_node *cpu_port; in __graph_for_each_link() local 450 cpu_port = it.node; in __graph_for_each_link() 455 cpu_ep = of_get_next_child(cpu_port, cpu_ep); in __graph_for_each_link()
|
/Linux-v6.1/drivers/net/dsa/b53/ |
D | b53_common.c | 498 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() 1850 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_join() local 1866 if ((reg & BIT(cpu_port)) == BIT(cpu_port)) in b53_br_join() 1867 reg &= ~BIT(cpu_port); in b53_br_join() 1902 s8 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in b53_br_leave() local 1932 if (!(reg & BIT(cpu_port))) in b53_br_leave() [all …]
|
D | b53_priv.h | 324 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
|
/Linux-v6.1/drivers/net/dsa/qca/ |
D | qca8k-8xxx.c | 1667 int cpu_port, ret, i; in qca8k_setup() local 1670 cpu_port = qca8k_find_cpu_port(ds); in qca8k_setup() 1671 if (cpu_port < 0) { in qca8k_setup() 1673 return cpu_port; in qca8k_setup() 1746 FIELD_PREP(QCA8K_GLOBAL_FW_CTRL1_IGMP_DP_MASK, BIT(cpu_port)) | in qca8k_setup() 1747 FIELD_PREP(QCA8K_GLOBAL_FW_CTRL1_BC_DP_MASK, BIT(cpu_port)) | in qca8k_setup() 1748 FIELD_PREP(QCA8K_GLOBAL_FW_CTRL1_MC_DP_MASK, BIT(cpu_port)) | in qca8k_setup() 1749 FIELD_PREP(QCA8K_GLOBAL_FW_CTRL1_UC_DP_MASK, BIT(cpu_port))); in qca8k_setup() 1769 BIT(cpu_port)); in qca8k_setup()
|
D | qca8k-common.c | 633 int port_mask, cpu_port; in qca8k_port_bridge_join() local 636 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_join() 637 port_mask = BIT(cpu_port); in qca8k_port_bridge_join() 667 int cpu_port, i; in qca8k_port_bridge_leave() local 669 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; in qca8k_port_bridge_leave() 688 QCA8K_PORT_LOOKUP_MEMBER, BIT(cpu_port)); in qca8k_port_bridge_leave()
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
D | ocelot.c | 1441 struct ocelot_port *cpu_port = ocelot_port->dsa_8021q_cpu; in ocelot_port_assigned_dsa_8021q_cpu_mask() local 1443 if (!cpu_port) in ocelot_port_assigned_dsa_8021q_cpu_mask() 1446 if (cpu_port->bond) in ocelot_port_assigned_dsa_8021q_cpu_mask() 1447 return ocelot_get_bond_mask(ocelot, cpu_port->bond); in ocelot_port_assigned_dsa_8021q_cpu_mask() 1449 return BIT(cpu_port->index); in ocelot_port_assigned_dsa_8021q_cpu_mask() 1574 struct ocelot_port *cpu_port = ocelot->ports[cpu]; in ocelot_port_setup_dsa_8021q_cpu() local 1579 cpu_port->is_dsa_8021q_cpu = true; in ocelot_port_setup_dsa_8021q_cpu() 1592 struct ocelot_port *cpu_port = ocelot->ports[cpu]; in ocelot_port_teardown_dsa_8021q_cpu() local 1597 cpu_port->is_dsa_8021q_cpu = false; in ocelot_port_teardown_dsa_8021q_cpu() 1600 ocelot_vlan_member_del(ocelot, cpu_port->index, vid); in ocelot_port_teardown_dsa_8021q_cpu() [all …]
|
/Linux-v6.1/drivers/net/dsa/realtek/ |
D | realtek.h | 69 unsigned int cpu_port; member
|
D | rtl8366rb.c | 926 BIT(priv->cpu_port)); in rtl8366rb_setup() 932 BIT(priv->cpu_port), in rtl8366rb_setup() 1060 if (port != priv->cpu_port) in rtl8366rb_mac_link_up() 1097 if (port != priv->cpu_port) in rtl8366rb_mac_link_down() 1777 priv->cpu_port = RTL8366RB_PORT_NUM_CPU; in rtl8366rb_detect()
|
/Linux-v6.1/drivers/net/dsa/xrs700x/ |
D | xrs700x.c | 387 bool cpu_port = dsa_is_cpu_port(ds, port); in xrs700x_port_setup() local 405 val = cpu_port ? XRS_PORT_MODE_MANAGEMENT : XRS_PORT_MODE_NORMAL; in xrs700x_port_setup() 410 if (!cpu_port) { in xrs700x_port_setup()
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | am335x-sl50.dts | 184 dais = <&cpu_port>; 555 cpu_port: port { label
|