Home
last modified time | relevance | path

Searched refs:lags (Results 1 – 4 of 4) sorted by relevance

/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c502 return id < sw->lag_max ? &sw->lags[id] : NULL; in prestera_lag_by_id()
512 lag = &sw->lags[id]; in prestera_lag_by_dev()
527 lag = &sw->lags[id]; in prestera_lag_create()
623 sw->lags = kcalloc(sw->lag_max, sizeof(*sw->lags), GFP_KERNEL); in prestera_lag_init()
624 if (!sw->lags) in prestera_lag_init()
628 sw->lags[id].lag_id = id; in prestera_lag_init()
638 WARN_ON(sw->lags[idx].member_count); in prestera_lag_fini()
640 kfree(sw->lags); in prestera_lag_fini()
Dprestera.h196 struct prestera_lag *lags; member
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.h164 struct mlxsw_sp_upper *lags; member
242 return &mlxsw_sp->lags[lag_id]; in mlxsw_sp_lag_get()
Dspectrum.c2494 mlxsw_sp->lags = kcalloc(MLXSW_CORE_RES_GET(mlxsw_sp->core, MAX_LAG), in mlxsw_sp_lag_init()
2497 if (!mlxsw_sp->lags) in mlxsw_sp_lag_init()
2505 kfree(mlxsw_sp->lags); in mlxsw_sp_lag_fini()