Lines Matching full:compat
160 const struct dw_xpcs_compat *compat; member
169 const struct dw_xpcs_compat *compat = &desc->compat[i]; in xpcs_find_compat() local
171 for (j = 0; j < compat->num_interfaces; j++) in xpcs_find_compat()
172 if (compat->interface[j] == interface) in xpcs_find_compat()
173 return compat; in xpcs_find_compat()
181 const struct dw_xpcs_compat *compat; in xpcs_get_an_mode() local
183 compat = xpcs_find_compat(xpcs->desc, interface); in xpcs_get_an_mode()
184 if (!compat) in xpcs_get_an_mode()
187 return compat->an_mode; in xpcs_get_an_mode()
191 static bool __xpcs_linkmode_supported(const struct dw_xpcs_compat *compat, in __xpcs_linkmode_supported() argument
196 for (i = 0; compat->supported[i] != __ETHTOOL_LINK_MODE_MASK_NBITS; i++) in __xpcs_linkmode_supported()
197 if (compat->supported[i] == linkmode) in __xpcs_linkmode_supported()
203 #define xpcs_linkmode_supported(compat, mode) \ argument
204 __xpcs_linkmode_supported(compat, ETHTOOL_LINK_MODE_ ## mode ## _BIT)
260 const struct dw_xpcs_compat *compat) in xpcs_soft_reset() argument
264 switch (compat->an_mode) { in xpcs_soft_reset()
401 const struct dw_xpcs_compat *compat) in _xpcs_config_aneg_c73() argument
413 if (xpcs_linkmode_supported(compat, 2500baseX_Full)) in _xpcs_config_aneg_c73()
424 if (xpcs_linkmode_supported(compat, 1000baseKX_Full)) in _xpcs_config_aneg_c73()
426 if (xpcs_linkmode_supported(compat, 10000baseKX4_Full)) in _xpcs_config_aneg_c73()
428 if (xpcs_linkmode_supported(compat, 10000baseKR_Full)) in _xpcs_config_aneg_c73()
437 if (xpcs_linkmode_supported(compat, Pause)) in _xpcs_config_aneg_c73()
439 if (xpcs_linkmode_supported(compat, Asym_Pause)) in _xpcs_config_aneg_c73()
446 const struct dw_xpcs_compat *compat) in xpcs_config_aneg_c73() argument
450 ret = _xpcs_config_aneg_c73(xpcs, compat); in xpcs_config_aneg_c73()
465 const struct dw_xpcs_compat *compat, u16 an_stat1) in xpcs_aneg_done_c73() argument
476 xpcs_config_aneg_c73(xpcs, compat); in xpcs_aneg_done_c73()
590 const struct dw_xpcs_compat *compat; in xpcs_validate() local
595 compat = xpcs_find_compat(xpcs->desc, state->interface); in xpcs_validate()
596 if (!compat) in xpcs_validate()
603 for (i = 0; compat->supported[i] != __ETHTOOL_LINK_MODE_MASK_NBITS; i++) in xpcs_validate()
604 set_bit(compat->supported[i], xpcs_supported); in xpcs_validate()
616 const struct dw_xpcs_compat *compat = &xpcs->desc->compat[i]; in xpcs_get_interfaces() local
618 for (j = 0; j < compat->num_interfaces; j++) in xpcs_get_interfaces()
619 __set_bit(compat->interface[j], interfaces); in xpcs_get_interfaces()
833 const struct dw_xpcs_compat *compat; in xpcs_do_config() local
836 compat = xpcs_find_compat(xpcs->desc, interface); in xpcs_do_config()
837 if (!compat) in xpcs_do_config()
846 switch (compat->an_mode) { in xpcs_do_config()
851 ret = xpcs_config_aneg_c73(xpcs, compat); in xpcs_do_config()
876 if (compat->pma_config) { in xpcs_do_config()
877 ret = compat->pma_config(xpcs); in xpcs_do_config()
898 const struct dw_xpcs_compat *compat) in xpcs_get_state_c73() argument
921 ret = xpcs_soft_reset(xpcs, compat); in xpcs_get_state_c73()
948 state->an_complete = xpcs_aneg_done_c73(xpcs, state, compat, in xpcs_get_state_c73()
1098 const struct dw_xpcs_compat *compat; in xpcs_get_state() local
1101 compat = xpcs_find_compat(xpcs->desc, state->interface); in xpcs_get_state()
1102 if (!compat) in xpcs_get_state()
1105 switch (compat->an_mode) { in xpcs_get_state()
1110 ret = xpcs_get_state_c73(xpcs, state, compat); in xpcs_get_state()
1354 .compat = synopsys_xpcs_compat,
1358 .compat = nxp_sja1105_xpcs_compat,
1362 .compat = nxp_sja1110_xpcs_compat,
1463 const struct dw_xpcs_compat *compat; in xpcs_init_iface() local
1465 compat = xpcs_find_compat(xpcs->desc, interface); in xpcs_init_iface()
1466 if (!compat) in xpcs_init_iface()
1474 return xpcs_soft_reset(xpcs, compat); in xpcs_init_iface()