Lines Matching refs:port_cap
265 struct hinic_port_cap port_cap; in hinic_get_link_ksettings() local
275 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_get_link_ksettings()
279 hinic_link_port_type(&settings, port_cap.port_type); in hinic_get_link_ksettings()
287 set_link_speed(link_ksettings, port_cap.speed); in hinic_get_link_ksettings()
289 (port_cap.duplex == HINIC_DUPLEX_FULL) ? in hinic_get_link_ksettings()
293 if (!!(port_cap.autoneg_cap & HINIC_AUTONEG_SUPPORTED)) in hinic_get_link_ksettings()
297 if (port_cap.autoneg_state == HINIC_AUTONEG_ACTIVE) in hinic_get_link_ksettings()
397 struct hinic_port_cap port_cap = { 0 }; in get_link_settings_type() local
400 err = hinic_port_get_cap(nic_dev, &port_cap); in get_link_settings_type()
405 if (port_cap.autoneg_cap) in get_link_settings_type()
409 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()