Home
last modified time | relevance | path

Searched refs:link_cfg (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-dcb.c65 struct dpni_link_cfg link_cfg = {0}; in dpaa2_eth_dcbnl_ieee_setpfc() local
83 link_cfg.rate = priv->link_state.rate; in dpaa2_eth_dcbnl_ieee_setpfc()
84 link_cfg.options = priv->link_state.options; in dpaa2_eth_dcbnl_ieee_setpfc()
86 link_cfg.options |= DPNI_LINK_OPT_PFC_PAUSE; in dpaa2_eth_dcbnl_ieee_setpfc()
88 link_cfg.options &= ~DPNI_LINK_OPT_PFC_PAUSE; in dpaa2_eth_dcbnl_ieee_setpfc()
89 err = dpni_set_link_cfg(priv->mc_io, 0, priv->mc_token, &link_cfg); in dpaa2_eth_dcbnl_ieee_setpfc()
Ddpaa2-eth.c3407 struct dpni_link_cfg link_cfg = {0}; in dpaa2_eth_set_pause() local
3411 err = dpni_get_link_cfg(priv->mc_io, 0, priv->mc_token, &link_cfg); in dpaa2_eth_set_pause()
3418 link_cfg.options |= DPNI_LINK_OPT_PAUSE; in dpaa2_eth_set_pause()
3419 link_cfg.options &= ~DPNI_LINK_OPT_ASYM_PAUSE; in dpaa2_eth_set_pause()
3420 err = dpni_set_link_cfg(priv->mc_io, 0, priv->mc_token, &link_cfg); in dpaa2_eth_set_pause()
3426 priv->link_state.options = link_cfg.options; in dpaa2_eth_set_pause()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c397 if (p->link_cfg.autoneg != AUTONEG_ENABLE) in restart_autoneg()
691 fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps, in get_link_ksettings()
696 &pi->link_cfg), in get_link_ksettings()
698 fw_caps_to_lmm(pi->port_type, pi->link_cfg.lpacaps, in get_link_ksettings()
702 ? pi->link_cfg.speed in get_link_ksettings()
706 base->autoneg = pi->link_cfg.autoneg; in get_link_ksettings()
707 if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG) in get_link_ksettings()
710 if (pi->link_cfg.autoneg) in get_link_ksettings()
721 struct link_config *lc = &pi->link_cfg; in set_link_ksettings()
819 const struct link_config *lc = &pi->link_cfg; in get_fecparam()
[all …]
Dcxgb4_main.c200 switch (p->link_cfg.speed) { in link_report()
224 dev->name, p->link_cfg.speed); in link_report()
229 fc[p->link_cfg.fc]); in link_report()
334 pi->link_cfg.redo_l1cfg = netif_running(dev); in t4_os_portmod_changed()
522 &pi->link_cfg); in link_start()
5696 n10g += is_x_10g_port(&adap2pinfo(adap, i)->link_cfg); in cfg_queues()
5740 pi->nqsets = is_x_10g_port(&pi->link_cfg) ? q10g : q1g; in cfg_queues()
6139 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_100M) in print_port_info()
6141 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_1G) in print_port_info()
6143 if (pi->link_cfg.pcaps & FW_PORT_CAP32_SPEED_10G) in print_port_info()
[all …]
Dcxgb4.h667 struct link_config link_cfg; member
Dt4_hw.c8279 rx_en && tx_en && pi->link_cfg.link_ok); in t4_enable_pi_params()
8571 struct link_config *lc = &pi->link_cfg; in t4_handle_get_port_info()
9690 init_link_config(&pi->link_cfg, pcaps, acaps); in t4_init_portinfo()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c159 switch (pi->link_cfg.speed) { in t4vf_os_link_changed()
184 switch ((int)pi->link_cfg.fc) { in t4vf_os_link_changed()
1465 fw_caps_to_lmm(pi->port_type, pi->link_cfg.pcaps, in cxgb4vf_get_link_ksettings()
1467 fw_caps_to_lmm(pi->port_type, pi->link_cfg.acaps, in cxgb4vf_get_link_ksettings()
1469 fw_caps_to_lmm(pi->port_type, pi->link_cfg.lpacaps, in cxgb4vf_get_link_ksettings()
1473 base->speed = pi->link_cfg.speed; in cxgb4vf_get_link_ksettings()
1480 base->autoneg = pi->link_cfg.autoneg; in cxgb4vf_get_link_ksettings()
1481 if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG) in cxgb4vf_get_link_ksettings()
1484 if (pi->link_cfg.autoneg) in cxgb4vf_get_link_ksettings()
1531 const struct link_config *lc = &pi->link_cfg; in cxgb4vf_get_fecparam()
[all …]
Dadapter.h107 struct link_config link_cfg; /* physical port configuration */ member
Dt4vf_hw.c589 init_link_config(&pi->link_cfg, pcaps, acaps); in t4vf_port_init()
1431 rx_en && tx_en && pi->link_cfg.link_ok); in t4vf_enable_pi()
1917 struct link_config *lc = &pi->link_cfg; in t4vf_handle_get_port_info()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c1465 if (vf->link_cfg == IFLA_VF_LINK_STATE_AUTO) { in bnx2x_iov_link_update_vf()
1482 } else if (vf->link_cfg == IFLA_VF_LINK_STATE_DISABLE && in bnx2x_iov_link_update_vf()
1486 } else if (vf->link_cfg == IFLA_VF_LINK_STATE_ENABLE && in bnx2x_iov_link_update_vf()
1498 vf->link_cfg, bulletin->link_speed, bulletin->link_flags); in bnx2x_iov_link_update_vf()
1521 if (vf->link_cfg == link_state) in bnx2x_set_vf_link_state()
1524 vf->link_cfg = link_state; in bnx2x_set_vf_link_state()
2632 ivi->linkstate = vf->link_cfg; in bnx2x_get_vf_config()
Dbnx2x_sriov.h133 u8 link_cfg; /* IFLA_VF_LINK_STATE_AUTO member
/linux-6.1.9/drivers/scsi/csiostor/
Dcsio_hw.h335 struct link_config link_cfg; member
Dcsio_hw.c1837 csio_init_link_config(&hw->pport[i].link_cfg, pcaps, acaps); in csio_enable_ports()
1839 csio_link_l1cfg(&hw->pport[i].link_cfg, fw_caps, &rcaps); in csio_enable_ports()
/linux-6.1.9/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c832 linkspeed = pi->link_cfg.speed; in cxgbit_set_tcp_window()
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c1096 linkspeed = pi->link_cfg.speed; in chtls_set_tcp_window()
/linux-6.1.9/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1869 linkspeed = ((struct port_info *)netdev_priv(ndev))->link_cfg.speed; in init_act_open()