Lines Matching refs:flowctrl

1902 	u32 flowctrl = 0;  in tg3_decode_flowctrl_1000T()  local
1905 flowctrl |= FLOW_CTRL_RX; in tg3_decode_flowctrl_1000T()
1907 flowctrl |= FLOW_CTRL_TX; in tg3_decode_flowctrl_1000T()
1909 flowctrl |= FLOW_CTRL_TX; in tg3_decode_flowctrl_1000T()
1911 return flowctrl; in tg3_decode_flowctrl_1000T()
1932 u32 flowctrl = 0; in tg3_decode_flowctrl_1000X() local
1935 flowctrl |= FLOW_CTRL_RX; in tg3_decode_flowctrl_1000X()
1937 flowctrl |= FLOW_CTRL_TX; in tg3_decode_flowctrl_1000X()
1939 flowctrl |= FLOW_CTRL_TX; in tg3_decode_flowctrl_1000X()
1941 return flowctrl; in tg3_decode_flowctrl_1000X()
1963 u8 flowctrl = 0; in tg3_setup_flow_control() local
1974 flowctrl = tg3_resolve_flowctrl_1000X(lcladv, rmtadv); in tg3_setup_flow_control()
1976 flowctrl = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in tg3_setup_flow_control()
1978 flowctrl = tp->link_config.flowctrl; in tg3_setup_flow_control()
1980 tp->link_config.active_flowctrl = flowctrl; in tg3_setup_flow_control()
1982 if (flowctrl & FLOW_CTRL_RX) in tg3_setup_flow_control()
1990 if (flowctrl & FLOW_CTRL_TX) in tg3_setup_flow_control()
2029 tp->link_config.flowctrl); in tg3_adjust_link()
4322 static int tg3_phy_autoneg_cfg(struct tg3 *tp, u32 advertise, u32 flowctrl) in tg3_phy_autoneg_cfg() argument
4329 new_adv |= mii_advertise_flowctrl(flowctrl); in tg3_phy_autoneg_cfg()
4422 fc = tp->link_config.flowctrl; in tg3_phy_copper_begin()
4536 tp->link_config.flowctrl = FLOW_CTRL_RX | FLOW_CTRL_TX; in tg3_phy_pull_config()
4556 tp->link_config.flowctrl = tg3_decode_flowctrl_1000T(val); in tg3_phy_pull_config()
4576 tp->link_config.flowctrl = adv; in tg3_phy_pull_config()
4640 tgtadv |= mii_advertise_flowctrl(tp->link_config.flowctrl); in tg3_phy_copper_an_config_ok()
5143 u16 flowctrl; in tg3_fiber_aneg_smachine() local
5243 flowctrl = tg3_advert_flowctrl_1000X(tp->link_config.flowctrl); in tg3_fiber_aneg_smachine()
5244 if (flowctrl & ADVERTISE_1000XPAUSE) in tg3_fiber_aneg_smachine()
5246 if (flowctrl & ADVERTISE_1000XPSE_ASYM) in tg3_fiber_aneg_smachine()
5489 u16 flowctrl; in tg3_setup_fiber_hw_autoneg() local
5537 flowctrl = tg3_advert_flowctrl_1000X(tp->link_config.flowctrl); in tg3_setup_fiber_hw_autoneg()
5538 if (flowctrl & ADVERTISE_1000XPAUSE) in tg3_setup_fiber_hw_autoneg()
5540 if (flowctrl & ADVERTISE_1000XPSE_ASYM) in tg3_setup_fiber_hw_autoneg()
5880 newadv |= tg3_advert_flowctrl_1000X(tp->link_config.flowctrl); in tg3_setup_fiber_mii_phy()
12268 if (tp->link_config.flowctrl & FLOW_CTRL_RX) { in tg3_get_link_ksettings()
12269 if (tp->link_config.flowctrl & FLOW_CTRL_TX) { in tg3_get_link_ksettings()
12275 } else if (tp->link_config.flowctrl & FLOW_CTRL_TX) { in tg3_get_link_ksettings()
12581 if (tp->link_config.flowctrl & FLOW_CTRL_RX) in tg3_get_pauseparam()
12586 if (tp->link_config.flowctrl & FLOW_CTRL_TX) in tg3_get_pauseparam()
12609 tp->link_config.flowctrl = 0; in tg3_set_pauseparam()
12612 tp->link_config.flowctrl |= FLOW_CTRL_RX; in tg3_set_pauseparam()
12615 tp->link_config.flowctrl |= FLOW_CTRL_TX; in tg3_set_pauseparam()
12618 tp->link_config.flowctrl |= FLOW_CTRL_TX; in tg3_set_pauseparam()
12656 tp->link_config.flowctrl |= FLOW_CTRL_RX; in tg3_set_pauseparam()
12658 tp->link_config.flowctrl &= ~FLOW_CTRL_RX; in tg3_set_pauseparam()
12660 tp->link_config.flowctrl |= FLOW_CTRL_TX; in tg3_set_pauseparam()
12662 tp->link_config.flowctrl &= ~FLOW_CTRL_TX; in tg3_set_pauseparam()
15547 tp->link_config.flowctrl = FLOW_CTRL_TX | FLOW_CTRL_RX; in tg3_phy_probe()
15678 tp->link_config.flowctrl); in tg3_phy_probe()