Lines Matching refs:port
132 * [ 5-11]: COMPHY port index
154 #define COMPHY_FW_PARAM_FULL(mode, port, speed, pol, width) \
157 (((port) << COMPHY_FW_PORT_OFFSET) & COMPHY_FW_PORT_MASK) | \
161 #define COMPHY_FW_PARAM(mode, port) \
162 COMPHY_FW_PARAM_FULL(mode, port, COMPHY_FW_SPEED_MAX, 0, 0)
164 #define COMPHY_FW_PARAM_ETH(mode, port, speed) \
165 COMPHY_FW_PARAM_FULL(mode, port, speed, 0, 0)
167 #define COMPHY_FW_PARAM_PCIE(mode, port, width) \
168 COMPHY_FW_PARAM_FULL(mode, port, COMPHY_FW_SPEED_5000, 0, width)
183 unsigned port;
191 .port = _port, \
201 .port = _port, \
273 int port;
295 static int mvebu_comphy_get_mode(bool fw_mode, int lane, int port,
310 conf->port == port &&
325 static inline int mvebu_comphy_get_mux(int lane, int port,
328 return mvebu_comphy_get_mode(false, lane, port, mode, submode);
331 static inline int mvebu_comphy_get_fw_mode(int lane, int port,
334 return mvebu_comphy_get_mode(true, lane, port, mode, submode);
729 mux = mvebu_comphy_get_mux(lane->id, lane->port,
774 fw_mode = mvebu_comphy_get_fw_mode(lane->id, lane->port,
813 fw_param = COMPHY_FW_PARAM_ETH(fw_mode, lane->port, fw_speed);
818 fw_param = COMPHY_FW_PARAM(fw_mode, lane->port);
822 fw_param = COMPHY_FW_PARAM(fw_mode, lane->port);
827 fw_param = COMPHY_FW_PARAM_PCIE(fw_mode, lane->port,
861 if (mvebu_comphy_get_fw_mode(lane->id, lane->port, mode, submode) < 0)
933 lane->port = args->args[0];
1071 lane->port = -1;