• Home
  • Raw
  • Download

Lines Matching refs:local_port

163 			u8 local_port);
169 u8 local_port);
533 mlxsw_tx_hdr_port_mid_set(txhdr, tx_info->local_port); in mlxsw_sp_txhdr_construct()
564 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set()
590 mlxsw_reg_mpsc_pack(mpsc_pl, mlxsw_sp_port->local_port, enable, rate); in mlxsw_sp_port_sample_set()
600 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_admin_status_set()
612 mlxsw_reg_ppad_pack(ppad_pl, true, mlxsw_sp_port->local_port); in mlxsw_sp_port_dev_addr_set()
623 addr[ETH_ALEN - 1] += mlxsw_sp_port->local_port; in mlxsw_sp_port_dev_addr_init()
635 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_mtu_set()
644 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, mtu); in mlxsw_sp_port_mtu_set()
653 mlxsw_reg_pspa_pack(pspa_pl, swid, mlxsw_sp_port->local_port); in mlxsw_sp_port_swid_set()
662 mlxsw_reg_svpe_pack(svpe_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_port_vp_mode_set()
676 mlxsw_reg_spvmlr_pack(spvmlr_pl, mlxsw_sp_port->local_port, vid, vid, in mlxsw_sp_port_vid_learning_set()
689 mlxsw_reg_spvid_pack(spvid_pl, mlxsw_sp_port->local_port, vid); in __mlxsw_sp_port_pvid_set()
699 mlxsw_reg_spaft_pack(spaft_pl, mlxsw_sp_port->local_port, allow); in mlxsw_sp_port_allow_untagged_set()
734 mlxsw_reg_sspr_pack(sspr_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_system_port_mapping_set()
739 u8 local_port, u8 *p_module, in mlxsw_sp_port_module_info_get() argument
745 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sp_port_module_info_get()
762 mlxsw_reg_pmlp_pack(pmlp_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_module_map()
777 mlxsw_reg_pmlp_pack(pmlp_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_module_unmap()
809 .local_port = mlxsw_sp_port->local_port, in mlxsw_sp_port_xmit()
932 mlxsw_reg_pbmc_pack(pbmc_pl, mlxsw_sp_port->local_port, 0, 0); in __mlxsw_sp_port_headroom_set()
1072 mlxsw_reg_ppcnt_pack(ppcnt_pl, mlxsw_sp_port->local_port, grp, prio); in mlxsw_sp_port_get_stats_raw()
1203 mlxsw_reg_spvm_pack(spvm_pl, mlxsw_sp_port->local_port, vid_begin, in __mlxsw_sp_port_vlan_set()
1783 mlxsw_reg_pplr_pack(pplr_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_feature_loopback()
1847 mlxsw_sp_port->local_port); in mlxsw_sp_port_get_devlink_port()
1960 mlxsw_reg_pfcc_pack(pfcc_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_pause_set()
2399 mlxsw_reg_mlcr_pack(mlcr_pl, mlxsw_sp_port->local_port, active); in mlxsw_sp_port_set_phys_id()
2752 mlxsw_sp1_port_speed_base(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp1_port_speed_base() argument
2761 u8 local_port, u32 proto_admin, bool autoneg) in mlxsw_sp1_reg_ptys_eth_pack() argument
2763 mlxsw_reg_ptys_eth_pack(payload, local_port, proto_admin, autoneg); in mlxsw_sp1_reg_ptys_eth_pack()
3167 mlxsw_sp2_port_speed_base(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp2_port_speed_base() argument
3177 mlxsw_reg_ptys_ext_eth_pack(ptys_pl, local_port, 0, false); in mlxsw_sp2_port_speed_base()
3200 u8 local_port, u32 proto_admin, in mlxsw_sp2_reg_ptys_eth_pack() argument
3203 mlxsw_reg_ptys_ext_eth_pack(payload, local_port, proto_admin, autoneg); in mlxsw_sp2_reg_ptys_eth_pack()
3306 ops->reg_ptys_eth_pack(mlxsw_sp, ptys_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_get_link_ksettings()
3343 ops->reg_ptys_eth_pack(mlxsw_sp, ptys_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_set_link_ksettings()
3363 ops->reg_ptys_eth_pack(mlxsw_sp, ptys_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_set_link_ksettings()
3447 err = ops->port_speed_base(mlxsw_sp, mlxsw_sp_port->local_port, in mlxsw_sp_port_speed_by_width_set()
3454 ops->reg_ptys_eth_pack(mlxsw_sp, ptys_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_speed_by_width_set()
3466 mlxsw_reg_qeec_pack(qeec_pl, mlxsw_sp_port->local_port, hr, index, in mlxsw_sp_port_ets_set()
3481 mlxsw_reg_qeec_pack(qeec_pl, mlxsw_sp_port->local_port, hr, index, in mlxsw_sp_port_ets_maxrate_set()
3495 mlxsw_reg_qeec_pack(qeec_pl, mlxsw_sp_port->local_port, hr, index, in mlxsw_sp_port_min_bw_set()
3509 mlxsw_reg_qtct_pack(qtct_pl, mlxsw_sp_port->local_port, switch_prio, in mlxsw_sp_port_prio_tc_set()
3607 mlxsw_reg_qtctm_pack(qtctm_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_port_tc_mc_mode_set()
3611 static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port, in mlxsw_sp_port_create() argument
3619 err = mlxsw_core_port_init(mlxsw_sp->core, local_port, in mlxsw_sp_port_create()
3625 local_port); in mlxsw_sp_port_create()
3638 mlxsw_sp_port->local_port = local_port; in mlxsw_sp_port_create()
3671 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3678 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3685 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3706 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3713 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3720 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3731 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3738 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3745 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3753 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3760 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3767 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3775 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3782 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3789 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3797 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3806 mlxsw_sp->ports[local_port] = mlxsw_sp_port; in mlxsw_sp_port_create()
3810 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
3814 mlxsw_core_port_eth_set(mlxsw_sp->core, mlxsw_sp_port->local_port, in mlxsw_sp_port_create()
3820 mlxsw_sp->ports[local_port] = NULL; in mlxsw_sp_port_create()
3852 mlxsw_core_port_fini(mlxsw_sp->core, local_port); in mlxsw_sp_port_create()
3856 static void mlxsw_sp_port_remove(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_remove() argument
3858 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_remove()
3863 mlxsw_core_port_clear(mlxsw_sp->core, local_port, mlxsw_sp); in mlxsw_sp_port_remove()
3865 mlxsw_sp->ports[local_port] = NULL; in mlxsw_sp_port_remove()
3878 mlxsw_core_port_fini(mlxsw_sp->core, local_port); in mlxsw_sp_port_remove()
3891 mlxsw_sp_port->local_port = MLXSW_PORT_CPU_PORT; in mlxsw_sp_cpu_port_create()
3920 static bool mlxsw_sp_port_created(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_created() argument
3922 return mlxsw_sp->ports[local_port] != NULL; in mlxsw_sp_port_created()
3992 static u8 mlxsw_sp_cluster_base_port_get(u8 local_port) in mlxsw_sp_cluster_base_port_get() argument
3994 u8 offset = (local_port - 1) % MLXSW_SP_PORTS_PER_CLUSTER_MAX; in mlxsw_sp_cluster_base_port_get()
3996 return local_port - offset; in mlxsw_sp_cluster_base_port_get()
4024 u8 local_port, module, width = MLXSW_PORT_MODULE_MAX_WIDTH; in mlxsw_sp_port_unsplit_create() local
4033 local_port = base_port + i * 2; in mlxsw_sp_port_unsplit_create()
4034 if (mlxsw_sp->port_to_module[local_port] < 0) in mlxsw_sp_port_unsplit_create()
4036 module = mlxsw_sp->port_to_module[local_port]; in mlxsw_sp_port_unsplit_create()
4038 mlxsw_sp_port_create(mlxsw_sp, local_port, false, module, in mlxsw_sp_port_unsplit_create()
4043 static int mlxsw_sp_port_split(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_split() argument
4061 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_split()
4064 local_port); in mlxsw_sp_port_split()
4087 base_port = local_port; in mlxsw_sp_port_split()
4095 base_port = mlxsw_sp_cluster_base_port_get(local_port); in mlxsw_sp_port_split()
4122 static int mlxsw_sp_port_unsplit(struct mlxsw_core *mlxsw_core, u8 local_port, in mlxsw_sp_port_unsplit() argument
4139 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_unsplit()
4142 local_port); in mlxsw_sp_port_unsplit()
4161 base_port = mlxsw_sp_cluster_base_port_get(local_port); in mlxsw_sp_port_unsplit()
4164 if (count == 2 && local_port >= base_port + 2) in mlxsw_sp_port_unsplit()
4191 u8 local_port; in mlxsw_sp_pude_event_func() local
4193 local_port = mlxsw_reg_pude_local_port_get(pude_pl); in mlxsw_sp_pude_event_func()
4194 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_pude_event_func()
4213 u8 local_port; in mlxsw_sp1_ptp_fifo_event_func() local
4217 local_port = mlxsw_reg_mtpptr_local_port_get(mtpptr_pl); in mlxsw_sp1_ptp_fifo_event_func()
4228 mlxsw_sp1_ptp_got_timestamp(mlxsw_sp, ingress, local_port, in mlxsw_sp1_ptp_fifo_event_func()
4251 u8 local_port, void *priv) in mlxsw_sp_rx_listener_no_mark_func() argument
4254 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_listener_no_mark_func()
4259 local_port); in mlxsw_sp_rx_listener_no_mark_func()
4275 static void mlxsw_sp_rx_listener_mark_func(struct sk_buff *skb, u8 local_port, in mlxsw_sp_rx_listener_mark_func() argument
4279 return mlxsw_sp_rx_listener_no_mark_func(skb, local_port, priv); in mlxsw_sp_rx_listener_mark_func()
4283 u8 local_port, void *priv) in mlxsw_sp_rx_listener_l3_mark_func() argument
4287 return mlxsw_sp_rx_listener_no_mark_func(skb, local_port, priv); in mlxsw_sp_rx_listener_l3_mark_func()
4290 static void mlxsw_sp_rx_listener_sample_func(struct sk_buff *skb, u8 local_port, in mlxsw_sp_rx_listener_sample_func() argument
4294 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_listener_sample_func()
4300 local_port); in mlxsw_sp_rx_listener_sample_func()
4305 local_port); in mlxsw_sp_rx_listener_sample_func()
4325 static void mlxsw_sp_rx_listener_ptp(struct sk_buff *skb, u8 local_port, in mlxsw_sp_rx_listener_ptp() argument
4330 mlxsw_sp->ptp_ops->receive(mlxsw_sp, skb, local_port); in mlxsw_sp_rx_listener_ptp()
5357 struct sk_buff *skb, u8 local_port) in mlxsw_sp_ptp_transmitted() argument
5362 mlxsw_sp->ptp_ops->transmitted(mlxsw_sp, skb, local_port); in mlxsw_sp_ptp_transmitted()
5576 mlxsw_reg_slcor_port_add_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_add()
5587 mlxsw_reg_slcor_port_remove_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_remove()
5598 mlxsw_reg_slcor_col_enable_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_enable()
5609 mlxsw_reg_slcor_col_disable_pack(slcor_pl, mlxsw_sp_port->local_port, in mlxsw_sp_lag_col_port_disable()
5705 mlxsw_sp_port->local_port); in mlxsw_sp_port_lag_join()
5748 mlxsw_sp_port->local_port); in mlxsw_sp_port_lag_leave()
5763 mlxsw_sp_port->local_port); in mlxsw_sp_lag_dist_port_add()
5774 mlxsw_sp_port->local_port); in mlxsw_sp_lag_dist_port_remove()
5845 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_stp_set()