/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_port.c | 35 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 …]
|
D | lan966x_mirror.c | 22 if (lan966x->mirror_mask[ingress] & BIT(port->chip_port)) { in lan966x_mirror_port_add() 41 lan966x->mirror_mask[ingress] |= BIT(port->chip_port); in lan966x_mirror_port_add() 44 lan_wr(BIT(monitor_port->chip_port), lan966x, ANA_MIRRORPORTS); in lan966x_mirror_port_add() 49 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_mirror_port_add() 71 if (!(lan966x->mirror_mask[ingress] & BIT(port->chip_port))) { in lan966x_mirror_port_del() 77 lan966x->mirror_mask[ingress] &= ~BIT(port->chip_port); in lan966x_mirror_port_del() 82 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_mirror_port_del()
|
D | lan966x_switchdev.c | 28 if (flood_mask & BIT(port->chip_port)) in lan966x_port_set_mcast_ip_flood() 29 flood_mask_ip |= 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() 48 val |= BIT(port->chip_port); in lan966x_port_set_mcast_flood() 50 val &= ~BIT(port->chip_port); in lan966x_port_set_mcast_flood() 69 val |= BIT(port->chip_port); in lan966x_port_set_ucast_flood() 71 val &= ~BIT(port->chip_port); in lan966x_port_set_ucast_flood() 85 val |= BIT(port->chip_port); in lan966x_port_set_bcast_flood() 87 val &= ~BIT(port->chip_port); in lan966x_port_set_bcast_flood() [all …]
|
D | lan966x_tbf.c | 21 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_tbf_add() 23 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + queue; in lan966x_tbf_add() 70 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_tbf_del() 72 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + queue; in lan966x_tbf_del()
|
D | lan966x_vlan.c | 57 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() 176 lan966x, DEV_MAC_TAGS_CFG(port->chip_port)); in lan966x_vlan_port_apply() 188 lan_wr(val, lan966x, ANA_DROP_CFG(port->chip_port)); in lan966x_vlan_port_apply() 203 lan966x, REW_TAG_CFG(port->chip_port)); in lan966x_vlan_port_apply() 210 lan966x, REW_PORT_VLAN_CFG(port->chip_port)); in lan966x_vlan_port_apply()
|
D | lan966x_mac.c | 215 mac_entry->port_index = port->chip_port; in lan966x_mac_alloc_entry() 290 mac_entry = lan966x_mac_find_entry(lan966x, addr, vid, port->chip_port); in lan966x_mac_add_entry() 309 lan966x_mac_learn(lan966x, port->chip_port, addr, vid, ENTRYTYPE_LOCKED); in lan966x_mac_add_entry() 345 if (mac_entry->port_index == src->chip_port && in lan966x_mac_lag_replace_port_entry() 351 lan966x_mac_learn_locked(lan966x, dst->chip_port, in lan966x_mac_lag_replace_port_entry() 354 mac_entry->port_index = dst->chip_port; in lan966x_mac_lag_replace_port_entry() 368 if (mac_entry->port_index == src->chip_port && in lan966x_mac_lag_remove_port_entry()
|
D | lan966x_cbs.c | 18 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + qopt->queue; in lan966x_cbs_add() 57 se_idx = SE_IDX_QUEUE + port->chip_port * NUM_PRIO_QUEUES + qopt->queue; in lan966x_cbs_del()
|
D | lan966x_taprio.c | 43 return port->chip_port * LAN966X_TAPRIO_ENTRIES_PER_PORT + entry; in lan966x_taprio_list_index() 140 lan_wr(QSYS_TAS_GS_CTRL_HSCH_POS_SET(port->chip_port), in lan966x_taprio_list_shutdown() 316 QSYS_TAS_GCL_CT_CFG_HSCH_POS_SET(port->chip_port) | in lan966x_taprio_gcl_setup_entry() 320 lan_wr(QSYS_TAS_GCL_CT_CFG2_PORT_PROFILE_SET(port->chip_port) | in lan966x_taprio_gcl_setup_entry() 436 lan966x, QSYS_TAS_PROFILE_CFG(port->chip_port)); in lan966x_taprio_speed_set()
|
D | lan966x_ets.c | 48 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_ets_add() 84 se_idx = SE_IDX_PORT + port->chip_port; in lan966x_ets_del()
|
D | lan966x_police.c | 158 err = lan966x_police_add(port, &pol, POL_IDX_PORT + port->chip_port); in lan966x_police_port_add() 169 lan966x, ANA_POL_CFG(port->chip_port)); in lan966x_police_port_add() 208 lan966x, ANA_POL_CFG(port->chip_port)); in lan966x_police_port_del()
|
D | lan966x_lag.c | 100 lag_id = port->chip_port; in lan966x_lag_set_port_ids() 108 lan966x, ANA_PORT_CFG(port->chip_port)); in lan966x_lag_set_port_ids() 169 bond_mask &= ~BIT(port->chip_port); in lan966x_lag_port_leave() 338 if (bond_mask && port->chip_port == __ffs(bond_mask)) in lan966x_lag_first_port()
|
D | lan966x_mdb.c | 128 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()
|
D | lan966x_main.c | 159 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() 358 lan966x_ifh_set_port(ifh, BIT_ULL(port->chip_port)); in lan966x_port_xmit() 390 lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_port_change_mtu() 399 lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_port_change_mtu() 752 port->chip_port = p; in lan966x_probe_port()
|
D | lan966x_ethtool.c | 353 *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()
|
D | lan966x_phylink.c | 83 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_phylink_mac_link_down()
|
D | lan966x_main.h | 299 u8 chip_port; member
|
D | lan966x_fdma.c | 684 mtu = lan_rd(lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_fdma_get_max_mtu()
|
D | lan966x_ptp.c | 48 if (lan966x->bridge_mask & BIT(port->chip_port)) in lan966x_ptp_hwtstamp_set()
|