Lines Matching refs:speed
246 static bool hns_gmac_need_adjust_link(void *mac_drv, enum mac_speed speed, in hns_gmac_need_adjust_link() argument
252 return (mac_cb->speed != speed) || in hns_gmac_need_adjust_link()
256 static int hns_gmac_adjust_link(void *mac_drv, enum mac_speed speed, in hns_gmac_adjust_link() argument
264 switch (speed) { in hns_gmac_adjust_link()
283 speed, drv->mac_id); in hns_gmac_adjust_link()
491 enum hns_port_mode speed; in hns_gmac_get_info() local
512 hns_gmac_get_port_mode(mac_drv, &speed); in hns_gmac_get_info()
513 switch (speed) { in hns_gmac_get_info()
515 mac_info->speed = MAC_SPEED_10; in hns_gmac_get_info()
518 mac_info->speed = MAC_SPEED_100; in hns_gmac_get_info()
521 mac_info->speed = MAC_SPEED_1000; in hns_gmac_get_info()
524 mac_info->speed = 0; in hns_gmac_get_info()