Lines Matching refs:lane

37 static void b53_serdes_set_lane(struct b53_device *dev, u8 lane)  in b53_serdes_set_lane()  argument
39 if (dev->serdes_lane == lane) in b53_serdes_set_lane()
42 WARN_ON(lane > 1); in b53_serdes_set_lane()
45 SERDES_XGXSBLK0_BLOCKADDRESS, lane); in b53_serdes_set_lane()
46 dev->serdes_lane = lane; in b53_serdes_set_lane()
49 static void b53_serdes_write(struct b53_device *dev, u8 lane, in b53_serdes_write() argument
52 b53_serdes_set_lane(dev, lane); in b53_serdes_write()
56 static u16 b53_serdes_read(struct b53_device *dev, u8 lane, in b53_serdes_read() argument
59 b53_serdes_set_lane(dev, lane); in b53_serdes_read()
66 u8 lane = b53_serdes_map_lane(dev, port); in b53_serdes_config() local
69 if (lane == B53_INVALID_LANE) in b53_serdes_config()
72 reg = b53_serdes_read(dev, lane, B53_SERDES_DIGITAL_CONTROL(1), in b53_serdes_config()
78 b53_serdes_write(dev, lane, B53_SERDES_DIGITAL_CONTROL(1), in b53_serdes_config()
85 u8 lane = b53_serdes_map_lane(dev, port); in b53_serdes_an_restart() local
88 if (lane == B53_INVALID_LANE) in b53_serdes_an_restart()
91 reg = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_BMCR), in b53_serdes_an_restart()
94 b53_serdes_write(dev, lane, B53_SERDES_MII_REG(MII_BMCR), in b53_serdes_an_restart()
102 u8 lane = b53_serdes_map_lane(dev, port); in b53_serdes_link_state() local
105 if (lane == B53_INVALID_LANE) in b53_serdes_link_state()
108 dig = b53_serdes_read(dev, lane, B53_SERDES_DIGITAL_STATUS, in b53_serdes_link_state()
110 bmsr = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_BMSR), in b53_serdes_link_state()
144 u8 lane = b53_serdes_map_lane(dev, port); in b53_serdes_link_set() local
147 if (lane == B53_INVALID_LANE) in b53_serdes_link_set()
150 reg = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_BMCR), in b53_serdes_link_set()
156 b53_serdes_write(dev, lane, B53_SERDES_MII_REG(MII_BMCR), in b53_serdes_link_set()
165 u8 lane = b53_serdes_map_lane(dev, port); in b53_serdes_phylink_validate() local
167 if (lane == B53_INVALID_LANE) in b53_serdes_phylink_validate()
170 switch (lane) { in b53_serdes_phylink_validate()
185 u8 lane = b53_serdes_map_lane(dev, port); in b53_serdes_init() local
188 if (lane == B53_INVALID_LANE) in b53_serdes_init()
191 id0 = b53_serdes_read(dev, lane, B53_SERDES_ID0, SERDES_ID0); in b53_serdes_init()
192 msb = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_PHYSID1), in b53_serdes_init()
194 lsb = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_PHYSID2), in b53_serdes_init()
203 lane, id0 & SERDES_ID0_MODEL_MASK, in b53_serdes_init()