Searched refs:tse_pcs (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/net/pcs/ |
D | pcs-altera-tse.c | 44 static u16 tse_pcs_read(struct altera_tse_pcs *tse_pcs, int regnum) in tse_pcs_read() argument 46 if (tse_pcs->reg_width == 4) in tse_pcs_read() 47 return readl(tse_pcs->base + regnum * 4); in tse_pcs_read() 49 return readw(tse_pcs->base + regnum * 2); in tse_pcs_read() 52 static void tse_pcs_write(struct altera_tse_pcs *tse_pcs, int regnum, in tse_pcs_write() argument 55 if (tse_pcs->reg_width == 4) in tse_pcs_write() 56 writel(value, tse_pcs->base + regnum * 4); in tse_pcs_write() 58 writew(value, tse_pcs->base + regnum * 2); in tse_pcs_write() 61 static int tse_pcs_reset(struct altera_tse_pcs *tse_pcs) in tse_pcs_reset() argument 67 bmcr = tse_pcs_read(tse_pcs, MII_BMCR); in tse_pcs_reset() [all …]
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.h | 17 struct tse_pcs { struct 25 int tse_pcs_init(void __iomem *base, struct tse_pcs *pcs); argument 26 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev,
|
D | altr_tse_pcs.c | 62 static int tse_pcs_reset(void __iomem *base, struct tse_pcs *pcs) in tse_pcs_reset() 87 int tse_pcs_init(void __iomem *base, struct tse_pcs *pcs) in tse_pcs_init() 106 static void pcs_link_timer_callback(struct tse_pcs *pcs) in pcs_link_timer_callback() 125 static void auto_nego_timer_callback(struct tse_pcs *pcs) in auto_nego_timer_callback() 189 struct tse_pcs *pcs = from_timer(pcs, t, aneg_link_timer); in aneg_link_timer_callback() 197 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev, in tse_pcs_fix_mac_speed()
|
D | dwmac-socfpga.c | 54 struct tse_pcs pcs;
|