Home
last modified time | relevance | path

Searched refs:chip_port (Results 1 – 10 of 10) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/microchip/lan966x/
Dlan966x_port.c35 lan966x, AFI_PORT_CFG(port->chip_port)); in lan966x_port_link_down()
39 val = lan_rd(lan966x, AFI_PORT_FRM_OUT(port->chip_port)); in lan966x_port_link_down()
46 pr_err("AFI timeout chip port %u", port->chip_port); in lan966x_port_link_down()
56 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_port_link_down()
61 lan966x, DEV_MAC_ENA_CFG(port->chip_port)); in lan966x_port_link_down()
66 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
71 lan966x, QSYS_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
76 lan966x, SYS_PAUSE_CFG(port->chip_port)); in lan966x_port_link_down()
81 lan966x, QSYS_SW_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
89 lan966x, SYS_FRONT_PORT_MODE(port->chip_port)); in lan966x_port_link_down()
[all …]
Dlan966x_switchdev.c30 if (flood_mask & BIT(port->chip_port)) in lan966x_port_set_mcast_ip_flood()
31 flood_mask_ip |= BIT(port->chip_port); in lan966x_port_set_mcast_ip_flood()
33 flood_mask_ip &= ~BIT(port->chip_port); in lan966x_port_set_mcast_ip_flood()
35 flood_mask_ip &= ~BIT(port->chip_port); in lan966x_port_set_mcast_ip_flood()
50 val |= BIT(port->chip_port); in lan966x_port_set_mcast_flood()
52 val &= ~BIT(port->chip_port); in lan966x_port_set_mcast_flood()
71 val |= BIT(port->chip_port); in lan966x_port_set_ucast_flood()
73 val &= ~BIT(port->chip_port); in lan966x_port_set_ucast_flood()
87 val |= BIT(port->chip_port); in lan966x_port_set_bcast_flood()
89 val &= ~BIT(port->chip_port); in lan966x_port_set_bcast_flood()
[all …]
Dlan966x_vlan.c57 u8 p = port->chip_port; in lan966x_vlan_port_add_vlan_mask()
66 u8 p = port->chip_port; in lan966x_vlan_port_del_vlan_mask()
108 if (!(lan966x->bridge_mask & BIT(port->chip_port))) in lan966x_vlan_port_get_pvid()
170 lan966x, ANA_VLAN_CFG(port->chip_port)); in lan966x_vlan_port_apply()
182 lan_wr(val, lan966x, ANA_DROP_CFG(port->chip_port)); in lan966x_vlan_port_apply()
197 lan966x, REW_TAG_CFG(port->chip_port)); in lan966x_vlan_port_apply()
204 lan966x, REW_PORT_VLAN_CFG(port->chip_port)); in lan966x_vlan_port_apply()
Dlan966x_mdb.c128 mdb_entry->ports |= BIT(port->chip_port); in lan966x_mdb_ip_add()
163 ports &= ~BIT(port->chip_port); in lan966x_mdb_ip_del()
273 mdb_entry->ports |= BIT(port->chip_port); in lan966x_mdb_l2_add()
323 ports &= ~BIT(port->chip_port); in lan966x_mdb_l2_del()
Dlan966x_main.c159 ret = snprintf(buf, len, "p%d", port->chip_port); in lan966x_port_get_phys_port_name()
177 ANA_PORT_CFG_PORTID_VAL_SET(port->chip_port), in lan966x_port_open()
181 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_port_open()
357 lan966x_ifh_set_port(ifh, BIT_ULL(port->chip_port)); in lan966x_port_xmit()
389 lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_port_change_mtu()
398 lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_port_change_mtu()
749 port->chip_port = p; in lan966x_probe_port()
Dlan966x_mac.c266 mac_entry = lan966x_mac_find_entry(lan966x, addr, vid, port->chip_port); in lan966x_mac_add_entry()
272 mac_entry = lan966x_mac_alloc_entry(addr, vid, port->chip_port); in lan966x_mac_add_entry()
284 lan966x_mac_learn(lan966x, port->chip_port, addr, vid, ENTRYTYPE_LOCKED); in lan966x_mac_add_entry()
Dlan966x_ethtool.c353 *data++ = lan966x->stats[port->chip_port * in lan966x_get_ethtool_stats()
366 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_mac_stats()
451 idx = port->chip_port * lan966x->num_stats; in lan966x_get_eth_rmon_stats()
615 idx = port->chip_port * lan966x->num_stats; in lan966x_stats_get()
Dlan966x_phylink.c79 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_phylink_mac_link_down()
Dlan966x_main.h277 u8 chip_port; member
Dlan966x_ptp.c48 if (lan966x->bridge_mask & BIT(port->chip_port)) in lan966x_ptp_hwtstamp_set()