Lines Matching refs:port
131 * [ 5-11]: COMPHY port index
152 #define COMPHY_FW_PARAM_FULL(mode, port, speed, pol, width) \
155 (((port) << COMPHY_FW_PORT_OFFSET) & COMPHY_FW_PORT_MASK) | \
159 #define COMPHY_FW_PARAM(mode, port) \
160 COMPHY_FW_PARAM_FULL(mode, port, COMPHY_FW_SPEED_MAX, 0, 0)
162 #define COMPHY_FW_PARAM_ETH(mode, port, speed) \
163 COMPHY_FW_PARAM_FULL(mode, port, speed, 0, 0)
165 #define COMPHY_FW_PARAM_PCIE(mode, port, width) \
166 COMPHY_FW_PARAM_FULL(mode, port, COMPHY_FW_SPEED_5000, 0, width)
181 unsigned port;
189 .port = _port, \
199 .port = _port, \
268 int port;
290 static int mvebu_comphy_get_mode(bool fw_mode, int lane, int port,
305 conf->port == port &&
320 static inline int mvebu_comphy_get_mux(int lane, int port,
323 return mvebu_comphy_get_mode(false, lane, port, mode, submode);
326 static inline int mvebu_comphy_get_fw_mode(int lane, int port,
329 return mvebu_comphy_get_mode(true, lane, port, mode, submode);
724 mux = mvebu_comphy_get_mux(lane->id, lane->port,
769 fw_mode = mvebu_comphy_get_fw_mode(lane->id, lane->port,
803 fw_param = COMPHY_FW_PARAM_ETH(fw_mode, lane->port, fw_speed);
808 fw_param = COMPHY_FW_PARAM(fw_mode, lane->port);
812 fw_param = COMPHY_FW_PARAM(fw_mode, lane->port);
817 fw_param = COMPHY_FW_PARAM_PCIE(fw_mode, lane->port,
851 if (mvebu_comphy_get_fw_mode(lane->id, lane->port, mode, submode) < 0)
923 lane->port = args->args[0];
1062 lane->port = -1;