• Home
  • Raw
  • Download

Lines Matching refs:lc

1688 static void csio_init_link_config(struct link_config *lc, fw_port_cap32_t pcaps,  in csio_init_link_config()  argument
1691 lc->pcaps = pcaps; in csio_init_link_config()
1692 lc->def_acaps = acaps; in csio_init_link_config()
1693 lc->lpacaps = 0; in csio_init_link_config()
1694 lc->speed_caps = 0; in csio_init_link_config()
1695 lc->speed = 0; in csio_init_link_config()
1696 lc->requested_fc = PAUSE_RX | PAUSE_TX; in csio_init_link_config()
1697 lc->fc = lc->requested_fc; in csio_init_link_config()
1703 lc->requested_fec = FEC_AUTO; in csio_init_link_config()
1704 lc->fec = fwcap_to_cc_fec(lc->def_acaps); in csio_init_link_config()
1713 if (lc->pcaps & FW_PORT_CAP32_ANEG) { in csio_init_link_config()
1714 lc->acaps = lc->pcaps & ADVERT_MASK; in csio_init_link_config()
1715 lc->autoneg = AUTONEG_ENABLE; in csio_init_link_config()
1716 lc->requested_fc |= PAUSE_AUTONEG; in csio_init_link_config()
1718 lc->acaps = 0; in csio_init_link_config()
1719 lc->autoneg = AUTONEG_DISABLE; in csio_init_link_config()
1723 static void csio_link_l1cfg(struct link_config *lc, uint16_t fw_caps, in csio_link_l1cfg() argument
1729 lc->link_ok = 0; in csio_link_l1cfg()
1735 fw_fc = cc_to_fwcap_pause(lc->requested_fc); in csio_link_l1cfg()
1745 if (lc->requested_fec & FEC_AUTO) in csio_link_l1cfg()
1746 cc_fec = fwcap_to_cc_fec(lc->def_acaps); in csio_link_l1cfg()
1748 cc_fec = lc->requested_fec; in csio_link_l1cfg()
1755 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { in csio_link_l1cfg()
1756 lrcap = (lc->pcaps & ADVERT_MASK) | fw_fc | fw_fec; in csio_link_l1cfg()
1757 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in csio_link_l1cfg()
1758 lc->fec = cc_fec; in csio_link_l1cfg()
1759 } else if (lc->autoneg == AUTONEG_DISABLE) { in csio_link_l1cfg()
1760 lrcap = lc->speed_caps | fw_fc | fw_fec | fw_mdi; in csio_link_l1cfg()
1761 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in csio_link_l1cfg()
1762 lc->fec = cc_fec; in csio_link_l1cfg()
1764 lrcap = lc->acaps | fw_fc | fw_fec | fw_mdi; in csio_link_l1cfg()