Home
last modified time | relevance | path

Searched refs:ptp_state (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A 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()
522 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_save() local
533 unmatched->gc_cycle = ptp_state->gc_cycle + cycles; in mlxsw_sp1_ptp_unmatched_save()
535 err = rhltable_insert(&ptp_state->unmatched_ht, &unmatched->ht_node, in mlxsw_sp1_ptp_unmatched_save()
547 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_lookup() local
552 list = rhltable_lookup(&ptp_state->unmatched_ht, &key, in mlxsw_sp1_ptp_unmatched_lookup()
567 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_remove() local
569 return rhltable_remove(&ptp_state->unmatched_ht, in mlxsw_sp1_ptp_unmatched_remove()
662 struct mlxsw_sp1_ptp_state *ptp_state in mlxsw_sp1_ptp_got_piece() local
793 mlxsw_sp1_ptp_ht_gc_collect(struct mlxsw_sp1_ptp_state *ptp_state, struct mlxsw_sp1_ptp_unmatched *unmatched) mlxsw_sp1_ptp_ht_gc_collect() argument
846 struct mlxsw_sp1_ptp_state *ptp_state; mlxsw_sp1_ptp_ht_gc() local
1027 struct mlxsw_sp1_ptp_state *ptp_state; mlxsw_sp1_ptp_init() local
1071 struct mlxsw_sp1_ptp_state *ptp_state; mlxsw_sp1_ptp_fini() local
1352 struct mlxsw_sp2_ptp_state *ptp_state; mlxsw_sp2_ptp_init() local
1377 struct mlxsw_sp2_ptp_state *ptp_state; mlxsw_sp2_ptp_fini() local
1451 struct mlxsw_sp2_ptp_state *ptp_state; mlxsw_sp2_ptp_hwtstamp_get() local
1542 struct mlxsw_sp2_ptp_state *ptp_state = mlxsw_sp2_ptp_state(mlxsw_sp); mlxsw_sp2_ptp_enable() local
1556 struct mlxsw_sp2_ptp_state *ptp_state = mlxsw_sp2_ptp_state(mlxsw_sp); mlxsw_sp2_ptp_disable() local
1571 struct mlxsw_sp2_ptp_state *ptp_state; mlxsw_sp2_ptp_configure_port() local
1592 struct mlxsw_sp2_ptp_state *ptp_state; mlxsw_sp2_ptp_deconfigure_port() local
1614 struct mlxsw_sp2_ptp_state *ptp_state; mlxsw_sp2_ptp_hwtstamp_set() local
[all...]
H A 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
H A Dspectrum.c3223 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
3224 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
3225 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3280 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3468 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()
H A Dspectrum.h184 struct mlxsw_sp_ptp_state *ptp_state; member
223 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A 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()
615 mlxsw_sp1_ptp_ht_gc_collect(struct mlxsw_sp_ptp_state *ptp_state, in mlxsw_sp1_ptp_ht_gc_collect() argument
631 spin_lock(&ptp_state in mlxsw_sp1_ptp_ht_gc_collect()
667 struct mlxsw_sp_ptp_state *ptp_state; mlxsw_sp1_ptp_ht_gc() local
813 struct mlxsw_sp_ptp_state *ptp_state; mlxsw_sp1_ptp_init() local
870 mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) mlxsw_sp1_ptp_fini() argument
[all...]
H A Dspectrum_ptp.h38 void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state);
85 static inline void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp1_ptp_fini() argument
164 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
H A Dspectrum.h163 struct mlxsw_sp_ptp_state *ptp_state; member
193 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
H A Dspectrum.c2651 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
2652 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
2653 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
2700 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
2828 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()

Completed in 22 milliseconds