@@ -143,7 +143,7 @@ enum {
143143 DW_XPCS_INTERFACE_MAX ,
144144};
145145
146- struct xpcs_compat {
146+ struct dw_xpcs_compat {
147147 const int * supported ;
148148 const phy_interface_t * interface ;
149149 int num_interfaces ;
@@ -154,16 +154,16 @@ struct xpcs_compat {
154154struct dw_xpcs_desc {
155155 u32 id ;
156156 u32 mask ;
157- const struct xpcs_compat * compat ;
157+ const struct dw_xpcs_compat * compat ;
158158};
159159
160- static const struct xpcs_compat *
160+ static const struct dw_xpcs_compat *
161161xpcs_find_compat (const struct dw_xpcs_desc * desc , phy_interface_t interface )
162162{
163163 int i , j ;
164164
165165 for (i = 0 ; i < DW_XPCS_INTERFACE_MAX ; i ++ ) {
166- const struct xpcs_compat * compat = & desc -> compat [i ];
166+ const struct dw_xpcs_compat * compat = & desc -> compat [i ];
167167
168168 for (j = 0 ; j < compat -> num_interfaces ; j ++ )
169169 if (compat -> interface [j ] == interface )
@@ -175,7 +175,7 @@ xpcs_find_compat(const struct dw_xpcs_desc *desc, phy_interface_t interface)
175175
176176int xpcs_get_an_mode (struct dw_xpcs * xpcs , phy_interface_t interface )
177177{
178- const struct xpcs_compat * compat ;
178+ const struct dw_xpcs_compat * compat ;
179179
180180 compat = xpcs_find_compat (xpcs -> desc , interface );
181181 if (!compat )
@@ -185,7 +185,7 @@ int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface)
185185}
186186EXPORT_SYMBOL_GPL (xpcs_get_an_mode );
187187
188- static bool __xpcs_linkmode_supported (const struct xpcs_compat * compat ,
188+ static bool __xpcs_linkmode_supported (const struct dw_xpcs_compat * compat ,
189189 enum ethtool_link_mode_bit_indices linkmode )
190190{
191191 int i ;
@@ -277,7 +277,7 @@ static int xpcs_poll_reset(struct dw_xpcs *xpcs, int dev)
277277}
278278
279279static int xpcs_soft_reset (struct dw_xpcs * xpcs ,
280- const struct xpcs_compat * compat )
280+ const struct dw_xpcs_compat * compat )
281281{
282282 int ret , dev ;
283283
@@ -418,7 +418,7 @@ static void xpcs_config_usxgmii(struct dw_xpcs *xpcs, int speed)
418418}
419419
420420static int _xpcs_config_aneg_c73 (struct dw_xpcs * xpcs ,
421- const struct xpcs_compat * compat )
421+ const struct dw_xpcs_compat * compat )
422422{
423423 int ret , adv ;
424424
@@ -463,7 +463,7 @@ static int _xpcs_config_aneg_c73(struct dw_xpcs *xpcs,
463463}
464464
465465static int xpcs_config_aneg_c73 (struct dw_xpcs * xpcs ,
466- const struct xpcs_compat * compat )
466+ const struct dw_xpcs_compat * compat )
467467{
468468 int ret ;
469469
@@ -482,7 +482,7 @@ static int xpcs_config_aneg_c73(struct dw_xpcs *xpcs,
482482
483483static int xpcs_aneg_done_c73 (struct dw_xpcs * xpcs ,
484484 struct phylink_link_state * state ,
485- const struct xpcs_compat * compat , u16 an_stat1 )
485+ const struct dw_xpcs_compat * compat , u16 an_stat1 )
486486{
487487 int ret ;
488488
@@ -607,7 +607,7 @@ static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported,
607607 const struct phylink_link_state * state )
608608{
609609 __ETHTOOL_DECLARE_LINK_MODE_MASK (xpcs_supported ) = { 0 , };
610- const struct xpcs_compat * compat ;
610+ const struct dw_xpcs_compat * compat ;
611611 struct dw_xpcs * xpcs ;
612612 int i ;
613613
@@ -633,7 +633,7 @@ void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces)
633633 int i , j ;
634634
635635 for (i = 0 ; i < DW_XPCS_INTERFACE_MAX ; i ++ ) {
636- const struct xpcs_compat * compat = & xpcs -> desc -> compat [i ];
636+ const struct dw_xpcs_compat * compat = & xpcs -> desc -> compat [i ];
637637
638638 for (j = 0 ; j < compat -> num_interfaces ; j ++ )
639639 __set_bit (compat -> interface [j ], interfaces );
@@ -850,7 +850,7 @@ static int xpcs_config_2500basex(struct dw_xpcs *xpcs)
850850int xpcs_do_config (struct dw_xpcs * xpcs , phy_interface_t interface ,
851851 const unsigned long * advertising , unsigned int neg_mode )
852852{
853- const struct xpcs_compat * compat ;
853+ const struct dw_xpcs_compat * compat ;
854854 int ret ;
855855
856856 compat = xpcs_find_compat (xpcs -> desc , interface );
@@ -915,7 +915,7 @@ static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
915915
916916static int xpcs_get_state_c73 (struct dw_xpcs * xpcs ,
917917 struct phylink_link_state * state ,
918- const struct xpcs_compat * compat )
918+ const struct dw_xpcs_compat * compat )
919919{
920920 bool an_enabled ;
921921 int pcs_stat1 ;
@@ -1115,7 +1115,7 @@ static void xpcs_get_state(struct phylink_pcs *pcs,
11151115 struct phylink_link_state * state )
11161116{
11171117 struct dw_xpcs * xpcs = phylink_pcs_to_xpcs (pcs );
1118- const struct xpcs_compat * compat ;
1118+ const struct dw_xpcs_compat * compat ;
11191119 int ret ;
11201120
11211121 compat = xpcs_find_compat (xpcs -> desc , state -> interface );
@@ -1269,7 +1269,7 @@ static u32 xpcs_get_id(struct dw_xpcs *xpcs)
12691269 return 0xffffffff ;
12701270}
12711271
1272- static const struct xpcs_compat synopsys_xpcs_compat [DW_XPCS_INTERFACE_MAX ] = {
1272+ static const struct dw_xpcs_compat synopsys_xpcs_compat [DW_XPCS_INTERFACE_MAX ] = {
12731273 [DW_XPCS_USXGMII ] = {
12741274 .supported = xpcs_usxgmii_features ,
12751275 .interface = xpcs_usxgmii_interfaces ,
@@ -1314,7 +1314,7 @@ static const struct xpcs_compat synopsys_xpcs_compat[DW_XPCS_INTERFACE_MAX] = {
13141314 },
13151315};
13161316
1317- static const struct xpcs_compat nxp_sja1105_xpcs_compat [DW_XPCS_INTERFACE_MAX ] = {
1317+ static const struct dw_xpcs_compat nxp_sja1105_xpcs_compat [DW_XPCS_INTERFACE_MAX ] = {
13181318 [DW_XPCS_SGMII ] = {
13191319 .supported = xpcs_sgmii_features ,
13201320 .interface = xpcs_sgmii_interfaces ,
@@ -1324,7 +1324,7 @@ static const struct xpcs_compat nxp_sja1105_xpcs_compat[DW_XPCS_INTERFACE_MAX] =
13241324 },
13251325};
13261326
1327- static const struct xpcs_compat nxp_sja1110_xpcs_compat [DW_XPCS_INTERFACE_MAX ] = {
1327+ static const struct dw_xpcs_compat nxp_sja1110_xpcs_compat [DW_XPCS_INTERFACE_MAX ] = {
13281328 [DW_XPCS_SGMII ] = {
13291329 .supported = xpcs_sgmii_features ,
13301330 .interface = xpcs_sgmii_interfaces ,
@@ -1418,7 +1418,7 @@ static int xpcs_init_id(struct dw_xpcs *xpcs)
14181418
14191419static int xpcs_init_iface (struct dw_xpcs * xpcs , phy_interface_t interface )
14201420{
1421- const struct xpcs_compat * compat ;
1421+ const struct dw_xpcs_compat * compat ;
14221422
14231423 compat = xpcs_find_compat (xpcs -> desc , interface );
14241424 if (!compat )
0 commit comments