Lines Matching refs:lag
3837 struct mlxsw_sp_upper *lag; in mlxsw_sp_lag_index_get() local
3844 lag = mlxsw_sp_lag_get(mlxsw_sp, i); in mlxsw_sp_lag_index_get()
3845 if (lag->ref_count) { in mlxsw_sp_lag_index_get()
3846 if (lag->dev == lag_dev) { in mlxsw_sp_lag_index_get()
3901 struct mlxsw_sp_upper *lag; in mlxsw_sp_port_lag_join() local
3909 lag = mlxsw_sp_lag_get(mlxsw_sp, lag_id); in mlxsw_sp_port_lag_join()
3910 if (!lag->ref_count) { in mlxsw_sp_port_lag_join()
3914 lag->dev = lag_dev; in mlxsw_sp_port_lag_join()
3928 lag->ref_count++; in mlxsw_sp_port_lag_join()
3943 lag->ref_count--; in mlxsw_sp_port_lag_join()
3949 if (!lag->ref_count) in mlxsw_sp_port_lag_join()
3959 struct mlxsw_sp_upper *lag; in mlxsw_sp_port_lag_leave() local
3963 lag = mlxsw_sp_lag_get(mlxsw_sp, lag_id); in mlxsw_sp_port_lag_leave()
3964 WARN_ON(lag->ref_count == 0); in mlxsw_sp_port_lag_leave()
3976 if (lag->ref_count == 1) in mlxsw_sp_port_lag_leave()
3982 lag->ref_count--; in mlxsw_sp_port_lag_leave()