Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_ptp.c1034 ptp_state = kzalloc(sizeof(*ptp_state), GFP_KERNEL); in mlxsw_sp1_ptp_init()
1035 if (!ptp_state) in mlxsw_sp1_ptp_init()
1057 return &ptp_state->common; in mlxsw_sp1_ptp_init()
1064 kfree(ptp_state); in mlxsw_sp1_ptp_init()
1081 kfree(ptp_state); in mlxsw_sp1_ptp_fini()
1355 ptp_state = kzalloc(sizeof(*ptp_state), GFP_KERNEL); in mlxsw_sp2_ptp_init()
1356 if (!ptp_state) in mlxsw_sp2_ptp_init()
1367 return &ptp_state->common; in mlxsw_sp2_ptp_init()
1370 kfree(ptp_state); in mlxsw_sp2_ptp_init()
1383 kfree(ptp_state); in mlxsw_sp2_ptp_fini()
[all …]
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
A Dspectrum.h182 struct mlxsw_sp_ptp_state *ptp_state; member
221 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
A Dspectrum.c3215 mlxsw_sp->ptp_state = mlxsw_sp->ptp_ops->init(mlxsw_sp); in mlxsw_sp_init()
3216 if (IS_ERR(mlxsw_sp->ptp_state)) { in mlxsw_sp_init()
3217 err = PTR_ERR(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3272 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_init()
3458 mlxsw_sp->ptp_ops->fini(mlxsw_sp->ptp_state); in mlxsw_sp_fini()

Completed in 27 milliseconds