Lines Matching refs:lag
3491 struct mlxsw_sp_upper *lag; in mlxsw_sp_lag_index_get() local
3498 lag = mlxsw_sp_lag_get(mlxsw_sp, i); in mlxsw_sp_lag_index_get()
3499 if (lag->ref_count) { in mlxsw_sp_lag_index_get()
3500 if (lag->dev == lag_dev) { in mlxsw_sp_lag_index_get()
3554 struct mlxsw_sp_upper *lag; in mlxsw_sp_port_lag_join() local
3562 lag = mlxsw_sp_lag_get(mlxsw_sp, lag_id); in mlxsw_sp_port_lag_join()
3563 if (!lag->ref_count) { in mlxsw_sp_port_lag_join()
3567 lag->dev = lag_dev; in mlxsw_sp_port_lag_join()
3581 lag->ref_count++; in mlxsw_sp_port_lag_join()
3590 if (!lag->ref_count) in mlxsw_sp_port_lag_join()
3600 struct mlxsw_sp_upper *lag; in mlxsw_sp_port_lag_leave() local
3604 lag = mlxsw_sp_lag_get(mlxsw_sp, lag_id); in mlxsw_sp_port_lag_leave()
3605 WARN_ON(lag->ref_count == 0); in mlxsw_sp_port_lag_leave()
3617 if (lag->ref_count == 1) in mlxsw_sp_port_lag_leave()
3623 lag->ref_count--; in mlxsw_sp_port_lag_leave()