Searched refs:ptp_state (Results 1 – 4 of 4) sorted by relevance
1034 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 …]
31 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() argument199 static inline void mlxsw_sp2_ptp_fini(struct mlxsw_sp_ptp_state *ptp_state) in mlxsw_sp2_ptp_fini() argument
182 struct mlxsw_sp_ptp_state *ptp_state; member221 void (*fini)(struct mlxsw_sp_ptp_state *ptp_state);
3215 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