Lines Matching refs:lsettings
16 struct ethtool_link_settings *lsettings; member
36 data->lsettings = &data->ksettings.base; in linkmodes_prepare_data()
65 const struct ethtool_link_settings *lsettings = &ksettings->base; in linkmodes_reply_size() local
90 if (lsettings->master_slave_cfg != MASTER_SLAVE_CFG_UNSUPPORTED) in linkmodes_reply_size()
93 if (lsettings->master_slave_state != MASTER_SLAVE_STATE_UNSUPPORTED) in linkmodes_reply_size()
105 const struct ethtool_link_settings *lsettings = &ksettings->base; in linkmodes_fill_reply() local
109 if (nla_put_u8(skb, ETHTOOL_A_LINKMODES_AUTONEG, lsettings->autoneg)) in linkmodes_fill_reply()
128 if (nla_put_u32(skb, ETHTOOL_A_LINKMODES_SPEED, lsettings->speed) || in linkmodes_fill_reply()
129 nla_put_u8(skb, ETHTOOL_A_LINKMODES_DUPLEX, lsettings->duplex)) in linkmodes_fill_reply()
136 if (lsettings->master_slave_cfg != MASTER_SLAVE_CFG_UNSUPPORTED && in linkmodes_fill_reply()
138 lsettings->master_slave_cfg)) in linkmodes_fill_reply()
141 if (lsettings->master_slave_state != MASTER_SLAVE_STATE_UNSUPPORTED && in linkmodes_fill_reply()
143 lsettings->master_slave_state)) in linkmodes_fill_reply()
247 struct ethtool_link_settings *lsettings = &ksettings->base; in ethnl_update_linkmodes() local
254 if (lsettings->master_slave_cfg == MASTER_SLAVE_CFG_UNSUPPORTED) { in ethnl_update_linkmodes()
266 ethnl_update_u8(&lsettings->autoneg, tb[ETHTOOL_A_LINKMODES_AUTONEG], in ethnl_update_linkmodes()
274 if (!lsettings->autoneg && in ethnl_update_linkmodes()
280 } else if (!lsettings->autoneg) { in ethnl_update_linkmodes()
293 ethnl_update_u32(&lsettings->speed, tb[ETHTOOL_A_LINKMODES_SPEED], in ethnl_update_linkmodes()
296 ethnl_update_u8(&lsettings->duplex, tb[ETHTOOL_A_LINKMODES_DUPLEX], in ethnl_update_linkmodes()
298 ethnl_update_u8(&lsettings->master_slave_cfg, master_slave_cfg, mod); in ethnl_update_linkmodes()
300 if (!tb[ETHTOOL_A_LINKMODES_OURS] && lsettings->autoneg && in ethnl_update_linkmodes()