Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c351 struct mlxsw_sp_ptp_state *ptp_state = mlxsw_sp->ptp_state; in mlxsw_sp1_ptp_unmatched_save() local
362 unmatched->gc_cycle = mlxsw_sp->ptp_state->gc_cycle + cycles; in mlxsw_sp1_ptp_unmatched_save()
364 err = rhltable_insert(&ptp_state->unmatched_ht, &unmatched->ht_node, in mlxsw_sp1_ptp_unmatched_save()
380 list = rhltable_lookup(&mlxsw_sp->ptp_state->unmatched_ht, &key, in mlxsw_sp1_ptp_unmatched_lookup()
395 return rhltable_remove(&mlxsw_sp->ptp_state->unmatched_ht, in mlxsw_sp1_ptp_unmatched_remove()
490 spin_lock(&mlxsw_sp->ptp_state->unmatched_lock); in mlxsw_sp1_ptp_got_piece()
518 spin_unlock(&mlxsw_sp->ptp_state->unmatched_lock); in mlxsw_sp1_ptp_got_piece()
614 mlxsw_sp1_ptp_ht_gc_collect(struct mlxsw_sp_ptp_state *ptp_state, in mlxsw_sp1_ptp_ht_gc_collect() argument
630 spin_lock(&ptp_state->unmatched_lock); in mlxsw_sp1_ptp_ht_gc_collect()
631 err = rhltable_remove(&ptp_state->unmatched_ht, &unmatched->ht_node, in mlxsw_sp1_ptp_ht_gc_collect()
[all …]
Dspectrum_ptp.h31 void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state);
78 static inline void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp1_ptp_fini() argument
157 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
Dspectrum.h189 struct mlxsw_sp_ptp_state *ptp_state; member
225 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
Dspectrum.c3117 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
3118 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
3119 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3174 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3350 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()