Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_ptp.c351 struct mlxsw_sp_ptp_state *ptp_state = mlxsw_sp->ptp_state; in mlxsw_sp1_ptp_unmatched_save() local
631 spin_lock(&ptp_state->unmatched_lock); in mlxsw_sp1_ptp_ht_gc_collect()
667 struct mlxsw_sp_ptp_state *ptp_state; in mlxsw_sp1_ptp_ht_gc() local
673 gc_cycle = ptp_state->gc_cycle++; in mlxsw_sp1_ptp_ht_gc()
813 struct mlxsw_sp_ptp_state *ptp_state; in mlxsw_sp1_ptp_init() local
821 ptp_state = kzalloc(sizeof(*ptp_state), GFP_KERNEL); in mlxsw_sp1_ptp_init()
822 if (!ptp_state) in mlxsw_sp1_ptp_init()
824 ptp_state->mlxsw_sp = mlxsw_sp; in mlxsw_sp1_ptp_init()
857 return ptp_state; in mlxsw_sp1_ptp_init()
866 kfree(ptp_state); in mlxsw_sp1_ptp_init()
[all …]
A Dspectrum_ptp.h31 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() argument
157 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
A Dspectrum.h181 struct mlxsw_sp_ptp_state *ptp_state; member
214 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
A Dspectrum.c2878 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
2879 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
2880 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
2936 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3072 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()

Completed in 20 milliseconds