ptp_state 157 drivers/net/ethernet/mellanox/mlxsw/spectrum.c void (*fini)(struct mlxsw_sp_ptp_state *ptp_state); ptp_state 4876 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); ptp_state 4877 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (IS_ERR(mlxsw_sp->ptp_state)) { ptp_state 4878 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = PTR_ERR(mlxsw_sp->ptp_state); ptp_state 4915 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); ptp_state 5000 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); ptp_state 161 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_ptp_state *ptp_state; ptp_state 369 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp_ptp_state *ptp_state = mlxsw_sp->ptp_state; ptp_state 380 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c unmatched->gc_cycle = mlxsw_sp->ptp_state->gc_cycle + cycles; ptp_state 382 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c err = rhltable_insert(&ptp_state->unmatched_ht, &unmatched->ht_node, ptp_state 398 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c list = rhltable_lookup(&mlxsw_sp->ptp_state->unmatched_ht, &key, ptp_state 413 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c return rhltable_remove(&mlxsw_sp->ptp_state->unmatched_ht, ptp_state 508 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c spin_lock(&mlxsw_sp->ptp_state->unmatched_lock); ptp_state 536 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c spin_unlock(&mlxsw_sp->ptp_state->unmatched_lock); ptp_state 630 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp1_ptp_ht_gc_collect(struct mlxsw_sp_ptp_state *ptp_state, ptp_state 646 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c spin_lock(&ptp_state->unmatched_lock); ptp_state 647 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c err = rhltable_remove(&ptp_state->unmatched_ht, &unmatched->ht_node, ptp_state 649 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c spin_unlock(&ptp_state->unmatched_lock); ptp_state 655 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp_port = ptp_state->mlxsw_sp->ports[unmatched->key.local_port]; ptp_state 672 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp1_ptp_unmatched_finish(ptp_state->mlxsw_sp, unmatched); ptp_state 682 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp_ptp_state *ptp_state; ptp_state 687 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c ptp_state = container_of(dwork, struct mlxsw_sp_ptp_state, ht_gc_dw); ptp_state 688 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c gc_cycle = ptp_state->gc_cycle++; ptp_state 690 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c rhltable_walk_enter(&ptp_state->unmatched_ht, &iter); ptp_state 698 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_sp1_ptp_ht_gc_collect(ptp_state, unmatched); ptp_state 703 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_core_schedule_dw(&ptp_state->ht_gc_dw, ptp_state 828 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp_ptp_state *ptp_state; ptp_state 836 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c ptp_state = kzalloc(sizeof(*ptp_state), GFP_KERNEL); ptp_state 837 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c if (!ptp_state) ptp_state 839 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c ptp_state->mlxsw_sp = mlxsw_sp; ptp_state 841 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c spin_lock_init(&ptp_state->unmatched_lock); ptp_state 843 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c err = rhltable_init(&ptp_state->unmatched_ht, ptp_state 869 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c INIT_DELAYED_WORK(&ptp_state->ht_gc_dw, mlxsw_sp1_ptp_ht_gc); ptp_state 870 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c mlxsw_core_schedule_dw(&ptp_state->ht_gc_dw, ptp_state 872 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c return ptp_state; ptp_state 879 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c rhltable_destroy(&ptp_state->unmatched_ht); ptp_state 881 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c kfree(ptp_state); ptp_state 885 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) ptp_state 887 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c struct mlxsw_sp *mlxsw_sp = ptp_state->mlxsw_sp; ptp_state 889 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c cancel_delayed_work_sync(&ptp_state->ht_gc_dw); ptp_state 894 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c rhltable_free_and_destroy(&ptp_state->unmatched_ht, ptp_state 896 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c kfree(ptp_state); ptp_state 38 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state); ptp_state 85 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h static inline void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) ptp_state 164 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.h static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state)