Searched refs:ptp_state (Results 1 – 4 of 4) sorted by relevance
351 struct mlxsw_sp_ptp_state *ptp_state = mlxsw_sp->ptp_state; in mlxsw_sp1_ptp_unmatched_save() local362 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() argument630 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 …]
31 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() argument157 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
189 struct mlxsw_sp_ptp_state *ptp_state; member225 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
3117 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()