• Home
  • Raw
  • Download

Lines Matching refs:mode

325 	u32 type, mode;  in prestera_port_type_set()  local
342 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_port_type_set()
343 if ((port_link_modes[mode].pr_mask & in prestera_port_type_set()
345 type == port_link_modes[mode].port_type) { in prestera_port_type_set()
346 new_mode = mode; in prestera_port_type_set()
362 u32 mode; in prestera_modes_to_eth() local
364 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_modes_to_eth()
365 if ((port_link_modes[mode].pr_mask & link_modes) == 0) in prestera_modes_to_eth()
369 port_link_modes[mode].port_type != type) in prestera_modes_to_eth()
372 __set_bit(port_link_modes[mode].eth_mode, eth_modes); in prestera_modes_to_eth()
375 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_modes_to_eth()
376 if ((port_fec_caps[mode].pr_fec & fec) == 0) in prestera_modes_to_eth()
379 __set_bit(port_fec_caps[mode].eth_mode, eth_modes); in prestera_modes_to_eth()
388 u32 mode; in prestera_modes_from_eth() local
390 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_modes_from_eth()
391 if (!test_bit(port_link_modes[mode].eth_mode, eth_modes)) in prestera_modes_from_eth()
394 if (port_link_modes[mode].port_type != type) in prestera_modes_from_eth()
397 adver_modes |= port_link_modes[mode].pr_mask; in prestera_modes_from_eth()
400 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_modes_from_eth()
401 if (!test_bit(port_fec_caps[mode].eth_mode, eth_modes)) in prestera_modes_from_eth()
404 fec_modes |= port_fec_caps[mode].pr_fec; in prestera_modes_from_eth()
414 u32 mode; in prestera_port_supp_types_get() local
417 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_port_supp_types_get()
418 if ((port_link_modes[mode].pr_mask & in prestera_port_supp_types_get()
422 ptype = port_link_modes[mode].port_type; in prestera_port_supp_types_get()
579 port->cfg_phy.mode, in prestera_port_mdix_set()
591 u32 mode; in prestera_port_link_mode_set() local
594 for (mode = 0; mode < PRESTERA_LINK_MODE_MAX; mode++) { in prestera_port_link_mode_set()
596 speed != port_link_modes[mode].speed) in prestera_port_link_mode_set()
600 duplex != port_link_modes[mode].duplex) in prestera_port_link_mode_set()
603 if (!(port_link_modes[mode].pr_mask & in prestera_port_link_mode_set()
607 if (type != port_link_modes[mode].port_type) in prestera_port_link_mode_set()
610 new_mode = mode; in prestera_port_link_mode_set()
625 port->cfg_phy.mode = new_mode; in prestera_port_link_mode_set()
683 u32 mode; in prestera_ethtool_get_fecparam() local
692 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_ethtool_get_fecparam()
693 if ((port_fec_caps[mode].pr_fec & port->caps.supp_fec) == 0) in prestera_ethtool_get_fecparam()
696 fecparam->fec |= port_fec_caps[mode].eth_fec; in prestera_ethtool_get_fecparam()
712 u32 mode; in prestera_ethtool_set_fecparam() local
726 for (mode = 0; mode < PRESTERA_PORT_FEC_MAX; mode++) { in prestera_ethtool_set_fecparam()
727 if ((port_fec_caps[mode].eth_fec & fecparam->fec) && in prestera_ethtool_set_fecparam()
728 (port_fec_caps[mode].pr_fec & port->caps.supp_fec)) { in prestera_ethtool_set_fecparam()
729 fec = mode; in prestera_ethtool_set_fecparam()