Home
last modified time | relevance | path

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

/linux-6.1.9/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_mirror.c22 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()
Dlan966x_switchdev.c28 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 …]
Dlan966x_tbf.c21 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()
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()
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()
Dlan966x_mac.c215 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()
Dlan966x_cbs.c18 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()
Dlan966x_taprio.c43 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()
Dlan966x_ets.c48 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()
Dlan966x_police.c158 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()
Dlan966x_lag.c100 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()
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()
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()
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.c83 lan966x, DEV_CLOCK_CFG(port->chip_port)); in lan966x_phylink_mac_link_down()
Dlan966x_main.h299 u8 chip_port; member
Dlan966x_fdma.c684 mtu = lan_rd(lan966x, DEV_MAC_MAXLEN_CFG(port->chip_port)); in lan966x_fdma_get_max_mtu()
Dlan966x_ptp.c48 if (lan966x->bridge_mask & BIT(port->chip_port)) in lan966x_ptp_hwtstamp_set()