Lines Matching refs:local_port

240 	mlxsw_tx_hdr_port_mid_set(txhdr, tx_info->local_port);  in mlxsw_sp_txhdr_construct()
271 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set()
297 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_admin_status_set()
309 mlxsw_reg_ppad_pack(ppad_pl, true, mlxsw_sp_port->local_port); in mlxsw_sp_port_dev_addr_set()
320 addr[ETH_ALEN - 1] += mlxsw_sp_port->local_port; in mlxsw_sp_port_dev_addr_init()
330 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_max_mtu_get()
348 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, mtu); in mlxsw_sp_port_mtu_set()
357 mlxsw_reg_pspa_pack(pspa_pl, swid, mlxsw_sp_port->local_port); in mlxsw_sp_port_swid_set()
366 mlxsw_reg_svpe_pack(svpe_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_port_vp_mode_set()
380 mlxsw_reg_spvmlr_pack(spvmlr_pl, mlxsw_sp_port->local_port, vid, vid, in mlxsw_sp_port_vid_learning_set()
393 mlxsw_reg_spvid_pack(spvid_pl, mlxsw_sp_port->local_port, vid); in __mlxsw_sp_port_pvid_set()
403 mlxsw_reg_spaft_pack(spaft_pl, mlxsw_sp_port->local_port, allow); in mlxsw_sp_port_allow_untagged_set()
438 mlxsw_reg_sspr_pack(sspr_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_system_port_mapping_set()
443 mlxsw_sp_port_module_info_get(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_port_module_info_get() argument
453 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sp_port_module_info_get()
463 local_port); in mlxsw_sp_port_module_info_get()
470 local_port); in mlxsw_sp_port_module_info_get()
477 local_port); in mlxsw_sp_port_module_info_get()
482 local_port); in mlxsw_sp_port_module_info_get()
500 mlxsw_reg_pmlp_pack(pmlp_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_module_map()
515 mlxsw_reg_pmlp_pack(pmlp_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_module_unmap()
547 .local_port = mlxsw_sp_port->local_port, in mlxsw_sp_port_xmit()
702 mlxsw_reg_ppcnt_pack(ppcnt_pl, mlxsw_sp_port->local_port, grp, prio); in mlxsw_sp_port_get_stats_raw()
833 mlxsw_reg_spvm_pack(spvm_pl, mlxsw_sp_port->local_port, vid_begin, in __mlxsw_sp_port_vlan_set()
1026 mlxsw_reg_pplr_pack(pplr_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_feature_loopback()
1090 mlxsw_sp_port->local_port); in mlxsw_sp_port_get_devlink_port()
1185 ops->reg_ptys_eth_pack(mlxsw_sp, ptys_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_speed_by_width_set()
1194 ops->reg_ptys_eth_pack(mlxsw_sp, ptys_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_speed_by_width_set()
1210 mlxsw_sp_port->local_port, 0, in mlxsw_sp_port_speed_get()
1228 mlxsw_reg_qeec_pack(qeec_pl, mlxsw_sp_port->local_port, hr, index, in mlxsw_sp_port_ets_set()
1243 mlxsw_reg_qeec_pack(qeec_pl, mlxsw_sp_port->local_port, hr, index, in mlxsw_sp_port_ets_maxrate_set()
1258 mlxsw_reg_qeec_pack(qeec_pl, mlxsw_sp_port->local_port, hr, index, in mlxsw_sp_port_min_bw_set()
1272 mlxsw_reg_qtct_pack(qtct_pl, mlxsw_sp_port->local_port, switch_prio, in mlxsw_sp_port_prio_tc_set()
1369 mlxsw_reg_qtctm_pack(qtctm_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_port_tc_mc_mode_set()
1389 static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_port_create() argument
1402 err = mlxsw_core_port_init(mlxsw_sp->core, local_port, in mlxsw_sp_port_create()
1410 local_port); in mlxsw_sp_port_create()
1424 mlxsw_sp_port->local_port = local_port; in mlxsw_sp_port_create()
1448 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1455 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1462 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1483 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1490 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1498 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1505 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1512 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1523 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1530 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1537 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1545 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1552 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1559 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1567 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1574 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1581 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1589 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1598 mlxsw_sp->ports[local_port] = mlxsw_sp_port; in mlxsw_sp_port_create()
1603 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1610 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1614 mlxsw_core_port_eth_set(mlxsw_sp->core, mlxsw_sp_port->local_port, in mlxsw_sp_port_create()
1621 mlxsw_sp->ports[local_port] = NULL; in mlxsw_sp_port_create()
1654 mlxsw_core_port_fini(mlxsw_sp->core, local_port); in mlxsw_sp_port_create()
1658 static void mlxsw_sp_port_remove(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_remove() argument
1660 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_remove()
1665 mlxsw_core_port_clear(mlxsw_sp->core, local_port, mlxsw_sp); in mlxsw_sp_port_remove()
1667 mlxsw_sp->ports[local_port] = NULL; in mlxsw_sp_port_remove()
1680 mlxsw_core_port_fini(mlxsw_sp->core, local_port); in mlxsw_sp_port_remove()
1693 mlxsw_sp_port->local_port = MLXSW_PORT_CPU_PORT; in mlxsw_sp_cpu_port_create()
1722 static bool mlxsw_sp_port_created(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_created() argument
1724 return mlxsw_sp->ports[local_port] != NULL; in mlxsw_sp_port_created()
1824 static u8 mlxsw_sp_cluster_base_port_get(u8 local_port, unsigned int max_width) in mlxsw_sp_cluster_base_port_get() argument
1826 u8 offset = (local_port - 1) % max_width; in mlxsw_sp_cluster_base_port_get()
1828 return local_port - offset; in mlxsw_sp_cluster_base_port_get()
1896 mlxsw_sp_port_get_by_local_port(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_get_by_local_port() argument
1898 if (mlxsw_sp->ports && mlxsw_sp->ports[local_port]) in mlxsw_sp_port_get_by_local_port()
1899 return mlxsw_sp->ports[local_port]; in mlxsw_sp_port_get_by_local_port()
1903 static int mlxsw_sp_port_split(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_split() argument
1916 mlxsw_sp_port = mlxsw_sp_port_get_by_local_port(mlxsw_sp, local_port); in mlxsw_sp_port_split()
1919 local_port); in mlxsw_sp_port_split()
1950 mlxsw_sp_cluster_base_port_get(local_port, max_width) : in mlxsw_sp_port_split()
1951 local_port; in mlxsw_sp_port_split()
1987 static int mlxsw_sp_port_unsplit(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_unsplit() argument
1998 mlxsw_sp_port = mlxsw_sp_port_get_by_local_port(mlxsw_sp, local_port); in mlxsw_sp_port_unsplit()
2001 local_port); in mlxsw_sp_port_unsplit()
2055 u8 local_port; in mlxsw_sp_pude_event_func() local
2057 local_port = mlxsw_reg_pude_local_port_get(pude_pl); in mlxsw_sp_pude_event_func()
2058 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_pude_event_func()
2077 u8 local_port; in mlxsw_sp1_ptp_fifo_event_func() local
2081 local_port = mlxsw_reg_mtpptr_local_port_get(mtpptr_pl); in mlxsw_sp1_ptp_fifo_event_func()
2092 mlxsw_sp1_ptp_got_timestamp(mlxsw_sp, ingress, local_port, in mlxsw_sp1_ptp_fifo_event_func()
2115 u8 local_port, void *priv) in mlxsw_sp_rx_listener_no_mark_func() argument
2118 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_listener_no_mark_func()
2123 local_port); in mlxsw_sp_rx_listener_no_mark_func()
2139 static void mlxsw_sp_rx_listener_mark_func(struct sk_buff *skb, u8 local_port, in mlxsw_sp_rx_listener_mark_func() argument
2143 return mlxsw_sp_rx_listener_no_mark_func(skb, local_port, priv); in mlxsw_sp_rx_listener_mark_func()
2147 u8 local_port, void *priv) in mlxsw_sp_rx_listener_l3_mark_func() argument
2151 return mlxsw_sp_rx_listener_no_mark_func(skb, local_port, priv); in mlxsw_sp_rx_listener_l3_mark_func()
2155 u8 local_port) in mlxsw_sp_ptp_receive() argument
2157 mlxsw_sp->ptp_ops->receive(mlxsw_sp, skb, local_port); in mlxsw_sp_ptp_receive()
2161 u8 local_port) in mlxsw_sp_sample_receive() argument
2163 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_sample_receive()
2169 local_port); in mlxsw_sp_sample_receive()
3201 struct sk_buff *skb, u8 local_port) in mlxsw_sp_ptp_transmitted() argument
3206 mlxsw_sp->ptp_ops->transmitted(mlxsw_sp, skb, local_port); in mlxsw_sp_ptp_transmitted()
3444 mlxsw_reg_slcor_port_add_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_add()
3455 mlxsw_reg_slcor_port_remove_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_remove()
3466 mlxsw_reg_slcor_col_enable_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_enable()
3477 mlxsw_reg_slcor_col_disable_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_disable()
3573 mlxsw_sp_port->local_port); in mlxsw_sp_port_lag_join()
3616 mlxsw_sp_port->local_port); in mlxsw_sp_port_lag_leave()
3631 mlxsw_sp_port->local_port); in mlxsw_sp_lag_dist_port_add()
3642 mlxsw_sp_port->local_port); in mlxsw_sp_lag_dist_port_remove()
3713 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_stp_set()