Lines Matching refs:local_port
38 u8 local_port; member
102 mlxsw_tx_v1_hdr_port_mid_set(txhdr, tx_info->local_port); in mlxsw_sib_tx_v1_hdr_construct()
125 mlxsw_reg_paos_pack(paos_pl, mlxsw_sib_port->local_port, in mlxsw_sib_port_admin_status_set()
139 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sib_port->local_port, 0); in mlxsw_sib_port_mtu_set()
148 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sib_port->local_port, mtu); in mlxsw_sib_port_mtu_set()
158 mlxsw_reg_plib_local_port_set(plib_pl, mlxsw_sib_port->local_port); in mlxsw_sib_port_set()
170 mlxsw_reg_pspa_pack(pspa_pl, swid, mlxsw_sib_port->local_port); in mlxsw_sib_port_swid_set()
175 u8 local_port, u8 *p_module, in mlxsw_sib_port_module_info_get() argument
181 mlxsw_reg_pmlp_pack(pmlp_pl, local_port); in mlxsw_sib_port_module_info_get()
196 mlxsw_reg_ptys_ib_pack(ptys_pl, mlxsw_sib_port->local_port, speed, in mlxsw_sib_port_speed_set()
201 static bool mlxsw_sib_port_created(struct mlxsw_sib *mlxsw_sib, u8 local_port) in mlxsw_sib_port_created() argument
203 return mlxsw_sib->ports[local_port] != NULL; in mlxsw_sib_port_created()
206 static int __mlxsw_sib_port_create(struct mlxsw_sib *mlxsw_sib, u8 local_port, in __mlxsw_sib_port_create() argument
216 mlxsw_sib_port->local_port = local_port; in __mlxsw_sib_port_create()
222 mlxsw_sib_port->local_port); in __mlxsw_sib_port_create()
230 mlxsw_sib_port->local_port); in __mlxsw_sib_port_create()
242 mlxsw_sib_port->local_port); in __mlxsw_sib_port_create()
252 mlxsw_sib_port->local_port); in __mlxsw_sib_port_create()
259 mlxsw_sib_port->local_port); in __mlxsw_sib_port_create()
263 mlxsw_core_port_ib_set(mlxsw_sib->core, mlxsw_sib_port->local_port, in __mlxsw_sib_port_create()
265 mlxsw_sib->ports[local_port] = mlxsw_sib_port; in __mlxsw_sib_port_create()
278 static int mlxsw_sib_port_create(struct mlxsw_sib *mlxsw_sib, u8 local_port, in mlxsw_sib_port_create() argument
283 err = mlxsw_core_port_init(mlxsw_sib->core, local_port, in mlxsw_sib_port_create()
288 local_port); in mlxsw_sib_port_create()
291 err = __mlxsw_sib_port_create(mlxsw_sib, local_port, module, width); in mlxsw_sib_port_create()
298 mlxsw_core_port_fini(mlxsw_sib->core, local_port); in mlxsw_sib_port_create()
302 static void __mlxsw_sib_port_remove(struct mlxsw_sib *mlxsw_sib, u8 local_port) in __mlxsw_sib_port_remove() argument
304 struct mlxsw_sib_port *mlxsw_sib_port = mlxsw_sib->ports[local_port]; in __mlxsw_sib_port_remove()
306 mlxsw_core_port_clear(mlxsw_sib->core, local_port, mlxsw_sib); in __mlxsw_sib_port_remove()
307 mlxsw_sib->ports[local_port] = NULL; in __mlxsw_sib_port_remove()
313 static void mlxsw_sib_port_remove(struct mlxsw_sib *mlxsw_sib, u8 local_port) in mlxsw_sib_port_remove() argument
315 __mlxsw_sib_port_remove(mlxsw_sib, local_port); in mlxsw_sib_port_remove()
316 mlxsw_core_port_fini(mlxsw_sib->core, local_port); in mlxsw_sib_port_remove()
381 u8 local_port; in mlxsw_sib_pude_event_func() local
383 local_port = mlxsw_reg_pude_local_port_get(pude_pl); in mlxsw_sib_pude_event_func()
384 mlxsw_sib_port = mlxsw_sib->ports[local_port]; in mlxsw_sib_pude_event_func()
387 local_port); in mlxsw_sib_pude_event_func()