Lines Matching refs:port_cap
264 struct hinic_port_cap port_cap; in hinic_get_link_ksettings() local
274 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_get_link_ksettings()
278 hinic_link_port_type(&settings, port_cap.port_type); in hinic_get_link_ksettings()
286 set_link_speed(link_ksettings, port_cap.speed); in hinic_get_link_ksettings()
288 (port_cap.duplex == HINIC_DUPLEX_FULL) ? in hinic_get_link_ksettings()
292 if (!!(port_cap.autoneg_cap & HINIC_AUTONEG_SUPPORTED)) in hinic_get_link_ksettings()
296 if (port_cap.autoneg_state == HINIC_AUTONEG_ACTIVE) in hinic_get_link_ksettings()
394 struct hinic_port_cap port_cap = { 0 }; in get_link_settings_type() local
397 err = hinic_port_get_cap(nic_dev, &port_cap); in get_link_settings_type()
402 if (port_cap.autoneg_cap) in get_link_settings_type()
406 if (!port_cap.autoneg_cap) { in get_link_settings_type()
854 struct hinic_port_cap port_cap = {0}; in hinic_set_pauseparam() local
857 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_set_pauseparam()
861 if (pause->autoneg != port_cap.autoneg_state) in hinic_set_pauseparam()