Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c94 return container_of(mlxsw_sp->ptp_state, struct mlxsw_sp1_ptp_state, in mlxsw_sp1_ptp_state()
101 return container_of(mlxsw_sp->ptp_state, struct mlxsw_sp2_ptp_state, in mlxsw_sp2_ptp_state()
534 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_save() local
545 unmatched->gc_cycle = ptp_state->gc_cycle + cycles; in mlxsw_sp1_ptp_unmatched_save()
547 err = rhltable_insert(&ptp_state->unmatched_ht, &unmatched->ht_node, in mlxsw_sp1_ptp_unmatched_save()
559 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_lookup() local
564 list = rhltable_lookup(&ptp_state->unmatched_ht, &key, in mlxsw_sp1_ptp_unmatched_lookup()
579 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_remove() local
581 return rhltable_remove(&ptp_state->unmatched_ht, in mlxsw_sp1_ptp_unmatched_remove()
674 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_got_piece() local
[all …]
Dspectrum_ptp.h31 void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state);
72 void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state);
112 static inline void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp1_ptp_fini() argument
199 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
Dspectrum.h182 struct mlxsw_sp_ptp_state *ptp_state; member
221 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
Dspectrum.c3210 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
3211 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
3212 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3267 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3453 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()