Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ptp.c1035 ptp_state = kzalloc(sizeof(*ptp_state), GFP_KERNEL); in mlxsw_sp1_ptp_init()
1036 if (!ptp_state) in mlxsw_sp1_ptp_init()
1058 return &ptp_state->common; in mlxsw_sp1_ptp_init()
1065 kfree(ptp_state); in mlxsw_sp1_ptp_init()
1082 kfree(ptp_state); in mlxsw_sp1_ptp_fini()
1360 ptp_state = kzalloc(sizeof(*ptp_state), GFP_KERNEL); in mlxsw_sp2_ptp_init()
1361 if (!ptp_state) in mlxsw_sp2_ptp_init()
1372 return &ptp_state->common; in mlxsw_sp2_ptp_init()
1375 kfree(ptp_state); in mlxsw_sp2_ptp_init()
1388 kfree(ptp_state); in mlxsw_sp2_ptp_fini()
[all …]
H A Dspectrum_ptp.h23 void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state);
59 void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state);
94 static inline void mlxsw_sp1_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp1_ptp_fini() argument
166 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
H A Dspectrum.h181 struct mlxsw_sp_ptp_state *ptp_state; member
221 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
H A Dspectrum.c3167 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
3168 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
3169 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3224 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3412 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()