• Home
  • Raw
  • Download

Lines Matching refs:lane

58 	unsigned int lane;  member
67 .lane = _lane, \
110 static int mvebu_a3700_comphy_smc(unsigned long function, unsigned long lane, in mvebu_a3700_comphy_smc() argument
116 arm_smccc_smc(function, lane, mode, 0, 0, 0, 0, 0, &res); in mvebu_a3700_comphy_smc()
129 static int mvebu_a3700_comphy_get_fw_mode(int lane, int port, in mvebu_a3700_comphy_get_fw_mode() argument
140 if (mvebu_a3700_comphy_modes[i].lane == lane && in mvebu_a3700_comphy_get_fw_mode()
156 struct mvebu_a3700_comphy_lane *lane = phy_get_drvdata(phy); in mvebu_a3700_comphy_set_mode() local
162 fw_mode = mvebu_a3700_comphy_get_fw_mode(lane->id, lane->port, mode, in mvebu_a3700_comphy_set_mode()
165 dev_err(lane->dev, "invalid COMPHY mode\n"); in mvebu_a3700_comphy_set_mode()
170 lane->mode = mode; in mvebu_a3700_comphy_set_mode()
171 lane->submode = submode; in mvebu_a3700_comphy_set_mode()
178 struct mvebu_a3700_comphy_lane *lane = phy_get_drvdata(phy); in mvebu_a3700_comphy_power_on() local
183 fw_mode = mvebu_a3700_comphy_get_fw_mode(lane->id, lane->port, in mvebu_a3700_comphy_power_on()
184 lane->mode, lane->submode); in mvebu_a3700_comphy_power_on()
186 dev_err(lane->dev, "invalid COMPHY mode\n"); in mvebu_a3700_comphy_power_on()
190 switch (lane->mode) { in mvebu_a3700_comphy_power_on()
192 dev_dbg(lane->dev, "set lane %d to USB3 host mode\n", lane->id); in mvebu_a3700_comphy_power_on()
196 dev_dbg(lane->dev, "set lane %d to SATA mode\n", lane->id); in mvebu_a3700_comphy_power_on()
200 switch (lane->submode) { in mvebu_a3700_comphy_power_on()
202 dev_dbg(lane->dev, "set lane %d to SGMII mode\n", in mvebu_a3700_comphy_power_on()
203 lane->id); in mvebu_a3700_comphy_power_on()
204 fw_param = COMPHY_FW_NET(fw_mode, lane->port, in mvebu_a3700_comphy_power_on()
208 dev_dbg(lane->dev, "set lane %d to HS SGMII mode\n", in mvebu_a3700_comphy_power_on()
209 lane->id); in mvebu_a3700_comphy_power_on()
210 fw_param = COMPHY_FW_NET(fw_mode, lane->port, in mvebu_a3700_comphy_power_on()
214 dev_err(lane->dev, "unsupported PHY submode (%d)\n", in mvebu_a3700_comphy_power_on()
215 lane->submode); in mvebu_a3700_comphy_power_on()
220 dev_dbg(lane->dev, "set lane %d to PCIe mode\n", lane->id); in mvebu_a3700_comphy_power_on()
221 fw_param = COMPHY_FW_PCIE(fw_mode, lane->port, in mvebu_a3700_comphy_power_on()
226 dev_err(lane->dev, "unsupported PHY mode (%d)\n", lane->mode); in mvebu_a3700_comphy_power_on()
230 ret = mvebu_a3700_comphy_smc(COMPHY_SIP_POWER_ON, lane->id, fw_param); in mvebu_a3700_comphy_power_on()
232 dev_err(lane->dev, in mvebu_a3700_comphy_power_on()
240 struct mvebu_a3700_comphy_lane *lane = phy_get_drvdata(phy); in mvebu_a3700_comphy_power_off() local
242 return mvebu_a3700_comphy_smc(COMPHY_SIP_POWER_OFF, lane->id, 0); in mvebu_a3700_comphy_power_off()
255 struct mvebu_a3700_comphy_lane *lane; in mvebu_a3700_comphy_xlate() local
265 lane = phy_get_drvdata(phy); in mvebu_a3700_comphy_xlate()
266 lane->port = args->args[0]; in mvebu_a3700_comphy_xlate()
277 struct mvebu_a3700_comphy_lane *lane; in mvebu_a3700_comphy_probe() local
294 lane = devm_kzalloc(&pdev->dev, sizeof(*lane), GFP_KERNEL); in mvebu_a3700_comphy_probe()
295 if (!lane) { in mvebu_a3700_comphy_probe()
307 lane->dev = &pdev->dev; in mvebu_a3700_comphy_probe()
308 lane->mode = PHY_MODE_INVALID; in mvebu_a3700_comphy_probe()
309 lane->submode = PHY_INTERFACE_MODE_NA; in mvebu_a3700_comphy_probe()
310 lane->id = lane_id; in mvebu_a3700_comphy_probe()
311 lane->port = -1; in mvebu_a3700_comphy_probe()
312 phy_set_drvdata(phy, lane); in mvebu_a3700_comphy_probe()