Searched refs:ptp_state (Results 1 – 2 of 2) sorted by relevance
95 return container_of(mlxsw_sp->ptp_state, struct mlxsw_sp1_ptp_state, in mlxsw_sp1_ptp_state()102 return container_of(mlxsw_sp->ptp_state, struct mlxsw_sp2_ptp_state, in mlxsw_sp2_ptp_state()523 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_save() local534 unmatched->gc_cycle = ptp_state->gc_cycle + cycles; in mlxsw_sp1_ptp_unmatched_save()536 err = rhltable_insert(&ptp_state->unmatched_ht, &unmatched->ht_node, in mlxsw_sp1_ptp_unmatched_save()548 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_lookup() local553 list = rhltable_lookup(&ptp_state->unmatched_ht, &key, in mlxsw_sp1_ptp_unmatched_lookup()568 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_unmatched_remove() local570 return rhltable_remove(&ptp_state->unmatched_ht, in mlxsw_sp1_ptp_unmatched_remove()663 struct mlxsw_sp1_ptp_state *ptp_state = mlxsw_sp1_ptp_state(mlxsw_sp); in mlxsw_sp1_ptp_got_piece() local[all …]
3138 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()3139 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()3140 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()3195 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()3383 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()