Lines Matching refs:local_port
144 mlxsw_tx_hdr_port_mid_set(txhdr, tx_info->local_port); in mlxsw_sp_txhdr_construct()
166 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, in mlxsw_sp_port_admin_status_set()
180 mlxsw_reg_paos_pack(paos_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_oper_status_get()
222 mlxsw_reg_ppad_pack(ppad_pl, true, mlxsw_sp_port->local_port); in mlxsw_sp_port_dev_addr_set()
233 addr[ETH_ALEN - 1] += mlxsw_sp_port->local_port; in mlxsw_sp_port_dev_addr_init()
247 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_stp_state_set()
262 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_mtu_set()
271 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, mtu); in mlxsw_sp_port_mtu_set()
280 mlxsw_reg_pspa_pack(pspa_pl, swid, mlxsw_sp_port->local_port); in mlxsw_sp_port_swid_set()
290 mlxsw_reg_svpe_pack(svpe_pl, mlxsw_sp_port->local_port, enable); in mlxsw_sp_port_vp_mode_set()
301 mlxsw_reg_svfa_pack(svfa_pl, mlxsw_sp_port->local_port, mt, valid, in mlxsw_sp_port_vid_to_fid_set()
316 mlxsw_reg_spvmlr_pack(spvmlr_pl, mlxsw_sp_port->local_port, vid, vid, in mlxsw_sp_port_vid_learning_set()
329 mlxsw_reg_sspr_pack(sspr_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_system_port_mapping_set()
340 mlxsw_reg_pmlp_pack(pmlp_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_module_check()
375 .local_port = mlxsw_sp_port->local_port, in mlxsw_sp_port_xmit()
491 mlxsw_reg_spvm_pack(spvm_pl, mlxsw_sp_port->local_port, vid_begin, in mlxsw_sp_port_vlan_set()
871 mlxsw_reg_ppcnt_pack(ppcnt_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_get_stats()
1091 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_get_settings()
1158 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sp_port->local_port, 0); in mlxsw_sp_port_set_settings()
1174 mlxsw_reg_ptys_pack(ptys_pl, mlxsw_sp_port->local_port, eth_proto_new); in mlxsw_sp_port_set_settings()
1214 static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_create() argument
1227 mlxsw_sp_port->local_port = local_port; in mlxsw_sp_port_create()
1246 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1263 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1269 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1276 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1283 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1290 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1301 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1309 mlxsw_sp_port->local_port); in mlxsw_sp_port_create()
1317 mlxsw_sp->ports[local_port] = mlxsw_sp_port; in mlxsw_sp_port_create()
1345 static void mlxsw_sp_port_remove(struct mlxsw_sp *mlxsw_sp, u8 local_port) in mlxsw_sp_port_remove() argument
1347 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_remove()
1398 u8 local_port; in mlxsw_sp_pude_event_func() local
1400 local_port = mlxsw_reg_pude_local_port_get(pude_pl); in mlxsw_sp_pude_event_func()
1401 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_pude_event_func()
1404 local_port); in mlxsw_sp_pude_event_func()
1464 static void mlxsw_sp_rx_listener_func(struct sk_buff *skb, u8 local_port, in mlxsw_sp_rx_listener_func() argument
1468 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_rx_listener_func()
1473 local_port); in mlxsw_sp_rx_listener_func()
1492 .local_port = MLXSW_PORT_DONT_CARE,
1498 .local_port = MLXSW_PORT_DONT_CARE,
1503 .local_port = MLXSW_PORT_DONT_CARE,
1508 .local_port = MLXSW_PORT_DONT_CARE,
1513 .local_port = MLXSW_PORT_DONT_CARE,
1518 .local_port = MLXSW_PORT_DONT_CARE,
1523 .local_port = MLXSW_PORT_DONT_CARE,
1528 .local_port = MLXSW_PORT_DONT_CARE,
1533 .local_port = MLXSW_PORT_DONT_CARE,
1538 .local_port = MLXSW_PORT_DONT_CARE,
1543 .local_port = MLXSW_PORT_DONT_CARE,
1548 .local_port = MLXSW_PORT_DONT_CARE,
1553 .local_port = MLXSW_PORT_DONT_CARE,
1558 .local_port = MLXSW_PORT_DONT_CARE,