Lines Matching refs:pcs
13 #include <linux/pcs/pcs-mtk-lynxi.h>
75 * @pcs: Phylink PCS structure
82 struct phylink_pcs pcs;
86 static struct mtk_pcs_lynxi *pcs_to_mtk_pcs_lynxi(struct phylink_pcs *pcs)
88 return container_of(pcs, struct mtk_pcs_lynxi, pcs);
91 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs,
94 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs);
105 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode,
110 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs);
203 static void mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs)
205 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs);
210 static void mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs,
215 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs);
236 static void mtk_pcs_lynxi_disable(struct phylink_pcs *pcs)
238 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs);
288 mpcs->pcs.ops = &mtk_pcs_lynxi_ops;
289 mpcs->pcs.neg_mode = true;
290 mpcs->pcs.poll = true;
293 return &mpcs->pcs;
297 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs)
299 if (!pcs)
302 kfree(pcs_to_mtk_pcs_lynxi(pcs));