@@ -143,7 +143,7 @@ enum {
143
143
DW_XPCS_INTERFACE_MAX ,
144
144
};
145
145
146
- struct xpcs_compat {
146
+ struct dw_xpcs_compat {
147
147
const int * supported ;
148
148
const phy_interface_t * interface ;
149
149
int num_interfaces ;
@@ -154,16 +154,16 @@ struct xpcs_compat {
154
154
struct dw_xpcs_desc {
155
155
u32 id ;
156
156
u32 mask ;
157
- const struct xpcs_compat * compat ;
157
+ const struct dw_xpcs_compat * compat ;
158
158
};
159
159
160
- static const struct xpcs_compat *
160
+ static const struct dw_xpcs_compat *
161
161
xpcs_find_compat (const struct dw_xpcs_desc * desc , phy_interface_t interface )
162
162
{
163
163
int i , j ;
164
164
165
165
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 ];
167
167
168
168
for (j = 0 ; j < compat -> num_interfaces ; j ++ )
169
169
if (compat -> interface [j ] == interface )
@@ -175,7 +175,7 @@ xpcs_find_compat(const struct dw_xpcs_desc *desc, phy_interface_t interface)
175
175
176
176
int xpcs_get_an_mode (struct dw_xpcs * xpcs , phy_interface_t interface )
177
177
{
178
- const struct xpcs_compat * compat ;
178
+ const struct dw_xpcs_compat * compat ;
179
179
180
180
compat = xpcs_find_compat (xpcs -> desc , interface );
181
181
if (!compat )
@@ -185,7 +185,7 @@ int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface)
185
185
}
186
186
EXPORT_SYMBOL_GPL (xpcs_get_an_mode );
187
187
188
- static bool __xpcs_linkmode_supported (const struct xpcs_compat * compat ,
188
+ static bool __xpcs_linkmode_supported (const struct dw_xpcs_compat * compat ,
189
189
enum ethtool_link_mode_bit_indices linkmode )
190
190
{
191
191
int i ;
@@ -277,7 +277,7 @@ static int xpcs_poll_reset(struct dw_xpcs *xpcs, int dev)
277
277
}
278
278
279
279
static int xpcs_soft_reset (struct dw_xpcs * xpcs ,
280
- const struct xpcs_compat * compat )
280
+ const struct dw_xpcs_compat * compat )
281
281
{
282
282
int ret , dev ;
283
283
@@ -418,7 +418,7 @@ static void xpcs_config_usxgmii(struct dw_xpcs *xpcs, int speed)
418
418
}
419
419
420
420
static int _xpcs_config_aneg_c73 (struct dw_xpcs * xpcs ,
421
- const struct xpcs_compat * compat )
421
+ const struct dw_xpcs_compat * compat )
422
422
{
423
423
int ret , adv ;
424
424
@@ -463,7 +463,7 @@ static int _xpcs_config_aneg_c73(struct dw_xpcs *xpcs,
463
463
}
464
464
465
465
static int xpcs_config_aneg_c73 (struct dw_xpcs * xpcs ,
466
- const struct xpcs_compat * compat )
466
+ const struct dw_xpcs_compat * compat )
467
467
{
468
468
int ret ;
469
469
@@ -482,7 +482,7 @@ static int xpcs_config_aneg_c73(struct dw_xpcs *xpcs,
482
482
483
483
static int xpcs_aneg_done_c73 (struct dw_xpcs * xpcs ,
484
484
struct phylink_link_state * state ,
485
- const struct xpcs_compat * compat , u16 an_stat1 )
485
+ const struct dw_xpcs_compat * compat , u16 an_stat1 )
486
486
{
487
487
int ret ;
488
488
@@ -607,7 +607,7 @@ static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported,
607
607
const struct phylink_link_state * state )
608
608
{
609
609
__ETHTOOL_DECLARE_LINK_MODE_MASK (xpcs_supported ) = { 0 , };
610
- const struct xpcs_compat * compat ;
610
+ const struct dw_xpcs_compat * compat ;
611
611
struct dw_xpcs * xpcs ;
612
612
int i ;
613
613
@@ -633,7 +633,7 @@ void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces)
633
633
int i , j ;
634
634
635
635
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 ];
637
637
638
638
for (j = 0 ; j < compat -> num_interfaces ; j ++ )
639
639
__set_bit (compat -> interface [j ], interfaces );
@@ -850,7 +850,7 @@ static int xpcs_config_2500basex(struct dw_xpcs *xpcs)
850
850
int xpcs_do_config (struct dw_xpcs * xpcs , phy_interface_t interface ,
851
851
const unsigned long * advertising , unsigned int neg_mode )
852
852
{
853
- const struct xpcs_compat * compat ;
853
+ const struct dw_xpcs_compat * compat ;
854
854
int ret ;
855
855
856
856
compat = xpcs_find_compat (xpcs -> desc , interface );
@@ -915,7 +915,7 @@ static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode,
915
915
916
916
static int xpcs_get_state_c73 (struct dw_xpcs * xpcs ,
917
917
struct phylink_link_state * state ,
918
- const struct xpcs_compat * compat )
918
+ const struct dw_xpcs_compat * compat )
919
919
{
920
920
bool an_enabled ;
921
921
int pcs_stat1 ;
@@ -1115,7 +1115,7 @@ static void xpcs_get_state(struct phylink_pcs *pcs,
1115
1115
struct phylink_link_state * state )
1116
1116
{
1117
1117
struct dw_xpcs * xpcs = phylink_pcs_to_xpcs (pcs );
1118
- const struct xpcs_compat * compat ;
1118
+ const struct dw_xpcs_compat * compat ;
1119
1119
int ret ;
1120
1120
1121
1121
compat = xpcs_find_compat (xpcs -> desc , state -> interface );
@@ -1269,7 +1269,7 @@ static u32 xpcs_get_id(struct dw_xpcs *xpcs)
1269
1269
return 0xffffffff ;
1270
1270
}
1271
1271
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 ] = {
1273
1273
[DW_XPCS_USXGMII ] = {
1274
1274
.supported = xpcs_usxgmii_features ,
1275
1275
.interface = xpcs_usxgmii_interfaces ,
@@ -1314,7 +1314,7 @@ static const struct xpcs_compat synopsys_xpcs_compat[DW_XPCS_INTERFACE_MAX] = {
1314
1314
},
1315
1315
};
1316
1316
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 ] = {
1318
1318
[DW_XPCS_SGMII ] = {
1319
1319
.supported = xpcs_sgmii_features ,
1320
1320
.interface = xpcs_sgmii_interfaces ,
@@ -1324,7 +1324,7 @@ static const struct xpcs_compat nxp_sja1105_xpcs_compat[DW_XPCS_INTERFACE_MAX] =
1324
1324
},
1325
1325
};
1326
1326
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 ] = {
1328
1328
[DW_XPCS_SGMII ] = {
1329
1329
.supported = xpcs_sgmii_features ,
1330
1330
.interface = xpcs_sgmii_interfaces ,
@@ -1418,7 +1418,7 @@ static int xpcs_init_id(struct dw_xpcs *xpcs)
1418
1418
1419
1419
static int xpcs_init_iface (struct dw_xpcs * xpcs , phy_interface_t interface )
1420
1420
{
1421
- const struct xpcs_compat * compat ;
1421
+ const struct dw_xpcs_compat * compat ;
1422
1422
1423
1423
compat = xpcs_find_compat (xpcs -> desc , interface );
1424
1424
if (!compat )
0 commit comments